@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');


:root {
    --ink: #18243A;
    --paper: #F4F0E8;
    --verm: #C7472D;
    --violet: #6253A3;
    --slate: #59616D;
    --white: #fff;
    --line: #D9D4C9;
    --verm-soft: #F4C1B7;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    /* Réserve toujours la place de la barre de défilement :
       le header ne se décale plus entre pages courtes et longues */
    overflow-y: scroll;
    scrollbar-gutter: stable;
}


body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Source Sans 3", sans-serif;
    font-size: 18px;
    line-height: 1.6;
}


h1, h2, h3 {
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.12;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    max-width: 100%;
}


.container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}


/* ACCESSIBILITÉ */


a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--verm);
    outline-offset: 3px;
}


.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}


.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    background: var(--white);
    padding: 8px 14px;
    border: 1px solid var(--ink);
}



/* HEADER — structure commune à toutes les pages */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #F4F0E8F5;
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Logo : conserve les proportions du fichier PNG */
.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    justify-self: auto;
}

.logo img {
    display: block;
    width: 320px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Navigation décalée vers la droite */
.navlinks {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    margin-left: auto;
    font-size: 17px;
    font-weight: 600;
}

.navlinks a {
    white-space: nowrap;
}

.navlinks a:hover,
.navlinks a.active {
    color: var(--verm);
}

/* Sélecteur de langue aligné à droite */
.lang {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 32px;
    font-size: 15px;
    font-weight: 700;
}

.lang button {
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
    color: var(--slate);
    padding: 4px 2px;
}

.lang button:hover,
.lang button.active {
    color: var(--verm);
}

.menu {
    display: none;
    border: 1px solid var(--line);
    background: none;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--ink);
}

.mobile-nav {
    display: none;
}

.mobile-nav a.active {
    color: var(--verm);
}

/* Tablettes et mobiles */
@media (max-width: 1100px) {
    .nav {
        min-height: 82px;
    }

    .logo img {
        width: 250px;
    }

    .navlinks {
        gap: 16px;
        font-size: 15px;
    }

    .lang {
        margin-left: 18px;
    }
}

@media (max-width: 850px) {
    .navlinks {
        display: none;
    }

    .nav {
        min-height: 76px;
        justify-content: space-between;
        gap: 16px;
    }

    .logo img {
        width: 260px;
    }

    .lang {
        margin-left: auto;
    }

    .menu {
        display: block;
        flex: 0 0 auto;
    }
}

.mobile-nav a.active {
    color: var(--verm);
}


/* HERO */


.hero {
    padding: 40px 0 72px;
}


/* L'image prend exactement la hauteur du bloc texte :
   son haut s'aligne sur le surtitre, son bas sur les boutons */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: stretch;
}


.kicker,
.eyebrow {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--verm);
}


.kicker {
    margin: 0;
}


/* Titre ramené à 52 px max : texte et boutons restent visibles sans défiler */
.hero h1 {
    font-size: clamp(36px, 4.2vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    max-width: 18ch;
    margin: 14px 0 18px;
    text-wrap: balance;
}


.lead {
    font-size: 20px;
    line-height: 1.5;
    color: var(--slate);
    max-width: 56ch;
}


.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}


.btn {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid var(--ink);
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    transition: background-color .2s, border-color .2s, color .2s;
}


.btn:hover {
    border-color: var(--verm);
    color: var(--verm);
}


.btn.primary {
    background: var(--ink);
    color: var(--white);
}


.btn.primary:hover {
    background: var(--verm);
    border-color: var(--verm);
    color: var(--white);
}


.hero-text > :last-child {
    margin-bottom: 0;
}


.hero-visual {
    position: relative;
    min-width: 0;
    margin: 0;
}


.hero-visual img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* SECTIONS */


section {
    padding: 90px 0;
}


section.light {
    background: var(--white);
}


.section-head {
    max-width: 760px;
    margin-bottom: 48px;
}


.section-head h2 {
    font-size: clamp(34px, 4vw, 52px);
    margin-top: 12px;
}


.section-head p,
.card p {
    color: var(--slate);
}


.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}


.card {
    background: var(--white);
    padding: 32px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}


.card h3 {
    font-size: 25px;
    margin: 14px 0;
}


.card-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--ink);
}


.card-link:hover {
    color: var(--verm);
}


.number,
.num {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: var(--verm);
}


.feature {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    padding: 34px 0;
    border-top: 1px solid var(--line);
}


.feature:last-child {
    border-bottom: 1px solid var(--line);
}


.quote {
    margin: 0;
    border-left: 4px solid var(--verm);
    padding: 12px 0 12px 24px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
    max-width: 850px;
}


/* PROFILS */


.profile {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
}


.portrait {
    aspect-ratio: 3 / 4;
    background: #e4dfd5;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--slate);
    padding: 20px;
}


/* FORMULAIRE */


.form-wrap {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
}


form {
    display: grid;
    gap: 16px;
}


label {
    font-size: 15px;
    font-weight: 700;
}


input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #C8C2B7;
    background: var(--white);
    font: inherit;
    color: var(--ink);
}


textarea {
    min-height: 150px;
}


.meta {
    color: var(--slate);
}


.note {
    background: #ebe6dc;
    padding: 20px 22px;
    margin-top: 24px;
}


.tag {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 4px 9px;
    font-size: 13px;
    font-weight: 600;
}


/* FOOTER */


footer {
    background: var(--ink);
    color: var(--white);
    padding: 55px 0 30px;
}


.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}


.footer-brand {
    color: var(--verm-soft);
}


footer address {
    font-style: normal;
    margin: 1em 0;
}


footer a:hover {
    color: var(--verm-soft);
}


.footer-bottom {
    border-top: 1px solid #ffffff2e;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 14px;
    color: #CBD0D8;
    display: flex;
    justify-content: space-between;
}


/* TABLETTES ET MOBILES */


@media (max-width: 850px) {
    .navlinks {
        display: none;
    }


    .nav {
        grid-template-columns: 1fr auto auto;
        gap: 16px;
    }


    .menu {
        display: block;
    }


    .hero {
        padding: 36px 0 50px;
    }


    .hero-grid,
    .profile,
    .form-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }


    .hero h1 {
        font-size: clamp(34px, 7vw, 46px);
        max-width: none;
    }


    .hero-visual img {
        position: static;
        height: 390px;
    }


    .grid3 {
        grid-template-columns: 1fr;
    }


    .footer-grid {
        grid-template-columns: 1fr;
    }


    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }


    .container {
        width: min(calc(100% - 28px), 1160px);
    }


    section {
        padding: 65px 0;
    }


    .mobile-nav {
        border-top: 1px solid var(--line);
        padding: 15px 0;
    }


    .mobile-nav.open {
        display: grid;
        gap: 12px;
    }
}


/* PETITS ÉCRANS */


@media (max-width: 480px) {
    .nav {
        min-height: 68px;
        gap: 12px;
    }


    .logo img {
    width: 210px;
    height: auto;
    }
  
    .hero {
        padding-top: 28px;
    }


    .hero h1 {
        font-size: 34px;
    }


    .lead {
        font-size: 19px;
    }


    .hero-visual img {
        height: 320px;
    }


    .actions {
        flex-direction: column;
        align-items: stretch;
    }


    .actions .btn {
        text-align: center;
    }


    .card {
        padding: 24px;
    }


    .quote {
        font-size: 23px;
    }
}


/* Réduire les animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn {
        transition: none;
    }
}
/* Compléments pour la page d'accueil et le sous-menu « À propos ».
   À charger APRÈS styles.css : utilise ses variables (--ink, --verm, --line, --slate, --white). */

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Grilles 4 colonnes (domaines, étapes) : même principe que .grid3 */
.grid4,
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.grid4 .card h3 { font-size: 22px; }

/* Étapes de la méthode */
.steps {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}
.steps li {
    background: var(--white);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}
.step-n {
    font-size: 34px;
    font-weight: 700;
    color: var(--verm);
}

/* Sous-menu « À propos » (ordinateur) */
.has-submenu { position: relative; }
.submenu-toggle {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.submenu-toggle::after {
    content: "▾";
    margin-left: 6px;
    font-size: .8em;
    display: inline-block;
    transition: transform .2s;
}
.submenu-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.submenu-toggle:hover,
.submenu-toggle.active,
.submenu-toggle[aria-expanded="true"] { color: var(--verm); }

.submenu {
    position: absolute;
    top: calc(100% + 18px);
    left: -16px;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    z-index: 30;
}
.submenu[hidden] { display: none; }
.submenu a { padding: 12px 16px; }
.submenu a + a { border-top: 1px solid var(--line); }

/* Bouton « Collaborer » dans la barre de navigation */
.navlinks .nav-cta { padding: 10px 18px; }

/* Menu mobile : groupe « À propos » */
.mobile-group {
    color: var(--slate);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-top: 4px;
}
.mobile-nav .mobile-sub { padding-left: 16px; }

/* Dernière invitation */
.cta-final .container { text-align: center; }
.cta-final h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    max-width: 26ch;
    margin: 0 auto 28px;
}

/* Responsive */
@media (max-width: 1100px) {
    .grid4,
    .steps { grid-template-columns: repeat(2, 1fr); }
    .submenu { top: calc(100% + 14px); }
}
@media (max-width: 640px) {
    .grid4,
    .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .submenu-toggle::after { transition: none; }
}



/* HERO : même photo en fond et à gauche */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--paper);
}

/* Photo agrandie en arrière-plan */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(244, 240, 232, 0.65),
            rgba(244, 240, 232, 0.65)
        ),
        url("./images/Imeuble_Bureau.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(3px);
    transform: scale(1.03);
}

/* Texte et photo de gauche au-dessus du fond */
.hero-grid {
    position: relative;
    z-index: 1;
}


/* L'image principale reste nette à gauche */

.hero-visual {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}

.hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

/* Conserver le texte lisible */

.hero-text {
    position: relative;
    z-index: 1;
}

/* Mobile : garder l'effet sans écraser le texte */

@media (max-width: 850px) {
    .hero::before {
        background-position: center;
    }

    .hero-visual img {
        height: 390px;
    }
}

@media (max-width: 480px) {
    .hero-visual img {
        height: 320px;
    }
}
/* Image en fond de la section */
#approche.approche-bg {
    position: relative;
    isolation: isolate;
    background: url("images/approche.jpg") center / cover no-repeat;
}
#approche.approche-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.88); /* voile pour la lisibilité ; ajustez 0.80–0.95 */
}

/* Image à gauche, texte à droite */
#approche .split-approche {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
#approche .approche-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile : image au-dessus du texte */
@media (max-width: 860px) {
    #approche .split-approche { grid-template-columns: 1fr; }
}

/* Image décorative domaines : remplit toute la case de la grille */
.grid3 > img.photo {
    align-self: stretch;     /* prend toute la hauteur de la case */
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;      /* annule le ratio 4:3 de r-43 */
    object-fit: cover;       /* recadre sans déformer */
    object-position: center;
    display: block;
}

/* ---------- 5 cartes sur une seule ligne ---------- */
.grid3.grid5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Cartes plus compactes pour tenir à 5 colonnes */
.grid5 .card {
    padding: 1.5rem 1.25rem;
}
.grid5 .card h3 {
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    overflow-wrap: break-word;
    hyphens: auto;
}
.grid5 .card p {
    font-size: .95rem;
}
.grid5 .card .meta {
    font-size: .85rem;
}

/* Tablette : 2 colonnes, la 5e carte occupe toute la largeur */
@media (max-width: 1099px) {
    .grid3.grid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid5 .card:last-child { grid-column: 1 / -1; }
}

/* Mobile : 1 colonne */
@media (max-width: 699px) {
    .grid3.grid5 { grid-template-columns: 1fr; }
}


/* =====================================================================
   IMAGES FUTURES SUR LES CARTES — décommenter ce bloc quand les images
   seront prêtes (en même temps que les <img class="card-img"> du HTML).
   Le padding des cartes .grid5 est de 1.5rem 1.25rem : les marges
   négatives ci-dessous font toucher l'image aux bords de la carte.

.grid5 .card {
    overflow: hidden;
}
.grid5 .card-img {
    display: block;
    width: calc(100% + 2.5rem);
    margin: -1.5rem -1.25rem 1.25rem;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .4s ease;
}
.grid5 .card:hover .card-img {
    transform: scale(1.04);
}
   ===================================================================== */

/* Photo en arrière-plan de la section 02 (page d'accueil uniquement).
   Un voile beige est posé par-dessus pour que les titres et les textes
   restent lisibles. Ajustez --domaines-voile :
     0.95 = photo presque invisible · 0.85 = discrète · 0.70 = bien visible */
.domaines-bg {
    --domaines-voile: 0.85;
    background-image:
        linear-gradient(
            rgba(243, 240, 233, var(--domaines-voile)),
            rgba(243, 240, 233, var(--domaines-voile))
        ),
        url("images/domaines.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Rappel : si les 5 colonnes n'existent pas encore dans styles.css, ajoutez aussi : */
/*
.grid3.grid5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid5 .card { padding: 1.5rem 1.25rem; }
.grid5 .card h3 { font-size: clamp(1rem, 1.25vw, 1.25rem); overflow-wrap: break-word; hyphens: auto; }
.grid5 .card p { font-size: .95rem; }
.grid5 .card .meta { font-size: .85rem; }
@media (max-width: 1099px) {
    .grid3.grid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid5 .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 699px) { .grid3.grid5 { grid-template-columns: 1fr; } }
*/
/* ---------- Équipe : 2 colonnes sur desktop, 1 colonne sur mobile ---------- */
#equipe .team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem 4rem;
    align-items: start;
}

/* Chaque membre : portrait en haut, puis nom / rôle, puis texte */
#equipe .member {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}
#equipe .member > * {
    margin-top: 0;
    margin-bottom: 0;
}

/* Petit portrait rond */
/* Portrait rond : la photo remplit tout le cercle */
#equipe .member img.portrait {
    box-sizing: border-box;
    width: 140px;
    height: 140px;
    padding: 0;                 /* supprime l'espace autour de la photo */
    margin: 0;
    border: 0;                  /* supprime l'anneau */
    background: none;
    border-radius: 50%;
    object-fit: cover;          /* remplit le cercle sans déformer */
    object-position: center 20%;
    aspect-ratio: 1 / 1;
    max-width: none;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 799px) {
    #equipe .member img.portrait {
        width: 120px;
        height: 120px;
    }
}

/* Variante sans photo (placeholder rond) */
#equipe div.portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .5rem;
    font-size: .8rem;
    background: #d9d6ca;
}

/* Mobile : les membres s'empilent l'un au-dessus de l'autre */
@media (max-width: 799px) {
    #equipe .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    #equipe .portrait {
        width: 120px;
        height: 120px;
    }
}

/* Nom + titre : même style pour tous les membres */
#equipe .member h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.15;
}

#equipe .member .role {
    margin: .4rem 0 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate);
}