  /* Thème de base : clair. Le sombre est appliqué via .dark (cf. footer.php). */
  :root {
    --bg:       #f4f1ea;
    --fg:       #1a1a1a;
    --fg-soft:  rgba(26,26,26,0.68);
    --fg-mute:  rgba(26,26,26,0.42);
    --bd:       rgba(26,26,26,0.18);
    --bd-soft:  rgba(26,26,26,0.08);
    --hover-bg: rgba(26,26,26,0.04);
    --hover-bg-strong: rgba(26,26,26,0.025);
    --grain-blend: multiply;
    --grain-alpha: 30;
    /* Flèche diagonale (haut-droite), tracée fin, en SVG. Sert de masque à .arrow */
    --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5 11.5 4.5'/%3E%3Cpath d='M6 4.5h5.5V10'/%3E%3C/svg%3E");
  }
  html.dark {
    --bg:       #050505;
    --fg:       #ededed;
    --fg-soft:  rgba(237,237,237,0.62);
    --fg-mute:  rgba(237,237,237,0.36);
    --bd:       rgba(237,237,237,0.16);
    --bd-soft:  rgba(237,237,237,0.08);
    --hover-bg: rgba(237,237,237,0.04);
    --hover-bg-strong: rgba(237,237,237,0.025);
    --grain-blend: overlay;
    --grain-alpha: 70;
  }
  html, body { background: var(--bg); color: var(--fg); transition: background .4s ease, color .4s ease; }
  body {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.5;
    overflow-x: hidden;
  }
  ::selection { background: var(--bd); color: var(--fg); }

  .bd      { border-color: var(--bd); }
  .bd-soft { border-color: var(--bd-soft); }

  /* Tracked uppercase labels */
  .label {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 13px;
    font-weight: 500;
    color: var(--fg);
  }
  .label-sm {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-soft);
  }
  .label-xs {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 10px;
    font-weight: 500;
    color: var(--fg-mute);
  }

  .display { font-family: 'Playfair Display', serif; font-weight: 400; line-height: 0.96; letter-spacing: -0.01em; }
  .display-italic { font-family: 'Playfair Display', serif; font-weight: 400; font-style: italic; line-height: 0.96; letter-spacing: -0.005em; }

  .prose-serif {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.55;
    color: var(--fg-soft);
  }
  .prose-serif-sm {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--fg-soft);
  }

  /* Monospace terminal */
  .mono {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.75;
    color: var(--fg);
  }
  .mono-mute { color: var(--fg-mute); }
  .mono-soft { color: var(--fg-soft); }

  /* Terminal frame — double-bordered cell */
  .terminal {
    border: 1px solid var(--bd);
    box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--bd);
    padding: 1.75rem 1.75rem 1.5rem;
  }
  .terminal-dots span {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--fg-mute);
    margin-right: 6px;
  }
  .terminal-dots span:first-child { background: var(--fg); }

  /* Big nav cell */
  .nav-cell {
    display: flex; align-items: center; justify-content: flex-start;
    padding: 0.9rem 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 12px;
    font-weight: 500;
    color: var(--fg);
    transition: color .3s ease, background .3s ease;
  }
  .nav-cell:hover { color: var(--fg); background: var(--hover-bg); }

  /* Links */
  a { color: inherit; }
  .link-arrow {
    display: inline-flex; align-items: center; gap: 0.5em;
    text-decoration: none;
    transition: opacity .3s ease;
  }
  .link-arrow:hover { opacity: 0.65; }
  .link-arrow .arrow { display: inline-block; transition: transform .3s ease; }
  .link-arrow:hover .arrow { transform: translate(2px,-2px); }

  /* Flèche en vraie image SVG (via mask) au lieu du glyphe Unicode haut-droite,
     que Safari iOS affichait en emoji. Prend la couleur du texte (currentColor)
     et suit la taille de police (em). */
  .arrow,
  .cert-arrow {
    display: inline-block;
    width: 0.78em; height: 0.78em;
    vertical-align: -0.08em;
    background-color: currentColor;
    -webkit-mask: var(--icon-arrow) center / contain no-repeat;
            mask: var(--icon-arrow) center / contain no-repeat;
  }

  /* Caret */
  .caret { display: inline-block; width: 7px; height: 13px; background: var(--fg); vertical-align: -2px; margin-left: 2px; animation: caret 1s steps(2) infinite; }
  @keyframes caret { 50% { opacity: 0; } }

  /* Outer padding around the whole framed page */
  body {
    /* --frame-pad is set (and rounded to whole px) by JS so the framed shell's edges
       always land on integer pixels — a fractional edge makes the 1px border anti-alias
       across two device pixels and visually vanish at certain widths. */
    padding: var(--frame-pad, 36px);
    padding-top: clamp(8px, 1.2vw, 14px);
  }
  .ed-shell {
    max-width: 1480px;
    margin-inline: auto;
    border: 1px solid var(--bd);
    position: relative;
  }
  /* Container kept as a no-op for any leftover usage */
  .ed-container { width: 100%; }

  /* Grain canvas — fixed overlay, on top of everything but ignores pointer */
  .grain-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
  }

  /* Engraving placeholder — atmospheric texture */
  .engraving {
    position: relative;
    background:
      radial-gradient(ellipse at 30% 40%, var(--hover-bg), transparent 60%),
      radial-gradient(ellipse at 70% 70%, var(--hover-bg-strong), transparent 50%),
      var(--bg);
    overflow: hidden;
  }
  .engraving::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      repeating-linear-gradient(0deg, transparent 0 2px, var(--bd-soft) 2px 3px),
      repeating-linear-gradient(90deg, transparent 0 2px, var(--bd-soft) 2px 3px);
    opacity: 0.6;
  }

  /* Feature cell hover */
  .feature-cell { transition: background .35s ease; }
  .feature-cell:hover { background: var(--hover-bg-strong); }

  /* Accordion */
  .acc-arrow { transition: transform .35s ease; }
  [x-cloak] { display: none !important; }

  a:focus-visible, button:focus-visible { outline: 1px dashed var(--fg-soft); outline-offset: 4px; }

  /* Theme toggle — pill switch */
  .theme-toggle {
    display: inline-flex; align-items: center; gap: 0.75em;
    background: transparent;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--fg);
    padding: 0;
  }
  .theme-toggle .switch {
    position: relative;
    width: 38px; height: 20px;
    border: 1px solid var(--bd);
    border-radius: 999px;
    transition: border-color .3s ease, background .3s ease;
  }
  .theme-toggle .switch::after {
    content: "";
    position: absolute;
    top: 50%; left: 3px;
    transform: translateY(-50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--fg);
    transition: left .3s ease, background .3s ease;
  }
  html.dark .theme-toggle .switch::after { left: 21px; background: var(--fg); }
  .theme-toggle:hover .switch { border-color: var(--fg-soft); }

  /* Hero scale */
  .display-hero { font-size: clamp(64px, 11vw, 184px); }
  .display-md   { font-size: clamp(32px, 4vw, 56px); }

  /* ===== V3 additions ===== */
  /* Shorthand for the recurring red accent dot */
  .dot { color: #ff4d4d; }

  /* Real section titles — large serif, the fix for "you can't tell it's a title" */
  .section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.015em;
    font-size: clamp(40px, 5.4vw, 76px);
  }
  /* Card / item titles — clearly bigger than body, clearly a heading */
  .card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.005em;
    font-size: clamp(26px, 2.7vw, 34px);
  }
  /* Big italic letter marker for each discipline */
  .disc-letter {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    line-height: 0.8;
    font-size: clamp(48px, 5vw, 76px);
    color: var(--fg-mute);
    user-select: none;
  }

  /* AI provider logo cells */
  .ai-cell {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.85rem;
    padding: 2rem 1rem;
    text-decoration: none;
    color: var(--fg);
    transition: background .35s ease, color .35s ease;
  }
  .ai-cell:hover { background: var(--hover-bg); }
  .ai-logo { width: 32px; height: 32px; display: block; color: var(--fg); opacity: 0.92; transition: opacity .35s ease, transform .35s ease; }
  .ai-cell:hover .ai-logo { opacity: 1; transform: translateY(-2px); }
  .ai-logo svg { width: 100%; height: 100%; display: block; }

  /* Pull-quotes for testimonials */
  .quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.45;
    letter-spacing: -0.005em;
    color: var(--fg);
  }

  /* Technology chips grid cell */
  .tech-cell { transition: background .35s ease; }
  .tech-cell:hover { background: var(--hover-bg-strong); }

  /* Swiss cross badge */
  .swiss-badge { width: 56px; height: 56px; background: #d92626; display: grid; place-items: center; flex-shrink: 0; }
  html.dark .swiss-badge { background: #ff4d4d; }
  .swiss-badge svg { width: 30px; height: 30px; }

  /* ===== Développement web — animated wireframe browser ===== */
  .devframe { border: 1px solid var(--bd); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--bd); background: var(--bg); }
  .devbar { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--bd-soft); }
  .devbar .dotrow span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fg-mute); margin-right: 6px; }
  .devbar .dotrow span:first-child { background: #ff4d4d; }
  .devbar .urlpill { flex: 1; height: 18px; border: 1px solid var(--bd-soft); border-radius: 999px; }
  .devstage { position: relative; height: 360px; overflow: hidden; }
  .scene { position: absolute; inset: 0; padding: 1.5rem; opacity: 0; }
  .scene.s1 { opacity: 1; }
  .wbar { background: var(--fg); opacity: 0.85; height: 9px; border-radius: 2px; }
  .wbar.mut { opacity: 0.3; }
  .wbar.sm { height: 6px; }
  .wbar.red { background: #ff4d4d; opacity: 1; }
  .wbox { border: 1px solid var(--bd); border-radius: 2px; }
  .wbox.fill { background: var(--hover-bg); }
  .wcap { position: absolute; left: 1.5rem; bottom: 1.1rem; }
  @media (prefers-reduced-motion: no-preference) {
    .scene { animation: devCycle 13.5s infinite both; }
    .scene.s1 { animation-delay: 0s; }
    .scene.s2 { animation-delay: 4.5s; }
    .scene.s3 { animation-delay: 9s; }
  }
  @keyframes devCycle {
    0%   { opacity: 0; transform: translateY(10px); }
    3%   { opacity: 1; transform: none; }
    29%  { opacity: 1; transform: none; }
    33%  { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; }
  }

  /* Technology logo grid — theme-aware internal borders (6 across) */
  .logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .logo-grid > * { border-bottom: 1px solid var(--bd); border-right: 1px solid var(--bd); }
  .logo-grid > *:nth-child(3n) { border-right: none; }
  .logo-grid > *:nth-child(n+4) { border-bottom: none; }
  @media (min-width: 768px) {
    .logo-grid { grid-template-columns: repeat(6, 1fr); }
    .logo-grid > * { border-bottom: none; border-right: 1px solid var(--bd); }
    .logo-grid > *:nth-child(3n) { border-right: 1px solid var(--bd); }
    .logo-grid > *:nth-child(6n) { border-right: none; }
  }

  /* ===== Infrastructure & automatisation — animated ops console ===== */
  .opsframe { border: 1px solid var(--bd); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--bd); background: var(--bg); }
  .opsbar { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--bd-soft); }
  .opsbar .dotrow span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fg-mute); margin-right: 6px; }
  .opsbar .dotrow span:first-child { background: #ff4d4d; }
  .opsbar .opstitle { flex: 1; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-mute); }
  .opsbar .opslive { display: inline-flex; align-items: center; gap: 7px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-soft); }
  .opsstage { position: relative; height: 360px; overflow: hidden; }
  .oscene { position: absolute; inset: 0; padding: 1.75rem 1.75rem 1.5rem; opacity: 0; }
  .oscene.o1 { opacity: 1; }
  .ocap { position: absolute; left: 1.75rem; bottom: 1.2rem; }
  @media (prefers-reduced-motion: no-preference) {
    .oscene { animation: opsCycle 15s infinite both; }
    .oscene.o1 { animation-delay: 0s; }
    .oscene.o2 { animation-delay: 5s; }
    .oscene.o3 { animation-delay: 10s; }
  }
  @keyframes opsCycle {
    0%   { opacity: 0; transform: translateY(10px); }
    3%   { opacity: 1; transform: none; }
    30%  { opacity: 1; transform: none; }
    33%  { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; }
  }

  /* Scene 1 — node graph + flowing packets */
  .opsnet { width: 100%; height: auto; max-height: 250px; display: block; margin-inline: auto; }
  .opsnet .nbox { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: 0.85; }
  .opsnet .hub  { fill: var(--hover-bg); stroke: currentColor; stroke-width: 1.4; }
  .opsnet .nline { stroke: currentColor; stroke-width: 1; opacity: 0.22; }
  .opsnet .ntext { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.12em; fill: currentColor; }
  .opsnet .ntext.mut { opacity: 0.55; }
  .pkt { offset-rotate: 0deg; fill: #ff4d4d; }
  @media (prefers-reduced-motion: no-preference) {
    .pkt1 { offset-path: path('M115 52 L235 130');  animation: pktFlow 1.7s linear infinite; }
    .pkt2 { offset-path: path('M115 228 L235 150'); animation: pktFlow 1.7s linear infinite 0.35s; }
    .pkt3 { offset-path: path('M325 128 L445 55');  animation: pktFlow 1.7s linear infinite 0.85s; }
    .pkt4 { offset-path: path('M325 140 L445 140'); animation: pktFlow 1.7s linear infinite 1.05s; }
    .pkt5 { offset-path: path('M325 152 L445 225'); animation: pktFlow 1.7s linear infinite 1.25s; }
  }
  @media (prefers-reduced-motion: reduce) { .pkt { opacity: 0; } }
  @keyframes pktFlow { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

  /* Scene 2 — server rack + monitoring */
  .led { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; display: inline-block; flex-shrink: 0; }
  @keyframes oBlink { 0%,45% { opacity: 1; } 50%,100% { opacity: 0.18; } }
  @media (prefers-reduced-motion: no-preference) {
    .led.b1 { animation: oBlink 1.3s steps(1,end) infinite; }
    .led.b2 { animation: oBlink 1.3s steps(1,end) infinite 0.45s; }
    .led.b3 { animation: oBlink 1.3s steps(1,end) infinite 0.85s; }
  }
  .opschip { border: 1px solid var(--bd); padding: 3px 10px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-soft); }
  .ochart { display: flex; align-items: flex-end; gap: 9px; height: 112px; }
  .ochart > div { flex: 1; border: 1px solid var(--bd); background: var(--hover-bg); transform-origin: bottom; transform: scaleY(0.5); }
  .ochart > div.red { background: #ff4d4d; border-color: #ff4d4d; }
  @media (prefers-reduced-motion: no-preference) {
    .ochart > div { animation: oBar 2.6s ease-in-out infinite; }
    .ochart > div:nth-child(2) { animation-delay: 0.2s; }
    .ochart > div:nth-child(3) { animation-delay: 0.45s; }
    .ochart > div:nth-child(4) { animation-delay: 0.65s; }
    .ochart > div:nth-child(5) { animation-delay: 0.9s; }
    .ochart > div:nth-child(6) { animation-delay: 1.1s; }
    .ochart > div:nth-child(7) { animation-delay: 1.35s; }
  }
  @keyframes oBar { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(0.92); } }

  /* Scene 3 — security shield + audit checklist */
  .oshield { width: 132px; height: 132px; flex-shrink: 0; color: var(--fg); }
  .oshield svg { width: 100%; height: 100%; display: block; overflow: visible; }
  @media (prefers-reduced-motion: no-preference) { .oshield .sline { animation: oScan 3.2s ease-in-out infinite; } }
  @keyframes oScan { 0%,100% { transform: translateY(-26px); } 50% { transform: translateY(26px); } }
  .ocheck { display: flex; flex-direction: column; gap: 15px; }
  .ocheck .row { display: flex; align-items: center; gap: 13px; }
  .ocheck .bx { width: 18px; height: 18px; border: 1px solid var(--bd); position: relative; flex-shrink: 0; }
  .ocheck .bx::after { content: ""; position: absolute; inset: 3px; background: #ff4d4d; opacity: 0; transform: scale(0.3); }
  .ocheck .label-sm { color: var(--fg-soft); letter-spacing: 0.12em; }
  @media (prefers-reduced-motion: no-preference) {
    .ocheck .row:nth-child(1) .bx::after { animation: oCheck 5s ease-in-out infinite 0s; }
    .ocheck .row:nth-child(2) .bx::after { animation: oCheck 5s ease-in-out infinite 0.4s; }
    .ocheck .row:nth-child(3) .bx::after { animation: oCheck 5s ease-in-out infinite 0.8s; }
    .ocheck .row:nth-child(4) .bx::after { animation: oCheck 5s ease-in-out infinite 1.2s; }
  }
  @media (prefers-reduced-motion: reduce) { .ocheck .bx::after { opacity: 1; transform: none; } }
  @keyframes oCheck { 0%,6% { opacity: 0; transform: scale(0.3); } 14%,90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.3); } }

  /* ===== Disciplines — animated line-art glyphs (replace big letters) ===== */
  .disc-glyph { display: block; width: 64px; height: 64px; color: var(--fg); opacity: 0.92; flex-shrink: 0; }
  @media (min-width: 768px) { .disc-glyph { width: 76px; height: 76px; } }
  .disc-glyph svg { width: 100%; height: 100%; display: block; overflow: visible; }
  .disc-glyph [class^="g-"] { transform-box: fill-box; transform-origin: center; }
  @media (prefers-reduced-motion: no-preference) {
    .g-cursor { animation: gCursor 3.2s ease-in-out infinite; }
    .g-token  { animation: gToken 2.8s ease-in-out infinite; }
    .g-blink  { animation: gBlink 1.7s steps(1, end) infinite; }
    .g-scan   { animation: gScan 3.4s ease-in-out infinite; }
  }
  @keyframes gCursor { 0%,100% { transform: translate(0,0); } 50% { transform: translate(4px,-5px); } }
  @keyframes gToken  { 0% { transform: translate(0,0); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(18px,-15px); opacity: 0; } }
  @keyframes gBlink  { 0%,49% { opacity: 1; } 50%,100% { opacity: 0.18; } }
  @keyframes gScan   { 0%,100% { transform: translateY(-11px); } 50% { transform: translateY(11px); } }

  /* ===== Brand signature (the woman) ===== */
  .signature { display: inline-block; color: var(--fg); line-height: 0; }
  .signature svg { width: auto; height: 190px; max-width: 100%; display: block; }
  @media (min-width: 768px) { .signature svg { height: 230px; } }
  .signature .sig-stroke { fill: none; stroke: currentColor; stroke-width: 4; stroke-dasharray: 10875; stroke-dashoffset: 10875; }
  /* Fill disabled — the signature only draws itself, it never fills in */
  .signature .sig-fill { display: none; }
  .signature.in-view .sig-stroke { animation: sigDraw 6.2s ease-in-out forwards; }
  @keyframes sigDraw { to { stroke-dashoffset: 0; } }
  @media (prefers-reduced-motion: reduce) {
    .signature .sig-stroke { stroke-dashoffset: 0; }
  }
  /* Mini signature in hero — fills its square cell (contains, touching edges, never overflowing) */
  .signature--mini { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--fg-soft); }
  .signature--mini svg { width: 100%; height: 100%; max-width: none; max-height: 360px; }
  .signature--mini .sig-stroke { stroke-width: 3; }
  .signature--mini.in-view .sig-stroke { animation-duration: 3.4s; }

  /* Trial: enormous floating ghost signature in the hero background */
  .signature--ghost {
    position: absolute;
    right: -8%;
    top: 50%;
    transform: translateY(-50%);
    height: 158%;
    color: var(--fg-soft);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    line-height: 0;
  }
  .signature--ghost svg { height: 100%; width: auto; max-width: none; display: block; }
  .signature--ghost .sig-stroke { stroke-width: 2.4; }
  /* Un peu plus petite sur mobile, où le hero est étroit et haut */
  @media (max-width: 767px) { .signature--ghost { height: 135%; } }

  /* Trial: enormous floating signature behind the footer « Le web… » block */
  .signature--full {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    height: 300%;
    color: var(--fg-soft);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    line-height: 0;
  }
  .signature--full svg { height: 100%; width: auto; max-width: none; display: block; }
  .signature--full .sig-stroke { stroke-width: 2.4; }

  /* ===== Footer giant wordmark — fixed BEHIND the page, revealed by an overscroll pull ===== */
  #scroll-content { position: relative; z-index: 1; background: var(--bg); will-change: transform; }
  .footer-wordmark-wrap {
    position: fixed;
    /* Anchor to the SAME integer --frame-pad that #scroll-content's bottom padding uses
       (not raw 2.5vw) so the content always overlaps the wordmark's bottom edge by a whole
       3px — never a sub-pixel sliver that lets the red peek through at rest. */
    bottom: calc(var(--frame-pad, 36px) + 3px);
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - var(--sbw, 0px) - 2 * var(--frame-pad, 36px) - 2px), 1478px);
    z-index: 0;
    overflow: hidden;
    padding: 0;
    line-height: 0;
    pointer-events: none;
  }
  .footer-wordmark {
    display: block;
    font-family: 'Playfair Display', serif; font-weight: 500;
    /* Plancher bas pour que « elipte » remplisse le cadre sans déborder même sur petit écran */
    font-size: clamp(84px, 26.5vw, 460px);
    line-height: 0.92; letter-spacing: -0.04em;
    text-transform: uppercase; text-align: center; white-space: nowrap;
    margin: 0.06em -0.04em -0.16em;
    color: transparent;
    background-image: linear-gradient(8deg, #e23b3b 0%, #ff5c5c 55%, #ff7a6b 100%);
    /* PAS de background-attachment: fixed : combiné à background-clip:text il casse le
       remplissage du texte sur Safari iOS (seules les lettres de gauche se coloraient,
       « TE » restait transparent). En scroll, le dégradé remplit toutes les lettres. */
    background-position: center; background-size: cover;
    -webkit-background-clip: text; background-clip: text;
    user-select: none;
  }

  /* ===== Forms — manager & contact ===== */
  .field { display: flex; flex-direction: column; gap: 0.55rem; }
  .input, .textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--bd);
    color: var(--fg);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.5;
    padding: 0.95rem 1.1rem;
    transition: border-color .3s ease, background .3s ease;
  }
  .input::placeholder, .textarea::placeholder { color: var(--fg-mute); }
  .input:focus, .textarea:focus { outline: none; border-color: var(--fg-soft); background: var(--hover-bg); }
  .textarea { resize: vertical; min-height: 150px; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
    background: var(--fg); color: var(--bg);
    border: 1px solid var(--fg);
    font-family: 'Playfair Display', serif; font-weight: 500;
    font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
    padding: 1rem 1.8rem; cursor: pointer;
    transition: background .3s ease, color .3s ease;
  }
  .btn:hover { background: transparent; color: var(--fg); }
  .btn .arrow { display: inline-block; transition: transform .3s ease; }
  .btn:hover .arrow { transform: translate(2px,-2px); }

  /* "Je n'ai pas de compte" feature list */
  .client-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
  .client-list li {
    display: flex; align-items: flex-start; gap: 0.9rem;
    padding: 1.05rem 0; border-top: 1px solid var(--bd-soft);
    font-family: 'Playfair Display', serif; font-size: 16.5px; color: var(--fg-soft);
  }
  .client-list li:first-child { border-top: none; padding-top: 0; }
  .client-list li::before {
    content: ""; flex-shrink: 0; width: 7px; height: 7px;
    margin-top: 0.5em; background: #ff4d4d; border-radius: 50%;
  }

  /* Submitted-form confirmation */
  .form-success {
    display: flex; align-items: flex-start; gap: 0.75rem;
    color: var(--fg); font-size: 18px; line-height: 1.5;
  }
  .form-success::before {
    content: ""; flex-shrink: 0; width: 8px; height: 8px;
    margin-top: 0.55em; background: #ff4d4d; border-radius: 50%;
  }

  /* ===== Header status strip ===== */
  .status-strip {
    max-width: 1480px;
    margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0 2px 0.5rem;
  }
  .status-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--fg-mute); text-decoration: none;
    transition: color 0.25s ease;
  }
  .status-link:hover { color: var(--fg); }
  .status-link .arrow { transition: transform 0.25s ease; }
  .status-link:hover .arrow { transform: translate(1px, -1px); }
  .status-pill {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--bd);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--fg);
    transition: border-color 0.25s ease, background-color 0.25s ease;
  }
  .status-pill:hover { border-color: var(--fg-soft); background: var(--bd-soft); }
  .status-pill__url {
    color: var(--fg-mute);
    padding-left: 0.6rem;
    border-left: 1px solid var(--bd);
  }
  .status-pill .arrow { color: var(--fg-mute); transition: transform 0.25s ease; }
  .status-pill:hover .arrow { transform: translate(1px, -1px); }
  /* "Status" : libellé court réservé au mobile (le pill complet déborde sinon) */
  .status-pill__txt-short { display: none; }
  @media (max-width: 640px) {
    .status-pill__url { display: none; }
    .status-pill__txt { display: none; }
    .status-pill__txt-short { display: inline; }
  }

  .status-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: #36d399;
    box-shadow: 0 0 0 0 rgba(54, 211, 153, 0.45);
    animation: statusPulse 2.6s ease-out infinite;
  }
  @keyframes statusPulse {
    0%   { box-shadow: 0 0 0 0 rgba(54, 211, 153, 0.45); }
    70%  { box-shadow: 0 0 0 6px rgba(54, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(54, 211, 153, 0); }
  }
  @media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }

/* ===== Certifications (page /legal/) : déplacé depuis le <style> inline de legal.html ===== */
  .cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--bd); }
  .cert-grid > .cert-card:first-child { border-right: 1px solid var(--bd); }
  @media (max-width: 680px) {
    .cert-grid { grid-template-columns: 1fr; }
    .cert-grid > .cert-card:first-child { border-right: none; border-bottom: 1px solid var(--bd); }
  }
  .cert-card {
    position: relative;
    display: flex; align-items: flex-start; gap: 1.1rem;
    padding: 1.6rem 1.6rem 1.5rem;
    text-decoration: none; color: var(--fg);
    transition: background .3s ease;
  }
  .cert-card:hover { background: var(--bd-soft); }
  .cert-mark { flex: none; width: 48px; height: 48px; display: block; }
  .cert-mark svg { width: 100%; height: 100%; display: block; }
  .cert-body { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 1px; }
  .cert-name {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg);
  }
  .cert-sub { font-family: 'Playfair Display', serif; font-size: 15px; line-height: 1.4; color: var(--fg-mute); max-width: 28ch; }
  .cert-arrow {
    position: absolute; top: 1.3rem; right: 1.3rem;
    font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--fg-mute);
    transition: transform .25s ease, color .25s ease;
  }
  .cert-card:hover .cert-arrow { transform: translate(2px, -2px); color: var(--fg); }
  .cert-strip { display: inline-flex; align-items: center; gap: 0.7rem; }
  .cert-flag { width: 22px; height: 22px; display: block; }
  .cert-flag svg { width: 100%; height: 100%; display: block; }
