@import url('../fonts/fonts.css');

/* ============================================================
   SOCIÉTÉ KUREDJIAN — Feuille de styles principale
   Charte : clair & technique. Rouge #ED1C24 issu du logo.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --rouge: #ED1C24;          /* rouge du logo : aplats, filets, grands titres */
  --rouge-ac: #D4161D;       /* rouge accessible : petits textes et boutons (AA) */
  --rouge-fonce: #B31219;
  --rouge-pale: #FDECEC;

  --encre: #111820;
  --encre-70: #3C4652;
  --gris: #66717E;
  --gris-clair: #7C8794;

  --ligne: #E3E7EC;
  --ligne-forte: #C9D0D8;

  --fond: #FFFFFF;
  --fond-2: #F5F7F9;
  --fond-3: #ECEFF3;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --titre: 'Barlow Condensed', 'Arial Narrow', var(--sans);

  --max: 1240px;
  --gutter: 24px;
  --radius: 2px;

  --t: 220ms cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Décalage des ancres pour ne pas passer sous l'en-tête collé */
[id] { scroll-margin-top: 140px; }
@media (max-width: 1200px) { [id] { scroll-margin-top: 120px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre-70);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
picture { display: contents; }

a { color: var(--encre); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--titre);
  color: var(--encre);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.1rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--encre); font-weight: 600; }

::selection { background: var(--rouge); color: #fff; }

/* ---------- 3. Utilitaires ---------- */
.conteneur { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.conteneur--etroit { max-width: 860px; }

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--gris { background: var(--fond-2); }
.section--bord { border-top: 1px solid var(--ligne); }

.saut { display: block; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--encre); color: #fff; padding: 12px 20px; font-size: .9rem;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* Étiquette technique (eyebrow) */
.etiquette {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--rouge-ac);
  margin: 0 0 18px;
}
.etiquette::before {
  content: ''; width: 26px; height: 2px; background: var(--rouge); flex: none;
}
.etiquette--sombre { color: var(--rouge); }

.chapo {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--encre-70);
  max-width: 62ch;
}

.entete-section { max-width: 68ch; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  letter-spacing: .02em;
  padding: 15px 24px; border: 1px solid transparent; border-radius: var(--radius);
  white-space: nowrap;
  cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn svg { flex: none; transition: transform var(--t); }
.btn:hover svg { transform: translateX(4px); }

.btn--rouge { background: var(--rouge-ac); color: #fff; }
.btn--rouge:hover { background: var(--rouge-fonce); }

.btn--encre { background: var(--encre); color: #fff; }
.btn--encre:hover { background: #000; }

.btn--fil { border-color: var(--ligne-forte); color: var(--encre); background: transparent; }
.btn--fil:hover { border-color: var(--encre); background: var(--encre); color: #fff; }

.btn--fil-clair { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn--fil-clair:hover { background: #fff; color: var(--encre); border-color: #fff; }

.groupe-btn { display: flex; flex-wrap: wrap; gap: 14px; }

/* Lien fléché */
.lien-fleche {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .92rem; color: var(--encre);
  border-bottom: 2px solid var(--rouge); padding-bottom: 3px;
  transition: gap var(--t), color var(--t);
}
.lien-fleche:hover { gap: 14px; color: var(--rouge-ac); }

/* ---------- 5. En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ligne);
  transition: box-shadow var(--t);
}
.entete.est-collee { box-shadow: 0 1px 18px rgba(17,24,32,.07); }

.entete__interieur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}
.entete__logo { display: block; flex: none; }
.entete__logo img { width: clamp(170px, 17vw, 215px); }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.nav__lien {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--encre-70);
  padding: 6px 0; transition: color var(--t); white-space: nowrap;
}
.nav__lien::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--rouge); transition: width var(--t);
}
.nav__lien:hover { color: var(--encre); }
.nav__lien:hover::after, .nav__lien[aria-current="page"]::after { width: 100%; }
.nav__lien[aria-current="page"] { color: var(--encre); font-weight: 600; }

.entete__actions { display: flex; align-items: center; gap: 18px; }
.entete__tel {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--titre); font-size: 1.24rem; font-weight: 600; color: var(--encre);
  letter-spacing: .01em; white-space: nowrap;
}
.entete__tel svg { color: var(--rouge); }
.entete__tel:hover { color: var(--rouge-ac); }

.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--ligne);
  background: #fff; border-radius: var(--radius); cursor: pointer;
  padding: 0; position: relative;
}
.burger span {
  position: absolute; left: 13px; width: 20px; height: 2px; background: var(--encre);
  transition: transform var(--t), opacity var(--t);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1200px) {
  .burger { display: block; }
  .entete__tel span { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--ligne);
    box-shadow: 0 18px 30px rgba(17,24,32,.1);
    padding: 8px var(--gutter) 28px; transform: translateY(-12px); opacity: 0;
    pointer-events: none; transition: opacity var(--t), transform var(--t);
    max-height: 72vh; overflow-y: auto;
  }
  .nav.est-ouverte { opacity: 1; transform: none; pointer-events: auto; }
  .nav__lien { padding: 16px 0; border-bottom: 1px solid var(--ligne); font-size: 1.05rem; }
  .nav__lien::after { display: none; }
  .nav .btn { margin-top: 20px; justify-content: center; }
}

/* ---------- 6. Trame technique ---------- */
.trame {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17,24,32,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,24,32,.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 85% 70% at 70% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 70% 30%, #000 30%, transparent 78%);
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--fond-2); border-bottom: 1px solid var(--ligne); }
.hero__interieur {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(60px, 8vw, 110px) 0 clamp(60px, 8vw, 100px);
}
.hero__titre { margin-bottom: 22px; }
.hero__titre .accent { color: var(--rouge); }
.hero__texte { font-size: clamp(1.05rem, 1.5vw, 1.18rem); max-width: 54ch; margin-bottom: 34px; }
.hero__actions { margin-bottom: 40px; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  padding-top: 26px; border-top: 1px solid var(--ligne-forte);
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gris); font-weight: 500;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta span::before { content: ''; width: 5px; height: 5px; background: var(--rouge); flex: none; }

.hero__visuel { position: relative; }

@media (max-width: 900px) {
  .hero__interieur { grid-template-columns: 1fr; }
  .hero__visuel { order: -1; }
}

/* ---------- 8. Bandeau chiffres ---------- */
.chiffres { border-bottom: 1px solid var(--ligne); background: #fff; }
.chiffres__grille {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.chiffres__item {
  padding: clamp(28px, 4vw, 44px) clamp(16px, 2.5vw, 34px);
  border-left: 1px solid var(--ligne);
}
.chiffres__item:first-child { border-left: 0; padding-left: 0; }
.chiffres__valeur {
  font-family: var(--titre); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 700;
  color: var(--encre); line-height: 1; margin-bottom: 8px;
}
.chiffres__valeur .u { color: var(--rouge); }
.chiffres__label { font-size: .84rem; color: var(--gris); line-height: 1.45; }
@media (max-width: 760px) {
  .chiffres__grille { grid-template-columns: repeat(2, 1fr); }
  .chiffres__item { border-left: 0; border-top: 1px solid var(--ligne); padding-inline: 0; }
  .chiffres__item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--ligne); }
  .chiffres__item:nth-child(-n+2) { border-top: 0; }
}

/* ---------- 9. Cartes savoir-faire ---------- */
.grille { display: grid; gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grille--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grille--3, .grille--2 { grid-template-columns: 1fr; } }

.carte {
  background: #fff; padding: clamp(28px, 3.4vw, 42px);
  display: flex; flex-direction: column; gap: 16px;
  transition: background var(--t);
}
.carte:hover { background: var(--fond-2); }
.carte__num {
  font-family: var(--titre); font-size: .95rem; font-weight: 600;
  letter-spacing: .16em; color: var(--rouge-ac);
}
.carte__icone { color: var(--rouge); margin-bottom: 4px; }
.carte h3 { margin: 0; }
.carte p { font-size: .96rem; color: var(--encre-70); }
.carte ul { margin: 0; padding-left: 0; list-style: none; font-size: .92rem; }
.carte ul li { position: relative; padding-left: 18px; margin-bottom: 7px; color: var(--gris); }
.carte ul li::before {
  content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 1px; background: var(--rouge);
}

/* ---------- 10. Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.process__etape { position: relative; padding: 34px 26px 0 0; border-top: 2px solid var(--ligne); }
.process__etape::before {
  content: ''; position: absolute; top: -2px; left: 0; width: 46px; height: 2px; background: var(--rouge);
}
.process__num {
  font-family: var(--titre); font-size: 1rem; font-weight: 700; color: var(--rouge-ac);
  letter-spacing: .12em; margin-bottom: 12px; display: block;
}
.process__etape h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process__etape p { font-size: .9rem; color: var(--gris); }
@media (max-width: 1000px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process__etape { padding: 26px 0 0; }
  .process__etape + .process__etape { margin-top: 26px; }
}

/* ---------- 11. Placeholders photo ---------- */
.photo {
  position: relative; background: var(--fond-3);
  border: 1px dashed var(--ligne-forte);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 28px; overflow: hidden;
  aspect-ratio: 4 / 3; color: var(--gris);
}
.photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17,24,32,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,24,32,.045) 1px, transparent 1px);
  background-size: 26px 26px;
}
.photo svg { color: var(--ligne-forte); position: relative; z-index: 1; }
.photo__nom {
  position: relative; z-index: 1;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  color: var(--encre-70); word-break: break-all;
}
.photo__aide {
  position: relative; z-index: 1;
  font-size: .74rem; color: var(--encre-70); max-width: 32ch; line-height: 1.5;
}
.photo--large { aspect-ratio: 16 / 9; }
.photo--portrait { aspect-ratio: 3 / 4; }
.photo--carre { aspect-ratio: 1 / 1; }

/* ---------- 12. Réalisations ---------- */
.realisations { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 30px); }
@media (max-width: 900px) { .realisations { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .realisations { grid-template-columns: 1fr; } }

.realisation { display: flex; flex-direction: column; }
.realisation__media { position: relative; margin-bottom: 18px; }
.realisation__tag {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--rouge-ac); color: #fff; font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; padding: 7px 13px;
}
.realisation h3 { font-size: 1.25rem; margin-bottom: 8px; }
.realisation p { font-size: .93rem; color: var(--gris); }
.realisation__fiche {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ligne);
  display: grid; gap: 6px; font-size: .84rem;
}
.realisation__fiche div { display: flex; gap: 10px; }
.realisation__fiche dt { color: var(--gris); min-width: 92px; flex: none; }
.realisation__fiche dd { margin: 0; color: var(--encre-70); font-weight: 500; }

/* ---------- 13. Secteurs ---------- */
.secteurs {
  display: grid; gap: 1px;
  background: var(--ligne); border: 1px solid var(--ligne);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
/* Le nombre de colonnes suit le nombre de secteurs : jamais de cellule vide. */
.secteurs--6 { grid-template-columns: repeat(6, 1fr); }
.secteurs--5 { grid-template-columns: repeat(5, 1fr); }
.secteurs--4 { grid-template-columns: repeat(4, 1fr); }
.secteurs--3 { grid-template-columns: repeat(3, 1fr); }
.secteurs--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) {
  .secteurs--6, .secteurs--3 { grid-template-columns: repeat(3, 1fr); }
  .secteurs--5, .secteurs--4, .secteurs--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .secteurs--6, .secteurs--4, .secteurs--2 { grid-template-columns: repeat(2, 1fr); }
  .secteurs--5, .secteurs--3 { grid-template-columns: 1fr; }
}
.secteur {
  background: #fff; padding: 28px 14px 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 12px; text-align: center; transition: background var(--t);
}
.secteur:hover { background: var(--rouge-pale); }
.secteur svg { color: var(--rouge); flex: none; }
.secteur span {
  font-family: var(--titre); font-size: 1.08rem; font-weight: 600; line-height: 1.15;
  text-transform: uppercase; color: var(--encre); letter-spacing: .01em;
}

/* ---------- 14. Bandeau appel ---------- */
.appel {
  position: relative; background: var(--encre); color: rgba(255,255,255,.8);
  overflow: hidden;
}
.appel .trame {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 90% at 80% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 50%, #000 20%, transparent 75%);
}
.appel__interieur {
  position: relative; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 34px;
  padding: clamp(50px, 7vw, 86px) 0;
}
.appel h2 { color: #fff; margin-bottom: 14px; }
.appel p { max-width: 52ch; margin: 0; }

/* ---------- 15. Frise historique ---------- */
.frise { position: relative; padding-left: 0; list-style: none; margin: 0; }
.frise::before {
  content: ''; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: var(--ligne-forte);
}
.frise__item { position: relative; padding: 0 0 clamp(34px, 4vw, 48px) 46px; }
.frise__item:last-child { padding-bottom: 0; }
.frise__item::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 15px; height: 15px;
  border: 3px solid var(--rouge); background: #fff; border-radius: 50%;
}
.frise__annee {
  font-family: var(--titre); font-size: 1.7rem; font-weight: 700; color: var(--rouge);
  line-height: 1; margin-bottom: 8px; display: block;
}
.frise__item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.frise__item p { font-size: .96rem; margin: 0; }

/* ---------- 16. Tableau technique ---------- */
.tableau { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tableau caption { text-align: left; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); padding-bottom: 14px; }
.tableau th, .tableau td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--ligne); }
.tableau thead th {
  font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gris); border-bottom: 2px solid var(--encre);
}
.tableau tbody th { font-weight: 600; color: var(--encre); }
.tableau tbody tr:hover { background: var(--fond-2); }
.tableau-scroll { overflow-x: auto; }

/* ---------- 17. Formulaire ---------- */
.formulaire { display: grid; gap: 20px; }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .champ-duo { grid-template-columns: 1fr; } }

.champ { display: flex; flex-direction: column; gap: 7px; }
.champ label { font-size: .82rem; font-weight: 600; color: var(--encre); letter-spacing: .02em; }
.champ label .req { color: var(--rouge-ac); }
.champ input, .champ textarea, .champ select {
  font-family: var(--sans); font-size: 1rem; color: var(--encre);
  padding: 14px 16px; background: #fff;
  border: 1px solid var(--ligne-forte); border-radius: var(--radius);
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}
.champ textarea { resize: vertical; min-height: 140px; }
.champ input:focus, .champ textarea:focus, .champ select:focus {
  border-color: var(--rouge); box-shadow: 0 0 0 3px var(--rouge-pale); outline: none;
}
.champ .erreur { font-size: .8rem; color: var(--rouge); min-height: 1em; }
.champ input[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: var(--rouge); }

.case { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--gris); }
.case input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--rouge); }

.message-form {
  padding: 16px 20px; border-left: 3px solid var(--rouge); background: var(--rouge-pale);
  font-size: .92rem; color: var(--encre); display: none;
}
.message-form.est-visible { display: block; }
.message-form.est-succes { border-left-color: #1a8a4a; background: #E8F6EE; }

/* ---------- 18. Contact ---------- */
.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grille { grid-template-columns: 1fr; } }

.coord { list-style: none; margin: 0 0 32px; padding: 0; }
.coord li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ligne); }
.coord li:first-child { padding-top: 0; }
.coord svg { color: var(--rouge); flex: none; margin-top: 3px; }
.coord strong { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); font-weight: 600; margin-bottom: 4px; }
.coord a, .coord span { font-size: 1.02rem; color: var(--encre); }
.coord a:hover { color: var(--rouge-ac); }

/* ---------- 19. Pied de page ---------- */
.pied { background: var(--encre); color: rgba(255,255,255,.74); font-size: .92rem; }
.pied__haut {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.15fr; gap: 40px;
  padding: clamp(48px, 6vw, 76px) 0 44px;
}
@media (max-width: 1100px) {
  .pied__haut { grid-template-columns: repeat(4, 1fr); gap: 34px 30px; }
  .pied__haut > :first-child { grid-column: 1 / -1; max-width: 52ch; }
}
@media (max-width: 700px) { .pied__haut { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) {
  .pied__haut { grid-template-columns: 1fr; }
  .pied__haut > :first-child { grid-column: auto; }
}

.pied__logo { width: 230px; margin-bottom: 20px; }
.pied h4 {
  color: #fff; font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.pied a { color: rgba(255,255,255,.74); transition: color var(--t); }
.pied a:hover { color: #fff; }
.pied__bas {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0 30px;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.6);
}
.pied__bas a { color: rgba(255,255,255,.6); }
.pied__reseaux { display: flex; gap: 12px; margin-top: 22px; }
.pied__reseaux a {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; color: #fff; transition: background var(--t), border-color var(--t);
}
.pied__reseaux a:hover { background: var(--rouge); border-color: var(--rouge); }

/* ---------- 20. Bandeau de page interne ---------- */
.banniere {
  position: relative; background: var(--fond-2); border-bottom: 1px solid var(--ligne); overflow: hidden;
}
.banniere__interieur { position: relative; padding: clamp(48px, 6.5vw, 86px) 0 clamp(40px, 5vw, 62px); max-width: 74ch; }
.fil { font-size: .8rem; color: var(--gris); margin-bottom: 20px; }
.fil a { color: var(--gris); }
.fil a:hover { color: var(--rouge-ac); }
.fil span { margin: 0 8px; color: var(--ligne-forte); }

/* ---------- 21. Divers ---------- */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4.5vw, 66px); align-items: center; }
.deux-colonnes--texte-droite > *:first-child { order: 1; }
@media (max-width: 860px) {
  .deux-colonnes { grid-template-columns: 1fr; }
  .deux-colonnes--texte-droite > *:first-child { order: 0; }
}

.liste-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.liste-check li { position: relative; padding-left: 30px; font-size: .98rem; }
.liste-check li::before {
  content: ''; position: absolute; left: 0; top: .42em; width: 14px; height: 8px;
  border-left: 2px solid var(--rouge); border-bottom: 2px solid var(--rouge);
  transform: rotate(-45deg);
}

.encart {
  border-left: 3px solid var(--rouge); background: var(--fond-2);
  padding: clamp(24px, 3vw, 34px); font-size: .98rem;
}
.encart h3 { font-size: 1.2rem; }

.note-integration {
  border: 1px dashed var(--ligne-forte); background: #FFFDF2;
  padding: 18px 22px; font-size: .86rem; color: var(--encre-70);
  display: flex; gap: 14px; align-items: flex-start;
}
.note-integration svg { color: #B8860B; flex: none; margin-top: 2px; }

/* ---------- 22. Apparition au défilement ---------- */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.apparait.est-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .apparait { opacity: 1; transform: none; transition: none; }
}

/* ---------- 23. Impression ---------- */
@media print {
  .entete, .pied, .appel, .burger { display: none; }
  body { font-size: 12pt; color: #000; }
}

/* ============================================================
   24. AJOUTS — refonte photo (hero, familles, galeries, partenaires)
   ============================================================ */

/* ---- Hero image plein cadre ---- */
.hero-image {
  position: relative;
  min-height: clamp(460px, 62vh, 660px);
  display: flex; align-items: flex-end;
  background: var(--encre);
  overflow: hidden;
}
.hero-image__media {
  position: absolute; inset: 0;
}
.hero-image__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
}
.hero-image__voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(9,13,18,.86) 0%, rgba(9,13,18,.66) 42%, rgba(9,13,18,.18) 78%, rgba(9,13,18,.35) 100%),
    linear-gradient(to top, rgba(9,13,18,.75) 0%, transparent 45%);
}
.hero-image__contenu {
  position: relative; z-index: 2;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  max-width: 720px;
}
.hero-image h1 { color: #fff; margin-bottom: 20px; }
.hero-image h1 .accent { color: var(--rouge); }
.hero-image .etiquette { color: #fff; }
.hero-image .etiquette::before { background: var(--rouge); }
.hero-image__texte {
  color: rgba(255,255,255,.88); font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  max-width: 56ch; margin-bottom: 32px;
}
@media (max-width: 700px) {
  .hero-image__voile { background: linear-gradient(to top, rgba(9,13,18,.92) 8%, rgba(9,13,18,.62) 55%, rgba(9,13,18,.45) 100%); }
}

/* ---- Bandeau de page interne avec image ---- */
.banniere-image { position: relative; background: var(--encre); overflow: hidden; }
.banniere-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banniere-image__voile {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(9,13,18,.9) 0%, rgba(9,13,18,.62) 55%, rgba(9,13,18,.25) 100%);
}
.banniere-image__contenu { position: relative; z-index: 2; padding: clamp(56px, 8vw, 104px) 0; max-width: 700px; }
.banniere-image h1 { color: #fff; }
.banniere-image .chapo { color: rgba(255,255,255,.85); }
.banniere-image .etiquette { color: #fff; }
.banniere-image .fil, .banniere-image .fil a { color: rgba(255,255,255,.6); }
.banniere-image .fil a:hover { color: #fff; }

/* ---- Les deux familles ---- */
.familles {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 26px);
  margin-top: clamp(-72px, -6vw, -40px); position: relative; z-index: 5;
}
@media (max-width: 800px) { .familles { grid-template-columns: 1fr; margin-top: 0; } }

.famille {
  position: relative; display: block; overflow: hidden;
  background: var(--encre); min-height: 340px;
  border-bottom: 4px solid var(--rouge);
  box-shadow: 0 18px 48px rgba(17,24,32,.18);
}
.famille img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.famille::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,13,18,.94) 12%, rgba(9,13,18,.55) 52%, rgba(9,13,18,.2) 100%);
}
.famille:hover img { transform: scale(1.05); }
.famille__contenu {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; min-height: 340px; padding: clamp(26px, 3vw, 40px);
}
.famille__num {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rouge-ac); margin-bottom: 10px;
}
.famille h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.famille p { color: rgba(255,255,255,.82); font-size: .96rem; max-width: 42ch; margin-bottom: 20px; }
.famille__lien {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600; font-size: .92rem;
  border-bottom: 2px solid var(--rouge); padding-bottom: 4px;
  align-self: flex-start; transition: gap var(--t);
}
.famille:hover .famille__lien { gap: 16px; }

/* ---- Figures et galeries photo ---- */
figure { margin: 0; }
.figure img { width: 100%; display: block; }
.figure figcaption {
  font-size: .82rem; color: var(--gris); padding-top: 10px;
  border-top: 1px solid var(--ligne); margin-top: 12px;
}

.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.galerie--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
/* Une galerie de trois vignettes garde trois colonnes : pas de rangée bancale. */
@media (min-width: 561px) and (max-width: 900px) {
  .galerie:has(> figure:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) { .galerie, .galerie--2 { grid-template-columns: 1fr; } }

.vignette { position: relative; overflow: hidden; background: var(--fond-3); }
.vignette img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.vignette:hover img { transform: scale(1.04); }
.vignette figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 18px 14px; color: #fff; font-size: .86rem; font-weight: 500;
  background: linear-gradient(to top, rgba(9,13,18,.88), transparent);
}
.vignette__tag {
  position: absolute; top: 0; left: 0; z-index: 3;
  background: var(--rouge-ac); color: #fff; font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px;
}

/* ---- Parc machine ---- */
.machines { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
@media (max-width: 900px) { .machines { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .machines { grid-template-columns: 1fr; } }
.machine { background: #fff; border: 1px solid var(--ligne); }
.machine img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.machine__texte { padding: 18px 20px 22px; }
.machine__texte h3 { font-size: 1.1rem; margin-bottom: 6px; }
.machine__texte p { font-size: .88rem; color: var(--gris); margin: 0; }

/* ---- Partenaires et labels ---- */
.partenaires {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--ligne); border: 1px solid var(--ligne);
}
@media (max-width: 860px) { .partenaires { grid-template-columns: repeat(2, 1fr); } }
.partenaire {
  background: #fff; padding: 30px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px;
  min-height: 200px; transition: background var(--t);
}
a.partenaire:hover { background: var(--fond-2); }
.partenaire img { max-height: 78px; width: auto; }

/* Sceau ISO, repris du bloc certification */
.partenaire__sceau {
  width: 78px; height: 78px; border-radius: 50%; border: 2px solid var(--rouge);
  display: grid; place-items: center; align-content: center; line-height: 1;
  font-family: var(--titre); font-weight: 700; color: var(--rouge-ac); flex: none;
}
.partenaire__sceau .n { font-size: 1.35rem; }
.partenaire__sceau .t { font-size: .6rem; letter-spacing: .12em; color: var(--encre); margin-top: 3px; }

/* Drapeau pour la mention « conçu et fabriqué en France » */
.partenaire__drapeau {
  display: flex; width: 78px; height: 52px; margin-block: 13px; border: 1px solid var(--ligne-forte); flex: none;
}
.partenaire__drapeau i { flex: 1; }
.partenaire__drapeau i:nth-child(1) { background: #1D2A6B; }
.partenaire__drapeau i:nth-child(2) { background: #fff; }
.partenaire__drapeau i:nth-child(3) { background: var(--rouge); }
.partenaire__nom {
  font-family: var(--titre); font-size: 1.15rem; font-weight: 700;
  text-transform: uppercase; color: var(--encre); line-height: 1.1;
}
.partenaire__sous { font-size: .78rem; color: var(--gris); }
.partenaire__logo-vide {
  width: 100%; max-width: 150px; height: 78px; border: 1px dashed var(--ligne-forte);
  display: grid; place-items: center; font-size: .66rem; color: var(--gris-clair);
  letter-spacing: .06em; text-align: center; padding: 6px;
}

/* ---- Bloc certification ---- */
.certif {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3vw, 40px);
  border: 1px solid var(--ligne); border-left: 4px solid var(--rouge);
  background: #fff; padding: clamp(24px, 3vw, 36px);
}
.certif__sceau {
  flex: none; width: 108px; height: 108px; border-radius: 50%;
  border: 2px solid var(--rouge); display: grid; place-items: center; text-align: center;
  font-family: var(--titre); font-weight: 700; color: var(--rouge-ac); line-height: 1;
}
.certif__sceau span { display: block; }
.certif__sceau .n { font-size: 1.9rem; }
.certif__sceau .t { font-size: .72rem; letter-spacing: .12em; margin-top: 4px; color: var(--encre); }
.certif__texte { flex: 1 1 340px; }
.certif__texte h3 { margin-bottom: 8px; }
.certif__texte p { margin: 0; font-size: .96rem; }

/* ---- Écologie ---- */
.eco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
@media (max-width: 800px) { .eco { grid-template-columns: 1fr; } }
.eco__item { background: #fff; padding: clamp(24px, 3vw, 34px); }
.eco__item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.eco__item p { font-size: .93rem; color: var(--encre-70); margin: 0; }
.eco__icone { color: var(--rouge); margin-bottom: 14px; }

/* ---- Logiciels ---- */
.logiciels { display: flex; flex-wrap: wrap; gap: 10px; }
.logiciel {
  border: 1px solid var(--ligne-forte); padding: 9px 16px; font-size: .86rem;
  font-weight: 500; color: var(--encre); background: #fff;
}

/* ---- Image pleine largeur intercalaire ---- */
.bande-image { position: relative; height: clamp(260px, 34vw, 420px); overflow: hidden; }
.bande-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Rappel des placeholders restants ---- */
.photo { min-height: 200px; }


/* ============================================================
   25. Bandeau recrutement permanent
   ============================================================ */
.bandeau-recrut {
  display: block; background: var(--rouge-ac); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: background var(--t);
}
.bandeau-recrut:hover { background: var(--rouge-fonce); color: #fff; }
.bandeau-recrut__interieur {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 38px; padding-block: 7px;
  font-size: .82rem; line-height: 1.35; text-align: center;
}
.bandeau-recrut strong { color: #fff; font-weight: 700; letter-spacing: .04em; }
.bandeau-recrut__detail { color: rgba(255,255,255,.92); }
.bandeau-recrut__sep { color: rgba(255,255,255,.5); }
.bandeau-recrut__cta {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 1px;
}
.bandeau-recrut__pastille {
  width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: pulse-recrut 2.4s ease-out infinite;
}
@keyframes pulse-recrut {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.65); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) { .bandeau-recrut__pastille { animation: none; } }
@media (max-width: 860px) {
  .bandeau-recrut__detail, .bandeau-recrut__sep { display: none; }
  .bandeau-recrut__interieur { gap: 10px; font-size: .78rem; }
}

/* ============================================================
   26. Visionneuse photo
   ============================================================ */
.vignette, .figure img, .machine img { cursor: zoom-in; }
.visionneuse {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(9,13,18,.94);
  align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px);
}
.visionneuse[open], .visionneuse.est-ouverte { display: flex; }
.visionneuse figure {
  max-width: min(1400px, 100%); max-height: 100%;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.visionneuse img {
  max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.visionneuse figcaption {
  color: rgba(255,255,255,.88); font-size: .92rem; text-align: center; max-width: 70ch;
}
.visionneuse__fermer, .visionneuse__nav {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
  color: #fff; width: 48px; height: 48px; display: grid; place-items: center;
  cursor: pointer; border-radius: 50%; transition: background var(--t);
}
.visionneuse__fermer:hover, .visionneuse__nav:hover { background: var(--rouge-ac); border-color: var(--rouge-ac); }
.visionneuse__fermer { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.visionneuse__nav--prec { left: clamp(10px, 2vw, 26px); top: 50%; transform: translateY(-50%); }
.visionneuse__nav--suiv { right: clamp(10px, 2vw, 26px); top: 50%; transform: translateY(-50%); }
.visionneuse__compteur {
  position: absolute; bottom: clamp(14px, 3vw, 26px); left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .1em;
}
@media (max-width: 620px) {
  .visionneuse__nav { width: 42px; height: 42px; }
  .visionneuse img { max-height: calc(100vh - 210px); }
}

/* ============================================================
   27. Page 404
   ============================================================ */
.page-404 { text-align: center; padding: clamp(70px, 12vw, 140px) 0; }
.page-404 .code {
  font-family: var(--titre); font-size: clamp(5rem, 16vw, 10rem); font-weight: 700;
  color: var(--rouge); line-height: .9; margin-bottom: 10px;
}
.page-404 .groupe-btn { justify-content: center; }


@media (max-width: 480px) {
  .etiquette { letter-spacing: .1em; font-size: .7rem; }
  .etiquette::before { width: 18px; }
}

/* ============================================================
   29. Barre de branche métier (fonderie / plasturgie)
   ============================================================ */
.barre-branche { background: var(--encre); border-bottom: 3px solid var(--rouge); }
.barre-branche__interieur {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 26px; min-height: 60px;
  padding-block: 10px;
}
.barre-branche__nom {
  font-family: var(--titre); font-size: 1.2rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #fff;
  padding-right: 26px; border-right: 1px solid rgba(255,255,255,.2);
}
.barre-branche__liens { display: flex; flex-wrap: wrap; gap: 0 24px; }
.barre-branche a {
  color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color var(--t), border-color var(--t);
}
.barre-branche a:hover { color: #fff; }
.barre-branche a[aria-current="page"] { color: #fff; font-weight: 600; border-bottom-color: var(--rouge); }
.barre-branche__autre {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; color: rgba(255,255,255,.6) !important;
}
.barre-branche__autre:hover { color: #fff !important; }
@media (max-width: 760px) {
  .barre-branche__interieur { gap: 8px 20px; }
  .barre-branche__nom { width: 100%; border-right: 0; padding-right: 0; padding-bottom: 6px; }
  .barre-branche__autre { margin-left: 0; width: 100%; padding-top: 4px; }
}

/* ---- Les deux portes de l'accueil, version agrandie ---- */
.famille { min-height: 420px; }
.famille__contenu { min-height: 420px; }
.famille__liste {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; gap: 7px; font-size: .88rem; color: rgba(255,255,255,.76);
}
.famille__liste li { position: relative; padding-left: 18px; }
.famille__liste li::before {
  content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 1px; background: var(--rouge);
}

/* ---- Bloc « ce que nous fabriquons », scindé en deux colonnes métier ---- */
.deux-branches { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
@media (max-width: 900px) { .deux-branches { grid-template-columns: 1fr; } }
.branche-col { display: flex; flex-direction: column; border-top: 3px solid var(--rouge); padding-top: 26px; }
.branche-col__titre { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 6px; }
.branche-col__sous {
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gris); margin-bottom: 26px;
}
.branche-col .carte { border: 1px solid var(--ligne); margin-bottom: 16px; padding: 26px 28px; }
.branche-col .carte:hover { background: var(--fond-2); }
.branche-col .groupe-btn { margin-top: auto; padding-top: 10px; }

/* ---- Procédés et matières ---- */
.fiches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
@media (max-width: 860px) { .fiches { grid-template-columns: 1fr; } }
.fiche { background: #fff; padding: clamp(24px, 3vw, 34px); }
.fiche h3 { font-size: 1.1rem; margin-bottom: 14px; }
.fiche ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; color: var(--encre-70); }
.fiche li { position: relative; padding-left: 18px; }
.fiche li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--rouge); }

/* ============================================================
   30. Cadre à plusieurs photos, navigation par flèches
   ============================================================ */
.duo__cadre { position: relative; overflow: hidden; }
.duo__vue img { display: block; width: 100%; }
.duo__vue[hidden] { display: none; }
.duo__fleche {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer;
  background: rgba(9,13,18,.72); border: 1px solid rgba(255,255,255,.55); color: #fff;
  border-radius: 50%; box-shadow: 0 2px 12px rgba(9,13,18,.35);
  transition: background var(--t), border-color var(--t);
}
.duo__fleche:hover { background: var(--rouge-ac); border-color: var(--rouge-ac); }
.duo__fleche--prec { left: 12px; }
.duo__fleche--suiv { right: 12px; }
.duo__puces {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 8px;
}
.duo__puce {
  width: 9px; height: 9px; border-radius: 50%; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.45); border: 1px solid rgba(9,13,18,.35);
  transition: background var(--t);
}
.duo__puce.est-active { background: var(--rouge); border-color: var(--rouge); }
@media (max-width: 560px) {
  .duo__fleche { width: 36px; height: 36px; }
  .duo__fleche--prec { left: 8px; } .duo__fleche--suiv { right: 8px; }
}

/* Cadre à plusieurs photos intégré dans une vignette de galerie :
   la légende reste au-dessus, les flèches sont remontées pour ne pas la croiser. */
.vignette.duo .duo__cadre { position: static; }
.vignette.duo .duo__fleche { top: 44%; z-index: 3; }
.vignette.duo .duo__puces { display: none; }

/* Deux photos côte à côte dans un même cadre : hauteurs strictement égales. */
.paire__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paire__vue img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }

/* Héros portant une photo de personnes : le voile part du bas pour ne pas
   assombrir les visages, et le texte vient se poser dans la zone sombre. */
.banniere-image--equipe {
  min-height: clamp(340px, 44vw, 680px);
  display: flex; align-items: flex-end;
}
.banniere-image--equipe > .conteneur { width: 100%; }
.banniere-image--equipe .banniere-image__voile {
  background: linear-gradient(to top,
    rgba(9,13,18,.95) 0%, rgba(9,13,18,.88) 24%,
    rgba(9,13,18,.48) 48%, rgba(9,13,18,.22) 100%);
}
.banniere-image--equipe .banniere-image__contenu {
  padding: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 52px);
  max-width: 760px;
}
.banniere-image--equipe .fil, .banniere-image--equipe .fil a { color: rgba(255,255,255,.8); }
.banniere-image--equipe .banniere-image__contenu > * { text-shadow: 0 1px 14px rgba(9,13,18,.55); }

/* Sous 780 px le cadre devient plus haut que large : la photo serait rognée sur
   les côtés et on perdrait les personnes des extrémités. On la passe donc en
   bloc, entière, et le texte vient se placer dessous. */
@media (max-width: 780px) {
  .banniere-image--equipe { display: block; min-height: 0; }
  .banniere-image--equipe picture { display: block; }
  .banniere-image--equipe img { position: static; height: auto; }
  .banniere-image--equipe .banniere-image__voile { display: none; }
  .banniere-image--equipe .banniere-image__contenu { padding: 26px 0 32px; max-width: none; }
  .banniere-image--equipe .banniere-image__contenu > * { text-shadow: none; }
}
