/* ==========================================================================
   SSF Expertise — feuille de style principale
   Palette : vert forêt, sauge, blanc cassé, anthracite, touche terre cuite
   ========================================================================== */

:root {
  --forest: #1f3d2b;
  --forest-deep: #15291d;
  --sage: #9db4a0;
  --sage-light: #dfe7df;
  --sage-pale: #eef2ec;
  --offwhite: #f7f5f0;
  --white: #ffffff;
  --anthracite: #2a2c29;
  --ink: #3b3e3a;
  --muted: #6b6f68;
  --line: #e2e0d8;
  --terracotta: #b8674f;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --radius: 6px;
  --container: 1120px;
  --shadow: 0 10px 30px rgba(31, 61, 43, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--anthracite);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
}

.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--sage-pale); }
.btn-light { background: var(--white); color: var(--forest); }
.btn-light:hover { background: var(--sage-pale); }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--anthracite);
  font-weight: 600;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--forest);
  display: grid; place-items: center;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--forest); }
.nav a.active { color: var(--forest); border-bottom-color: var(--forest); }
.nav .btn { padding: 0.6rem 1.1rem; font-size: 0.9rem; border-bottom: 1.5px solid transparent; }
.nav a.btn-primary { color: var(--white); }
.nav a.btn-primary:hover { color: var(--white); border-bottom-color: transparent; }

.lang-switch {
  display: flex;
  gap: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
}
.lang-switch span, .lang-switch a {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.lang-switch .current { background: var(--forest); color: var(--white); }
.lang-switch .soon { color: var(--muted); cursor: default; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--offwhite);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.2rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .nav .lang-switch { margin-top: 1rem; align-self: flex-start; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-sage { background: var(--sage-pale); }
.section-white { background: var(--white); }
.section-forest { background: var(--forest); color: rgba(255,255,255,0.88); }
.section-forest h1, .section-forest h2, .section-forest h3 { color: var(--white); }
.section-forest .eyebrow { color: var(--sage); }

.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 6rem;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(157, 180, 160, 0.35), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(184, 103, 79, 0.08), transparent 60%),
    var(--offwhite);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.24 0 0 0 0 0.17 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 { max-width: 14ch; }
.hero .lead { font-size: 1.2rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.hero-note span::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--forest) 0%, #2f5a3f 55%, var(--sage) 140%);
  box-shadow: var(--shadow);
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.hero-visual .visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-visual .visual-caption {
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 1rem;
}
.hero-visual .visual-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

@media (max-width: 860px) {
  .hero { padding: 4rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   Grilles de cartes
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--sage); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--sage-pale);
  color: var(--forest);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 20px; height: 20px; }

.card-link { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: 0.92rem; }
.card-link::after { content: " →"; }

/* Liste des enjeux (accueil) */
.issues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.issue {
  background: var(--white);
  padding: 1.6rem 1.7rem;
}
.issue strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--anthracite);
  margin-bottom: 0.35rem;
}
.issue span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .issues { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .issues { grid-template-columns: 1fr; } }

/* Bloc à deux colonnes texte */
.split {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.7rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-pale);
}

/* Chiffres clés */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.fact span { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Pills secteurs */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--sage);
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--forest);
}

/* Bloc conversion */
.cta-block {
  border-radius: 12px;
  padding: 4rem 3rem;
  text-align: center;
  background:
    radial-gradient(70% 100% at 100% 100%, rgba(157,180,160,0.35), transparent 60%),
    var(--forest);
  color: rgba(255,255,255,0.88);
}
.cta-block h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta-block p { max-width: 58ch; margin-inline: auto; margin-bottom: 2rem; }
@media (max-width: 620px) { .cta-block { padding: 3rem 1.5rem; } }

/* --------------------------------------------------------------------------
   Page en-tête (pages intérieures)
   -------------------------------------------------------------------------- */
.page-head {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 100% at 100% 0%, rgba(157, 180, 160, 0.25), transparent 60%),
    var(--offwhite);
}
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-bottom: 0; }

/* Expertise : liste détaillée */
.service {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}
.service:last-child { border-bottom: none; }
.service-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--sage);
  line-height: 1;
  padding-top: 0.3rem;
}
.service h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.service p { margin: 0; color: var(--muted); }
@media (max-width: 620px) { .service { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Formats d'intervention */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.format {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.format strong { display: block; color: var(--anthracite); margin-bottom: 0.3rem; }
@media (max-width: 960px) { .formats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .formats { grid-template-columns: 1fr; } }

/* À propos */
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--sage-light), var(--sage) 120%);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--forest);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}
.portrait svg { width: 64px; height: 64px; margin-bottom: 1rem; opacity: 0.6; }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.value {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; margin-bottom: 0.3rem; }
.value span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 960px) { .values { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .values { grid-template-columns: 1fr 1fr; } }

/* Secteurs */
.sector {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.sector:last-child { border-bottom: none; }
.sector h3 { font-size: 1.5rem; }
.sector .tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sector .tags span {
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  background: var(--sage-pale);
  border-radius: 999px;
  color: var(--forest);
}
@media (max-width: 760px) { .sector { grid-template-columns: 1fr; gap: 1rem; } }

/* --------------------------------------------------------------------------
   Formulaire de contact
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; } }

.contact-aside .card { margin-bottom: 1.2rem; }
.contact-aside .card p { font-size: 0.95rem; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.5rem;
}
@media (max-width: 620px) { .form { padding: 1.5rem; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--anthracite);
}
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--offwhite);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31,61,43,0.12);
  background: var(--white);
}
.field textarea { min-height: 150px; resize: vertical; }
.field-check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.field-check input { margin-top: 0.3rem; width: auto; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.form-footer small { color: var(--muted); font-size: 0.82rem; }

.form-success {
  display: none;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--sage-pale);
  border: 1px solid var(--sage);
}
.form-success.show { display: block; }
.form-success h3 { margin-bottom: 0.4rem; }
.form-success p { margin: 0; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--anthracite);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 0.6rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Pages légales */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal .todo {
  background: #fdf6ee;
  border-left: 3px solid var(--terracotta);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1rem 0;
}

/* Bandeau démo */
.demo-banner {
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.4rem 1rem;
  letter-spacing: 0.02em;
}

/* Accessibilité */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* Cartes chiffres clés (accueil) */
.facts-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  min-width: 0;
}
.facts-cards .fact strong { font-size: 1.9rem; }
@media (max-width: 420px) { .facts-cards { grid-template-columns: 1fr; } }
.split > * { min-width: 0; }
.hero-grid > * { min-width: 0; }
.grid > * { min-width: 0; }

/* --------------------------------------------------------------------------
   Ajouts v2 (modifications du 28/09)
   -------------------------------------------------------------------------- */
.tagline {
  display: block;
  font-weight: 600;
  color: var(--anthracite);
  margin-bottom: 0.4rem;
}
.service .tagline { font-size: 1.02rem; }
.format .tagline { font-size: 0.95rem; }
.format span { color: var(--muted); }
.service p + p { margin-top: 0.6rem; }

.facts-cards.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 620px) { .facts-cards.facts-3 { grid-template-columns: 1fr; } }
.facts-cards .fact.fact-text strong { font-size: 1.35rem; line-height: 1.25; margin-bottom: 0.5rem; }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.timeline .card { position: relative; padding-top: 2.2rem; }
.timeline .card::before {
  content: "";
  position: absolute; top: 1.4rem; left: 1.8rem;
  width: 28px; height: 3px;
  background: var(--sage);
}
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; } }

.callout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 3rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}
.callout h2 { font-size: 1.6rem; margin: 0; }
.callout p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 1rem; } }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; }
a.card h3 { color: var(--anthracite); }

/* --------------------------------------------------------------------------
   Ajouts v3 (30/09) : photo, formulaire simplifié
   -------------------------------------------------------------------------- */
.portrait.has-photo { padding: 0; overflow: hidden; display: block; background: var(--sage-light); }
.portrait.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }


.form-note { font-size: 0.82rem; color: var(--muted); margin: 1.2rem 0 0; }
.form h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }

/* --------------------------------------------------------------------------
   Ajouts v4 (30/09) : images, portrait contact, états du formulaire
   -------------------------------------------------------------------------- */
.hero-visual.has-photo { background: #0d130f; }
.hero-visual.has-photo::before { display: none; }
.hero-visual.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-visual.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,19,15,0) 45%, rgba(13,19,15,0.88) 100%);
}
.hero-visual.has-photo .visual-caption { z-index: 1; }

.page-head.has-media .container {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 3.5rem;
  align-items: center;
}
.page-head.has-media .container > * { min-width: 0; }
.page-head__media {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .page-head.has-media .container { grid-template-columns: 1fr; gap: 2rem; }
  .page-head__media { aspect-ratio: 16 / 9; }
}

.contact-person { display: flex; align-items: center; gap: 1.1rem; }
.contact-person img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--sage-light); }
.contact-person strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--anthracite); }
.contact-person span { font-size: 0.9rem; color: var(--muted); line-height: 1.45; display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius);
  background: #fdf1ee; border: 1px solid var(--terracotta); color: var(--ink); font-size: 0.92rem;
}
.form-error[hidden] { display: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.error-page { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.error-page p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Ajouts v5 (30/09) : visuel de thème (réseau de mycélium) en fond d'en-tête
   -------------------------------------------------------------------------- */
.hero.has-theme,
.page-head.has-theme {
  background:
    linear-gradient(90deg, rgba(21, 41, 29, 0.94) 0%, rgba(21, 41, 29, 0.82) 42%, rgba(21, 41, 29, 0.35) 100%),
    url("../img/header-filaments.jpg") center / cover no-repeat,
    var(--forest-deep);
  color: rgba(255, 255, 255, 0.88);
  border-bottom: none;
}
.hero.has-theme::after { display: none; }
.hero.has-theme { padding: 7.5rem 0 7rem; }
.hero.has-theme .hero-text { max-width: 720px; }
.hero.has-theme h1 { max-width: 17ch; }
.hero.has-theme h1,
.page-head.has-theme h1 { color: var(--white); }
.hero.has-theme .lead,
.page-head.has-theme .lead { color: rgba(255, 255, 255, 0.86); }
.hero.has-theme .eyebrow,
.page-head.has-theme .eyebrow { color: #c4d6c6; }
.hero.has-theme .hero-note { color: rgba(255, 255, 255, 0.78); }
.hero.has-theme .hero-note span::before { background: #c4d6c6; }
@media (max-width: 860px) {
  .hero.has-theme { padding: 4.5rem 0; }
  .hero.has-theme,
  .page-head.has-theme {
    background:
      linear-gradient(180deg, rgba(21, 41, 29, 0.9), rgba(21, 41, 29, 0.8)),
      url("../img/header-filaments.jpg") center / cover no-repeat,
      var(--forest-deep);
  }
}

/* --------------------------------------------------------------------------
   Ajouts v6 (30/09) : sélecteur de langue actif (FR / EN)
   -------------------------------------------------------------------------- */
.nav .lang-switch a {
  padding: 0.2rem 0.6rem;
  border-bottom: none;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.nav .lang-switch a:hover { color: var(--forest); background: var(--sage-pale); }
.nav .lang-switch a.active { border-bottom: none; }
