/* Sections premium (fichier du modèle, mis à niveau avec lui). Chaque section prend les couleurs et polices de la
   marque (tokens.css) ; un site les ajuste dans theme.css, jamais ici. Balisage à copier : pages/sections.html.
   Règles communes : titre au-dessus du texte (jamais un paragraphe à côté d'un titre), images avec width/height
   (aucun saut de mise en page), photos de visages cadrées vers le haut, rien de posé sur un visage, animations
   absentes ou discrètes, tout lisible avec « réduire les animations ». */

.s-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.s-head h2 { margin-bottom: .4em; }
.s-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.s-center { text-align: center; margin-inline: auto; }
.s-img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--line); }

/* 1. Haut de page photo plein écran : texte clair sur un dégradé sombre côté texte (contraste garanti). */
.s-hero-photo { position: relative; display: grid; align-items: end; min-height: min(88vh, 780px); color: #fff; overflow: hidden; isolation: isolate; }
.s-hero-photo > .s-img { position: absolute; inset: 0; z-index: -2; }
.s-hero-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 12, 18, .82) 0%, rgba(8, 12, 18, .55) 48%, rgba(8, 12, 18, .15) 100%), linear-gradient(0deg, rgba(8, 12, 18, .55) 0%, rgba(8, 12, 18, 0) 45%); }
.s-hero-photo .wrap { padding-block: clamp(5rem, 4rem + 8vw, 9rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.s-hero-photo h1 { color: #fff; max-width: 15em; }
.s-hero-photo .lead { color: rgba(255, 255, 255, .9); }
.s-hero-photo .eyebrow { color: #fff; opacity: .92; }
.s-hero-photo .button-quiet { color: #fff; border-color: #fff; }
@media (max-width: 760px) { .s-hero-photo { min-height: 78vh; } .s-hero-photo::after { background: linear-gradient(0deg, rgba(8, 12, 18, .88) 0%, rgba(8, 12, 18, .45) 60%, rgba(8, 12, 18, .25) 100%); } }

/* 2. Image et texte côte à côte (alterner avec --reverse d'une section à l'autre). */
.s-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.s-split > figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.s-split--reverse > figure { order: 2; }
.s-split ul { padding-left: 1.1rem; }
.s-split li { margin-bottom: .5rem; }
@media (max-width: 860px) { .s-split { grid-template-columns: 1fr; } .s-split--reverse > figure { order: 0; } }

/* 3. Cartes avec photo (services, secteurs, offres). */
.s-photo-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.s-photo-cards li { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.s-photo-cards figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.s-photo-cards .s-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.s-photo-cards h3 { margin: 0; }
.s-photo-cards p { margin: 0; color: var(--muted); }
.s-photo-cards a { margin-top: auto; padding-top: .6rem; font-weight: 600; }

/* 4. Mur de logos (clients, partenaires, certifications) : seulement avec leur accord. */
.s-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 2rem 2.5rem; align-items: center; }
.s-logos li { display: flex; justify-content: center; }
.s-logos img { max-height: 3rem; width: auto; max-width: 100%; filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s; }
.s-logos li:hover img { filter: none; opacity: 1; }

/* 5. Chiffres clés : seulement des faits vérifiés, avec leur source si besoin. */
.s-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 2rem; }
.s-stats li { border-top: 2px solid var(--primary); padding-top: 1.1rem; }
.s-stats strong { display: block; font-family: var(--font-heading); font-weight: 500; font-size: clamp(2.4rem, 1.8rem + 2.2vw, 3.6rem); line-height: 1; color: var(--primary); margin-bottom: .55rem; }
.s-stats span { color: var(--muted); }

/* 6. Témoignages : nom et rôle réels, avec l'accord écrit de la personne (photo seulement avec accord). */
.s-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.s-quotes blockquote { margin: 0; height: 100%; display: flex; flex-direction: column; gap: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.8rem 1.6rem; }
.s-quotes blockquote > p { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.s-quotes blockquote > p::before { content: "“"; display: block; font-family: var(--font-heading); font-size: 3rem; line-height: .6; color: var(--accent); margin-bottom: .4rem; }
.s-quotes footer { margin-top: auto; display: flex; flex-direction: column; font-size: .95rem; }
.s-quotes cite { font-style: normal; font-weight: 600; }
.s-quotes footer span { color: var(--muted); }
.s-quotes footer span:empty { display: none; }

/* 7. Questions fréquentes : <details>, accessible au clavier sans script. */
.s-faq { max-width: 50rem; border-top: 1px solid var(--line); }
.s-faq details { border-bottom: 1px solid var(--line); }
.s-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font-weight: 600; font-size: 1.08rem; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: "+"; flex-shrink: 0; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.s-faq details[open] summary::after { content: "−"; }
.s-faq details > div { padding: 0 0 1.3rem; color: var(--muted); max-width: 44rem; }

/* 8. Équipe : photos cadrées vers le haut (les visages ne sont jamais coupés). */
.s-team { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.s-team figure { margin: 0 0 1rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.s-team .s-img { object-position: 50% 20%; }
.s-team h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.s-team p { margin: 0; color: var(--muted); }

/* 9. Réalisations ou études de cas : image, secteur, titre, résultat (vérifiable). */
.s-cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.s-cases figure { margin: 0 0 1.1rem; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.s-cases .eyebrow { margin-bottom: .5rem; }
.s-cases h3 { margin: 0 0 .5rem; }
.s-cases p { margin: 0; color: var(--muted); }
.s-cases .s-result { margin-top: .7rem; color: var(--ink); font-weight: 600; border-left: 3px solid var(--accent); padding-left: .8rem; }

/* 10. Galerie : grille régulière, légendes facultatives (aucune légende inventée). */
.s-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.s-gallery figure { margin: 0; }
.s-gallery .s-frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.s-gallery figcaption { font-size: .9rem; color: var(--muted); padding-top: .45rem; }
.s-gallery figcaption:empty { display: none; }

/* 11. Bandeau d'appel à l'action sur photo. */
.s-cta-photo { position: relative; isolation: isolate; color: #fff; overflow: hidden; padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.s-cta-photo > .s-img { position: absolute; inset: 0; z-index: -2; }
.s-cta-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 12, 18, .7); }
.s-cta-photo h2, .s-cta-photo p { color: #fff; max-width: 38rem; }
.s-cta-photo .button { background: #fff; color: var(--ink); border-color: #fff; }

/* 12. Phrase forte (manifeste, promesse) : grande, centrée, sans ornement. */
.s-statement { font-family: var(--font-heading); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.3; max-width: 34em; margin: 0 auto; text-align: center; text-wrap: balance; }
.s-statement em { font-style: normal; color: var(--accent); }

/* Zoom très léger des photos au survol (ordinateur seulement, jamais avec « réduire les animations »). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .s-photo-cards li .s-img, .s-cases li .s-img { transition: transform .5s ease; }
  .s-photo-cards li:hover .s-img, .s-cases li:hover .s-img { transform: scale(1.03); }
}
