/* =========================================================
   Benedict Heaven's — benedicth.cg
   Feuille de style principale
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Couleurs de marque (issues de la charte brochure) */
  --navy-900: #08204f;
  --navy-800: #0d2a63;
  --navy-700: #123478;
  --navy-600: #17408f;
  --blue-600: #1656c7;
  --blue-500: #1e6ae0;
  --blue-400: #4a8bef;
  --teal-500: #2fb3c4;
  --teal-400: #43c6cd;
  --lime-500: #a9cf3f;

  --ink: #0f1d33;
  --ink-soft: #3d4c63;
  --muted: #6b7a90;
  --line: #e2e8f2;
  --surface: #ffffff;
  --surface-alt: #f4f7fc;
  --surface-tint: #eef4fd;

  /* Dégradés */
  --grad-brand: linear-gradient(135deg, var(--blue-600) 0%, var(--teal-500) 100%);
  --grad-accent: linear-gradient(90deg, var(--teal-400) 0%, var(--lime-500) 100%);
  --grad-deep: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 130%);

  /* Typographie */
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Rythme */
  --wrap: 1180px;
  --gutter: 24px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 8px rgba(15, 29, 51, .06);
  --shadow: 0 12px 32px rgba(15, 29, 51, .09);
  --shadow-lg: 0 26px 60px rgba(8, 32, 79, .16);

  --header-h: 82px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy-800);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.32rem); }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--navy-800); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. Utilitaires de mise en page ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(58px, 8vw, 104px) 0; }
.section--tint { background: var(--surface-alt); }
.section--deep { background: var(--grad-deep); color: #cddcf4; position: relative; overflow: hidden; }
.section--deep h2, .section--deep h3 { color: #fff; }

.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--ink-soft); }
.muted { color: var(--muted); }

.grid { display: grid; gap: 28px; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad-accent);
}
.section--deep .eyebrow { color: var(--teal-400); }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head .rule {
  height: 3px; width: 84px; border-radius: 3px; background: var(--grad-accent); margin-top: 20px;
}
.section-head.center .rule { margin-inline: auto; }

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .96rem; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px rgba(22, 86, 199, .28); }
.btn--primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: translateY(-2px); }
.btn--outline { border-color: var(--blue-600); color: var(--blue-600); background: transparent; }
.btn--outline:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 5. En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong {
  font-size: .95rem; letter-spacing: .06em; color: var(--navy-800); text-transform: uppercase;
}
.brand-name span { font-size: .72rem; color: var(--muted); letter-spacing: .03em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--surface-tint); color: var(--blue-600); }
.nav a.is-active { color: var(--blue-600); font-weight: 600; }
.header-cta { margin-left: 10px; }

.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px;
  position: relative; transition: background .2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--navy-800); border-radius: 2px; transition: transform .25s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-deep); color: #d5e2f6;
  padding: clamp(64px, 9vw, 118px) 0 clamp(72px, 10vw, 128px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  opacity: .5;
  mask-image: linear-gradient(115deg, #000 0%, transparent 62%);
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 62%);
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(47, 179, 196, .38) 0%, transparent 66%);
  border-radius: 50%;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--blue-400), var(--teal-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.02rem, 2vw, 1.22rem); color: #b9cbe8; max-width: 44ch; margin-bottom: 32px; }
.hero .btn-row { margin-bottom: 34px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: .8rem; padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); color: #d5e2f6;
}

/* Composition hexagonale du hero */
.hex-cluster {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  max-width: 380px; margin-inline: auto;
}
.hex {
  aspect-ratio: 1 / 1.09;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--grad-brand);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.hex:nth-child(2) { background: linear-gradient(135deg, var(--teal-500), var(--lime-500)); }
.hex:nth-child(3) { background: linear-gradient(135deg, var(--navy-600), var(--blue-500)); }
.hex:nth-child(4) { background: linear-gradient(135deg, var(--blue-500), var(--teal-400)); }
.hex:nth-child(odd) { transform: translateY(22px); }
.hex svg { width: 32px; height: 32px; stroke: #fff; }
.hex strong { font-size: 1.45rem; line-height: 1; }
.hex span { font-size: .74rem; line-height: 1.35; opacity: .95; }

/* ---------- 7. Bandeau chiffres ---------- */
.stat-band { background: var(--surface-alt); border-block: 1px solid var(--line); padding: 40px 0; }
.stat { text-align: center; }
.stat strong {
  display: block; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--navy-800);
  line-height: 1.1;
}
.stat span { font-size: .88rem; color: var(--muted); }

/* ---------- 8. Cartes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcf0; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }

/* Icône ronde à anneau dégradé (reprise de la brochure) */
.icon-ring {
  width: 84px; height: 84px; border-radius: 50%; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--grad-brand);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.icon-ring svg { width: 34px; height: 34px; stroke: var(--blue-600); }
.card.center .icon-ring { margin-inline: auto; }

/* Carte service numérotée */
.service-card { position: relative; padding-top: 36px; }
.service-card .num {
  position: absolute; top: 22px; right: 26px;
  font-size: 2.6rem; font-weight: 700; color: var(--surface-tint); line-height: 1;
}
.service-card ul { padding-left: 0; list-style: none; margin-top: 18px; margin-bottom: 0; }
.service-card ul li {
  position: relative; padding-left: 26px; font-size: .93rem; color: var(--ink-soft);
}
.service-card ul li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 3px;
  border-radius: 3px; background: var(--grad-accent);
}

/* ---------- 9. Blocs hexagone + texte (vision / mission) ---------- */
.pillar { display: grid; grid-template-columns: 108px 1fr; gap: 26px; align-items: start; }
.pillar + .pillar { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
.section--deep .pillar + .pillar { border-top-color: rgba(255, 255, 255, .14); }
.pillar-hex {
  width: 108px; aspect-ratio: 1 / 1.09;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--grad-brand); display: grid; place-items: center;
}
.pillar-hex svg { width: 42px; height: 42px; stroke: #fff; }
.pillar h3 { margin-bottom: .4em; }
.section--deep .pillar p { color: #bccdea; }
.pillar p:last-child { margin-bottom: 0; }

/* ---------- 10. Encadré « à propos » ---------- */
.about-box {
  background: linear-gradient(160deg, var(--surface-tint), #f2fbf6);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 42px);
}
.about-box h3::after {
  content: ""; display: block; width: 64px; height: 3px; border-radius: 3px;
  background: var(--grad-accent); margin-top: 14px;
}

/* ---------- 11. Projets ---------- */
.project-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
}
.project-card .banner {
  padding: 26px 28px; color: #fff; position: relative; overflow: hidden;
  background: var(--grad-deep);
}
.project-card:nth-child(2) .banner { background: linear-gradient(150deg, #07394a, #12729a 60%, #2fb3c4 130%); }
.project-card:nth-child(3) .banner { background: linear-gradient(150deg, #113d2c, #1c7a4d 60%, #a9cf3f 140%); }
.project-card .banner::after {
  content: ""; position: absolute; right: -40px; bottom: -70px; width: 190px; height: 190px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(255, 255, 255, .09);
}
.project-card .banner h3 { color: #fff; margin-bottom: .3em; position: relative; }
.project-card .banner p { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .82); position: relative; }
.project-card .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.project-card .body p { font-size: .95rem; }

.chip {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff; margin-bottom: 14px; position: relative;
}
.kpi-list { list-style: none; padding: 0; margin: 0 0 22px; }
.kpi-list li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: .92rem; padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.kpi-list li:last-child { border-bottom: 0; }
.kpi-list b { color: var(--navy-800); white-space: nowrap; min-width: 92px; flex: 0 0 auto; }
/* Sur écran étroit, une étiquette longue doit pouvoir passer à la ligne
   plutôt que de déborder sur le texte voisin. */
@media (max-width: 560px) { .kpi-list b { white-space: normal; } }

/* ---------- 12. Démarche (timeline) ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  position: relative; padding: 0 0 40px 62px; counter-increment: step;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  color: #fff; background: var(--grad-brand);
}
.step::after {
  content: ""; position: absolute; left: 20px; top: 48px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--line), transparent);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: .35em; }
.step p { margin-bottom: 0; font-size: .95rem; }

/* ---------- 13. Bandeau d'appel à l'action ---------- */
.cta-band {
  background: var(--grad-deep); border-radius: var(--radius-lg); color: #cddcf4;
  padding: clamp(34px, 5vw, 56px); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(255, 255, 255, .06);
}
.cta-band h2 { margin-bottom: .3em; position: relative; color: #fff; }
.cta-band p { margin: 0; position: relative; max-width: 58ch; }
.cta-band .btn-row { position: relative; }

/* ---------- 14. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.info-item:last-child { margin-bottom: 0; }
.info-ico {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; background: var(--surface-tint);
}
.info-ico svg { width: 21px; height: 21px; stroke: var(--blue-600); }
.info-item strong { display: block; color: var(--navy-800); font-size: .95rem; }
.info-item span, .info-item a { font-size: .95rem; color: var(--ink-soft); }
.info-item a:hover { color: var(--blue-600); }

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(26px, 3.6vw, 40px); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: .87rem; font-weight: 600; color: var(--navy-800); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .18s ease, background .18s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
}
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 16px 0 0; }
.form-status {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; display: none;
}
.form-status.is-error { display: block; background: #fdecec; color: #9b1c1c; }

/* ---------- 15. FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 4px 24px; margin-bottom: 14px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  font-weight: 600; color: var(--navy-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue-600); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; font-size: .95rem; }

/* ---------- 16. Pied de page ---------- */
.site-footer { background: var(--navy-900); color: #9db3d6; padding: 64px 0 0; font-size: .93rem; }
.site-footer h4 {
  color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 52px; background: #fff; border-radius: 12px; padding: 5px; }
.footer-brand strong { color: #fff; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #9db3d6; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 52px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #7d93b8;
}

/* ---------- 17. Animation à l'apparition ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .hex-cluster { max-width: 330px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 26px;
    box-shadow: var(--shadow);
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 12px; border-radius: var(--radius-sm); }
  .header-cta { margin: 10px 0 0; width: 100%; }
  .burger { display: flex; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--4 { grid-template-columns: 1fr 1fr; gap: 18px; }
  .card { padding: 24px 18px; }
  h3, p, li { overflow-wrap: break-word; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; gap: 16px; }
  .pillar-hex { width: 84px; }
  .hex-cluster { max-width: 280px; gap: 12px; }
  .brand-name span { display: none; }
}

/* ---------- 19. Impression ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .burger { display: none; }
  body { color: #000; }
}

/* ---------- 20. Bandeau de titre des pages intérieures ---------- */
.hero--page { padding: clamp(52px, 7vw, 92px) 0 clamp(56px, 7vw, 96px); }
.hero--page .hero-inner { grid-template-columns: 1fr; max-width: 780px; }
.hero--page h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.hero--page .hero-sub { margin-bottom: 0; max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: #a9c0e2; margin-bottom: 14px; }
.breadcrumb a { color: #a9c0e2; }
.breadcrumb a:hover { color: #fff; }

/* ---------- 21. En-tête de programme ---------- */
.project-header { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 34px; }

@media (max-width: 700px) {
  .project-header { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- 22. Pages de texte (mentions légales, 404) ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 44px; font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; font-size: 1.02rem; color: var(--navy-700); }
.prose .todo {
  background: #fff8e6; border: 1px dashed #e0be5c; border-radius: var(--radius-sm);
  padding: 2px 8px; font-size: .9em; color: #8a6316;
}
.error-page { text-align: center; padding: clamp(70px, 12vw, 140px) 0; }
.error-page .code {
  font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 23. Cartes claires posées sur une section sombre ---------- */
.section--deep .card h3,
.section--deep .mini-card h3,
.section--deep .about-box h3 { color: var(--navy-800); }
.section--deep .card,
.section--deep .card p,
.section--deep .card li,
.section--deep .mini-card,
.section--deep .mini-card p,
.section--deep .about-box p { color: var(--ink-soft); }
.section--deep .mini-card dt { color: var(--muted); }
.section--deep .mini-card dd { color: var(--navy-800); }
.section--deep .card,
.section--deep .mini-card { border-color: rgba(255, 255, 255, .14); }

/* ---------- 24. Réalisation mise en avant ---------- */
.showcase {
  display: grid; grid-template-columns: .82fr 1.18fr;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}
.showcase + .showcase { margin-top: 34px; }
.showcase--reverse { grid-template-columns: 1.18fr .82fr; }
.showcase--reverse .showcase-visual { order: 2; }

.showcase-visual {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(30px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  background: linear-gradient(150deg, #0b4227 0%, #1c8149 55%, #a9cf3f 145%);
}
.showcase--tech .showcase-visual { background: linear-gradient(150deg, #0a2450 0%, #1656c7 60%, #43c6cd 150%); }
.showcase-visual::after {
  content: ""; position: absolute; right: -70px; bottom: -90px; width: 260px; height: 260px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(255, 255, 255, .1);
}
.showcase-logo {
  width: 92px; height: 92px; border-radius: 24px; object-fit: cover;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25); position: relative; background: #fff;
}
.showcase-visual h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; position: relative; }
.showcase-visual p { margin: 0; color: rgba(255, 255, 255, .88); font-size: .95rem; position: relative; }
.showcase-body { padding: clamp(28px, 4vw, 46px); }
.showcase-body p:last-of-type { margin-bottom: 0; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0 28px; }
.metric strong { display: block; font-size: clamp(1.15rem, 2vw, 1.55rem); color: var(--navy-800); line-height: 1.15; }
.metric span { font-size: .82rem; color: var(--muted); }

.link-ext { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.link-ext svg { width: 16px; height: 16px; }

/* ---------- 25. Étiquettes de statut ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--live     { background: #e6f6ec; color: #1c7a45; }
.status--progress { background: #e7f0fd; color: #1656c7; }
.status--talks    { background: #fdf3e2; color: #96650f; }
.showcase-visual .status { background: rgba(255, 255, 255, .18); color: #fff; align-self: flex-start; }

/* Sur écran étroit, une étiquette de statut longue (« Recherche de financement »)
   doit se replier à l'intérieur de la carte au lieu d'en déborder. */
@media (max-width: 560px) {
  .status { white-space: normal; }
  .status::before { flex: 0 0 auto; }
  .mini-card .top { flex-wrap: wrap; }
}

/* Les liens d'action en pied de carte sont la marche suivante du parcours.
   Au doigt, un lien de 22 px de haut se rate : on l'épaissit sur mobile sans
   rien changer à l'apparence sur grand écran. */
@media (max-width: 700px) {
  .card p[style*="margin-top:auto"] a,
  .showcase-body p[style*="margin-top:auto"] a {
    display: inline-block; padding: 9px 0;
  }
}

/* ---------- 26. Cartes compactes (partenariats) ---------- */
.mini-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.mini-card .who { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); }
.mini-card h3 { font-size: 1.06rem; margin-bottom: .45em; }
.mini-card p { font-size: .92rem; margin: 0; }
.mini-card dl { margin: 16px 0 0; font-size: .86rem; }
.mini-card dl div { display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); }
.mini-card dt { color: var(--muted); min-width: 92px; }
.mini-card dd { margin: 0; color: var(--navy-800); font-weight: 600; }

/* ---------- 27. Encart technologie ---------- */
.callout {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  background: var(--surface-tint); border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600); border-radius: var(--radius);
  padding: 26px 28px;
}
.callout .ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--grad-brand); }
.callout .ico svg { width: 28px; height: 28px; stroke: #fff; }
.callout h3 { margin-bottom: .4em; }
.callout p:last-child { margin-bottom: 0; }
.section--deep .callout { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.section--deep .callout h3 { color: #fff; }
.section--deep .callout p { color: #bccdea; }

/* ---------- 28. Sommaire d'ancres ---------- */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.anchor-nav a {
  font-size: .86rem; font-weight: 500; padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25); color: #d5e2f6; transition: background .18s ease;
}
.anchor-nav a:hover { background: rgba(255, 255, 255, .13); color: #fff; }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase--reverse .showcase-visual { order: 0; }
  .metrics { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .callout { grid-template-columns: 1fr; }
}

/* ---------- 29. Bandeau des partenaires technologiques ---------- */
.partner-band { background: var(--surface-alt); border-block: 1px solid var(--line); }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partner {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: 32px 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfdcf0; }
.partner-logo { height: 64px; display: grid; place-items: center; }
.partner-logo img { max-height: 64px; max-width: 200px; width: auto; object-fit: contain; }
.partner .role {
  font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-600);
}
.partner .desc { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.partner .site { font-size: .84rem; color: var(--muted); }
.partner:hover .site { color: var(--blue-600); }
.partner-note {
  text-align: center; font-size: .88rem; color: var(--muted);
  max-width: 62ch; margin: 30px auto 0;
}

@media (max-width: 860px) { .partner-grid { grid-template-columns: 1fr; } }

/* ---------- 30. Tableaux de données ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
.data-table caption {
  caption-side: bottom; text-align: left; font-size: .84rem; color: var(--muted);
  padding-top: 14px; line-height: 1.6;
}
.data-table th, .data-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.data-table thead th {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; border-bottom-width: 2px;
}
.data-table tbody tr:hover { background: var(--surface-alt); }
.data-table td:first-child { font-weight: 600; color: var(--navy-800); white-space: nowrap; }

/* ---------- 31. Fiches « pour qui / livrables / durée » ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.spec {
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 24px;
}
.section--tint .spec { background: var(--surface); }
.spec h4 {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-600); margin: 0 0 12px;
}
.spec p, .spec ul { margin: 0; font-size: .9rem; }
.spec ul { list-style: none; padding: 0; }
.spec li { padding-left: 18px; position: relative; margin-bottom: 7px; }
.spec li:last-child { margin-bottom: 0; }
.spec li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 2px; border-radius: 2px; background: var(--grad-accent);
}

/* ---------- 32. Frise chronologique ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--blue-500), var(--teal-400), transparent);
}
.tl-item { position: relative; padding-bottom: 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--blue-500);
}
.tl-date {
  display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 5px;
}
.tl-item h3 { font-size: 1.06rem; margin-bottom: .35em; }
.tl-item p { font-size: .93rem; margin: 0; }

/* ---------- 33. Liste de points forts ---------- */
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.feature .ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface-tint);
}
.feature .ico svg { width: 24px; height: 24px; stroke: var(--blue-600); }
.section--deep .feature .ico { background: rgba(255, 255, 255, .1); }
.section--deep .feature .ico svg { stroke: var(--teal-400); }
.feature h3 { font-size: 1.04rem; margin-bottom: .3em; }
.feature p { font-size: .93rem; margin: 0; }
.section--deep .feature p { color: #bccdea; }

/* ---------- 34. Liste de zones ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.zone {
  font-size: .87rem; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
}
.zone strong { color: var(--navy-800); font-weight: 600; }

/* ---------- 35. Formulaire : états et compléments ---------- */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #d05353; background: #fdf6f6; }
.field-error { display: none; font-size: .82rem; color: #9b1c1c; margin-top: 6px; }
.field.is-invalid .field-error { display: block; }

/* Suggestion de correction sous le champ courriel. Une faute de frappe sur le
   domaine rend le contact injoignable sans que personne s'en aperçoive : on
   propose la correction, sans jamais l'imposer. */
.field-suggest { font-size: .82rem; color: var(--navy-700); margin-top: 6px; }
.field-suggest button {
  font: inherit; font-weight: 600; color: var(--blue-600);
  background: none; border: 0; padding: 2px 3px; margin: 0;
  border-radius: 4px; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.field-suggest button:hover { background: #eaf1fd; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 18px; accent-color: var(--blue-600); }
.check label { font-size: .88rem; color: var(--ink-soft); line-height: 1.55; }
.check.is-invalid label { color: #9b1c1c; }

.char-count { font-size: .78rem; color: var(--muted); text-align: right; margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; }
.form-status.is-error   { display: block; background: #fdecec; color: #9b1c1c; }
.form-status.is-success { display: block; background: #e9f7ef; color: #1c7a45; }
.form-status.is-info    { display: block; background: var(--surface-tint); color: var(--navy-700); }

@media (max-width: 860px) { .spec-grid { grid-template-columns: 1fr; } }

/* ---------- 36. Contenu réservé (détails sur demande) ---------- */
.gate {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-tint), #f2fbf6);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
}
.gate::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(22, 86, 199, .05);
}
.gate > * { position: relative; }
.gate-ico {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--grad-brand); margin-bottom: 20px;
}
.gate-ico svg { width: 26px; height: 26px; stroke: #fff; }
.gate h3 { margin-bottom: .5em; }
.gate p { font-size: .95rem; }
.gate ul { list-style: none; padding: 0; margin: 0 0 24px; }
.gate li { position: relative; padding-left: 26px; font-size: .93rem; margin-bottom: 9px; }
.gate li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 3px;
  border-radius: 3px; background: var(--grad-accent);
}
.gate .btn { width: 100%; }

.gate-note {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: .88rem; color: var(--muted); margin-top: 18px;
}
.gate-note svg { width: 17px; height: 17px; stroke: var(--muted); flex: 0 0 17px; margin-top: 3px; }

.mini-card .on-request {
  margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: .88rem; font-weight: 600;
}
.section--deep .mini-card .on-request { border-top-color: var(--line); }

/* ---------- 37. Plan du site ---------- */
.sitemap { list-style: none; padding: 0; margin: 0; }
.sitemap > li { border-top: 1px solid var(--line); padding: 26px 0; }
.sitemap > li:first-child { border-top: 0; padding-top: 0; }
.sitemap > li:last-child { padding-bottom: 0; }

.sitemap-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sitemap-head a { font-size: 1.12rem; font-weight: 600; }
.sitemap-head .file {
  font-size: .78rem; color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sitemap-desc { font-size: .94rem; margin: 8px 0 0; max-width: 68ch; }

.sitemap-anchors { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.sitemap-anchors li { margin: 0; }
.sitemap-anchors a {
  display: inline-block; font-size: .84rem; padding: 6px 14px; border-radius: 999px;
  background: var(--surface-alt); border: 1px solid var(--line); color: var(--ink-soft);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.sitemap-anchors a:hover { background: var(--surface-tint); color: var(--blue-600); border-color: #cfdcf0; }

.sitemap-files {
  list-style: none; padding: 0; margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem;
}
.sitemap-files li { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 14px; flex-wrap: wrap; }
.sitemap-files li:last-child { border-bottom: 0; }
.sitemap-files b { color: var(--navy-800); font-weight: 600; min-width: 220px; }
.sitemap-files span { font-family: var(--font); color: var(--muted); }

/* ---------- 38. Contenu réservé à l'administration du site ---------- */
/* Masqué par défaut. Le script ajoute la classe « is-admin » au body
   lorsque l'adresse comporte ?admin=1 (mémorisé ensuite dans le navigateur).
   C'est un confort de navigation, pas un contrôle d'accès. */
.admin-only { display: none; }
body.is-admin .admin-only { display: inline; }

/* ---------- 39. Bandeau partenaires en ligne (accueil) ---------- */
.partner--row {
  flex-direction: row; align-items: center; text-align: left;
  gap: 22px; padding: 20px 22px; flex-wrap: wrap;
}
.partner--row .partner-logo { height: 44px; flex: 0 0 120px; }
.partner--row .partner-logo img { max-height: 44px; max-width: 120px; }
.partner--row .role { letter-spacing: .06em; }

@media (max-width: 420px) {
  .partner--row { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .partner--row .partner-logo { flex: 0 0 auto; }
}

/* ---------- 40. Sélecteur de langue ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem;
  cursor: pointer; transition: border-color .18s ease, background .18s ease;
}
.lang-btn:hover { border-color: #cfdcf0; background: var(--surface-alt); }
.lang-btn .flag { width: 22px; height: 15px; border-radius: 2px; flex: 0 0 22px; display: block; }
.lang-btn .chev { width: 14px; height: 14px; stroke: var(--muted); transition: transform .2s ease; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.lang-menu li { margin: 0; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); font: inherit; font-size: .92rem;
  text-align: left; cursor: pointer;
}
.lang-menu button:hover { background: var(--surface-tint); color: var(--blue-600); }
.lang-menu button[aria-current="true"] { color: var(--blue-600); font-weight: 600; }
.lang-menu .flag { width: 22px; height: 15px; border-radius: 2px; flex: 0 0 22px; }

@media (max-width: 860px) {
  .lang { width: 100%; margin-top: 8px; }
  .lang-btn { width: 100%; justify-content: space-between; padding: 13px 14px; }
  .lang-btn .label { flex: 1; text-align: left; }
  .lang-menu { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; margin-top: 6px; display: none; width: 100%; }
  .lang-menu.is-open { display: block; }
}

/* Masque la page le temps d'appliquer une traduction, pour éviter le clignotement */
html.i18n-pending body { visibility: hidden; }

/* ---------- 41. Équipe ---------- */
.team { margin-top: 44px; }
.team h3 { margin-bottom: .35em; }
.team > p { font-size: .93rem; margin-bottom: 22px; }

.team-list { list-style: none; padding: 0; margin: 0; }
.team-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; margin: 0; border-top: 1px solid var(--line);
}
.team-list li:first-child { border-top: 0; padding-top: 0; }

.member-photo {
  position: relative; flex: 0 0 58px; width: 58px; height: 58px;
  border-radius: 50%; overflow: hidden;
  background: var(--grad-brand); display: grid; place-items: center;
}
.member-photo::after {
  content: attr(data-initials);
  color: #fff; font-weight: 600; font-size: .92rem; letter-spacing: .04em;
}
/* Dès qu'une photo est présente, elle recouvre les initiales. */
/* Le cadre est carré. Une photo en format portrait déborde donc en hauteur,
   et un recadrage centré couperait le haut du crâne : on remonte le point de
   cadrage vers le visage, qui se trouve presque toujours dans le tiers haut.
   Sur une photo déjà carrée, ce réglage n'a aucun effet — rien ne déborde. */
.member-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 25%;
}
.member-photo:has(img)::after { content: none; }

.member-id strong { display: block; color: var(--navy-800); font-size: 1rem; line-height: 1.3; }
.member-id span { font-size: .89rem; color: var(--muted); }

/* ---------- 42. Réseaux sociaux ---------- */
.social { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 22px 0 0; }
.social li { margin: 0; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .28); color: #9db3d6;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.social a:hover {
  background: rgba(255, 255, 255, .12); color: #fff;
  border-color: rgba(255, 255, 255, .55); transform: translateY(-2px);
}
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* Rail latéral, réservé aux écrans assez larges pour l'accueillir
   sans empiéter sur le contenu (conteneur de 1180 px). */
.social-rail {
  position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 90;
  display: none; flex-direction: column; gap: 12px; list-style: none; padding: 0; margin: 0;
}
@media (min-width: 1360px) { .social-rail { display: flex; } }
.social-rail a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(22, 86, 199, .35); color: var(--blue-600);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.social-rail a:hover {
  background: var(--blue-600); color: #fff; border-color: var(--blue-600); transform: translateX(3px);
}
.social-rail svg { width: 18px; height: 18px; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .social a:hover, .social-rail a:hover { transform: none; }
}
