/* =====================================================================
   Portfolio — Ichola OCHILET
   Feuille de style principale · direction « Atelier »
   Palette : papier / encre / terracotta · Typographies : Fraunces + Satoshi
   ===================================================================== */

/* ---------- 1. Jetons de design ---------- */
:root {
  /* Couleurs */
  --papier: #F5F0E6;        /* fond des pages */
  --surface: #FFFFFF;       /* cartes, encarts */
  --sable: #EAE2D3;         /* fonds secondaires, plaque du portrait */
  --encre: #1C1A16;         /* texte, titres */
  --encre-2: #5B564C;       /* texte secondaire (6,4 : 1 sur papier) */
  --terracotta: #B5431B;    /* accent, boutons, liens actifs */
  --terracotta-2: #7F2E10;  /* accent foncé, texte accentué */
  --filet: #DDD3C1;         /* bordures */
  --focus: #1F3FD6;         /* anneau de focus clavier */

  /* Typographies */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Échelle typographique (ordinateur) */
  --t-display: clamp(3rem, 6.2vw, 5.25rem);  /* H1 accueil : 84 px max */
  --t-h1: clamp(2.5rem, 4.6vw, 3.75rem);     /* 60 px */
  --t-h2: clamp(1.9rem, 3vw, 2.5rem);        /* 40 px */
  --t-h3: 1.5rem;                            /* 24 px */
  --t-sub: clamp(1.375rem, 2.2vw, 1.875rem); /* 30 px : titre sous le nom */
  --t-body: 1.1875rem;                       /* 19 px */
  --t-lead: 1.25rem;                         /* 20 px */
  --t-small: 1rem;                           /* 16 px (jamais plus petit) */

  /* Espacements (base 8) */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;

  /* Rayons */
  --r-s: 8px; --r-m: 14px; --r-l: 24px; --r-pill: 999px;

  /* Grille */
  --page-max: 1280px;   /* 1440 − 2 × 80 */
  --gutter: 80px;

  /* Ombres */
  --ombre: 0 12px 32px rgba(28, 26, 22, .12);
  --ombre-s: 0 4px 14px rgba(28, 26, 22, .08);
}

@media (max-width: 1024px) { :root { --gutter: 40px; } }
@media (max-width: 640px)  { :root { --gutter: 20px; --t-body: 1.0625rem; --t-lead: 1.125rem; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 var(--s-3); letter-spacing: -.015em; }
h1 { font-size: var(--t-h1); font-variation-settings: "opsz" 144; }
h2 { font-size: var(--t-h2); font-variation-settings: "opsz" 96; }
h3 { font-size: var(--t-h3); font-variation-settings: "opsz" 48; }
p { margin: 0 0 var(--s-3); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--s-3); padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
em { font-style: italic; }
img, svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; text-decoration-color: var(--terracotta); }
a:hover { color: var(--terracotta-2); }

/* Focus visible, net et contrasté (WCAG 2.4.7 / 2.4.11) */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .nav a:focus-visible { outline-offset: 4px; }
.contact-band :focus-visible { outline-color: var(--papier); }

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

/* Lien d'évitement */
.skip {
  position: absolute; left: var(--s-2); top: -100px; z-index: 100;
  background: var(--encre); color: var(--papier); padding: 12px 18px; border-radius: var(--r-s);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: var(--s-2); }

/* Mise en page */
.wrap { width: min(var(--page-max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--s-7); }
.section.tight { padding-block: var(--s-6); }
.section.alt { background: var(--sable); }
.section-head { max-width: 760px; margin-bottom: var(--s-5); }
.section-head h2 { margin-bottom: var(--s-2); }
.section-head p { color: var(--encre-2); font-size: var(--t-lead); }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 1.0625rem; font-weight: 500; color: var(--terracotta-2); letter-spacing: .02em;
  margin-bottom: var(--s-3);
}
.kicker::before { content: ""; width: 36px; height: 2px; background: var(--terracotta); }

.lead { font-size: var(--t-lead); line-height: 1.55; }
.muted { color: var(--encre-2); }
.prose { max-width: 720px; }
.prose h2 { margin-top: var(--s-6); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-5); }

.rule { border: 0; border-top: 1px solid var(--filet); margin: var(--s-5) 0; }

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 14px 28px;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  font: 700 1.0625rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn.primary { background: var(--terracotta); color: #fff; }
.btn.primary:hover { background: var(--terracotta-2); color: #fff; }
.btn.secondary { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn.secondary:hover { background: var(--encre); color: var(--papier); }
.btn.small { min-height: 44px; padding: 10px 20px; font-size: 1rem; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- 4. En-tête et navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 240, 230, .92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--filet); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 96px; }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.brand:hover { color: var(--encre); }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; font-size: 1.0625rem; font-weight: 500; }
.nav-links a { text-decoration: none; padding: 6px 0; }
.nav-links a:hover { color: var(--terracotta-2); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; text-decoration-color: var(--terracotta); }
.nav-tools { display: flex; gap: 14px; align-items: center; }
.nav-cv { border: 1.5px solid var(--encre); border-radius: var(--r-pill); padding: 11px 20px; font-weight: 700; font-size: 1rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.nav-cv svg { width: 20px; height: 20px; flex: none; }
.nav-cv:hover { background: var(--encre); color: var(--papier); }

.menu-btn { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid var(--encre); border-radius: var(--r-pill); background: transparent; cursor: pointer; color: var(--encre); }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

@media (max-width: 960px) {
  .nav { min-height: 76px; }
  .brand { font-size: 1.25rem; white-space: nowrap; }
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--papier); border-bottom: 1px solid var(--filet);
    padding: var(--s-2) var(--gutter) var(--s-3); font-size: 1.125rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--filet); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links a[aria-current="page"] { text-underline-offset: 6px; }
  .nav-cv .txt { display: none; }
  .nav-cv { padding: 10px 14px; }
}

/* ---------- 5. Hero de l'accueil ---------- */
.hero { padding: var(--s-5) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 520px; gap: var(--s-6); align-items: start; }
.hero-name {
  font-size: var(--t-display); line-height: .98; letter-spacing: -.025em; margin: 0 0 var(--s-2);
  font-variation-settings: "opsz" 144;
}
.hero-title {
  font-family: var(--serif); font-weight: 500; font-size: var(--t-sub); line-height: 1.2;
  color: var(--terracotta-2); margin: 0 0 var(--s-3); font-variation-settings: "opsz" 72;
}
.hero-title .sep { color: var(--terracotta); padding: 0 .25em; font-weight: 400; }
.hero .lead { max-width: 600px; margin-bottom: var(--s-4); }
.cta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-bottom: var(--s-4); }
.avail { display: inline-flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 500; color: var(--encre-2); }
.avail::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgba(181, 67, 27, .18); }

.portrait { position: relative; width: 520px; height: 620px; justify-self: end; }
.portrait .plate { position: absolute; inset: 40px -30px 0 30px; background: var(--sable); border-radius: 260px 260px 28px 28px; }
.portrait img { position: absolute; left: 0; top: 0; width: 480px; height: 600px; border-radius: 240px 240px 24px 24px; object-fit: cover; object-position: 50% 20%; }
.portrait .tag {
  position: absolute; left: -28px; bottom: 36px; width: 280px;
  background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-m);
  padding: 16px 20px; font-size: 1rem; line-height: 1.35; box-shadow: var(--ombre);
}
.portrait .tag b { display: block; font-family: var(--serif); font-size: 1.1875rem; font-weight: 600; margin-bottom: 2px; }

.hero-foot {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  margin-top: var(--s-5); padding: 16px 0 0; border-top: 1px solid var(--filet);
  font-size: 1rem; color: var(--encre-2);
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 420px; gap: var(--s-5); }
  .portrait { width: 420px; height: 520px; }
  .portrait img { width: 390px; height: 500px; border-radius: 195px 195px 20px 20px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(100%, 360px); height: auto; aspect-ratio: 4 / 5; justify-self: start; margin-bottom: var(--s-3); }
  .portrait .plate { inset: 24px -16px 0 16px; border-radius: 180px 180px 20px 20px; }
  .portrait img { width: 100%; height: 100%; border-radius: 180px 180px 18px 18px; }
  .portrait .tag { left: auto; right: -8px; bottom: 16px; width: 240px; font-size: 1rem; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-foot .scroll { display: none; }
}

/* ---------- 6. Cartes et grilles ---------- */
.grid { display: grid; gap: var(--s-4); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid.cols-2 { grid-template-columns: 1fr; } .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-m); padding: var(--s-4); }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--encre-2); }
.card ul { margin-bottom: 0; padding-left: 1.1em; }

/* Domaines (accueil) */
.domain { position: relative; padding-top: var(--s-3); border-top: 2px solid var(--encre); }
.domain .num { font-family: var(--serif); font-size: 1.125rem; color: var(--terracotta); display: block; margin-bottom: var(--s-2); }
.domain h3 { margin-bottom: var(--s-1); }
.domain p { color: var(--encre-2); }

/* Cartes projet */
.project-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-m); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.project-card .cover { aspect-ratio: 16 / 9; background: var(--sable); border-bottom: 1px solid var(--filet); }
.project-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.project-card .body { padding: var(--s-3) var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.project-card .chip { align-self: flex-start; }
.project-card h3 { margin: 0; font-size: 1.375rem; }
.project-card h3 a { text-decoration: none; }
.project-card h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card { position: relative; }
.project-card h3 a:hover { color: var(--terracotta-2); }
.project-card p { margin: 0; color: var(--encre-2); font-size: 1.0625rem; }
.project-card .more { margin-top: auto; font-weight: 700; color: var(--terracotta-2); font-size: 1rem; }

/* Puces, badges */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--papier); border: 1px solid var(--filet); font-size: 1rem; font-weight: 500; color: var(--encre-2); }
.badge-learning { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--terracotta-2); color: #fff; font-size: 1rem; font-weight: 700; }

/* ---------- 7. Compétences et outils ---------- */
.skill-family { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-3); padding: var(--s-4); background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-m); }
.skill-family .idx { font-family: var(--serif); font-size: 1.5rem; color: var(--terracotta); line-height: 1; padding-top: 4px; }
.skill-family h3 { margin-bottom: var(--s-1); }
.skill-family p.note { font-size: 1rem; color: var(--encre-2); margin-top: var(--s-2); }
.skill-family ul { margin: var(--s-2) 0 0; padding-left: 1.1em; columns: 2; column-gap: var(--s-3); }
.skill-family li { break-inside: avoid; }
@media (max-width: 600px) { .skill-family { grid-template-columns: 1fr; } .skill-family ul { columns: 1; } }

.tools-group { margin-bottom: var(--s-5); }
.tools-group h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--encre-2); margin-bottom: var(--s-2); }
.tools { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tool { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-s); font-weight: 500; font-size: 1rem; }
.tool img { width: 28px; height: 28px; object-fit: contain; }
.tool.wide img { width: 56px; }
.learning-zone { border: 2px dashed var(--terracotta); border-radius: var(--r-m); padding: var(--s-4); background: rgba(255, 255, 255, .5); }
.learning-zone .badge-learning { margin-bottom: var(--s-3); }
.learning-zone p { color: var(--encre-2); }

/* ---------- 8. Frise de formation ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--encre); }
.timeline li { position: relative; padding: 0 0 var(--s-5) var(--s-5); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--terracotta); border: 3px solid var(--papier); }
.timeline .period { font-family: var(--serif); font-size: 1.125rem; color: var(--terracotta-2); margin-bottom: var(--s-1); font-variant-numeric: tabular-nums; }
.timeline h3 { margin-bottom: var(--s-1); }
.timeline .where { color: var(--encre-2); display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.timeline .where img { height: 44px; width: auto; max-width: 160px; object-fit: contain; background: #fff; border: 1px solid var(--filet); border-radius: var(--r-s); padding: 6px 10px; }
.timeline .where img.small { height: 40px; }
.timeline .desc { margin-top: var(--s-2); max-width: 680px; }

/* ---------- 9. Page projet ---------- */
.project-hero { padding: var(--s-5) 0 var(--s-6); }
.project-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-3); }
.project-hero h1 { max-width: 900px; }
.project-hero .lead { max-width: 760px; color: var(--encre-2); }
.project-cover { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--filet); background: var(--sable); aspect-ratio: 16 / 9; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-6); align-items: start; }
.project-side { position: sticky; top: 112px; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-m); padding: var(--s-3); }
.project-side dt { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--encre-2); margin-top: var(--s-2); }
.project-side dt:first-child { margin-top: 0; }
.project-side dd { margin: 4px 0 0; }
.project-side .tools { margin-top: 8px; }
.project-side .tool { padding: 6px 10px 6px 8px; font-size: 1rem; }
.project-side .tool img { width: 22px; height: 22px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--s-3); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-2); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.5rem; color: var(--terracotta); line-height: 1.1; }
.steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.steps p { color: var(--encre-2); }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.figure { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-m); padding: var(--s-3); }
.figure .n { font-family: var(--serif); font-size: 2.5rem; color: var(--terracotta-2); line-height: 1; display: block; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.figure .l { color: var(--encre-2); font-size: 1rem; }
.project-nav { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; border-top: 1px solid var(--filet); padding-top: var(--s-4); margin-top: var(--s-6); }
@media (max-width: 960px) { .project-layout { grid-template-columns: 1fr; } .project-side { position: static; } .figures { grid-template-columns: 1fr; } }

/* Preuves visuelles (extraits de documents, miniatures, captures) */
.proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-3) 0 var(--s-4); }
.proofs.one { grid-template-columns: 1fr; }
.proof { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-m); overflow: hidden; }
.proof img { width: 100%; height: auto; display: block; }
.proof figcaption { padding: 12px 16px; font-size: 1rem; color: var(--encre-2); border-top: 1px solid var(--filet); }
.proof figcaption b { color: var(--encre); font-weight: 700; }
.capsules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: var(--s-3) 0 var(--s-4); }
.capsules figure { border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--filet); background: #000; }
.capsules img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.capsules figcaption { font-size: 1rem; color: var(--encre-2); padding: 8px 10px; background: var(--surface); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--encre); color: var(--papier); font-size: 1rem; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
.model { background: var(--surface); border-left: 4px solid var(--terracotta); border-radius: 0 var(--r-m) var(--r-m) 0; padding: var(--s-3) var(--s-4); margin: var(--s-3) 0 var(--s-4); }
.model h3 { margin-bottom: var(--s-1); }
.model p { color: var(--encre-2); }
.model .ref { font-size: 1rem; color: var(--encre-2); margin-top: var(--s-2); }
.photo-band { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--filet); aspect-ratio: 16 / 7; background: var(--sable); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aptitudes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.aptitudes .card h3 { font-size: 1.25rem; }
@media (max-width: 760px) { .proofs, .aptitudes { grid-template-columns: 1fr; } .capsules { grid-template-columns: repeat(2, 1fr); } }

/* Charte MODULOR : utilisée uniquement sur la page du projet MODULOR */
.modulor-brand { --m-vert: #4CAF41; --m-ardoise: #212734; --m-foret: #2E7A27; --m-tendre: #E8F5E6; --m-brume: #F3F4F6; --m-acier: #8A8F9C; }
.modulor-brand .swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.modulor-brand .sw { border: 1px solid var(--filet); border-radius: var(--r-s); overflow: hidden; background: #fff; }
.modulor-brand .sw .c { height: 64px; }
.modulor-brand .sw .t { padding: 10px 12px; font-size: 1rem; }
.modulor-brand .sw .t code { display: block; color: var(--encre-2); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; }
.modulor-brand .logo-board { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.modulor-brand .logo-board figure { border: 1px solid var(--filet); border-radius: var(--r-m); padding: var(--s-4); display: grid; place-items: center; min-height: 180px; }
.modulor-brand .logo-board figure.dark { background: #212734; }
.modulor-brand .logo-board figure.light { background: #fff; }
.modulor-brand .logo-board img { max-height: 72px; width: auto; }
.modulor-brand figcaption { font-size: 1rem; color: var(--encre-2); margin-top: 8px; text-align: center; }
.modulor-brand .shot { border: 1px solid var(--filet); border-radius: var(--r-m); overflow: hidden; background: #fff; }
.modulor-brand .shot img { width: 100%; }
@media (max-width: 600px) { .modulor-brand .logo-board { grid-template-columns: 1fr; } }

/* ---------- 10. Contact et pied de page ---------- */
.contact-band { background: var(--encre); color: var(--papier); border-radius: var(--r-l); padding: var(--s-6); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-5); align-items: center; }
.contact-band h2 { color: #fff; margin-bottom: var(--s-2); }
.contact-band p { color: #D9D2C3; }
.contact-band a { text-decoration-color: var(--papier); }
.contact-band a:hover { color: #fff; }
.contact-band .btn.primary { background: var(--terracotta); }
.contact-band .btn.secondary { border-color: var(--papier); color: var(--papier); }
.contact-band .btn.secondary:hover { background: var(--papier); color: var(--encre); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.contact-list li { display: flex; gap: 14px; align-items: center; font-size: 1.125rem; }
.contact-list svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 860px) { .contact-band { grid-template-columns: 1fr; padding: var(--s-4); } }

.site-footer { border-top: 1px solid var(--filet); padding: var(--s-5) 0 var(--s-4); margin-top: var(--s-7); font-size: 1rem; color: var(--encre-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-4); }
.site-footer .brand { color: var(--encre); display: inline-block; margin-bottom: var(--s-1); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { font-family: var(--sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--encre); margin-bottom: var(--s-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--filet); font-size: 1rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 11. Apparition discrète au défilement ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .project-card, .btn, .btn .arrow { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 13. Animations légères ---------- */
/* Entrée du héros au chargement (CSS seul, sans dépendre du JS) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero-grid > div:first-child > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero-grid > div:first-child > :nth-child(1) { animation-delay: .05s; }
.hero-grid > div:first-child > :nth-child(2) { animation-delay: .15s; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: .25s; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: .35s; }
.hero-grid > div:first-child > :nth-child(5) { animation-delay: .45s; }
.hero-grid > .portrait { animation: fade-in .8s ease .2s both; }
.portrait .tag { animation: rise .6s cubic-bezier(.2, .7, .2, 1) .65s both; }

/* Apparition en cascade des blocs voisins (délai posé par le JS via --d) */
.reveal { transition-delay: calc(var(--d, 0) * 70ms); }

/* Trait du kicker qui se dessine à l'apparition */
.kicker::before { transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1) .2s; }
.reveal:not(.in) .kicker::before { transform: scaleX(0); }
.no-js .kicker::before { transform: none; }

/* Survols discrets */
.card, .skill-family { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover, .skill-family:hover { transform: translateY(-3px); box-shadow: var(--ombre-s); }
.project-card .cover { overflow: hidden; }
.project-card .cover img { transition: transform .45s ease; }
.project-card:hover .cover img { transform: scale(1.03); }
.btn:hover { transform: translateY(-1px); }
.chip, .tool { transition: border-color .15s ease, transform .15s ease; }
.chip:hover { border-color: var(--terracotta); }
.tool:hover { transform: translateY(-2px); }

/* Soulignement glissant dans la navigation */
.nav-links a { position: relative; }
.nav-links a:not([aria-current="page"])::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:not([aria-current="page"]):hover::after,
.nav-links a:not([aria-current="page"]):focus-visible::after { transform: scaleX(1); }

/* Filet de l'en-tête */
.site-header { transition: border-color .25s ease; }

@media (prefers-reduced-motion: reduce) {
  .hero-grid > div:first-child > *, .hero-grid > .portrait, .portrait .tag { animation: none; }
  .reveal { transition-delay: 0s; }
  .kicker::before, .card, .skill-family, .project-card .cover img, .chip, .tool, .nav-links a::after, .site-header { transition: none; }
  .reveal:not(.in) .kicker::before { transform: none; }
  .card:hover, .skill-family:hover, .btn:hover, .tool:hover, .project-card:hover .cover img { transform: none; }
}

/* ---------- 12. Impression ---------- */
@media print {
  .site-header, .site-footer, .skip, .hero-foot .scroll, .contact-band .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { text-decoration: none; color: #000; }
}
