/* Reset et variables CSS */
:root {
    --yellow-primary: rgba(255, 215, 0, 0.6);
    --yellow-subtle: rgba(255, 215, 0, 0.3);
    --light-bg: #ffffff;
    --light-secondary: #fafafa;
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-muted: rgba(0, 0, 0, 0.5);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.01em;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-normal);
}

/* Ligne fine animée */
a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width var(--transition-normal);
}

a:hover {
    color: var(--text-secondary);
}

a:hover::after {
    width: 100%;
}

/* Container principal */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-bottom: 1rem;
}

.logo {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.logo img {
    width: 100%;
    height: auto;
}


/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--border-color);
    margin: 0 auto 1rem;
}

.travel-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
}

.feature-line {
    width: 30px;
    height: 1px;
    background: var(--border-color);
}

.feature-text {
    text-transform: uppercase;
    font-weight: bolder;
    text-align: center;
    font-size: 0.9em;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 2.9rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.highlight {
    color: #1b385c;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 300;
}

/* Countdown Section */
.countdown-section {
    text-align: center;
    margin-bottom: 5rem;
    width: 100%;
}

.countdown-title {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 300;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.75rem 1.25rem;
    min-width: 90px;
    transition: all var(--transition-normal);
    position: relative;
}

.countdown-item:hover {
    border-color: var(--border-hover);
}

.countdown-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.75rem;
    transition: all var(--transition-normal);
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 300;
}

.countdown-separator {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--text-muted);
    font-weight: 300;
    margin: 0 0.5rem;
    opacity: 0.3;
}


/* Form Section */
.form-section {
    width: 100%;
    max-width: 480px;
}

.form-container {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 3rem 2.5rem;
    transition: all var(--transition-normal);
}

.form-container:hover {
    border-color: var(--border-hover);
}

.form-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.form-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: clamp(0.875rem, 1.8vw, 0.95rem);
    font-weight: 300;
    line-height: 1.7;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1.125rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    outline: none;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--border-hover);
    background: transparent;
    box-shadow: none;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: var(--border-hover);
}

.form-group input.error {
    border-color: rgba(220, 38, 38, 0.6);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message {
    display: block;
    color: rgba(220, 38, 38, 0.8);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.submit-button {
    width: 100%;
    padding: 1.25rem 2rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 300;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
}

.submit-button:hover {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

.submit-button.loading .button-text {
    opacity: 0.7;
}

.submit-button.loading .button-loader {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success-message {
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0;
    color: rgba(22, 163, 74, 0.9);
    text-align: center;
    font-weight: 300;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    margin-top: 0.5rem;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
    animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Footer */
.footer {
    margin-top: 5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem 0;
}

.footer-tagline {
    margin: 0.75rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 300;
}

/* Animations pour interactions uniquement */

/* Accessibilité - Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .header {
        margin-bottom: 2rem;
    }
    
    .hero {
        margin-bottom: 3rem;
    }
    
    .countdown-section {
        margin-bottom: 3rem;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 1rem 0.75rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .countdown-item {
        min-width: 60px;
        padding: 0.75rem 0.5rem;
    }
    
    .countdown-value {
        font-size: 1.75rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
    }
}

/* Optimisations de performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mode sombre (déjà activé par défaut) */
@media (prefers-color-scheme: light) {
    /* Conserver le thème sombre même en mode clair pour l'effet visuel */
}

