/* =======================
   Police & Reset
======================= */
@font-face {
    font-family: "Nunito";
    src: url('../fonts/Nunito-VariableFont_wght.ttf');
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

/* anti-flash horizontal */

/* Échelle typographique mobile-first */
html {
    font-size: 1.2rem;
}

/* ~16px */
@media (min-width: 1024px) {
    html {
        font-size: 1.4rem;
    }
}

/* ~18px */
@media (min-width: 1280px) {
    html {
        font-size: 1.4rem;
    }
}

/* ~19px */

body {
    font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #502119;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.noscroll {
    overflow: hidden;
}

/* bloque le scroll quand menu ouvert */

/* =======================
   Header
======================= */
header {
    padding: 20px;
    background-color: #f5f5f5;
    color: #502119;
    border-bottom: 2px solid #ddd;
    text-align: center;
    position: relative;
}

/* Logo + Tagline */
.logo-tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 120px;
    height: auto;
    display: block;
}

.tagline {
    margin-top: 5px;
    color: #502119;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

/* =======================
   Nav (liens communs)
======================= */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    /* desktop par défaut */
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #502119;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
    color: #936071;
}

/* =======================
   Bouton Hamburger
======================= */
.burger {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 200;
    width: 35px;
    height: 28px;
    display: none;
    /* visible en mobile */
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger .bar1,
.burger .bar2,
.burger .bar3 {
    height: 4px;
    width: 100%;
    background-color: #02024c;
    border-radius: 5px;
    transition: transform .25s ease, opacity .25s ease, background-color .25s ease;
}

.burger.open .bar1 {
    transform: translateY(10px) rotate(45deg);
}

.burger.open .bar2 {
    opacity: 0;
}

.burger.open .bar3 {
    transform: translateY(-10px) rotate(-45deg);
}

/* =======================
   OVERLAY — état par défaut (mobile-first)
   -> CACHÉ sans transition (anti-flash)
======================= */
#nav_overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(245, 245, 245, 0.98);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);

    transform: translate3d(-100%, 0, 0);
    /* hors-canvas à gauche (GPU) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
    /* clé anti-flash */
    z-index: 150;
}

/* État OUVERT (animé uniquement sur .slide) */
#nav_overlay.slide {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .28s ease, opacity .20s ease;
    will-change: transform, opacity;
}

/* Liens dans l’overlay (vertical en mobile) */
#nav_links {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 0 2rem;
    text-align: center;
}

#nav_links a {
    font-size: 1.6rem;
}

/* =======================
   Main
======================= */
main {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    font-size: 1.3rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 1.6rem;
    margin: 10px 0;
    color: #333;
    scroll-margin-top: 80px;
}

.card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    padding: 5px;
}

/* Séparateur image (export unique 1040px) */
.separator {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* =======================
   Footer
======================= */
.footer {
    background-color: #7dbbff;
    text-align: center;
    padding: 2rem 1rem;
    margin: 0;
}

.footer .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer .links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer .links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* =======================
   Section Contact
======================= */
.contact {
    margin-top: 10px;
    color: #333;
}

.contact__grid {
    display: grid;
    gap: 16px;
}

/* Liste infos */
.contact__list {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0 0 8px 0;
}

.contact__link {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
}

.contact__link:hover {
    text-decoration: underline;
}

/* Bouton générique */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 8px;
    /* pas en “pilule” */
    font-weight: 700;
    text-decoration: none;
}

.btn--primary {
    background: #107aca;
    color: #fff;
}

.btn--primary:hover {
    filter: brightness(1.08);
}

/* Note tarif / accès */
.contact__note {
    margin-top: 6px;
    color: #555;
    line-height: 1.6;
}

/* Carte */
.contact__map iframe {
    width: 100%;
    height: 300px;
    /* mobile */
    border: 0;
    border-radius: 8px;
}

/* ===== CTA Doctolib : bouton AU-DESSUS, icône EN DESSOUS (partout) ===== */
:root {
    --cta-btn-min-h: 44px;
    /* hauteur mini du bouton */
    --cta-icon: 40px;
    /* taille de l’icône sous le bouton (mobile) */
}

@media (min-width: 768px) {
    :root {
        --cta-btn-min-h: 48px;
        --cta-icon: 44px;
    }

    /* un peu plus grand en desktop */
}

.contact__cta {
    display: flex;
    flex-direction: column;
    /* empile bouton puis icône */
    align-items: flex-start;
    /* aligne à gauche (ou center si tu préfères) */
    gap: 8px;
    margin-top: 6px;
}

/* Bouton : largeur adaptable ; plein largeur sur mobile, contenu sur desktop */
.contact__cta .btn {
    min-height: var(--cta-btn-min-h);
    padding: 12px 16px;
    line-height: 1.2;
    border-radius: 8px;
    width: 100%;
    /* mobile: plein largeur */
}

@media (min-width: 768px) {
    .contact__cta .btn {
        width: max-content;
    }

    /* desktop: s’adapte au texte */
}

/* Icône centrée sous le bouton */
.contact__brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--cta-icon);
    height: var(--cta-icon);
    border-radius: 50%;
    align-self: center;
    /* centrée sous le bouton */
}

.contact__brand-icon img {
    max-width: 70%;
    max-height: 70%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.contact__brand-icon:hover {
    filter: brightness(1.1);
}

/* =======================
   Responsive
======================= */
/* Mobile (<=767px) : on affiche le burger, nav overlay */
@media (max-width: 767px) {
    .burger {
        display: flex;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .footer .links {
        flex-direction: column;
    }
}

/* Tablette & + (>=768px) : nav horizontale classique, sans transition */
@media (min-width: 768px) {
    .burger {
        display: none;
    }

    #nav_overlay {
        position: static;
        inset: auto;
        background: transparent;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transition: none !important;
        /* empêche toute anim au breakpoint */
    }

    #nav_links {
        display: flex;
        flex-direction: row;
        gap: 20px;
        padding: 0;
        text-align: left;
    }

    #nav_links a {
        font-size: 1rem;
    }

    .contact__grid {
        grid-template-columns: 1.1fr 1fr;
        /* infos un peu plus larges que la carte */
        gap: 20px;
    }

    .contact__map iframe {
        height: 360px;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    main {
        max-width: 900px;
    }

    .contact__grid {
        gap: 24px;
    }

    .contact__map iframe {
        height: 380px;
    }
}

@media (min-width: 1280px) {
    main {
        max-width: 1040px;
    }
}

/* Bloc infos pratiques simplifié */
.contact__meta {
    margin-top: 20px;
    padding: 12px;
    border: 1px solid #e6eef5;
    background: #f7f9fb;
    border-radius: 10px;
    font-size: 0.95rem;
    /* plus petit que le reste du texte */
    color: #444;
    line-height: 1.5;
}

.meta-list {
    list-style: disc inside;
    /* puces rondes simples */
    padding: 0;
    margin: 0 0 10px 0;
    display: grid;
    gap: 4px;
}