/* ===== BASE ===== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background-color: #393536;
}

h1, h2 {
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
}

a {
    color: #222;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== HEADER ===== */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;

    background: #393536;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
}

.header-inner {
    height: 100%;
    max-width: 1100px ;
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.header-logo {
    max-height: 70px ;
    width: auto;
}

.logo-text {
    font-weight: bold;
}

.nav {
    justify-self: center;
}

.nav a {
    margin-left: 30px;
    color: #ffffff;
}

.nav a:hover {
    color: #d0ccb9;
}

/* ===== HERO ===== */

.hero {
    min-height: 100vh; /* hauteur écran moins header */
    background-color: #393536;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    text-align: center;
    position: relative;
    padding: 0px 20px;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-inner h1 {
    font-size: 5em;
    margin-bottom: 20px;
}

.hero h2 {
    font-weight: normal;
    font-size: 3em;
    margin-bottom: 30px;
    line-height: 1.1;
    color: #d0ccb9;
}

.hero-inner h2 {
    font-weight: normal;
    font-size: 1.8em;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 30px;
    line-height: 1.1;
    color: #d0ccb9;
}

.hero-cta {
    position: absolute;
    bottom: 40px;
    margin-top: 20px;
}

.hero::before {
    content:"";
    position: absolute;
    inset: 0;

    background-image: url("images/logo-gg-blanc.png");
    background-repeat: no-repeat;
    background-position: center calc(50% + 40px);
    background-size: contain;

    opacity: 0.1; /* transparence élégante */
    pointer-events: none;
}

.seo-local {
    margin-top: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
    color:#ffffff;
}

/* ===== CTA ===== */

.cta {
    display: inline-block;
    background-color: #807a6f;
    color: #ffffff;
    padding: 15px 32px;
    border-radius: 6px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.cta i {
    margin-right: 8px;
    color: inherit;
}

.cta:hover {
    background-color: #d0ccb9;
    color: #393536;
    text-decoration: none;
}

/* ===== SECTIONS ===== */

.section {
    min-height: auto;          /* plus de 100vh forcé */
    padding: 120px 20px 80px;  /* garde l'air et compense le header */

    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* fin des décalages */
    scroll-margin-top: 80px;
}

.section-grey {
    background: #f0f0f0;
}

.section-grey,
.section-light {
    background: transparent;  /* désactiver temporairement les sections grey et light */
}

/* ==== SECTION KINESITHERAPEUTE ==== */

#kine {
    background-color: #393536;
    color: #d0ccb9;
    text-align: center;
}

#kine h2 {
    color: #ffffff;
    font-size: 3em;
    
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -20px;
    text-align: center;
    transform: translate(240px)
}

#kine .presentation p {
    max-width: 1000px;
    text-align: justify;
}

#kine .presentation {
    max-width: 1000px;
    margin: 0 auto;
}

#kine p {
    color: #ffffff;
    line-height: 1.7;
    font-size: 1.1em;
}

/* ===== PRÉSENTATION ===== */

.presentation {
    display: flex;
    gap: 60px;
    align-items: center;
}

.presentation p {
    margin: 0;
    max-width: 600px;
    text-align: justify;
    transform: translateY(-20px);
}

.photo-placeholder {
    width: 400px;               /* la taille désirée */
    height: 400px;
    border-radius: 50%;
    overflow: hidden;           /* très important */

    background: #807a6f;      /* couleur de secours */

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    transform: translateY(-40px);
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* remplit le cercle */
    object-position: center;     /* centrer la photo */
}

/* ==== PRISES EN CHARGE ==== */

#prises-en-charge {
    color: #ffffff;
    padding-top: 20px;
    padding-bottom: 60px;

    max-width: 1000px;
    margin: 0 auto;
}

#prises-en-charge > h2 {
    font-size: 3.2em;
    margin-bottom: 20px;
    text-align: center;
    transform: translateY(-20px);
}

#prises-en-charge p {
    text-align: left;
    margin-bottom: 40px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.card {
    background: #807a6f;
    padding: 25px;
    text-align: center;
    border: 1px solid #0a0a0a;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;

    border-radius: 16px;
}

.card p {
    text-align: center;
}

/* ==== CABINET ==== */

#cabinet {
    padding-top: 120px;          /* base saine comme les autres sections */
    padding-bottom: 120px;
    justify-content: flex-start;

    max-width: 1000px;
    margin: 0 auto;
}

/* ===== LAYOUT ===== */

.cabinet-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

/* ===== TITRE ===== */

#cabinet h2 {
    font-size: 3.2em;
    color: #ffffff;
    margin-top: 150px;
    margin-bottom: 0;
    align-self: flex-start;
}

/* ===== SLIDER ===== */

#cabinet .cabinet-slider {
    width: 100%;
    max-width: 950px;

    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    justify-self: end;
    margin-top: -30px;

    position: relative;
}

/* ===== SLIDES ===== */

#cabinet .cabinet-slides {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

#cabinet .cabinet-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 100%;
}

/* ===== BOUTONS ===== */

#cabinet .cabinet-prev,
#cabinet .cabinet-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(128, 122, 111, 0.85);
    color: #ffffff;

    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;

    font-size: 28px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease;
}

#cabinet .cabinet-prev {
    left: 20px;
}

#cabinet .cabinet-next {
    right: 20px;
}

#cabinet .cabinet-prev:hover,
#cabinet .cabinet-next:hover {
    background: #d0ccb9;
    color: #393536;
    transform: translateY(-50%) scale(1.05);
}

/* ==== ACCES ==== */

#acces {
    justify-content: flex-start;
    padding-top: 20px; /* espace naturel sous le header */
    overflow: visible;
}

/* ----- CONTENEUR INTERNE ----- */
#acces .acces-inner {
    max-width: 1000px;
    margin: 0 auto;
}

/* ----- TITRE ----- */
#acces h2 {
    font-size: 3.2em;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 40px;
    text-align: center;
}

/* ----- ADRESSE ----- */

#acces .adresse {
    font-size: 2.5em;
    color: #d0ccb9;
    margin-top: -30px;
    margin-bottom: 30px;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.2;
}

#acces .adresse i {
    color: #ffffff;
    margin-right: 14px;
    font-size: 0.9em;
    transition: transform 0.2s ease, color 0.2s ease;
}

#acces .adresse:hover i {
    transform: translateY(-2px);
    color: #d0ccb9;
}

#acces .adresse-ville {
    display: inline-block;
    margin-top: 8px;
    line-height: 1.2;
}

#acces .acces-layout {
    display: flex;
    justify-content: flex-start;
    gap: 60px;
    align-items: center;
}

#acces .acces-text {
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* INFOS A GAUCHE LAYOUT */

#acces .acces-infos {
    color: #ffffff;
    font-size: 1.2em;
    margin-right: 0;
    margin-top: 20px;
}

#acces .acces-infos p {
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#acces .acces-infos i {
    margin-right: 10px;
    color: #d0ccb9;
    width: 22px;
    text-align: flex-start;
    flex-shrink: 0;

    margin-right: 0;
    position: relative;
    top: 4px;

}

#acces .acces-subinfo {
    display: block;
    margin-left: 36px;
    margin-top: 4px;

    font-size: 1em;
    color: #d0ccb9;
    line-height: 1.4;
}

/* ==== MAP ==== */

#acces .map-container {
    height: 320px;
    width: 520px;

    border-radius: 16px;
    overflow: hidden;

    margin-right: -60px;
    margin-bottom: 0;
    flex-shrink: 0;
    transform: translateY(10px);
}

#acces .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==== CONTACT ==== */
#contact {
    min-height: 100vh;
    color: #ffffff;
    padding-top: 20px;
    padding-bottom: 60px;

    max-width: 1000px;
    margin: 0 auto;
}

#contact h2 {
    font-size: 3.2em;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

#contact a {
    color: #ffffff;
}

/* ==== CONTACT LAYOUT ==== */
#contact .contact-layout {
    display: flex;
    justify-content: center;
    gap: 120px;
    margin-top: 60px;
    margin-left: 40px;

    align-items: stretch;
}

/* COLONNES */
#contact .contact-left,
#contact .contact-right {
    width: 520px;
}

/* TITRES INTERNES */
#contact h3 {
    font-size: 1.6em;
    margin-bottom: 20px;
}

/* PARAGRAPHES */
#contact p {
    font-size: 1.2em;
    margin-bottom: 14px;
}

/* ICONES */
#contact i {
    margin-right: 10px;
}

/* TEXTE SOCIAL */
#contact .contact-social-text {
    margin-bottom: 30px;
    line-height: 1.3;
    color: #d0ccb9;
}

#contact .contact-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#contact .contact-right p {
    text-align: left;
    margin-bottom: 5px;
}
#contact .contact-right h3 {
    text-align: left;
}

#contact .contact-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-start;
    padding-left: 40px;
}

#contact .contact-left .cta {
    margin-top: 40px;
    align-self: flex-start;
}

#contact .contact-right a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#contact .contact-right a:hover {
    color: #d0ccb9;
    text-decoration: none;
}

/* ===== FOOTER ===== */
.footer {
    background-color: transparent;
    padding: 12px 0px;

    margin-top: 60px;
    border-top: 1px solid rgba(208,204,185,0.2);
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    margin: 6px 0;
    font-size: 0.9em;
    color: #d0ccb9;
}

.footer a {
    color: #d0ccb9;
}

.footer a:hover {
    text-decoration: underline;
}

.section-legal {
    padding: 40px 20px;
    background-color: transparent;
    color: #aaa;
    font-size: 0.8rem;
}

.section-legal h2 {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.8;
    text-align: center;
    margin-right: -10px;
}

.section-legal p {
    max-width: 800px;
    margin: 0 auto 10px;
    line-height: 1.5;
    text-align: center;
}


/* ==== BURGER ==== */
.burger{
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: 0.3s ease;
}


/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {

    /* ----- GLOBAL ----- */
    body {
        font-size: 20px;
    }

    .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* TITRES */
    #kine h2,
    #prises-en-charge > h2,
    #cabinet h2,
    #acces h2,
    #contact h2 {
        transform: none;
    }

    /* Textes & blocs déplacés */
    .presentation p,
    .photo-placeholder,
    #acces .map-container {
        transform: none;
    }

    /* ----- BURGER ----- */
    .burger {
        display: block;
        position: absolute;
        right: 32px;   /* ← AJUSTE ICI (24 / 32 / 40 px) */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1200;
    }


    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }


    /* ----- NAV MOBILE ----- */
    .nav {
        position: fixed;
        top: 0;
        left: 0;

        width: 100%;
        height: 100vh;

        background: #393536;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;

        transform: translateY(-100%);
        transition: transform 0.4s ease;

        z-index: 1000;
    }

    .nav a {
        font-size: 1.6rem;
        margin: 0;
    }

    .nav.nav-open {
        transform: translateY(0);
    }

    /* ----- HEADER ----- */
    .header {
        height: auto;
        padding: 12px 20px;
        overflow: hidden;
        position: fixed;
    }

    .header-inner {
        gap: 12px;
        grid-template-columns: auto auto;
        position: relative;
    }

    .header-logo {
        max-height: 48px;
    }

    /* ----- HERO ----- */
    .hero {
        min-height: calc(100vh-70px);
        padding-top: 40px;
        padding-bottom: 40px;

    }

    .hero-content {
        transform: translateY(-40px);
    }

    .hero::before {
        background-position: center 45%;
    }


    .hero-inner h1 {
        font-size: 2.4rem;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .hero-inner h2 {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 32px;
        max-width: 95%;
    }

    .cta {
        font-size: 1.05rem;
        padding: 14px 26px;
    }

    /* ----- KINÉ ----- */
    #kine h2 {
        margin: 0 auto 36px auto;
        text-align: center;
        font-size: 2.1rem;
        transform: none;
    }

    #kine .presentation {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    #kine .presentation p {
        transform: none;
        text-align: left;
        font-size: 1.1rem;
        line-height: 1.7;
    }

    #kine .photo-placeholder {
        transform: none;
        width: 260px;
        height: 260px;
    }

    /* ----- PRISES EN CHARGE ----- */
    #prises-en-charge > h2 {
        font-size: 2.1rem;
        margin-bottom: 28px;
        text-align: center;
    }

    /* ----- PRISES EN CHARGE : CARDS MOBILE ----- */
    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* ----- CABINET ----- */
    #cabinet {
        padding-top: 70px;
        padding-bottom: 90px;
    }

    .cabinet-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    #cabinet h2 {
        font-size: 2.1rem;
        text-align: center;
        margin: 0 0 24px 0;
        transform: none; /* OK */
    }

    #cabinet .cabinet-slider {
        margin-top: 0;
        justify-self: center;
        width: 100%;
        max-width: 420px;
    }

    /* ----- ACCÈS : LAYOUT MOBILE ----- */
    #acces .acces-layout {
        flex-direction: column;
        gap: 32px;
        align-items: stretch;
    }

    #acces h2 {
    font-size: 2.1rem;
    margin-bottom: 24px;
    }

    #acces .adresse {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-top: 0;
        margin-bottom: 20px;
    }

    #acces .acces-infos {
        font-size: 1.05rem;
        margin-top: 0;
    }

    #acces .acces-infos p {
        align-items: flex-start;
    }

    #acces .map-container {
        width: 100%;
        max-width: 100%;
        height: 260px;

        margin-right: 0;
        margin-bottom: 0;
        transform: none;
    }

    #acces {
        overflow-x: hidden;
    }

    /* ----- CONTACT : LAYOUT MOBILE ----- */
    #contact .contact-layout {
        flex-direction: column;
        gap: 36px;
        margin-top: 32px;
        margin-left: 0;
        align-items: stretch;
    }

    #contact .contact-left,
    #contact .contact-right {
        width: 100%;
        padding-left: 0;
    }

    #contact h2 {
        font-size: 2.1rem;
        margin-bottom: 24px;
    }

    #contact h3 {
        font-size: 1.3rem;
    }

    #contact p {
        font-size: 1.05rem;
    }

    #contact .contact-left .cta {
        align-self: center;
        margin-top: 28px;
    }

    #contact .contact-left,
    #contact .contact-right {
        align-items: flex-start;
    }

    #contact .contact-right p,
    #contact .contact-right h3 {
        text-align: left;
    }

    #contact {
        overflow-x: hidden;
    }

}
