/* Déclaration de la police Bootzy TM */
@font-face {
    font-family: 'Bootzy TM';
    src: url('fonts/BootzyTM.ttf') format('truetype'),
         url('src/fonts/BootzyTM.otf') format('opentype'),
         url('src/fonts/BootzyTM.ttf') format('truetype'),
         url('src/fonts/BootzyTM.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Variables Mode Clair (Rose) */
:root {
    --bg-color: #ffffff;
    --text-primary: #222222;
    --text-title: #1a1a1a;
    --text-secondary: #555555;
    --accent-color: #ff8fab;
    --nav-link-color: #2b2b2b;
    --dropdown-bg: #ffffff;
    --dropdown-border: rgba(0, 0, 0, 0.08);
    --gutter-mobile: max(20px, env(safe-area-inset-left));
    --gutter-mobile-right: max(20px, env(safe-area-inset-right));
    
    /* Formulaire */
    --input-bg: #ffffff;
    --input-border: #e8e8e8;
    --input-focus-border: #ff8fab;
    --input-text: #222222;
    --input-placeholder: #a0a0a0;
    --card-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
    --card-focus-shadow: 0 10px 26px rgba(255, 143, 171, 0.2);
    
    /* Bouton */
    --btn-bg: #ff8fab;
    --btn-hover-bg: #ff7597;
    --btn-text: #ffffff;
    --btn-shadow: rgba(255, 143, 171, 0.3);
    --btn-shadow-hover: rgba(255, 143, 171, 0.45);
}

/* Variables Mode Sombre (Jaune) */
body.dark-mode {
    --bg-color: #121214;
    --text-primary: #f0f0f0;
    --text-title: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #fdd38b;
    --nav-link-color: #e0e0e0;
    --dropdown-bg: #1b1b1f;
    --dropdown-border: rgba(255, 255, 255, 0.1);
    
    /* Formulaire */
    --input-bg: #1a1a1e;
    --input-border: #2a2a30;
    --input-focus-border: #fdd38b;
    --input-text: #f0f0f0;
    --input-placeholder: #666666;
    --card-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    --card-focus-shadow: 0 10px 26px rgba(253, 211, 139, 0.15);
    
    /* Bouton */
    --btn-bg: #fdd38b;
    --btn-hover-bg: #fcc263;
    --btn-text: #121214;
    --btn-shadow: rgba(253, 211, 139, 0.2);
    --btn-shadow-hover: rgba(253, 211, 139, 0.35);
}

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

html, body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    overflow-x: clip;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- TÉLÉPHONE SUSPENDU À GAUCHE (CLIQUABLE) --- */
.phone-hanging-container {
    position: absolute;
    top: 0;
    left: 12%;
    z-index: 50;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.phone-hanging-container:hover {
    transform: translateY(4px);
}

.phone-hanging-img {
    height: 60vh;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Navbar (Bureau) */
.navbar {
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
}

/* Icône Maison */
.home-icon {
    position: absolute;
    left: 50px;
    width: 28px;
    height: 28px;
    color: var(--nav-link-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 102;
    transition: transform 0.2s ease, color 0.3s ease;
}

.home-icon:hover {
    transform: scale(1.15);
    color: var(--accent-color);
}

.home-icon svg {
    width: 100%;
    height: 100%;
}

/* Bouton burger caché sur bureau */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nav-link-color);
    padding: 6px;
    z-index: 102;
}

.nav-panel {
    display: contents;
}

/* Liens de Navigation */
.nav-links {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    font-family: 'Figtree', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-link-color);
    transition: opacity 0.2s, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active-link {
    opacity: 0.6;
}

.nav-links span {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Contrôles à droite */
.nav-controls {
    position: absolute;
    right: 50px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    font-size: 0.95rem;
    color: var(--nav-link-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-option {
    opacity: 0.4;
    font-weight: 700;
}

.lang-option.active {
    opacity: 1;
    color: var(--accent-color);
}

.lang-divider {
    opacity: 0.3;
}

.theme-icon {
    font-size: 1.3rem;
    color: var(--accent-color);
}

/* Contenu Page Contact */
.contact-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px 25px 20px;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
    z-index: 20;
}

/* Titre principal centré en Bootzy TM */
.page-title {
    font-family: 'Bootzy TM', 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: normal;
    color: var(--accent-color);
    margin-bottom: 16px;
    text-align: center;
    text-transform: lowercase;
    transition: color 0.4s ease;
    line-height: 1;
}

/* Bloc Texte de présentation */
.contact-text {
    font-family: 'Montserrat', sans-serif;
    max-width: 580px;
    text-align: center;
    margin-bottom: 24px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 6px;
    line-height: 1.3;
}

.description {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Formulaire aéré */
.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Disposition en ligne pour Prénom / Nom */
.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.form-group label {
    font-family: 'Figtree', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-title);
    text-transform: lowercase;
    padding-left: 4px;
}

/* Encarts de saisie arrondis avec ombre douce */
.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 14px;
    padding: 10px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: var(--input-text);
    box-shadow: var(--card-shadow);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--input-placeholder);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--input-focus-border);
    box-shadow: var(--card-focus-shadow);
}

.form-group textarea {
    resize: none;
    height: 85px;
}

/* Bouton Envoyer */
.btn-submit {
    align-self: center;
    margin-top: 4px;
    padding: 10px 38px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 50px;
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: lowercase;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.3s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 12px var(--btn-shadow);
}

.btn-submit:hover {
    transform: scale(1.05);
    background-color: var(--btn-hover-bg);
    box-shadow: 0 6px 16px var(--btn-shadow-hover);
}

/* Adaptabilité Écran Moyen */
@media (max-width: 1100px) {
    .phone-hanging-container {
        left: 3%;
    }
    .phone-hanging-img {
        height: 48vh;
    }
}

/* =========================================
   ADAPTABILITÉ MOBILE, MENU DÉROULANT & POLICE
   ========================================= */
@media (max-width: 900px) {
    html, body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Tout ce qui était en police Bootzy TM passe en Montserrat Black sur téléphone */
    .page-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 900;
        letter-spacing: 0.01em;
        font-size: 2.75rem;
        margin-bottom: 14px;
    }

    .phone-hanging-container {
        display: none;
    }

    /* Navbar identique à l'accueil */
    .navbar {
        padding: max(18px, env(safe-area-inset-top)) var(--gutter-mobile-right) 18px var(--gutter-mobile);
        justify-content: space-between;
    }

    .home-icon {
        position: static;
        width: 26px;
        height: 26px;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .mobile-menu-btn:hover {
        color: var(--accent-color);
    }

    .burger-lines,
    .burger-lines::before,
    .burger-lines::after {
        display: block;
        width: 22px;
        height: 2.5px;
        background-color: currentColor;
        border-radius: 2px;
        position: relative;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .burger-lines::before,
    .burger-lines::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .burger-lines::before { top: -7px; }
    .burger-lines::after { top: 7px; }

    .mobile-menu-btn[aria-expanded="true"] .burger-lines {
        background-color: transparent;
    }
    .mobile-menu-btn[aria-expanded="true"] .burger-lines::before {
        top: 0;
        transform: rotate(45deg);
    }
    .mobile-menu-btn[aria-expanded="true"] .burger-lines::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Menu déroulant sous le header */
    .nav-panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        position: absolute;
        top: 100%;
        left: var(--gutter-mobile);
        right: var(--gutter-mobile-right);
        background-color: var(--dropdown-bg);
        border: 1px solid var(--dropdown-border);
        border-radius: 18px;
        padding: 18px 20px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        z-index: 99;
    }

    .nav-panel.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        font-size: 1.05rem;
    }

    .nav-dot {
        display: none;
    }

    .nav-controls {
        position: static;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid var(--dropdown-border);
        gap: 12px;
    }

    .contact-container {
        padding: 16px var(--gutter-mobile-right) max(42px, calc(24px + env(safe-area-inset-bottom))) var(--gutter-mobile);
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 2.3rem;
    }

    .subtitle {
        font-size: 1.08rem;
    }

    .description {
        font-size: 0.88rem;
    }

    .form-row {
        flex-direction: column;
        gap: 14px;
    }
}