:root {
    --font-title: 'Google Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    --font-body: 'Google Sans Text', -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Empêche le zoom automatique sur iOS lors de la rotation */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: #FFFFFF;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Vidéo de fond */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

.coming-soon-container {
    position: relative;
    z-index: 3;
    padding: 20px;
    width: 100%;
    max-width: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Utilise dvh pour un centrage parfait sur mobile */
    min-height: 100dvh;
    padding-bottom: 120px; /* Espace pour la nav en bas */
    padding-top: 40px;
}

/* ==========================================================================
   VERSION 5 : EFFET DE DISTORSION LIQUIDE (SVG REFRACTION & GLASS BISO)
   ========================================================================== */

.v5 .card {
    position: relative;
    width: 100%;
    border-radius: 32px;
    padding: 48px 38px;
    text-align: center;
    background: rgba(255, 255, 255, 0.60);

    backdrop-filter: brightness(1.15) saturate(190%) blur(24px) url(#displacementFilter);
    -webkit-backdrop-filter: brightness(1.15) saturate(190%) blur(24px);

    border: none;
    filter: drop-shadow(-10px 16px 36px rgba(0, 0, 0, 0.25));
}

.v5 .card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 8px 8px 0px -4px rgba(255, 255, 255, 0.95),
        inset -4px -4px 12px 0px rgba(255, 255, 255, 0.7),
        inset 0 0 16px 3px rgba(255, 255, 255, 0.8);
}

.v5 .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #032D1E;
    padding: 6px 18px;
    border-radius: 100px;
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
    border: 1px solid rgba(3, 45, 30, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.logo-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.v5 .gemini-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #032D1E 0%, #20B486 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Évite les débordements de texte */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.v5 .baseline {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #335944;
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.v5 .description {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
    color: #335944;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ==========================================================================
   NAVIGATION & BOUTONS
   ========================================================================== */

.v5 .bottom-nav,
.bottom-nav {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: auto;
    max-width: calc(100% - 32px);
    /* Safe area pour les iPhones avec encoche */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.v5 .action-btn,
.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #032D1E;
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: brightness(1.15) saturate(190%) blur(16px);
    -webkit-backdrop-filter: brightness(1.15) saturate(190%) blur(16px);
    border: none;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.15));
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    /* Améliore le tap sur mobile */
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    /* Taille minimum tactile recommandée (44px) */
    min-height: 44px;
}

.v5 .action-btn::before,
.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 4px 4px 0px -2px rgba(255, 255, 255, 0.95),
        inset -2px -2px 8px 0px rgba(255, 255, 255, 0.7),
        inset 0 0 10px 1px rgba(255, 255, 255, 0.8);
}

.v5 .action-btn:hover,
.action-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 14px 28px rgba(3, 45, 30, 0.22));
    color: #032D1E;
}

.v5 .action-btn:active,
.action-btn:active {
    transform: translateY(-1px) scale(0.99);
}

.v5 .btn-icon,
.btn-icon {
    width: 18px;
    height: 18px;
    fill: #032D1E;
    transition: fill 0.3s ease;
    flex-shrink: 0;
}

/* ==========================================================================
   ADAPTATION RESPONSIVE COMPLÈTE
   ========================================================================== */

/* Écrans larges (desktop) */
@media (min-width: 1024px) {
    .coming-soon-container {
        max-width: 600px;
        padding-bottom: 140px;
    }

    .v5 .card {
        padding: 56px 44px;
    }

    .v5 .gemini-title {
        font-size: 2.4rem;
    }
}

/* Écrans de taille moyenne et tablettes */
@media (max-width: 768px) {
    .coming-soon-container {
        padding: 16px;
        padding-bottom: 140px;
        padding-top: 32px;
    }

    .v5 .card {
        padding: 40px 28px;
        border-radius: 28px;
    }

    .v5 .gemini-title {
        font-size: 1.9rem;
    }

    .v5 .description {
        font-size: 0.95rem;
    }
}

/* Smartphones et petits écrans */
@media (max-width: 480px) {
    body {
        align-items: flex-start;
    }

    .coming-soon-container {
        padding: 12px;
        padding-top: 24px;
        padding-bottom: 160px;
        min-height: auto;
    }

    .v5 .card {
        padding: 32px 20px;
        border-radius: 24px;
    }

    .v5 .badge {
        padding: 5px 14px;
        font-size: 0.78rem;
        margin-bottom: 18px;
        gap: 6px;
    }

    .logo-img {
        width: 16px;
        height: 16px;
    }

    .v5 .gemini-title {
        font-size: 1.55rem;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .v5 .baseline {
        font-size: 0.85rem;
        margin-bottom: 14px;
        line-height: 1.4;
    }

    .v5 .description {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    /* Navigation mobile en colonne */
    .v5 .bottom-nav,
    .bottom-nav {
        bottom: 16px;
        flex-direction: column;
        width: calc(100% - 32px);
        gap: 10px;
        max-width: 400px;
    }

    .v5 .action-btn,
    .action-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.88rem;
    }
}

/* Très petits écrans (iPhone SE, etc.) */
@media (max-width: 360px) {
    .coming-soon-container {
        padding: 8px;
        padding-top: 20px;
        padding-bottom: 170px;
    }

    .v5 .card {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .v5 .badge {
        font-size: 0.72rem;
        padding: 4px 12px;
        margin-bottom: 16px;
    }

    .logo-img {
        width: 14px;
        height: 14px;
    }

    .v5 .gemini-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .v5 .baseline {
        font-size: 0.78rem;
        margin-bottom: 12px;
    }

    .v5 .description {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .v5 .action-btn,
    .action-btn {
        padding: 12px 16px;
        font-size: 0.82rem;
        gap: 8px;
    }

    .v5 .btn-icon,
    .btn-icon {
        width: 16px;
        height: 16px;
    }
}

/* Écrans en mode paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .coming-soon-container {
        align-items: flex-start;
        min-height: auto;
        padding-top: 16px;
        padding-bottom: 100px;
    }

    .v5 .card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .v5 .gemini-title {
        font-size: 1.4rem;
    }

    .v5 .badge {
        margin-bottom: 12px;
    }

    .v5 .baseline {
        margin-bottom: 10px;
    }

    /* Nav en ligne en paysage */
    .v5 .bottom-nav,
    .bottom-nav {
        flex-direction: row;
        bottom: 12px;
        width: auto;
        gap: 10px;
    }

    .v5 .action-btn,
    .action-btn {
        width: auto;
        padding: 10px 20px;
        font-size: 0.82rem;
    }
}

/* Support des préférences de mouvement réduit (accessibilité) */
@media (prefers-reduced-motion: reduce) {
    .v5 .action-btn,
    .action-btn {
        transition: none;
    }

    .v5 .action-btn:hover,
    .action-btn:hover {
        transform: none;
    }
}

/* Support du mode sombre (optionnel, préserve la lisibilité) */
@media (prefers-color-scheme: dark) {
    /* Vous pouvez ajouter des ajustements ici si nécessaire */
}

/* ==========================================================================
   SÉLECTEUR DE LANGUE (FR · EN)
   ========================================================================== */

.lang-switcher {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: brightness(1.15) saturate(190%) blur(16px);
    -webkit-backdrop-filter: brightness(1.15) saturate(190%) blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        inset 2px 2px 0px -1px rgba(255, 255, 255, 0.9),
        0 6px 16px rgba(0, 0, 0, 0.08);
    font-family: var(--font-title);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lang-btn {
    background: none;
    border: none;
    color: #335944;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 100px;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
    opacity: 0.65;
    min-width: 32px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(32, 180, 134, 0.1);
}

.lang-btn.is-active {
    color: #032D1E;
    opacity: 1;
    font-weight: 600;
    background: rgba(32, 180, 134, 0.16);
}

.lang-btn:focus-visible {
    outline: 2px solid #20B486;
    outline-offset: 2px;
}

.lang-sep {
    color: #335944;
    opacity: 0.35;
    font-size: 0.8rem;
    line-height: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .lang-switcher {
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
        padding: 5px 10px;
    }

    .lang-btn {
        font-size: 0.75rem;
        padding: 3px 6px;
        min-width: 28px;
        min-height: 26px;
    }
}

@media (max-width: 360px) {
    .lang-switcher {
        padding: 4px 8px;
    }

    .lang-btn {
        font-size: 0.7rem;
        padding: 2px 5px;
        min-width: 26px;
    }
}