/* ============================================================
   DRL CONSEIL — style.css  v2
   System fonts only. No external dependencies.
   ============================================================ */

/* 1. Custom properties
   ---------------------------------------------------------- */
:root {
  --bg:          #f7f4ef;
  --surface:     #ffffff;
  --text:        #1f2933;
  --muted:       #6b7280;
  --muted-light: #9ca3af;
  --border:      #e5e0d8;
  --border-dark: #cdc8bf;
  --accent:      #17324d;
  --accent-dark: #0f2235;
  /* Warm secondary — used sparingly: section labels, méthode numbers,
     proof-domain top accent, card hover borders. Never on CTAs.       */
  --accent-warm:      #a87b56;
  --accent-warm-dark: #8c6543;

  /* System font stack — no external dependency */
  --font: system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius:    4px;
  --radius-lg: 6px;
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07);

  --max-width: 1100px;
  --nav-h:     60px;

  --space-2:  .5rem;
  --space-3:  .75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 4.25rem;
  --space-24: 5.25rem;
}

/* 2. Reset
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: underline; }

/* 3. Typography
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  line-height: 1.22;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.015em;
}
h1 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1rem;   font-weight: 600; }
h4 { font-size: .9rem;  font-weight: 600; }
p  { line-height: 1.7; }

/* 4. Layout
   ---------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section      { padding: var(--space-20) 0; }
.section-alt  { background: var(--surface); }

.section-header           { max-width: 720px; margin-bottom: var(--space-12); }
.section-header h2        { margin-bottom: var(--space-4); }
.section-header .section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

/* 5. Skip link
   ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* 6. Navigation
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247,244,239,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity .15s;
}
.nav-brand img {
  height: 28px;
  width: auto;
  display: block;
}
.nav-brand:hover { opacity: .82; text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
}
.nav-links a {
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  padding: .35rem .6rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); background: rgba(23,50,77,.06); text-decoration: none; }
.nav-links .nav-cta,
.nav-links .nav-cta.active {
  background: var(--accent) !important;
  color: #fff !important;
  padding: .38rem .85rem;
  border-radius: var(--radius);
}
.nav-links .nav-cta:hover,
.nav-links .nav-cta.active:hover { background: var(--accent-dark) !important; text-decoration: none; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .2s ease, opacity .15s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Right-side cluster — groups nav links, language switch and hamburger */
.nav-cluster {
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* Language switch — FR / EN, always visible (sits outside the collapsible menu) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  margin-left: .7rem;
  padding-left: .85rem;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}
.lang-opt {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--muted);
  padding: .3rem .42rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
a.lang-opt:hover { color: var(--accent); background: rgba(23,50,77,.06); text-decoration: none; }
.lang-opt.is-active { color: var(--accent); cursor: default; }
.lang-flag {
  height: 11px;
  width: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.07);
}

/* 7. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--accent);    color: #fff;          border-color: var(--accent); }
.btn-primary:hover  { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.btn-contact-primary {
  display: inline-flex;
  align-items: center;
  padding: .75rem 1.5rem;
  background: #fff;
  color: var(--accent);
  border: 1px solid #fff;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-contact-primary:hover { background: rgba(255,255,255,.88); color: var(--accent-dark); text-decoration: none; }
.btn-contact-secondary {
  display: inline-flex;
  align-items: center;
  padding: .75rem 1.5rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn-contact-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.75); text-decoration: none; }

/* 8. Hero
   ---------------------------------------------------------- */
.hero {
  padding: calc(var(--space-24) * 1.1) 0 var(--space-20);
  border-bottom: 1px solid var(--border);
}

/* Two-column layout on desktop */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-16);
  align-items: start;
}

.hero-content { min-width: 0; }

.hero h1 {
  margin-bottom: var(--space-6);
  color: var(--accent-dark);
  text-wrap: balance; /* modern browsers — balances multi-line H1 visually */
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: var(--space-8);
}

/* proof row — 4 items, horizontal, subtle dividers */
.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  width: fit-content;
  max-width: 100%;
}

.proof-item {
  display: flex;
  flex-direction: column;
  padding: .75rem 1.25rem;
  border-right: 1px solid var(--border);
  min-width: 140px;
}
.proof-item:last-child { border-right: none; }

.proof-item strong {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
  letter-spacing: -.01em;
}
.proof-item span {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.3;
  margin-top: .15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Editorial panel — Situations couvertes */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* restrained top accent — 2 px, not 3 px */
  border-top: 2px solid var(--accent);
  margin-top: .5rem; /* optical alignment with H1 cap-height */
  flex-shrink: 0;
}

.hero-panel-header {
  padding: var(--space-3) 1.25rem;
  border-bottom: 1px solid var(--border);
}

.hero-panel-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.hero-panel-list {
  display: flex;
  flex-direction: column;
}

.hero-panel-list li {
  font-size: .85rem;
  font-weight: 400;        /* normal weight — H1 stays dominant */
  color: var(--muted);     /* muted, not full --text */
  padding: .55rem 1.25rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.hero-panel-list li:last-child { border-bottom: none; }
.hero-panel-list li::before {
  content: "—";
  color: var(--border-dark);
  margin-right: .5rem;
  font-size: .72rem;
}

/* 8b. Editorial statement bar — full-width navy interlude
   Between "Quand faire appel ?" and "Missions CFO".
   No icons, no quote marks, no border-left — typography only.
   ---------------------------------------------------------- */
.statement-bar {
  background: var(--accent);
  padding: var(--space-16) 0;
}
.statement-text {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 300;
  color: rgba(255, 255, 255, .72);
  line-height: 1.5;
  letter-spacing: -.01em;
  max-width: 780px;
}
.statement-emphasis {
  color: #fff;
  font-weight: 400;
}

/* 9. Section — Quand faire appel ?
   2-column editorial list, compact, low visual weight
   ---------------------------------------------------------- */
.situations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--space-16);
  row-gap: 0;
}

.situation {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
}
.situations-grid .situation:nth-child(1),
.situations-grid .situation:nth-child(2) {
  border-top: 1px solid var(--border);
}

.situation h3 {
  font-size: .95rem;
  color: var(--text);
  margin-bottom: .35rem;
  font-weight: 600;
}
.situation p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* 10. Section — Missions CFO
   Single bordered container, 5 vertically-divided columns
   ---------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.pillar {
  padding: var(--space-6) var(--space-6) var(--space-8);
  border-right: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--surface);
}
.pillar:last-child { border-right: none; }

/* Line-style picto, monochrome warm — sits above the pillar title */
.pillar-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-warm);
  display: block;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}

.pillar h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-3);
  letter-spacing: -.01em;
}
.pillar p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* 11. Section — Cas d'intervention
   Editorial list — picto / name / output format. Pictos in their
   own narrow column. Mobile collapses to icon+name on first row,
   desc full-width below.
   ---------------------------------------------------------- */
.cas-list {
  display: flex;
  flex-direction: column;
}

.cas-item {
  display: grid;
  grid-template-columns: 28px 232px 1fr;
  column-gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.cas-list .cas-item:first-child { border-top: 1px solid var(--border); }

/* Picto sits in column 1; nudged down 2 px to align with text baseline */
.cas-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-warm);
  margin-top: 3px;
  flex-shrink: 0;
}

.cas-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.cas-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* 12. Section — Méthode
   Proprietary operating method — large warm numerals, staircase layout.
   Odd steps pinned left, even steps pinned right (subtle zigzag,
   ~25 % horizontal offset). Visual signature of an intentional process,
   not a generic list.
   ---------------------------------------------------------- */
.steps {
  max-width: 920px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-2);
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  max-width: 680px; /* leaves play space inside .steps for the offset */
  width: 100%;
}
.step:last-child { border-bottom: none; }

/* Staircase: alternate horizontal pinning */
.step:nth-child(odd)  { margin-left: 0;    margin-right: auto; }
.step:nth-child(even) { margin-left: auto; margin-right: 0;    }

/* Large typographic numeral — no circle, no icon */
.step-number {
  flex-shrink: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-warm);
  line-height: 1;
  width: 2rem;
  margin-top: .05em;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.step-content h3 { font-size: .95rem; margin-bottom: var(--space-2); }
.step-content p  { font-size: .875rem; color: var(--muted); }

/* 12b. Section — Quelques preuves concrètes
   Compact metrics row + 4 representative cards.
   Same visual language as the rest of the site (no giant numbers,
   no icons, no startup-KPI feel). Cream section, white metrics
   container (echoes .hero-proof-row), bordered cream cards.
   ---------------------------------------------------------- */
#preuves {
  /* Cream-on-cream with #references — add a border to break the rhythm */
  border-bottom: 1px solid var(--border);
}
#preuves .section-header { margin-bottom: var(--space-10); }

/* Metrics row — 6 items, sober, single line at desktop */
.proof-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: var(--space-10);
}

.proof-metric {
  padding: var(--space-4) var(--space-4) var(--space-4);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.proof-metric:nth-child(6) { border-right: none; }

.proof-metric strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.proof-metric span {
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.55;
}

/* 4 representative proof cards — bordered cream blocks on cream section */
.proof-domains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.proof-domain {
  padding: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent-warm);
  border-radius: var(--radius-lg);
}
.proof-domain h3 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-2);
  letter-spacing: -.005em;
}
.proof-domain p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* 13. Section — Références
   ---------------------------------------------------------- */
/* Tighter gap between section intro and first logo block */
#references .section-header { margin-bottom: var(--space-8); }

.references-block { margin-bottom: var(--space-12); }

.references-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: var(--space-3);
  display: block;
}

.references-desc {
  font-size: .9rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: var(--space-6);
  line-height: 1.68;
}

/* logo grid — default (used for #expériences antérieures, static) */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Infinite-scroll marquee variant — wraps the "Missions récentes" grid.
   JS clones the children for a seamless loop (-50 % translate). */
.logo-marquee {
  overflow: hidden;
  position: relative;
  /* Soft fade on the edges */
  -webkit-mask-image: linear-gradient(to right,
                       transparent 0,
                       #000 6%,
                       #000 94%,
                       transparent 100%);
          mask-image: linear-gradient(to right,
                       transparent 0,
                       #000 6%,
                       #000 94%,
                       transparent 100%);
}

.logo-marquee .logo-grid {
  flex-wrap: nowrap;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.logo-marquee:hover .logo-grid { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reduced motion or no JS: revert to a static wrapped grid */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .logo-marquee .logo-grid {
    flex-wrap: wrap;
    width: auto;
    animation: none;
  }
}

/* Each item behaves as a consistent logo slot */
.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  min-width: 130px;
  padding: .5rem var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  cursor: default;
  line-height: 1.4;
  text-align: center;
  letter-spacing: .01em;
}

/* Real logo images — styles are already here; no extra CSS needed when swapping.
   See README for recommended file dimensions.                                   */
.logo-card img {
  display: block;
  max-height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: opacity .2s, filter .2s;
}
.logo-card:hover img {
  filter: none;
  opacity: 1;
}

/* 14. Section — Structuration patrimoniale
   Compact DL-style list — visually secondary
   ---------------------------------------------------------- */
.patrimoine-list {
  display: flex;
  flex-direction: column;
  max-width: 900px;
}

.patrimoine-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  padding: var(--space-5, 1.25rem) 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.patrimoine-list .patrimoine-item:first-child { border-top: 1px solid var(--border); }

.patrimoine-item dt {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}
.patrimoine-item dd {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* regulatory notice */
.regulatory-notice {
  padding: var(--space-4) var(--space-6);
  border-left: 2px solid var(--accent);
  background: rgba(23,50,77,.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: var(--space-8);
  max-width: 700px;
}
.regulatory-notice p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.68;
}

/* 15. Section — À propos
   Layout: portrait (left, fixed 240px) | bio + cards (right, 1fr)
   ---------------------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-16);
  align-items: start;
}

/* Portrait column */
.about-portrait { position: relative; }

.portrait-card { display: block; }

.portrait-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--accent);
}

/* Navy initials placeholder — visible until real photo is added */
.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-placeholder span {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: .25em;
  color: rgba(255, 255, 255, .22);
  font-family: var(--font);
  padding-left: .25em; /* optical: letterspacing shifts right */
}

/* Real photo — overlays placeholder via absolute positioning */
.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.portrait-caption {
  margin-top: var(--space-3);
  font-size: .7rem;
  color: var(--muted-light);
  text-align: center;
  display: block;
  letter-spacing: .03em;
}

/* Bio + cards column */
.about-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.about-text h2        { margin-bottom: var(--space-2); }
.about-subtitle       { font-size: .975rem; color: var(--muted); font-style: italic; margin-bottom: var(--space-8); }
.about-text p         { font-size: .925rem; color: var(--muted); margin-bottom: var(--space-4); line-height: 1.72; }
.about-text p:last-child { margin-bottom: 0; }

/* 2×2 grid of cards inside the bio column */
.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.about-card {
  padding: var(--space-4) var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.about-card strong {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.about-card p {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.62;
  margin-bottom: 0;
}

/* 16. Section — Contact
   ---------------------------------------------------------- */
.section-contact {
  background: var(--accent);
  padding: var(--space-20) 0;
}
.section-contact h2          { color: #fff; }
.section-contact .section-intro { color: rgba(255,255,255,.7); }
.contact-block               { max-width: 580px; margin: 0 auto; text-align: center; }
.contact-block h2            { margin-bottom: var(--space-4); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}

/* 17. Footer
   ---------------------------------------------------------- */
.site-footer { background: var(--accent-dark); padding: var(--space-12) 0 var(--space-8); }

.footer-scope {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: var(--space-8);
}
.footer-scope p {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  line-height: 1.72;
  max-width: 680px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  font-size: .78rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
}
.footer-brand img {
  height: 22px;
  width: auto;
  display: block;
}
.footer-author {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  letter-spacing: .01em;
  padding-left: .9rem;
  border-left: 1px solid rgba(255,255,255,.18);
}
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .15s; }
.footer-bottom a:hover { color: rgba(255,255,255,.88); text-decoration: none; }

/* 17b. Hover lift on standalone cards
   Skipped on .pillar / .proof-metric (their containers have overflow:hidden,
   the lift would be clipped or break the unified bordered look).
   ---------------------------------------------------------- */
.cas-item,
.patrimoine-item,
.proof-domain,
.about-card,
.logo-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cas-item:hover,
.patrimoine-item:hover {
  border-bottom-color: var(--accent-warm);
}

.proof-domain:hover,
.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  border-color: var(--accent-warm);
}
/* Preserve the warm top accent on .proof-domain hover */
.proof-domain:hover { border-top-color: var(--accent-warm-dark); }

.logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  border-color: var(--accent-warm);
}

/* 17c. Scroll-fade — JS adds .fade-in class to opt-in elements
   on load, then toggles .is-visible via IntersectionObserver.
   ---------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease-out, transform .55s ease-out;
  will-change: opacity, transform;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger items inside grouped containers (pillars, metrics, situations) */
.fade-in[style*="--idx"] {
  transition-delay: calc(var(--idx) * 60ms);
}

/* Honor reduced-motion preference — no transitions, fully visible */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 18. Focus visible
   ---------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 19. Responsive — nav hamburger (900 px threshold)
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-brand img { height: 24px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--space-6);
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a  { display: block; padding: var(--space-2) 0; font-size: .9rem; }
  .nav-links .nav-cta { display: inline-flex; margin-top: var(--space-2); padding: .45rem .9rem; }

  /* Language switch stays visible, just before the hamburger */
  .lang-switch { margin-left: .35rem; padding-left: .5rem; }
  .lang-opt { padding: .3rem .3rem; }
}

/* 20. Responsive — tablet layout (901–1024 px)
   ---------------------------------------------------------- */
@media (min-width: 901px) and (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 260px; gap: var(--space-10); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillars .pillar:nth-child(3)  { border-right: none; }
  .pillars .pillar:nth-child(4),
  .pillars .pillar:nth-child(5)  { border-top: 1px solid var(--border); }
  .about-layout { grid-template-columns: 200px 1fr; gap: var(--space-10); }
  .cas-item { grid-template-columns: 26px 192px 1fr; column-gap: var(--space-5); }
  .patrimoine-item { grid-template-columns: 220px 1fr; }

  /* preuves — 6 metrics → 3 cols × 2 rows at tablet */
  .proof-metrics { grid-template-columns: repeat(3, 1fr); }
  .proof-metric:nth-child(3n) { border-right: none; }
  .proof-metric:nth-child(n+4) { border-top: 1px solid var(--border); }
}

/* 21. Responsive — mobile (≤ 768 px)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --space-20: 3.5rem;
    --space-24: 4rem;
    --space-16: 2.5rem;
    --space-12: 2.5rem;
  }

  /* hero — stack to single column, panel below CTAs */
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-panel { margin-top: var(--space-4); }
  .hero-proof-row { width: 100%; }
  .proof-item     { min-width: 0; flex: 1 1 calc(50% - 1px); border-bottom: 1px solid var(--border); }
  .proof-item:nth-child(1),
  .proof-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .proof-item:nth-child(3),
  .proof-item:nth-child(4) { border-bottom: none; }
  .proof-item:nth-child(odd)  { border-right: 1px solid var(--border); }
  .proof-item:nth-child(even) { border-right: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  /* situations */
  .situations-grid { grid-template-columns: 1fr; }
  .situations-grid .situation:nth-child(2) { border-top: none; }

  /* pillars */
  .pillars {
    grid-template-columns: 1fr 1fr;
    overflow: visible;
    border: none;
    gap: var(--space-3);
    background: transparent;
  }
  .pillar {
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
  }
  .pillar:last-child { border-right: 1px solid var(--border); }

  /* méthode — drop staircase on mobile, smaller numerals */
  .step-number { font-size: 1.35rem; width: 1.6rem; }
  .step:nth-child(odd),
  .step:nth-child(even) { margin-left: 0; margin-right: 0; }
  .step { max-width: 100%; padding-left: 0; padding-right: 0; }

  /* cas — picto on row 1 with name, desc full-width on row 2 */
  .cas-item {
    grid-template-columns: auto 1fr;
    column-gap: var(--space-3);
    row-gap: var(--space-2);
  }
  .cas-icon { grid-row: 1; grid-column: 1; }
  .cas-name {
    grid-row: 1;
    grid-column: 2;
    color: var(--accent);
  }
  .cas-desc { grid-row: 2; grid-column: 1 / -1; }

  /* patrimoine */
  .patrimoine-item { grid-template-columns: 1fr; gap: var(--space-2); }

  /* preuves — metrics 2 cols × 3 rows, domains stacked */
  .proof-metrics { grid-template-columns: repeat(2, 1fr); }
  .proof-metric { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .proof-metric:nth-child(2n) { border-right: none; }
  .proof-metric:nth-child(-n+2) { border-top: none; }
  .proof-domains { grid-template-columns: 1fr; }

  /* about — portrait stacks above bio on mobile */
  .about-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-portrait { max-width: 240px; } /* portrait stays portrait-shaped, centered */
  .about-cards { grid-template-columns: 1fr; }

  /* contact */
  .contact-actions { flex-direction: column; align-items: stretch; }
  .btn-contact-primary,
  .btn-contact-secondary { justify-content: center; }

  /* footer */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}

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

/* 22. Legal pages (mentions-legales.html, politique-confidentialite.html)
   ---------------------------------------------------------- */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--space-8);
  text-decoration: none;
  transition: color .15s;
}
.legal-back:hover { color: var(--accent); text-decoration: none; }
.legal-back::before { content: "←"; font-size: .85rem; }

.legal-article { max-width: 680px; }
.legal-article h1 { margin-bottom: var(--space-6); color: var(--accent-dark); }
.legal-article h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.legal-article p,
.legal-article li {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: var(--space-3);
  line-height: 1.72;
}
.legal-article ul {
  padding-left: var(--space-6);
  list-style: disc;
  margin-bottom: var(--space-3);
}
.legal-article a { color: var(--accent); }
.legal-article a:hover { text-decoration: underline; }
.legal-placeholder {
  display: inline-block;
  background: rgba(23,50,77,.06);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: .15rem .45rem;
  font-size: .82rem;
  color: var(--muted);
  font-style: italic;
}
