/* Rihab Darghouthi — feuille de style.
   DA : beiges et terracotta, papier chaud, verrerie de laboratoire dessinée, motif hexagonal
   (nid d'abeille = cycle aromatique). Thème clair uniquement. */

:root {
  color-scheme: only light;

  --terra:    #b5542f;
  --terra-2:  #d07a4c;
  --clay:     #9a4425;
  --sand:     #f2e6d8;
  --sand-2:   #e8d7c3;
  --cream:    #fbf6ef;
  --ink:      #3a2a20;
  --text:     #6b5546;
  --muted:    #9c8574;
  --line:     #e3d3c0;
  --olive:    #7d8a5a;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(58,42,32,.04), 0 14px 34px -14px rgba(58,42,32,.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font: 400 16.5px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.15; }
h2 { font: 400 clamp(2.1rem, 4.4vw, 3.2rem)/1.05 var(--serif); letter-spacing: -.015em; }
h3 { font: 700 1.1rem/1.35 var(--sans); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.meta { font: 500 .76rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--terra); margin: 0 0 6px; }
.muted { color: var(--muted); }
.org { color: var(--ink); font-weight: 600; margin: 4px 0 8px; }
.hint { font-size: .85rem; color: var(--muted); font-style: italic; margin-top: 18px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); border: 1.5px solid transparent; background: var(--terra); color: #fff;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); background: var(--clay); }
.btn--ghost { background: transparent; color: var(--clay); border-color: var(--sand-2); }
.btn--ghost:hover { background: var(--sand); border-color: var(--terra); color: var(--clay); }
.btn--light { background: var(--cream); color: var(--clay); }
.btn--light:hover { background: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Barre du haut ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.topbar.is-solid { background: rgba(251,246,239,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--terra); color: #fff; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font: 400 1.05rem/1 var(--serif); }
.brand-name b { font-weight: 600; }
.menu { display: flex; gap: 2px; }
.menu a { color: var(--text); font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.menu a:hover, .menu a.is-active { text-decoration: none; background: var(--sand); color: var(--clay); }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 110px; background: linear-gradient(170deg, var(--sand) 0%, var(--cream) 62%); }
/* Nid d'abeille : cycles aromatiques en filigrane */
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%23b5542f' stroke-opacity='.22' stroke-width='1.2'%3E%3Cpath d='M28 1 52 15v28L28 57 4 43V15z'/%3E%3Cpath d='M0 49l4-2M56 49l-4-2'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 72%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.kicker { font: 500 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: 22px; }
.hero h1 { font: 300 clamp(3rem, 7vw, 5.6rem)/.98 var(--serif); letter-spacing: -.025em; }
.hero h1 span { display: block; color: var(--terra); font-weight: 600; font-style: italic; }
.hero-role { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 22px 0 10px; }
.hero-lead { font-size: 1.1rem; max-width: 30em; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--clay); background: rgba(181,84,47,.08); border: 1px solid rgba(181,84,47,.18); }
.chips--soft li { background: #fff; border-color: var(--line); color: var(--text); }

/* Portrait en arche + verrerie en pastille */
.hero-visual { position: relative; justify-self: center; width: min(400px, 100%); }
.portrait { margin: 0; position: relative; }
.portrait::before {
  content: ''; position: absolute; inset: -18px -18px 18px 18px; border-radius: 999px 999px 18px 18px;
  border: 1.5px solid rgba(181,84,47,.35);
}
.portrait img {
  width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 3/4;
  border-radius: 999px 999px 18px 18px; box-shadow: 0 30px 60px -24px rgba(58,42,32,.45);
}
.float-card {
  position: absolute; left: -12%; bottom: 14%; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 13px 18px; box-shadow: 0 20px 40px -16px rgba(58,42,32,.4);
  font-size: .86rem; line-height: 1.35; animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 1rem; }
.float-card span:not(.card-kicker) { color: var(--muted); }
.card-kicker { display: block; font: 500 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--terra); margin-bottom: 4px; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.flask { position: absolute; right: -14%; top: -6%; width: 116px; height: auto; overflow: visible; }
.flask .halo { fill: rgba(181,84,47,.08); }
.flask .glass { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.flask .liquid { animation: slosh 7s ease-in-out infinite; }
.flask .bub { fill: rgba(255,255,255,.55); animation: rise 4s ease-in infinite; }
.flask .b2 { animation-duration: 5.2s; animation-delay: -1.4s; }
.flask .b3 { animation-duration: 3.4s; animation-delay: -2.2s; }
.flask .mol { fill: none; stroke: var(--terra); stroke-width: 3; stroke-linejoin: round; }
.flask .mol circle { fill: var(--terra); stroke: none; }
@keyframes slosh { 50% { transform: translateY(-8px); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .8; } 100% { transform: translateY(-70px); opacity: 0; } }

/* ---------- Chiffres ---------- */
.facts { margin-top: -40px; position: relative; z-index: 2; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fact { padding: 26px 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font: 300 2.4rem/1 var(--serif); color: var(--terra); margin-bottom: 8px; }
.fact span { font-size: .88rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section--sand { background: var(--sand); }
.section-head { margin-bottom: 46px; }
.label { font: 500 .76rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.label::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.label--light { color: var(--sand-2); justify-content: center; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.split .section-head { margin: 0; position: sticky; top: 104px; }
.prose p { font-size: 1.06rem; }
.prose p:first-child { font-size: 1.22rem; line-height: 1.55; color: var(--ink); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .card-title { font: 500 .76rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards .card h3 { font-size: 1.22rem; margin: 16px 0 10px; }
.card-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--sand); color: var(--clay); }
.card-icon svg { width: 30px; height: 30px; }
.card--row { display: flex; gap: 16px; }
.card--row + .card--row { margin-top: 20px; }
.card--row h3 { font-size: 1.1rem; margin-bottom: 2px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.ticks li { position: relative; padding-left: 26px; margin-top: 9px; font-size: .95rem; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px;
  background: rgba(181,84,47,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.4 2.4L12 5.2' fill='none' stroke='%23b5542f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Chaîne de valeur */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 46px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chain-step { padding: 22px 20px; border-right: 1px solid var(--line); position: relative; }
.chain-step:last-child { border-right: 0; }
.chain-num { font: 500 .72rem/1 var(--mono); color: var(--terra); display: block; margin-bottom: 10px; }
.chain-step strong { display: block; color: var(--ink); font-size: 1rem; }
.chain-step span:not(.chain-num) { font-size: .85rem; color: var(--muted); }
.chain-step::after {
  content: ''; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%) rotate(45deg);
  background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); z-index: 2;
}
.chain-step:last-child::after { display: none; }

/* Recherche en cours : bloc + schéma du capteur */
.focus { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.focus h3 { font: 400 1.7rem/1.2 var(--serif); margin: 6px 0 14px; }
.scheme { margin: 0; }
.scheme svg { width: 100%; height: auto; background: var(--cream); border-radius: 12px; border: 1px solid var(--line); }
.scheme figcaption { font-size: .85rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.scheme .sol { fill: rgba(125,138,90,.16); stroke: var(--olive); stroke-width: 1.5; }
.scheme .ions circle { fill: var(--olive); opacity: .8; }
.scheme .ions text { font: 700 8px var(--sans); fill: #fff; }
/* Les ions descendent vers la membrane, y sont captés, puis un nouveau arrive. */
.scheme .ion { animation: capture 4.6s ease-in infinite; }
.scheme .i2 { animation-duration: 5.4s; animation-delay: -1.2s; }
.scheme .i3 { animation-duration: 4.1s; animation-delay: -2.4s; }
.scheme .i4 { animation-duration: 6s;   animation-delay: -3.1s; }
.scheme .i5 { animation-duration: 5s;   animation-delay: -4.3s; }
@keyframes capture {
  0%   { transform: translateY(-8px); opacity: 0; }
  18%  { opacity: .85; }
  72%  { transform: translateY(34px); opacity: .85; }
  88%, 100% { transform: translateY(42px); opacity: 0; }
}

.scheme .memb { fill: var(--terra); }
.scheme .memb-glow { fill: var(--terra); opacity: .3; animation: glow 4.6s ease-in-out infinite; transform-origin: 160px 118px; }
@keyframes glow { 0%, 60%, 100% { transform: scale(1); opacity: .18; } 78% { transform: scale(1.12); opacity: .42; } }

.scheme .gate { fill: var(--clay); }
.scheme .chg { font: 700 9px var(--sans); fill: #fff; opacity: 0; animation: charge 4.6s ease-out infinite; }
.scheme .c2 { animation-delay: .25s; } .scheme .c3 { animation-delay: .5s; } .scheme .c4 { animation-delay: .75s; }
@keyframes charge { 0%, 55% { opacity: 0; } 75% { opacity: 1; } 100% { opacity: .25; } }

.scheme .body { fill: rgba(58,42,32,.06); stroke: var(--ink); stroke-width: 1.5; }
.scheme .pad { fill: var(--sand-2); stroke: var(--ink); stroke-width: 1.2; }
.scheme .chan { stroke: var(--terra-2); stroke-width: 3; stroke-dasharray: 6 5; animation: flow 1.6s linear infinite; }
/* Électrons : ils accélèrent quand la grille se charge. */
.scheme .el { fill: var(--terra); }
.scheme .e1 { animation: run 2.6s cubic-bezier(.5,0,.6,1) infinite; }
.scheme .e2 { animation: run 2.6s cubic-bezier(.5,0,.6,1) infinite -.85s; }
.scheme .e3 { animation: run 2.6s cubic-bezier(.5,0,.6,1) infinite -1.7s; }
@keyframes run { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(132px); opacity: 0; } }

.scheme .lbl { font: 500 9px var(--mono); fill: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.scheme .lbl--on { font-size: 7px; fill: #fff; letter-spacing: .02em; }
.scheme .lbl--soft { font-size: 7.5px; opacity: .8; }
.scheme .lbl--pad { font-size: 6.5px; fill: var(--ink); letter-spacing: .02em; }
.scheme .plot { fill: #fff; stroke: var(--line); stroke-width: 1; }
.scheme .curve { fill: none; stroke: var(--terra); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw 4.6s ease-in-out infinite; }
@keyframes draw { 0%, 30% { stroke-dashoffset: 190; } 80%, 100% { stroke-dashoffset: 0; } }
.scheme .dot { fill: var(--terra); opacity: 0; animation: pop 4.6s ease-out infinite; }
@keyframes pop { 0%, 75% { opacity: 0; transform: scale(.4); } 85% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
.scheme .dot { transform-origin: 220px 190px; }
@keyframes flow { to { stroke-dashoffset: -22; } }

/* Espèces visées + communications */
.targets { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.targets-label { font: 500 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.targets ul { display: flex; gap: 8px; flex-wrap: wrap; }
.targets li { font: 600 .9rem/1 var(--sans); color: var(--clay); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.pubs { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.pubs-title { font: 500 .76rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.pub { display: grid; grid-template-columns: 96px 1fr; gap: 20px; }
.pub + .pub { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.pub-meta { display: flex; flex-direction: column; gap: 6px; }
.pub-year { font: 300 2rem/1 var(--serif); color: var(--terra); }
.pub-type { font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pub h4 { font: 400 1.25rem/1.3 var(--serif); color: var(--ink); margin: 0 0 6px; }
.pub-venue { font-weight: 600; color: var(--ink); margin: 0 0 4px; font-size: .95rem; }
.pub-authors { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.pub-authors b { color: var(--clay); }
.pub-summary { font-size: .93rem; margin: 0 0 10px; }
.pub-link { font-weight: 600; font-size: .9rem; }
@media (max-width: 760px) { .pub { grid-template-columns: 1fr; gap: 8px; } .pub-meta { flex-direction: row; align-items: baseline; gap: 12px; } .pubs { padding: 22px 20px; } }

/* Parcours */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--terra), var(--sand-2)); }
.tl { position: relative; }
.tl + .tl { margin-top: 20px; }
.tl-dot { position: absolute; left: -32px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); border: 3px solid var(--terra); }
.tl.is-current .tl-dot { background: var(--terra); box-shadow: 0 0 0 6px rgba(181,84,47,.16); }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.tl-card h3 { font-size: 1.25rem; }
.section--sand .card, .section--sand .tl-card { box-shadow: none; }

/* Langues */
.langs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.langs li:first-child { border-top: 0; padding-top: 0; }
.langs strong { display: block; color: var(--ink); }
.langs span { font-size: .87rem; color: var(--muted); }
.meter { display: flex; gap: 4px; }
.meter i { width: 10px; height: 20px; border-radius: 3px; background: var(--sand-2); }
.meter i.on { background: var(--terra); }

/* Bandeau photos « hors labo » */
.band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.band figure { margin: 0; }
.band img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.band figcaption { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* Contact */
.contact { background: linear-gradient(160deg, #6f2f17, #b5542f); color: #f6e5d8; text-align: center; overflow: hidden; }
.contact .hero-pattern { opacity: .3; mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 75%); }
.contact-inner { position: relative; max-width: 720px; }
.contact h2 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4rem); }
.contact-text { font-size: 1.1rem; margin: 18px auto 30px; }
.contact-mail { display: inline-block; font: 400 clamp(1.3rem, 3.2vw, 2rem)/1.2 var(--serif); font-style: italic; color: #fff; border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 4px; word-break: break-all; }
.contact-mail:hover { text-decoration: none; border-color: #fff; }
.contact-loc { font: 500 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sand-2); margin: 18px 0 30px; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { background: var(--ink); color: #c9b6a5; font-size: .86rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; padding: 20px 0; flex-wrap: wrap; }
.footer-note { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #a08c7b; }
.footer-note a { color: #d3c0ae; text-decoration: none; }
.footer-note a:hover { color: #fff; text-decoration: underline; }

/* Bulles de fond : discrètes, au-dessus des aplats mais sous le texte utile */
.bubbles {
  position: fixed; inset: -10vh 0; pointer-events: none; z-index: 3; overflow: hidden;
  transform: translate3d(0, calc(var(--sy, 0) * -0.035px), 0);
}
.bubbles i {
  position: absolute; bottom: -6vh; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9), rgba(181,84,47,.2) 68%, rgba(181,84,47,.1));
  border: 1px solid rgba(181,84,47,.22);
  opacity: 0; animation-name: bubble; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes bubble {
  0%   { transform: translate(0, 0) scale(.9); opacity: 0; }
  12%  { opacity: .43; }
  50%  { transform: translate(var(--sway, 10px), -55vh) scale(1); }
  88%  { opacity: .25; }
  100% { transform: translate(0, -115vh) scale(1.05); opacity: 0; }
}

/* Apparition au scroll */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .scheme .ion, .scheme .chg, .scheme .el, .scheme .curve, .scheme .dot, .scheme .memb-glow, .scheme .chan { animation: none; }
  .bubbles { display: none; }
  .scheme .curve { stroke-dashoffset: 0; }
  .scheme .chg, .scheme .dot { opacity: 1; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .flask .liquid, .flask .bub { animation: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { width: min(320px, 76%); }
  .flask { width: 92px; right: -8%; }
  .float-card { left: -8%; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split .section-head { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
  .focus { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .chain { grid-template-columns: 1fr 1fr; }
  .chain-step { border-bottom: 1px solid var(--line); }
  .chain-step::after { display: none; }
}
@media (max-width: 760px) {
  .burger { display: flex; flex-direction: column; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
  .burger span { width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu {
    position: absolute; top: 70px; left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 10px;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .menu a { padding: 12px 14px; }
  .hero { padding: 116px 0 90px; }
  .section { padding: 72px 0; }
  .cards, .grid-2, .chain, .facts-grid { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr 1fr; gap: 12px; }
  .band figure:last-child { display: none; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .card, .tl-card { padding: 22px 20px; }
  .timeline { padding-left: 24px; }
  .tl-dot { left: -24px; }
  .footer-inner { justify-content: center; }
}

/* Bloc « Télécharger le CV » */
.cv-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 34px; }
.cv-box h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cv-links { display: flex; gap: 14px; flex-wrap: wrap; }
.cv-link { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 104px;
  padding: 16px 20px; border-radius: 14px; border: 1.5px solid var(--sand-2); background: var(--cream);
  color: var(--ink); transition: transform .2s, border-color .2s, background .2s; }
.cv-link:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--terra); background: #fff; }
.cv-code { font: 400 1.5rem/1 var(--serif); color: var(--terra); }
.cv-label { font-weight: 600; font-size: .92rem; }
.cv-ext { font: 500 .66rem/1 var(--mono); letter-spacing: .12em; color: var(--muted); }
@media (max-width: 760px) { .cv-box { padding: 24px 20px; } .cv-links { width: 100%; } .cv-link { flex: 1; min-width: 0; } }
