/* Portfolio de Gildas TOSSAVI — feuille de style unique, partagée par les trois langues.
   Pourquoi aucune police externe (11.10.2026) : la pile système n'appelle aucun serveur tiers.
   Pas d'adresse IP transmise à Google Fonts, donc rien à déclarer (nLPD/RGPD), et la mention
   « sans outil de suivi » du pied de page reste vraie. Ne pas ajouter de <link> vers une police
   hébergée ailleurs : verifier.mjs le refuse, et l'en-tête CSP le bloquerait en production.
   Aucun style en ligne (attribut style="") : la CSP « style-src 'self' » l'ignorerait sans erreur. */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #eeeae2;
  --ink: #1c2128;
  --muted: #59626e;
  --line: #e0dbd0;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #d5eeea;
  --focus: #b45309;
  --shadow: 0 1px 2px rgb(20 24 30 / 0.05), 0 10px 30px rgb(20 24 30 / 0.06);
  --radius: 16px;
  --max: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101317;
    --surface: #171b21;
    --surface-2: #13161b;
    --ink: #e7ebef;
    --muted: #a0a9b4;
    --line: #29303a;
    --accent: #5eead4;
    --accent-ink: #052e2b;
    --accent-soft: #14312e;
    --focus: #fbbf24;
    --shadow: none;
  }
}

*, *::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(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
}

svg { display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--surface); color: var(--ink); padding: 8px 12px;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.12rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); text-decoration: none; white-space: nowrap;
  padding: 8px 10px; border-radius: 8px; font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex: none; }
.lang a {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 9px; border-radius: 999px; color: var(--muted); text-decoration: none;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--ink); color: var(--bg); }

@media (max-width: 780px) {
  /* padding-block et non « padding » : le raccourci écrasait la marge latérale de .wrap
     (nom et menu collés aux bords de l'écran, vu sur rendu 390 px le 11.10.2026). */
  .bar { flex-wrap: wrap; gap: 6px 12px; padding-block: 10px 6px; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .nav a { padding: 6px 10px 6px 0; margin-right: 8px; }
}

/* ---------- Accueil ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 0;
  background: radial-gradient(900px 480px at 88% -8%, var(--accent-soft), transparent 62%), var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.portrait { position: relative; justify-self: center; width: min(100%, 420px); margin: 0; }
.portrait::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px; border-radius: 30px;
  background: linear-gradient(135deg, #0f766e, #134e4a);
}
.portrait img {
  position: relative; display: block; width: 100%; height: auto;
  border-radius: 30px; box-shadow: 0 24px 60px rgb(20 24 30 / 0.18);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(72%, 300px); justify-self: start; margin-bottom: 8px; }
  .portrait::before { inset: 14px -14px -14px 14px; border-radius: 24px; }
  .portrait img { border-radius: 24px; }
}
.ridge {
  display: block; width: 100%; height: clamp(56px, 9vw, 128px);
  margin-top: clamp(28px, 5vw, 56px); color: var(--surface-2);
}
.hero + .band-alt { border-top: 0; }
/* Entrée de l'accueil (CSS seul : visible même sans script). Les textes arrivent en séquence,
   le portrait se dévoile de bas en haut, son aplat vert glisse en place. */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: monte 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .hero-text > :nth-child(4) { animation-delay: 0.24s; }
  .hero-text > :nth-child(5) { animation-delay: 0.32s; }
  .hero-text > :nth-child(6) { animation-delay: 0.40s; }
  .portrait img { animation: devoile 1.1s cubic-bezier(0.7, 0, 0.2, 1) 0.15s both; }
  .portrait::before { animation: glisse 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both; }
  @keyframes monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes devoile { from { clip-path: inset(100% 0 0 0 round 30px); } to { clip-path: inset(0 0 0 0 round 30px); } }
  /* « translate » et non « transform » : une animation qui fige transform écraserait l'effet de survol. */
  @keyframes glisse { from { opacity: 0; translate: -22px -22px; } to { opacity: 1; translate: 0 0; } }
}
.eyebrow {
  margin: 0 0 8px; font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
h1 {
  font-family: var(--serif); font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 12px;
}
.tagline {
  margin: 0 0 16px; font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.3; color: var(--accent);
}
.intro { margin: 0 0 24px; max-width: 64ch; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 600; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.note {
  margin: 22px 0 0; max-width: 64ch; padding: 8px 14px;
  font-size: 0.9rem; color: var(--muted);
  background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
}
.stats {
  list-style: none; margin: clamp(32px, 6vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat strong {
  display: block; margin-bottom: 6px;
  font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--accent);
}
/* « > span » et non « span » : le chiffre animé est lui aussi un <span> (dans <strong>) ; la règle
   générale le rendait minuscule et gris — en ligne du 11.10.2026 au matin, vu sur rendu, pas par un contrôle. */
.stat > span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .stat { padding: 14px; }
  .stat strong { font-size: 1.6rem; }
  .stat > span { font-size: 0.84rem; }
}
@media (max-width: 340px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.band { padding: clamp(44px, 7vw, 84px) 0; scroll-margin-top: 64px; }
.band-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
@media (max-width: 780px) { .band, .hero { scroll-margin-top: 104px; } }

.section-head { margin-bottom: 26px; }
h2 {
  font-family: var(--serif); font-size: clamp(1.65rem, 3.6vw, 2.25rem);
  line-height: 1.2; margin: 0 0 6px;
}
.section-head p { margin: 0; max-width: 64ch; color: var(--muted); }
h3 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 8px; }
.sub { margin: 40px 0 16px; font-family: var(--serif); font-size: 1.35rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card > p { margin: 0; color: var(--muted); }
.icon {
  width: 42px; height: 42px; margin-bottom: 14px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Objectif (bande colorée, mêmes couleurs en clair et en sombre) ---------- */
.band-accent { background: linear-gradient(135deg, #0d3b38 0%, #134e4a 60%, #1e3a5f 100%); color: #eef6f5; }
.band-accent h2 { color: #ffffff; }
.band-accent .section-head p { color: rgb(238 246 245 / 0.8); }
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: etape;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.steps li {
  padding: 24px 22px 22px; border-radius: var(--radius);
  background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.14);
}
.steps li::before {
  counter-increment: etape; content: counter(etape);
  display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px;
  border-radius: 50%; background: #5eead4; color: #052e2b; font-weight: 700;
}
.steps h3 { color: #ffffff; }
.steps p { margin: 0; color: rgb(238 246 245 / 0.84); }
.steps li:last-child { background: rgb(94 234 212 / 0.12); border-color: rgb(94 234 212 / 0.4); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Mosaïque de photos : deux verticales, puis la petite photo au-dessus de la case texte ----------
   3 colonnes × 2 rangées sur ordinateur, 2 × 3 sur téléphone : les 4 cases remplissent la grille exactement.
   Changer une case ou le nombre de colonnes peut laisser une case vide, sans aucune erreur (11.10.2026) :
   garde-fou « trou dans la mosaïque » dans outils/controle-visibilite.mjs. */
.bento {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 14px;
  grid-auto-flow: dense;
}
.bento figure {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.bento .g-haute { grid-row: span 2; }
.bento img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bento figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: #ffffff; background: rgb(16 19 23 / 0.58);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform 0.4s ease, background-color 0.4s ease;
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .bento figure:hover img { transform: scale(1.05); }
  .bento figure:hover figcaption { background: rgb(15 118 110 / 0.9); transform: translateY(-2px); }
}
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; } }
@media (max-width: 420px) {
  .bento { grid-auto-rows: 140px; }
  .bento figcaption { left: 8px; bottom: 8px; font-size: 0.72rem; }
}

/* ---------- Projets ---------- */
.card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (prefers-reduced-motion: no-preference) {
  .project:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(20 24 30 / 0.05), 0 18px 40px rgb(20 24 30 / 0.1); }
}
.project { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.shot {
  margin: -22px -22px 8px; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.shot-bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.project h3 { margin: 0; font-family: var(--serif); font-size: 1.4rem; }
.project .meta {
  margin: 0; font-size: 0.78rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.project p { margin: 0; }
.project ul { margin: 0; padding-left: 18px; }
.project li { margin: 5px 0; }
.project .links { margin-top: auto; padding-top: 6px; overflow-wrap: anywhere; }
.project .links a { font-weight: 600; }
.project.small h3 { font-size: 1.16rem; }
.project.small > p:not(.meta):not(.links) { color: var(--muted); }

/* ---------- Parcours ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline > li { position: relative; padding: 0 0 30px 26px; border-left: 2px solid var(--line); }
.timeline > li:last-child { padding-bottom: 4px; }
.timeline > li::before {
  content: ""; position: absolute; left: -8px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.when { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--accent); letter-spacing: 0.03em; }
.timeline h3 { margin: 2px 0 2px; }
.where { margin: 0 0 8px; color: var(--muted); }
.timeline ul { margin: 0; padding-left: 18px; list-style: disc; }
.timeline li li { margin: 4px 0; }
.timeline p:not(.when):not(.where):not(.footnote) { margin: 0; }
.footnote { margin: 10px 0 0; font-size: 0.84rem; color: var(--muted); }

.edu { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.edu li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.edu strong { display: block; }
.edu span { color: var(--muted); }

/* ---------- Compétences ---------- */
.skill-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
@media (max-width: 720px) { .skill-groups { grid-template-columns: 1fr; } }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px; font-size: 0.92rem;
}
.tools { margin-top: 34px; }

.langs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.langs li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.langs strong { display: block; }
.langs span { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 600px) { .langs { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-card { display: grid; gap: 22px; }
.contact-head { display: flex; align-items: center; gap: 16px; }
.contact-head p { margin: 0; color: var(--muted); }
.contact-head strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; }
.avatar {
  width: 88px; height: 88px; flex: none; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--accent);
}
.contact-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.contact-list dt {
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.contact-list dd { margin: 2px 0 0; font-size: 1.06rem; overflow-wrap: anywhere; }
.contact-card .btn { justify-self: start; }
.contact-note { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .contact-list { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { padding: 28px 0 40px; color: var(--muted); font-size: 0.88rem; }
.site-footer p { margin: 0; }

/* ---------- Page 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.lost h1 { margin-bottom: 18px; }
.lost p { margin: 6px 0; color: var(--muted); }
.lost .cta { justify-content: center; margin-top: 22px; }

/* ======================================================================
   Effets (11.10.2026). Uniquement transform / opacity / ombres : fluide même sur téléphone.
   Les apparitions au défilement sont posées par app.js ; la règle qui masque un élément
   avant son apparition DOIT rester sous « .anim » (posée par app.js à la fin d'une
   initialisation réussie) : sinon un script en panne cacherait le contenu. verifier.mjs le contrôle.
   ====================================================================== */
.reveal {
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delai, 0ms),
              transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delai, 0ms);
}
.anim .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }
@media print { .anim .reveal { opacity: 1 !important; transform: none !important; } }

/* En-tête : ombre au défilement, barre de progression de lecture. */
.site-header { transition: box-shadow 0.3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgb(20 24 30 / 0.08); }
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--accent), #5eead4);
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* Menu : soulignement animé, section en cours mise en évidence. */
.nav a { position: relative; transition: color 0.2s ease, background-color 0.2s ease; }
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s ease;
}
.nav a:hover::after, .nav a[aria-current="location"]::after { transform: scaleX(1); }
.nav a[aria-current="location"] { color: var(--ink); }
@media (max-width: 780px) { .nav a::after { left: 0; right: 10px; bottom: 1px; } }

/* Halos lumineux qui dérivent lentement derrière l'accueil. */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 560px; height: 560px; right: -140px; top: -180px;
  background: radial-gradient(circle, rgb(94 234 212 / 0.38), transparent 65%);
}
.hero::after {
  width: 460px; height: 460px; left: -180px; bottom: 60px;
  background: radial-gradient(circle, rgb(15 118 110 / 0.16), transparent 65%);
}
.hero > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: derive 18s ease-in-out infinite alternate; }
  .hero::after { animation: derive 23s ease-in-out infinite alternate-reverse; }
  @keyframes derive { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-70px, 46px, 0) scale(1.12); } }
}

/* Portrait : léger effet de profondeur au survol. */
.portrait img, .portrait::before { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.portrait:hover img { transform: translate(-6px, -6px); }
.portrait:hover::before { transform: translate(6px, 6px); }

/* Boutons. */
.btn { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { box-shadow: 0 10px 26px rgb(15 118 110 / 0.3); }
.btn-ghost:hover { border-color: var(--accent); }

/* Halo qui suit la souris (position posée par app.js). */
.card, .stat, .steps li { position: relative; }
.card::after, .stat::after, .steps li::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(15 118 110 / 0.09), transparent 60%);
}
.steps li::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(94 234 212 / 0.14), transparent 60%); }
@media (prefers-color-scheme: dark) {
  .card::after, .stat::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(94 234 212 / 0.08), transparent 60%); }
}
.card:hover::after, .stat:hover::after, .steps li:hover::after { opacity: 1; }
.stat { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
@media (prefers-reduced-motion: no-preference) {
  .stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
  .steps li { transition: transform 0.25s ease, border-color 0.25s ease; }
  .steps li:hover { transform: translateY(-3px); border-color: rgb(94 234 212 / 0.5); }
}

/* Captures pleine hauteur : le site défile tout seul au survol de la carte. */
.shot { overflow: hidden; }
.shot img { transition: object-position 1.4s cubic-bezier(0.4, 0, 0.2, 1); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .project:hover .shot img.defile { object-position: 50% 100%; transition-duration: 7s; }
}


/* Phrase de contexte sous un poste (ex. : le marché de l'assurance au Bénin). */
.contexte { margin: 0 0 8px; padding: 8px 12px; font-size: 0.92rem; color: var(--muted); background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }

/* Projets en mini étude de cas : besoin, rôle, réalisation, résultat, preuve (relecture du 11.10.2026). */
.cas { margin: 2px 0 0; display: grid; gap: 8px; }
.cas div { display: grid; grid-template-columns: 7.6em 1fr; gap: 10px; }
.cas dt { padding-top: 2px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.cas dd { margin: 0; }
.preuve { margin-right: 4px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 480px) { .cas div { grid-template-columns: 1fr; gap: 0; } }

/* Case de texte de la mosaïque (remplace la 7e photo, garde la grille pleine). */
.bento .g-texte {
  display: grid; place-items: center; padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow);
  background: radial-gradient(circle at 25% 20%, rgb(94 234 212 / 0.28), transparent 60%), linear-gradient(135deg, #0d3b38, #0f766e);
}
.bento .g-texte p { margin: 0; font: italic 600 1.02rem/1.5 var(--serif); color: #ffffff; text-align: center; }
/* Case de texte : plus petite sur téléphone (le texte débordait de la case à 390 px, vu le 11.10.2026). */
@media (max-width: 860px) { .bento .g-texte { padding: 12px; } .bento .g-texte p { font-size: 0.86rem; line-height: 1.4; } }
@media (max-width: 420px) { .bento .g-texte p { font-size: 0.76rem; } }

/* 9.11.2026 — page de services (services.html, de/leistungen.html, en/services.html).
   AJOUTS seulement : aucune règle existante n'est modifiée (le portfolio reste identique).
   Le prix est en grand pour qu'un patron le lise en 20 secondes (demande de Gildas, prompt du 9.11). */
.services-hero { max-width: 46rem; }
.forfait .prix { margin: 0.3rem 0 0.9rem; font: 600 clamp(1.6rem, 3.2vw, 2rem)/1.1 var(--serif); color: var(--accent); }
.forfait .prix small { display: block; margin-top: 0.3rem; font: 500 0.85rem/1.3 var(--sans); color: var(--muted); }
.forfait ul { margin: 0; padding-left: 1.1rem; }
.forfait li { margin: 0 0 0.4rem; }
.note-forfaits { margin: 1.2rem 0 0; color: var(--muted); }
#essai .cta, #exemples .cta, #contact .contact-card .cta { margin-top: 1rem; }
/* 9.11.2026 — contraste : l'accroche (.tagline, couleur d'accent) mesurait 4,4996:1 sur le fond le plus clair du dégradé de
   l'accueil, soit juste SOUS le minimum WCAG de 4,5:1 (nouveau contrôle de lisibilité, outils/controle-visibilite.mjs).
   Un vert à peine plus foncé, en mode clair seulement, remonte à ~5:1 ; l'œil ne voit pas la différence. */
@media (prefers-color-scheme: light) { .tagline { color: #0d6e66; } }
