/* =====================================================================
   PAGES INTÉRIEURES — complète site.css (tokens et composants communs)
   ===================================================================== */
.nav__liens a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--framboise); }

/* En-tête de page : titre de générique sur fond noir, image en bande cinémascope */
.page-tete { padding-top: calc(76px + env(safe-area-inset-top, 0px)); background: #000; }
.page-tete .inner { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); display: grid; gap: 24px; }
.page-tete__kicker { color: var(--framboise); font-weight: 600; }
/* Surtitre cliquable (pages de catégorie) : même aspect que le surtitre simple, souligné au survol */
.page-tete__kicker a { color: inherit; text-decoration: none; }
.page-tete__kicker a:hover { text-decoration: underline; }
.page-tete h1 {
    font-size: clamp(2.6rem, 7vw, 6.8rem);
    font-weight: 800;
    font-variation-settings: "wdth" 78;
    letter-spacing: -.02em;
    line-height: .92;
    max-width: 16ch;
}
.page-tete__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--brume); max-width: 60ch; }
.page-tete__bande { aspect-ratio: 2.39 / 1; overflow: hidden; position: relative; }
.page-tete__bande img { width: 100%; height: 100%; object-fit: cover; }
.page-tete__bande::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(229, 0, 64, .32), transparent 50%); }
@media (max-width: 700px) { .page-tete__bande { aspect-ratio: 16 / 10; } }

.bande .inner { padding-block: clamp(72px, 10vw, 140px); }
.bande--clair { background: var(--ecran); color: var(--encre); }
.bande--clair .entete p.intro { color: var(--encre-douce); }
.bande--clair .entete__kicker { color: var(--grenat); }
.bande--clair .lien { color: var(--encre); }
.bande--clair .lien:hover { color: #fff; }
.bande--nuit2 { background: var(--nuit-2); }
.bande--bordeaux { background: linear-gradient(100deg, var(--grenat), var(--bordeaux) 70%); }
.texte-long { max-width: 62ch; display: grid; gap: 1em; }
.bande--clair .texte-long { color: var(--encre-douce); }

/* ---------- Qui sommes-nous : bandeau des 4 catégories en texte sur le dégradé (retour client 3, les logos sont dans la grille des engagements) ---------- */
.labels { background: var(--bordeaux); background-image: linear-gradient(100deg, var(--grenat), var(--bordeaux) 70%); }
.labels ul { list-style: none; margin: 0; padding: 44px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 0; }
.label { display: grid; gap: 14px; align-content: start; padding: 8px 24px; border-left: 1px solid rgba(255, 255, 255, .18); }
.label:first-child { border-left: 0; padding-left: 0; }
/* Nom de la catégorie en typographie de titre, toujours sur une ligne */
.label__titre {
    display: block;
    font: 800 clamp(1.5rem, 2.8vw, 2.6rem)/1.05 var(--f-display);
    font-variation-settings: "wdth" 80;
    letter-spacing: -.02em;
    white-space: nowrap;
}
.label span { color: rgba(255, 255, 255, .78); font-size: .95rem; line-height: 1.4; }
@media (max-width: 700px) {
    .labels ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
    .label:nth-child(3) { border-left: 0; padding-left: 0; }
    /* Deux colonnes étroites : « La Rochelle » doit tenir dans une demi-largeur d'écran */
    .label__titre { font-size: clamp(1.25rem, 6vw, 1.9rem); }
}

/* ---------- Qui sommes-nous : engagements ---------- */
.engagements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--trait-clair); }
.engagement { padding: 36px 40px 40px 0; border-bottom: 1px solid var(--trait-clair); display: grid; gap: 12px; align-content: start; }
.engagement:nth-child(even) { padding: 36px 0 40px 40px; border-left: 1px solid var(--trait-clair); }
.engagement h3 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-variation-settings: "wdth" 82; letter-spacing: -.01em; }
.engagement__label { color: var(--grenat); font-weight: 600; font-size: .95rem; }
.engagement p { color: var(--encre-douce); max-width: 52ch; }
/* Logo du partenaire en tête de chaque engagement, dans ses couleurs d'origine (fond clair), à hauteur commune */
.engagement__logo { display: block; height: 60px; width: auto; max-width: 100%; object-fit: contain; object-position: left; margin-bottom: 8px; }
@media (max-width: 760px) {
    .engagements { grid-template-columns: 1fr; }
    .engagement, .engagement:nth-child(even) { padding: 28px 0; border-left: 0; }
    .engagement__logo { height: 52px; }
}

/* ---------- Qui sommes-nous : l'équipe, une fiche portrait par associé ---------- */
.generique { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; align-items: start; }
@media (min-width: 700px) { .generique { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; } }
@media (min-width: 1100px) { .generique { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Portrait carré (format des photos studio, sujets parfois décentrés) ; sans photo : dégradé + initiale */
.generique__portrait {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 3px;
    background: linear-gradient(160deg, var(--grenat) 0%, var(--bordeaux) 60%, var(--nuit-2) 100%);
}
.generique__portrait--photo { background: #000; }
.generique__portrait img { width: 100%; height: 100%; object-fit: cover; }
.generique__portrait span {
    position: absolute;
    left: 12px;
    bottom: -.12em;
    font: 800 clamp(5rem, 9vw, 8rem)/1 var(--f-display);
    font-variation-settings: "wdth" 75;
    color: var(--ecran);
    opacity: .16;
}
.generique summary { list-style: none; cursor: pointer; display: grid; gap: 4px; padding-top: 14px; }
.generique summary::-webkit-details-marker { display: none; }
.generique__nom { font: 700 clamp(1.3rem, 1.8vw, 1.6rem)/1.05 var(--f-display); font-variation-settings: "wdth" 88; letter-spacing: -.01em; transition: color .2s; }
.generique__role { color: var(--brume); font-size: .9rem; line-height: 1.4; }
.generique__plus { margin-top: 6px; font-weight: 600; font-size: .85rem; color: var(--framboise); }
.generique details[open] .generique__plus { color: var(--brume); }
.generique summary:hover .generique__nom { color: var(--framboise); }
/* Coordonnées de l'associé, toujours visibles sous la fiche (retour client 4) */
.generique__contact { margin: 8px 0 0; display: grid; gap: 2px; font-size: .85rem; line-height: 1.4; }
.generique__contact a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.generique__contact a:hover, .generique__contact a:focus-visible { color: var(--framboise); text-decoration: underline; }
.generique__bio { padding-top: 12px; display: grid; gap: .8em; color: var(--brume); font-size: .9rem; line-height: 1.55; }

/* ---------- Qui sommes-nous : références ---------- */
.references { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px 48px; }
.references h3 { font: 600 1rem var(--f-texte); color: var(--grenat); margin-bottom: 12px; }
.references p { font: 600 clamp(1.15rem, 1.7vw, 1.45rem)/1.35 var(--f-display); font-variation-settings: "wdth" 88; color: var(--encre); }
/* Logos clients en carrousel sur 2 rangs, couleurs d'origine, avant la liste des références (retour client 4).
   Chaque rang contient deux fois la même suite : glisser de -50 % ramène exactement au départ.
   L'espacement est un padding (et non un gap) pour que les deux moitiés aient la même largeur. */
.clients { position: relative; margin: 0 0 56px; padding-bottom: 40px; border-bottom: 1px solid var(--trait-clair); }
.clients__piste {
    display: grid; gap: 8px; overflow: hidden;
    /* Fondu sur les bords : les logos entrent et sortent sans coupure franche */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__rang { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: clients-defile 90s linear infinite; }
.clients__rang--retour { animation-direction: reverse; animation-duration: 100s; }
@keyframes clients-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.clients:hover .clients__rang, .clients.is-paused .clients__rang { animation-play-state: paused; }
.client { flex: none; display: grid; place-items: center; height: 96px; padding: 0 28px; }
.client img { display: block; width: auto; height: auto; max-width: 170px; max-height: 56px; object-fit: contain; }
/* Bouton pause (WCAG 2.2.2) : discret, visible au clavier et au survol du carrousel */
.clients__pause {
    position: absolute; right: 0; bottom: 8px; z-index: 1; padding: 4px 10px; border: 1px solid var(--trait-clair); border-radius: 999px;
    background: transparent; color: var(--encre-douce); font: 500 .8rem var(--f-texte); cursor: pointer;
}
.clients__pause:hover, .clients__pause:focus-visible { color: var(--framboise); border-color: currentColor; }
@media (max-width: 700px) {
    .clients { margin-bottom: 40px; padding-bottom: 36px; }
    .client { height: 72px; padding: 0 18px; }
    .client img { max-width: 120px; max-height: 42px; }
}
/* Moins d'animations demandé : grille fixe, sans les copies ni le bouton */
@media (prefers-reduced-motion: reduce) {
    .clients__piste { -webkit-mask-image: none; mask-image: none; }
    .clients__rang { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
    .client--copie, .clients__pause { display: none; }
}
.note-maquette { margin-top: 40px; padding: 14px 18px; border: 1px dashed var(--trait-clair); border-radius: 4px; font-size: .9rem; color: var(--encre-douce); }
.bande:not(.bande--clair) .note-maquette { border-color: var(--trait-sombre); color: var(--brume); }

/* ---------- Méthode : étapes détaillées ---------- */
.etapes-detail { display: grid; gap: clamp(56px, 8vw, 110px); list-style: none; margin: 0; padding: 0; }
.etape-d { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.etape-d:nth-child(even) .etape-d__photo { order: 2; }
.etape-d__photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
.etape-d__photo img { width: 100%; height: 100%; object-fit: cover; }
.etape-d__texte { display: grid; gap: 14px; }
.etape-d__num { font: 800 clamp(4rem, 9vw, 8rem)/.85 var(--f-display); font-variation-settings: "wdth" 75; color: transparent; -webkit-text-stroke: 1.5px var(--framboise); }
.etape-d h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); font-variation-settings: "wdth" 80; letter-spacing: -.02em; }
.etape-d__devise { font: 600 clamp(1.1rem, 1.8vw, 1.4rem) var(--f-display); color: var(--framboise); }
.etape-d p { color: var(--brume); }
.etape-d ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.etape-d li { padding: 10px 0; border-top: 1px solid var(--trait-sombre); font-weight: 500; }
@media (max-width: 800px) {
    .etape-d { grid-template-columns: 1fr; }
    .etape-d:nth-child(even) .etape-d__photo { order: 0; }
    .etape-d ul { grid-template-columns: 1fr; }
}

.engage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.engage h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 800; font-variation-settings: "wdth" 80; letter-spacing: -.02em; }
.engage p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; }
@media (max-width: 800px) { .engage { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--trait-clair); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--trait-clair); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font: 700 clamp(1.15rem, 1.9vw, 1.55rem)/1.2 var(--f-display); font-variation-settings: "wdth" 88; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--grenat); font-weight: 400; font-size: 1.6em; line-height: .7; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--encre-douce); max-width: 70ch; }

/* ---------- Filtres de catégories ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.filtres a, .filtres button {
    display: inline-block;
    padding: .55em 1.1em;
    border-radius: 999px;
    border: 1.5px solid var(--trait-sombre);
    background: transparent;
    color: inherit;
    font: 500 .92rem var(--f-texte);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.filtres a:hover, .filtres button:hover { border-color: currentColor; }
.filtres [aria-pressed="true"] { background: var(--framboise); border-color: var(--framboise); color: #fff; }
.bande--clair .filtres a, .bande--clair .filtres button { border-color: var(--trait-clair); }

/* ---------- Réalisations : grille ---------- */
.grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; }
.grille .film:first-child { grid-column: auto; }
.grille .film .film__image { aspect-ratio: 16 / 10; }
.grille .film h3 { font-size: clamp(1.3rem, 1.8vw, 1.65rem); }
.grille .film__type { font-size: .9rem; }
/* Vignette typographique quand le projet n'a pas encore de photo */
.film__image--titre { background: var(--degrade); display: flex; align-items: flex-end; padding: 20px; }
.film__image--titre span { font: 800 clamp(1.6rem, 2.6vw, 2.4rem)/.95 var(--f-display); font-variation-settings: "wdth" 78; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
@media (max-width: 1000px) { .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grille { grid-template-columns: 1fr; } }

/* ---------- Fiche projet ---------- */
.fiche-tete { padding-top: calc(76px + env(safe-area-inset-top, 0px)); background: #000; }
.fiche-tete .inner { padding-block: clamp(40px, 6vw, 80px) 40px; display: grid; gap: 20px; }
.fiche-tete h1 { font-size: clamp(2.6rem, 7vw, 6.6rem); font-weight: 800; font-variation-settings: "wdth" 78; letter-spacing: -.02em; line-height: .92; }
.fiche-tete p { color: var(--brume); max-width: 60ch; font-size: 1.1rem; }
.fil { font-size: .9rem; color: var(--brume); }
.fil a { text-decoration: none; }
.fil a:hover { color: #fff; }
.ecran { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: #000; text-decoration: none; }
.ecran img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s, transform .8s; }
.ecran:hover img { opacity: .9; transform: scale(1.02); }
/* Lecteur intégré : occupe tout l'écran, dont le format est donné par la vidéo (style inline) */
.ecran--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Vidéo verticale (Roue-Cam) : l'écran prend la hauteur disponible, centré sur fond noir */
.ecran--portrait { height: min(80vh, 720px); width: auto; margin-inline: auto; }
/* Diaporama à la place du lecteur : photos en fondu, flèches et points */
.ecran--diapo figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.ecran--diapo .diapo__image--active { opacity: 1; }
.ecran--diapo img, .ecran--diapo:hover img { opacity: 1; transform: none; }
.diapo__bouton {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s, border-color .2s;
}
.diapo__bouton:hover, .diapo__bouton:focus-visible { background: var(--framboise); border-color: var(--framboise); }
.diapo__bouton--prec { left: 16px; }
.diapo__bouton--suiv { right: 16px; }
.diapo__points { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.diapo__point { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: background .2s, transform .2s; }
.diapo__point[aria-current="true"] { background: var(--framboise); transform: scale(1.25); }
@media (max-width: 700px) {
    .diapo__bouton { width: 40px; height: 40px; font-size: 1.5rem; }
    .ecran--portrait { height: 70vh; }
}
.ecran__lire {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--framboise);
    color: #fff;
    border-radius: 999px;
    padding: 1em 1.6em;
    font-weight: 600;
    white-space: nowrap;
}
.fiche-corps { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px 80px; }
.fiche-corps h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-variation-settings: "wdth" 85; margin-bottom: 16px; }
.fiche-corps .texte-long { color: var(--brume); }
.fiche-corps__bloc + .fiche-corps__bloc { margin-top: 40px; }
.clap { margin: 0; display: grid; border-top: 1px solid var(--trait-sombre); align-self: start; }
.clap div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--trait-sombre); }
.clap dt { color: var(--brume); }
.clap dd { margin: 0; font-weight: 600; }
.dispositif { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dispositif li { border: 1px solid var(--trait-sombre); border-radius: 999px; padding: .4em 1em; font-size: .92rem; }
.galerie { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.galerie img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; aspect-ratio: 16 / 9; }
.galerie img:nth-child(1) { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.galerie img:nth-child(2), .galerie img:nth-child(3) { grid-column: span 4; }
.galerie img:nth-child(4), .galerie img:nth-child(5) { grid-column: span 6; }
/* Au-delà de 5 images : rangées de trois */
.galerie img:nth-child(n+6) { grid-column: span 4; }
.suivant { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; text-decoration: none; padding-block: 40px; border-top: 1px solid var(--trait-sombre); }
.suivant small { display: block; color: var(--brume); margin-bottom: 8px; font-size: .95rem; }
.suivant strong { font: 800 clamp(2rem, 5vw, 4.4rem)/.95 var(--f-display); font-variation-settings: "wdth" 78; letter-spacing: -.02em; transition: color .2s; }
.suivant:hover strong { color: var(--framboise); }
@media (max-width: 800px) {
    .fiche-corps { grid-template-columns: 1fr; }
    .galerie img:nth-child(n) { grid-column: span 12; grid-row: auto; aspect-ratio: 16 / 9; }
}

/* ---------- Contact ---------- */
.contact-grille { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px 80px; align-items: start; }
.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.champ { display: grid; gap: 8px; min-width: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-weight: 600; font-size: .95rem; }
.champ label span { color: var(--framboise); }
.champ input, .champ select, .champ textarea {
    width: 100%;
    font: 400 1rem var(--f-texte);
    color: var(--ecran);
    background: var(--nuit-2);
    border: 1px solid var(--trait-sombre);
    border-radius: 4px;
    padding: .85em 1em;
}
.champ textarea { min-height: 160px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--framboise); box-shadow: 0 0 0 3px rgba(229, 0, 64, .25); }
.champ input::placeholder, .champ textarea::placeholder { color: #8c7681; }
.formulaire__bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.formulaire__bas small { color: var(--brume); }
.merci { padding: 28px; border-radius: 4px; background: linear-gradient(100deg, var(--grenat), var(--bordeaux)); display: grid; gap: 10px; }
.merci strong { font: 700 1.6rem var(--f-display); }
.infos { margin: 0; display: grid; border-top: 1px solid var(--trait-sombre); }
.infos div { padding: 18px 0; border-bottom: 1px solid var(--trait-sombre); display: grid; gap: 4px; }
.infos dt { color: var(--brume); font-size: .9rem; }
.infos dd { margin: 0; font: 700 1.3rem/1.3 var(--f-display); font-variation-settings: "wdth" 88; overflow-wrap: anywhere; }
.infos dd small { display: block; font: 400 .9rem var(--f-texte); color: var(--brume); }
.carte {
    display: flex;
    align-items: flex-end;
    min-height: 300px;
    margin-top: 32px;
    padding: 24px;
    border-radius: 4px;
    text-decoration: none;
    background:
        linear-gradient(0deg, rgba(22, 8, 16, .9), rgba(22, 8, 16, .1)),
        url("img/la-piscine-05.webp") center / cover;
}
.carte strong { font: 700 1.5rem var(--f-display); display: block; }
.carte span { color: var(--brume); }
@media (max-width: 860px) {
    .contact-grille { grid-template-columns: 1fr; }
    .formulaire { grid-template-columns: 1fr; }
}
