/* ===== RESET DE BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ===== BANDEAU DU HAUT ===== */
.header {
    /* Positionnement : le header flotte PAR-DESSUS le contenu (effet transparent) */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;   /* logo à gauche, menu à droite */
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(255, 255, 255, 0.85);  /* blanc laiteux transparent */
    backdrop-filter: blur(4px);  /* léger flou derrière, effet moderne */
    z-index: 100;
}

.logo img {
    height: 50px;  /* ajustez selon votre logo */
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;  /* espace entre les liens du menu */
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #1a6fb5;  /* couleur au survol */
}

.nav a.actif {
    color: #1a6fb5;
    font-weight: 700;
}

/* ===== CONTENU ===== */
.contenu {
    /* On laisse de la place au header fixe qui flotte par-dessus */
    padding-top: 80px;
}

/* ===== Styles page accueil ====== */

.hero {
    /* Image de fond plein écran */
    position: relative;
    min-height: calc(100vh - 80px);
    background-image: url('images/header-pexels-christina-morillo-1181715-scaled.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
}

.citation {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.20);  /* voile noir semi-transparent */
    z-index: 1;
}

.hero h1,
.hero .citation,
.hero .bouton {
    position: relative;
    z-index: 2;  /* on remet le texte AU-DESSUS du voile */
}

.hero h1,
.hero .citation {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.bouton {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #1a6fb5;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.bouton:hover {
    background-color: #145a94;
}

/* Section générique sous le hero */
section {
    padding: 4rem 2rem;
}

/* Le conteneur interne limite et centre le texte */
.conteneur {
    max-width: 1000px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    color: #1a6fb5;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* Cartes de services */
.cartes {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.carte {
    flex: 1 1 280px;
    max-width: 380px;
    text-align: center;
}

.carte img {
    width: 100%;
    height: 220px;
    object-fit: cover;   /* recadre proprement sans déformer */
    border-radius: 8px;
}

.carte h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

/* CTA final */
.cta {
    text-align: center;
    background-color: #f4f6f8;
}

/* ===== Styles bloc haut pages présentation, cabinet, contact ===== */

.sans-padding {
    padding-top: 0;
}

.bandeau-intro {
    background-color: #203a4e;
    color: #fff;
    text-align: center;
    padding: 100px 2rem 3rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%);
    display: flex;
    align-items: center;          /* centre verticalement le contenu */
    min-height: 35vh;             /* hauteur du bandeau, à ajuster */
}

.bandeau-intro h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.bandeau-intro .sous-titre {
    font-size: 1.2rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Styles bloc milieu 1 page présentation ===== */

.bloc-blanc {
    background-color: #fff;
    color: #42a1d7;
    padding: 5rem 2rem;
}

.deux-colonnes {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.bloc-image,
.bloc-texte {
    flex: 1;
    min-width: 0;
}

.bloc-image img {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Le centrage vertical est déjà géré par align-items:center dans .deux-colonnes */

.bloc-texte h2 {
    font-size: 2.2rem;
    font-weight: 400;
    color: #42a1d7;
    margin-bottom: 1.5rem;
}

.bloc-texte p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.bloc-texte p:last-child {
    margin-bottom: 0;
}

/* ===== Styles bloc du milieu 2 page présentation ===== */

.bloc-bleu {
    background-color: #203a4e;
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
    clip-path: polygon(0 10%, 100% 0%, 100% 100%, 0 90%);
}

.bloc-bleu h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.bloc-bleu p {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

.bloc-bleu p:last-child {
    margin-bottom: 0;
}

/* ===== Styles bloc du bas page présentation ===== */

.valeurs .bloc-texte h2 {
    color: #42a1d7;
}

.valeurs .bloc-texte p {
    text-align: center;
    color: #42a1d7;
    max-width: 420px;
    margin: 0 auto 1rem;
}

/* ===== Styles blocs page cabinet ===== */

/* Titre de cabinet, centré au-dessus des colonnes */
.titre-cabinet {
    text-align: center;
    color: #42a1d7;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* Adresse du cabinet, centré au-dessus des colonnes */

.adresse-cabinet {
    text-align: center;
    color: #42a1d7;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* Liste des horaires */
.dispo {
    text-align: center;
    max-width: 420px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

/* Style bouton lien Doctolib cabinet */
.bloc-texte .bouton {
    display: block;
    width: fit-content;
    margin: 1.5rem auto 2rem;   /* 2rem en bas = l'espace avec la carte */
}

/* Widget Google Maps responsive */
.carte-maps iframe {
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: 8px;
    display: block;
}

/* Texte modalités centré sous les colonnes */
.modalites {
    max-width: 760px;
    margin: 3rem auto 0;
    text-align: center;
    line-height: 1.8;
}

/* ===== Style blocs page contact ===== */

.contact-centre {
    text-align: center;
    max-width: 640px;
    padding: 4rem 2rem;
}

.contact-centre h2 {
    color: #203a4e;
    margin-bottom: 1.5rem;
}

.contact-centre .note {
    font-style: italic;
    color: #777;
    margin-bottom: 2rem;
}

.contact-centre .bouton {
    display: inline-block;
    margin-bottom: 3rem;
}

.contact-centre .alternative {
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-centre .alternative a {
    color: #1a6fb5;
    font-weight: 700;
    text-decoration: none;
}

.contact-centre .alternative a:hover {
    text-decoration: underline;
}

.contact-centre .alternative + .alternative {
    margin-top: 1.5rem;
}

/* ===== BANDEAU DU BAS ===== */
.footer {
    background-color: #272727;
    color: #fff;
    padding: 2.5rem 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-label {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Colonnes cabinets côte à côte --- */
.footer-addresses {
    display: flex;
    flex-direction: column;
}

.footer-cabinets {
    display: flex;
    gap: 2.5rem;
}

.footer-cabinet {
    /* plus besoin de margin-bottom, c'est le gap qui gère */
}

/* --- Logos --- */
.footer-logo img {
    height: 90px;
    width: auto;
}

.footer-graphiste img {
    height: 40px;
    width: auto;
}

.footer a {
    color: white;
    text-decoration: none;
}

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



/* ===== ADAPTATION MOBILE (IMPORTANT) ===== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }
    .footer-cabinets {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contenu {
        padding-top: 120px;  /* on laisse plus de place au header qui est plus haut */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .deux-colonnes {
        flex-direction: column;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}
