/* GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Fix iOS Safari line at top */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overscroll-behavior-y: none; /* supprime le rebond sur mobile */
}


body {
    display: flex;
    flex-direction: column;
    color: #333;
    min-height: 100svh;
    line-height: 1.8; /* lignes plus espacées */
    background-color: #E6F0FA;
    margin: 0;
    flex: 1 0 auto;
}

/* NAVIGATION */
.navbar {
    display: flex;
    justify-content: center; /* centre tous les onglets horizontalement */
    align-items: center;
    padding: 20px 5%; /* réduit les marges pour gagner de la place */
    background: white;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    z-index: 1000;
    margin: 0; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px; /* espace entre les onglets */
    flex-wrap: nowrap; /* empêche le retour à la ligne */
    font-size: 0.90rem; /* légèrement plus petit pour que ça tienne */
}

.nav-links a {
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #4da6ff;
}

.btn-nav {
    background: #4da6ff;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-nav:hover {
    background: #1f7dd9;
}

/* HERO */
.hero {
    padding-top: 120px;
    padding: 0; 
    height: auto;
    min-height: 80vh;      /* force à remplir l’écran sans créer de décalage */
    background: url("https://images.pexels.com/photos/6627527/pexels-photo-6627527.jpeg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.overlay {
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 2.8rem;
}

.hero p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* BOUTON PAGE D'ACCUEIL */
.btn-home {
    background: #4da6ff;
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
    margin-top: 20px;
}

.btn-home:hover {
    background: #1f7dd9;
}

/* SECTIONS */
.section {
    padding: 120px 12%; /* spacing global max */
}

.cabinet-intro {
    text-align: center;
    padding: 80px 12%;
}

.cabinet-intro p {
    max-width: 800px;
    margin: 30px auto 0 auto;
    line-height: 1.8;
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cabinet-intro p:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.why-choose {
    margin-top: -150px; /* réduit l’espace avec la section précédente */
    padding-bottom: 80px;
    text-align: center;
    position: relative;
}

/* Bandeau graphique derrière le paragraphe */
.why-choose::before {
    content: "";
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 67%;
    background: linear-gradient(135deg, #e0f0ff, #ffffff);
    border-radius: 25px;
    z-index: -1;
}

/* Texte du paragraphe */
.why-choose p {
    max-width: 1300px;
    margin: 30px auto 0 auto;
    line-height: 1.8;
    font-size: 0.90rem;
    background: rgba(255, 255, 255, 0.95); /* léger fond translucide */
    padding: 30px 35px;
    border-radius: 16px;
    box-shadow: 0 40px 70px rgba(0,0,0,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-choose p:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* Espace après le <br> */
.why-choose p br {
    content: "";
    display: block;
    margin-bottom: 15px;
}

.text-center {
    max-width: 700px;
    margin: auto;
    text-align: center;
}

h1, h2, h3 {
    margin-bottom: 25px;
    line-height: 1.4;
}

p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.card, .service-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s; /* micro-animation */
}

.card img, .service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.card:hover, .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.15);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* VIDEOS DANS LES CARDS */
.card .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* format 16:9 */
    height: 0;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.card .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card img,
.card iframe {
    border-radius: 12px;
}

/* BOUTONS */
.section .btn,
.contact-card .btn,
.btn {
    margin-top: 30px;
    display: inline-block;
    background: linear-gradient(135deg, #4da6ff, #1f7dd9);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.section .btn:hover,
.contact-card .btn:hover,
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* CONTACT */
.contact-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.map-container {
    margin-top: 50px;
    margin-bottom: 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* FOOTER */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

/* LISTES DE SERVICES */
.services {
    list-style: none;
    display: grid;
    gap: 20px;
    max-width: 700px;
    margin: auto;
}

.services li {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.services li:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* ICONES (font-awesome ou unicode) */
.icon {
    margin-right: 10px;
    color: #4da6ff;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .section {
        padding: 100px 10%;
    }
}

@media (max-width: 767px) {
    .section, .page-hero {
        padding: 80px 8%;
    }

    h1, h2, h3 {
        margin-bottom: 18px;
    }

    p {
        margin-bottom: 18px;
        line-height: 1.9;
    }

    .cards {
        gap: 30px;
    }

    .nav-links {
        gap: 12px; /* réduit légèrement l’écart pour mobile */
        font-size: 0.9rem;
    }

    .text-block .highlight {
    background: #f0f8ff; /* léger fond bleu clair */
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
}

}

/* AJUSTEMENT VIDEO PROTHESE COMPLETE */
.video-offset {
    margin-top: 300px; /* ajuste ici si besoin */
}

/* FOOTER LINKS EN BLANC */
footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* BANNIÈRE COOKIES */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-size: 14px;
}

.cookie-banner button {
    background: #ffffff;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-banner button:hover {
    opacity: 0.85;
}

/* BANNIÈRE COOKIES POP-UP ELEGANTE */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.95);
    color: #fff;
    padding: 20px 25px;
    max-width: 800px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 14px;
    z-index: 10000;
    animation: slideUp 0.5s ease-out;
}

.cookie-popup p {
    margin: 0;
    line-height: 1.5;
}

.cookie-popup .buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-popup button {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.cookie-popup button.accept {
    background: #ffffff;
    color: #000;
}

.cookie-popup button.refuse {
    background: #ff4c4c;
    color: #fff;
}

.cookie-popup button:hover {
    opacity: 0.85;
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 767px) {

    /* Grids → une seule colonne */
    .section div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Images toujours visibles */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Cards pleine largeur */
    .card {
        max-width: 100% !important;
        padding: 20px !important;
    }

    /* Contact page */
    .contact-section {
        flex-direction: column !important;
    }

    /* Carte + map */
    .map-container iframe {
        height: 250px;
    }

    /* Prothèses implant */
    .card[style*="min-height"] {
        min-height: auto !important;
    }

    /* Espacements confort mobile */
    p {
        line-height: 1.6;
    }
}

/* ===== FIX NAVBAR iPAD UNIQUEMENT ===== */
@media (min-width: 768px) and (max-width: 1024px) {

    nav ul {
    display: flex;
    flex-wrap: nowrap; /* clé du problème */
    white-space: nowrap;
}

    nav ul li {
        flex-shrink: 0;
}

    .nav-links {
        gap: 15px;          /* réduit l’espace entre onglets */
        font-size: 0.55rem; /* texte un peu plus petit */
        flex-wrap: nowrap;  /* force une seule ligne */
    }

    .btn-nav {
        padding: 6px 14px;  /* bouton réservation plus compact */
        font-size: 0.55rem;;
    }
}


/* ===== NAVBAR RESPONSIVE ===== */

/* ===== BURGER MENU ===== */

.burger {
    display: none; /* caché sur desktop */
    background: none;
    border: none;
    font-size: 30px;
    color: rgb(34, 214, 34);
    cursor: pointer;

}

/* ===== MOBILE ===== */
@media (max-width: 767px) {

    .burger {
        display: block; /* visible uniquement mobile */
        position: absolute;
        right: 28.5px;
        top: 33px;
        z-index: 1001;
    }

    .nav-links a {
        color: #111;
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0px 0%;
        top: 0;
        margin: 0;
        position: relative;
        padding-top: 0%;
    }

   .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 35px;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: #E6F0FA;
    padding: 10px 0;
    overflow-y: auto;
    z-index: 1000;
}

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1px 0;
        text-align: center;
    }

}

section:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}




