/* ============================================================
   JOANNA DEMEURE - Consultante digitale
   Design tokens + base + components
   ============================================================ */

:root{
  /* Editorial B&W - color comes from the photos */
  --bg: #FFFFFF;
  --bg-warm: #F4F3F1;
  --bg-deep: #0E0E0E;
  --ink: #111111;
  --ink-soft: #5C5C5C;
  --ink-faint: #9A9A98;
  --line: #E4E3E0;
  --line-soft: #EFEEEB;

  --coral: #111111;
  --coral-deep: #000000;
  --coral-tint: #EFEEEB;
  --coral-glow: rgba(0,0,0,.06);

  --gold: #111111;
  --gold-tint: #EFEEEB;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --hand: 'Archivo', sans-serif;

  --ease: cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);
  --maxw: 1320px;
  --gut: clamp(20px, 5vw, 64px);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* keep section titles clear of the fixed nav when jumping via anchors */
#services, #diagnostic, #realisations, #approche, #contact, #methode, #temoignages, #tarifs, #apropos, #faq{ scroll-margin-top: 84px; }
body{
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: "ss01";
}
::selection{ background: var(--coral); color: #fff; }
a{ color: inherit; text-decoration: none; }
img{ display: block; max-width: 100%; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; }
svg.arrow{ width: 18px; height: 18px; flex: none; }
.more{ white-space: nowrap; }

.wrap{ width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* Eyebrow / small caps label */
.eyebrow{
  font-size: 12px; font-weight: 600; letter-spacing: .22em; white-space: nowrap;
  text-transform: uppercase; color: var(--coral);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before{
  content:""; width: 22px; height: 1px; background: var(--coral); opacity: .6;
}
.eyebrow.no-rule::before{ display: none; }

/* Buttons ----------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s var(--ease);
  will-change: transform;
}
.btn .arrow{ transition: transform .45s var(--ease); }
.btn:hover .arrow{ transform: translateX(5px); }
.btn-primary{
  background: var(--coral); color: #fff;
  box-shadow: 0 10px 30px -12px var(--coral);
}
.btn-primary:hover{ background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--coral); }
.btn-ghost{
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover{ border-color: var(--coral); color: var(--coral); transform: translateY(-2px); }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px var(--gut);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled{
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding-block: 11px;
  border-color: var(--line);
}
.nav-brand{
  grid-column: 2; justify-self: center;
  font-family: var(--serif); font-weight: 500; font-size: clamp(18px,1.6vw,22px);
  letter-spacing: .26em; text-transform: uppercase; color: var(--ink); white-space: nowrap; padding-left: .26em;
}
.nav-left{ display: flex; align-items: center; gap: 26px; justify-self: start; }
.nav-right{ display: flex; align-items: center; gap: 22px; justify-self: end; }
.nav-left a, .nav-contact{
  font-size: 13px; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  position: relative; padding: 3px 0; transition: color .3s; letter-spacing: .01em;
}
.nav-left a::after{
  content:""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-left a:hover{ color: var(--ink); }
.nav-left a:hover::after, .nav-left a.active::after{ transform: scaleX(1); }
.nav-left a.active{ color: var(--ink); }
.nav-contact:hover{ color: var(--ink); }
.nav-btn{
  font-size: 13px; font-weight: 600; color: #fff; background: var(--ink);
  padding: 10px 18px; border-radius: 999px; white-space: nowrap; transition: opacity .3s, transform .3s var(--ease);
}
.nav-btn:hover{ opacity: .85; transform: translateY(-1px); }
@media (max-width: 1200px){ .nav-left{ display: none; } .nav{ grid-template-columns: 1fr auto; } .nav-brand{ grid-column: 1; justify-self: start; } }
@media (max-width: 560px){ .nav-contact{ display: none; } }

/* ============================================================
   HERO - full-bleed background media + editorial overlay
   ============================================================ */
.hero{ position: relative; min-height: min(90svh, 628px); background: var(--bg); overflow: hidden;
  max-width: var(--maxw); margin-inline: auto;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(96px,10vh,116px) var(--gut) clamp(20px,3vh,36px); }

.hero-top{ position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-eyebrow{ font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); opacity: 0; }
.is-loaded .hero-eyebrow{ animation: heroFadeUp .6s var(--ease) .1s both; }
@keyframes heroFadeUp{ from{ opacity: 0; transform: translateY(-6px); } to{ opacity: 1; transform: none; } }
@keyframes heroFade{ to{ opacity: 1; } }
.hero-social{ position: relative; z-index: 4; display: flex; gap: 10px; }
.hero-social a{ width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink); background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(5px); transition: background .3s, color .3s, border-color .3s; }
.hero-social a svg{ width: 17px; height: 17px; }
.hero-social a:hover{ background: var(--ink); color: #fff; border-color: var(--ink); }

/* LEFT - editorial text (in flow, vertically centred) */
.hero-col{ position: relative; z-index: 2; max-width: min(540px, 47vw); }
.hero-title{ font-family: var(--sans); font-weight: 700; color: var(--ink);
  font-size: clamp(36px,4.4vw,60px); line-height: 1.0; letter-spacing: -.035em; }
.hero-title .ht-line{ display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ht-line > span{ display: inline-block; white-space: nowrap; opacity: 0; transform: translateY(105%); }
.is-loaded .hero-title .ht-line:nth-child(1) > span{ animation: htRise .9s var(--ease) .15s both; }
.is-loaded .hero-title .ht-line:nth-child(2) > span{ animation: htRise .9s var(--ease) .28s both; }
@keyframes htRise{ to{ opacity: 1; transform: none; } }
.hero-title .accent{ font-family: var(--serif); font-style: italic; font-weight: 500; padding-right: .06em; }

/* Sous-titre (chapô) : ce que je pilote + la promesse « vous restez sur votre métier » */
.hero-lead{ margin: clamp(14px,1.6vw,20px) 0 0; max-width: 42ch;
  font-size: clamp(15px,1.15vw,17px); line-height: 1.55; color: var(--ink-soft); opacity: 0; }
.is-loaded .hero-lead{ animation: heroFadeUp .6s var(--ease) .5s both; }

/* 4 objectifs numérotés : barre verticale à gauche, numéros verts (mono) + labels en gras.
   Raconte la progression de l'accompagnement (attirer → inspirer → fidéliser → gagner du temps). */
.hero-steps{ list-style: none; margin: clamp(14px,1.8vw,22px) 0 0;
  padding: clamp(6px,1vw,10px) 0 clamp(6px,1vw,10px) clamp(18px,1.6vw,24px);
  border-left: 1px solid var(--line); display: flex; flex-direction: column;
  gap: clamp(11px,1.4vw,18px); max-width: 40ch; opacity: 0; }
.is-loaded .hero-steps{ animation: heroFadeUp .6s var(--ease) .6s both; }
.hero-steps li{ display: flex; align-items: baseline; gap: 16px; }
.hs-n{ flex: none; font-family: var(--sans);
  font-size: 13px; font-weight: 700; color: var(--coral); letter-spacing: .04em; }
.hs-t{ font-size: clamp(18px,1.6vw,22px); font-weight: 700; color: var(--ink); line-height: 1.1; }
.hero-actions{ margin-top: clamp(18px,2.4vw,30px); display: flex; align-items: center; gap: clamp(18px,2vw,30px); flex-wrap: wrap; opacity: 0; }
.is-loaded .hero-actions{ animation: heroFadeUp .6s var(--ease) .68s both; }
/* Lien secondaire souligné en permanence (à droite du bouton diagnostic), en gris
   moyen pour ne pas concurrencer le bouton principal. */
.hero-actions .hero-link{ color: var(--ink-soft); }
.hero-actions .hero-link::after{ transform: scaleX(1); background: var(--ink-soft); }
.hero-link{ position: relative; font-size: 14px; font-weight: 600; color: var(--ink); }
.hero-link::after{ content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.hero-link:hover::after{ transform: scaleX(1); }

/* RIGHT - video cropped to a taller frame so the sides are trimmed and she
   fills more of the space. Anchored to the --maxw content box. */
.hero-stage{ position: absolute; z-index: 1; top: clamp(44px,5.5vh,58px); right: 0;
  transform: none; width: min(52%, 700px); aspect-ratio: 7 / 6; opacity: 0; }
.is-loaded .hero-stage{ animation: heroFade 1.1s var(--ease) .2s both; }
.hero-video{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 40%; display: block;
  -webkit-mask-image: radial-gradient(ellipse 80% 84% at 50% 44%, #000 60%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse 80% 84% at 50% 44%, #000 60%, rgba(0,0,0,0) 100%); }
/* subtle progressive white contour - blends the studio off-white sides/edges
   into the page white so no hard rectangle edge shows */
.hero-stage::after{ content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(255,255,255,0) 8%, rgba(255,255,255,0) 92%, var(--bg) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 78%, var(--bg) 100%); }

/* Repli image (mobile / connexion lente) : masqué tant que la vidéo est affichée. */
.hero-poster{ display: none; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 44% 40%;
  -webkit-mask-image: radial-gradient(ellipse 80% 84% at 50% 44%, #000 60%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse 80% 84% at 50% 44%, #000 60%, rgba(0,0,0,0) 100%); }

/* Annotations DÉTACHÉES : badges FLOTTANTS de part et d'autre du visage. Rendu
   avant-gardiste : verre dépoli, liseré lumineux, ombre de lévitation, halo vert
   sous l'icône, et léger flottement désynchronisé (oscillation verticale). */
.hero-annots{ position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-annot{ position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px 7px 7px;
  background: linear-gradient(135deg, rgba(255,255,255,.80), rgba(255,255,255,.56));
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.6); border-radius: 999px;
  box-shadow:
    0 28px 52px -20px rgba(17,17,17,.30),
    0 8px 18px -10px rgba(17,17,17,.14),
    inset 0 1px 0 rgba(255,255,255,.9);
  font-family: var(--sans); font-weight: 600; font-size: 13.5px; letter-spacing: .01em;
  color: var(--ink); white-space: nowrap; opacity: 0;
  transition: opacity .7s var(--ease) .9s; }
.is-loaded .hero-annot{ opacity: 1; }
.hero-annot-ico{ flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--coral);
  box-shadow: 0 5px 12px -3px color-mix(in srgb, var(--coral) 55%, transparent); }
.hero-annot-ico svg{ width: 15px; height: 15px; color: #fff; }
/* De part et d'autre du visage, à mi-hauteur. Le flottement est intégré au keyframe
   (translateY -50% de base) pour préserver le centrage vertical. Durées différentes
   + phase opposée → les deux badges ne bougent jamais à l'unisson. */
.ha-l{ left: max(14px, 2%); top: 56%; transform: translateY(-50%);
  animation: heroFloatL 6s ease-in-out infinite; }
.ha-r{ right: max(14px, 2%); top: 56%; transform: translateY(-50%);
  animation: heroFloatR 7.5s ease-in-out infinite; }
@keyframes heroFloatL {
  0%, 100% { transform: translateY(calc(-50% - 7px)); }
  50%      { transform: translateY(calc(-50% + 7px)); }
}
@keyframes heroFloatR {
  0%, 100% { transform: translateY(calc(-50% + 7px)); }
  50%      { transform: translateY(calc(-50% - 7px)); }
}
@media (prefers-reduced-motion: reduce){
  .hero-annot{ opacity: 1; transition: none; }
  .ha-l, .ha-r{ animation: none; }
}

/* annotation overlay - fine right-angle connectors (HTML, %-aligned to nodes) */
.fx{ position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fx-seg{ position: absolute; background: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.seg-v{ width: 0.5px; transform: translateX(-50%) scaleY(0); }
.seg-h{ height: 0.5px; transform: translateY(-50%) scaleX(0); }
.seg-v.from-top{ transform-origin: top; }
.seg-v.from-bottom{ transform-origin: bottom; }
.seg-h.from-left{ transform-origin: left; }
.seg-h.from-right{ transform-origin: right; }
.seg-v.on{ animation: segDrawV .5s var(--ease) forwards; }
.seg-h.on{ animation: segDrawH .5s var(--ease) .42s forwards; }
@keyframes segDrawV{ to{ transform: translateX(-50%) scaleY(1); } }
@keyframes segDrawH{ to{ transform: translateY(-50%) scaleX(1); } }

.fx-node{ position: absolute; width: 11px; height: 11px; border-radius: 50%; background: transparent;
  border: 1.2px solid var(--ink); box-shadow: 0 0 0 2px rgba(255,255,255,.5); transform: translate(-50%,-50%) scale(0); }
.fx-node::before{ content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--ink); transform: translate(-50%,-50%); }
.fx-node.on{ animation: fxnode .45s var(--ease) .85s both; }
@keyframes fxnode{ from{ transform: translate(-50%,-50%) scale(0); } to{ transform: translate(-50%,-50%) scale(1); } }
.fx-node::after{ content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(17,17,17,.4); opacity: 0; }
.fx-node.on::after{ animation: fxping 3s ease-out 1.1s infinite; }
@keyframes fxping{ 0%{ transform: scale(.5); opacity: .55; } 70%,100%{ transform: scale(2.4); opacity: 0; } }

.fx-label{ position: absolute; white-space: nowrap; font-family: var(--sans); font-weight: 600;
  font-size: clamp(10px,.85vw,12px); letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 0 8px #fff, 0 0 16px rgba(255,255,255,.95); opacity: 0; }
.fx-label.on{ animation: heroFade .55s var(--ease) .15s both; }
.fx-up{ transform: translate(-50%,-130%); }
.fx-left{ transform: translate(-100%,-50%); text-align: right; padding-right: 10px; }
.fx-right{ transform: translate(0,-50%); padding-left: 10px; }

/* calibration */
.fx-handle{ position: absolute; transform: translate(-50%,-50%); pointer-events: auto; cursor: grab;
  padding: 4px 9px; border-radius: 999px; background: rgba(17,17,17,.85); color: #fff;
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .08em; white-space: nowrap;
  border: 1px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.fx-handle:active{ cursor: grabbing; }
.fx-cal-btn{ position: absolute; z-index: 3; right: 12%; bottom: 14%; pointer-events: auto;
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #fff;
  background: rgba(17,17,17,.55); border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s, background .3s; }
.hero-stage:hover .fx-cal-btn, .hero.is-cal .fx-cal-btn{ opacity: 1; }
.fx-cal-btn:hover{ background: rgba(17,17,17,.85); }

/* scroll cue */
.hero-scroll{ position: relative; z-index: 3; align-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); opacity: 0; }
.is-loaded .hero-scroll{ animation: heroFade .8s var(--ease) .9s both; }
.hero-scroll .hs-line{ width: 1px; height: 30px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll .hs-line::after{ content:""; position: absolute; inset: 0; background: var(--ink); animation: scrolldot 1.8s var(--ease-soft) infinite; }
@keyframes scrolldot{ 0%{ transform: translateY(-100%);} 60%,100%{ transform: translateY(100%);} }

@media (prefers-reduced-motion: reduce){
  .fx-seg.on{ animation: none; transform: translateX(-50%) scaleY(1); }
  .seg-h.on{ animation: none; transform: translateY(-50%) scaleX(1); }
  .fx-node.on{ animation: none; transform: translate(-50%,-50%) scale(1); }
  .fx-node.on::after{ animation: none; }
  .fx-label.on{ animation: none; opacity: 1; }
}
@media (max-width: 920px){
  .hero{ justify-content: flex-start; gap: clamp(32px,5vh,56px); }
  .hero-stage{ position: relative; top: auto; right: auto; transform: none; order: 3;
    width: min(92vw, 540px); aspect-ratio: 16 / 9; margin: 0 auto; }
  .hero-col{ max-width: none; order: 2; margin-top: clamp(24px,5vh,48px); }
  .hero-scroll{ display: none; }
}
/* Sous 768px : on remplace la vidéo par l'image fixe (perf / LCP) et on réduit la
   hauteur du bloc visuel pour garder le CTA accessible sans scroll excessif. */
@media (max-width: 768px){
  .hero-video{ display: none; }
  .hero-poster{ display: block; }
  .hero-stage{ width: min(78vw, 400px); aspect-ratio: 16 / 10; }
}
/* Mouvement réduit : on coupe la vidéo et on affiche l'image fixe (le poster). */
@media (prefers-reduced-motion: reduce){
  .hero-video{ display: none; }
  .hero-poster{ display: block; }
}

/* ============================================================
   GENERIC REVEAL - Apple-style fade/rise on scroll
   ============================================================ */
[data-anim]{
  opacity: 0;
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1), filter .9s cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity, filter;
}
[data-anim="up"]{ transform: translateY(64px); filter: blur(8px); }
[data-anim="up-sm"]{ transform: translateY(34px); filter: blur(5px); }
[data-anim="left"]{ transform: translateX(56px); filter: blur(6px); }
[data-anim="right"]{ transform: translateX(-56px); filter: blur(6px); }
[data-anim="scale"]{ transform: scale(.92); filter: blur(8px); }
[data-anim].is-in{ opacity: 1; transform: none; filter: blur(0); }
/* Sur mobile, la révélation latérale (translateX ±56px) déborde à droite/gauche
   et crée un scroll horizontal parasite. On la remplace par une révélation
   verticale : même effet, aucun débordement. */
@media (max-width: 700px){
  [data-anim="left"], [data-anim="right"]{ transform: translateY(40px); }
}
@media (prefers-reduced-motion: reduce){
  [data-anim]{ transition: opacity .4s ease; transform: none !important; filter: none !important; }
}
