/* =========================================================
   Megs graphics — site public
   Fidèle à la maquette Figma « Pour mon site » (version ordinateur, 1728 px de large).
   Palette : #505342 (fond) · #f2e7d5 (texte) · #ffffff (accent)
   Version sans animation : aucun mouvement, aucune transition.

   --u = « 1 px de la maquette » : tout est posé avec les mesures de Figma
   et s'adapte à la largeur de l'écran (u = largeur ÷ 1728).
   Sous 1000 px de large, une disposition PROVISOIRE empilée prend le relais
   (le mobile sera conçu avec Megan à partir de la maquette ordinateur).
   ========================================================= */

/* ---------- Polices (à déposer dans assets/fonts/, voir assets/fonts/LISEZ-MOI.txt) ---------- */
@font-face{font-family:"Baloo Tamma 2";font-weight:400;font-style:normal;font-display:swap;
  src:local("Baloo Tamma 2 Regular"),local("BalooTamma2-Regular"),url("../fonts/BalooTamma2-Regular.ttf") format("truetype")}
@font-face{font-family:"Baloo Tamma 2";font-weight:700;font-style:normal;font-display:swap;
  src:local("Baloo Tamma 2 Bold"),local("BalooTamma2-Bold"),url("../fonts/BalooTamma2-Bold.ttf") format("truetype")}
@font-face{font-family:"Libre Bodoni";font-weight:400;font-style:normal;font-display:swap;
  src:local("Libre Bodoni Regular"),local("LibreBodoni-Regular"),url("../fonts/LibreBodoni-Regular.ttf") format("truetype")}
@font-face{font-family:"Open Sans";font-weight:400;font-style:normal;font-display:swap;
  src:local("Open Sans Regular"),local("OpenSans-Regular"),url("../fonts/OpenSans-Regular.ttf") format("truetype")}
@font-face{font-family:"Open Sans";font-weight:600;font-style:normal;font-display:swap;
  src:local("Open Sans SemiBold"),local("OpenSans-SemiBold"),url("../fonts/OpenSans-SemiBold.ttf") format("truetype")}

:root{
  --olive:#505342; --cream:#f2e7d5; --white:#fff; --brown:#5d3a27; --night:#050806; --gray:#d9d9d9; --taupe:#b3a298;
  --u:calc(100vw / 1728);
  --f-title:"Baloo Tamma 2","Trebuchet MS",system-ui,sans-serif;
  --f-nav:"Baloo Tamma 2","Trebuchet MS",system-ui,sans-serif;
  --f-text:"Open Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --gut:max(20px, calc(95 * var(--u)));
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:clip}
body{margin:0;background:var(--olive);color:var(--cream);font-family:var(--f-text);font-size:16px;line-height:normal;overflow-x:clip}
img,svg,video{display:block;max-width:100%}
h1,h2,h3,p,ul,ol,dl,dd,figure{margin:0;padding:0}
ul,ol{list-style:none}
a{color:inherit}
button,input,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--white);outline-offset:4px;border-radius:4px}
main:focus,[tabindex="-1"]:focus{outline:none}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.skip{position:absolute;left:12px;top:-80px;z-index:400;background:var(--cream);color:var(--olive);padding:.6em 1em;border-radius:999px;font-weight:600;text-decoration:none}
.skip:focus{top:12px}

/* ---------- Titres de section : Baloo Tamma 2 Regular 96 ---------- */
.ttl{position:absolute;margin:0;font-family:var(--f-title);font-weight:400;font-size:calc(96 * var(--u));line-height:normal;color:var(--cream);white-space:nowrap}
.sec{position:relative}

/* ---------- En-tête : logo 367 px en (101, 71) ; liens Libre Bodoni 24 blancs ---------- */
.site-header{position:absolute;left:0;right:0;top:0;height:0;z-index:100}
html.js .site-header{position:fixed}
.site-header::before{content:"";position:absolute;left:0;right:0;top:0;height:72px;background:linear-gradient(180deg,rgba(242,231,213,.16),rgba(242,231,213,.05));-webkit-backdrop-filter:blur(20px) saturate(1.35) brightness(.78);backdrop-filter:blur(20px) saturate(1.35) brightness(.78);box-shadow:inset 0 -1px 0 rgba(242,231,213,.28),0 8px 30px rgba(0,0,0,.12);opacity:0;transition:opacity .5s cubic-bezier(.65,0,.35,1)}
.site-header.solid::before{opacity:1}
.brand{position:absolute;left:calc(101 * var(--u));top:calc(71 * var(--u));width:calc(367 * var(--u));display:block;text-decoration:none}
.logo-full{width:100%;height:auto}
.logo-mark{display:none}
.nav-toggle{display:none}
.main-nav{position:absolute;left:calc(889 * var(--u));top:calc(104 * var(--u));width:calc(740 * var(--u))}
.main-nav ul{position:relative;height:calc(30 * var(--u))}
.main-nav li{position:absolute;top:0}
.main-nav li:nth-child(1){left:0}
.main-nav li:nth-child(2){left:calc(164 * var(--u))}
.main-nav li:nth-child(3){left:calc(329 * var(--u))}
.main-nav li:nth-child(4){left:calc(556 * var(--u))}
.main-nav a{font-family:var(--f-nav);font-weight:400;font-size:max(16px,calc(24 * var(--u)));line-height:normal;color:var(--white);text-decoration:none;display:inline-block;padding:4px 0;white-space:nowrap}
.main-nav a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.3em}
.site-header.solid .brand{left:max(20px,calc(101 * var(--u)));top:12px;width:210px}
.site-header.solid .main-nav{top:20px}
/* Menu centré verticalement sur le logo (bureau seulement) : centre du logo = 71 + 42 = 113 ; en mode « solid » = 12 + 24 = 36 px */
@media (min-width:1000px){
  .main-nav{top:calc(113 * var(--u))}
  .main-nav ul{height:0;display:flex;align-items:center;gap:calc(90 * var(--u))}
  .main-nav li,.main-nav li:nth-child(n){position:static;transform:none}
  .main-nav a{line-height:1;position:relative;top:.1em}
  .site-header.solid .main-nav{top:36px}
}

/* ---------- HERO (0 → 952) ---------- */
.hero{position:relative;z-index:1;height:calc(952 * var(--u))}
.hero-stage{position:relative;height:calc(952 * var(--u));overflow:hidden;background:var(--night) url(../img/fig-hero-bg.jpg) center top/cover no-repeat}
.hero-art{position:absolute;inset:0}
.hero-h1{font:inherit;margin:0}
.hero-line{position:absolute;font-family:var(--f-title);font-weight:400;color:var(--cream);white-space:nowrap;line-height:normal}
.l1{left:calc(575 * var(--u));top:calc(339 * var(--u));font-size:calc(64 * var(--u))}
.l2{left:calc(468 * var(--u));top:calc(439 * var(--u));font-size:calc(96 * var(--u))}
.l4{left:calc(83 * var(--u));top:calc(336 * var(--u));font-size:calc(96 * var(--u))}
.l3{left:calc(673 * var(--u));top:calc(339 * var(--u));font-size:calc(128 * var(--u))}
.fl{position:absolute;fill:var(--cream);aspect-ratio:340/361;height:auto}
.fl-a{left:calc(349 * var(--u));top:calc(198 * var(--u));width:calc(133 * var(--u))}
.fl-b{left:calc(1387 * var(--u));top:calc(492 * var(--u));width:calc(129 * var(--u))}
/* Héros animé — d'après le prototype « Pousse » : lettres révélées au masque, fleurs qui apparaissent, vague qui se déforme.
   Tout mouvement est en easy ease (ease-in-out, calculé dans main.js). Sans JS ou en « réduire les animations » : tout est visible et fixe. */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.w{display:inline-block;white-space:nowrap}
.hero-line .m,.kin .m{display:inline-block;overflow:hidden;vertical-align:top}
.hero-line .m i,.kin .m i{display:inline-block;font-style:normal;will-change:transform}
.btn-skip{position:absolute;right:calc(40 * var(--u));bottom:30px;background:var(--olive);color:var(--cream);border:2px solid var(--cream);border-radius:999px;padding:12px 26px;font:600 1rem var(--f-body);cursor:pointer;min-height:44px}
.btn-skip:focus-visible{outline:3px solid var(--white);outline-offset:3px}
.intro{position:fixed;inset:0;z-index:300;background:var(--olive);display:grid;place-items:center;transition:opacity .7s cubic-bezier(.65,0,.35,1)}
.intro[hidden]{display:none}
.intro video{width:100%;height:100%;object-fit:cover}
.intro.done{opacity:0}
body.intro-open{overflow:hidden}
html.js[data-motion="full"] .hero .fl{transform:scale(0)}
html.js[data-motion="full"] .hero-line .m i{transform:translateY(110%)}
html.js[data-motion="full"]{scroll-behavior:smooth}
/* Mon travail : titre en lettres qui montent, cartes qui apparaissent, survol doux (easy ease) */
html.js[data-motion="full"] .kin .m i{transform:translateY(105%) rotate(9deg);transition:transform 1s cubic-bezier(.65,0,.35,1)}
html.js[data-motion="full"] .kin.in .m i{transform:none}
html.js[data-motion="full"] .grid li{opacity:0;transform:translateY(46px);transition:opacity .9s cubic-bezier(.65,0,.35,1),transform .9s cubic-bezier(.65,0,.35,1)}
html.js[data-motion="full"] .grid li.in{opacity:1;transform:none}
/* Fleur du polaroïd : liée au défilement (éclot en descendant, se referme en remontant), easy ease calculé dans main.js */
html.js[data-motion="full"] .polaroid .pf{transform:scale(0)}
@media (min-width:1000px){
  html.js[data-motion="full"] .hero{height:calc(952 * var(--u) + 90svh)}
  html.js[data-motion="full"] .hero-stage{position:sticky;top:0}
}

.wave{position:absolute;left:0;width:100%;height:calc(180 * var(--u));pointer-events:none;display:block}
.wave path{fill:var(--olive)}
.wave-up{bottom:-1px}
.wave-drip{top:calc(100% - 1px);z-index:3}

/* ---------- SUR MOI (952 → 1920) ---------- */
.pres{height:calc(968.71 * var(--u));background:var(--olive)}
.pres .ttl{left:calc(95 * var(--u));top:calc(139.23 * var(--u))}
.bio{position:absolute;left:calc(101 * var(--u));top:calc(307.23 * var(--u));width:calc(853 * var(--u));font-family:var(--f-text);font-size:max(16px,calc(24 * var(--u)));color:var(--white)}
.bio p+p{margin-top:1.362em}
.polaroid{position:absolute;left:calc(1012.6 * var(--u));top:calc(25.53 * var(--u));width:calc(691 * var(--u));height:calc(836 * var(--u))}
.polaroid img{width:100%;height:auto}
.pf{position:absolute;fill:var(--brown);aspect-ratio:340/361;height:auto}
.polaroid .pf-1{left:calc(136.4 * var(--u));top:calc(-25.3 * var(--u));width:calc(166 * var(--u))}

/* Page « Sur moi » : même mise en page que la section de l'accueil, décalée de 17 px (maquette « Sur moi »), fond olive jusqu'au bas de la page (1287 px) */
.pres-about{height:calc(1287 * var(--u))}
.pres-about .ttl{left:calc(112 * var(--u))}
.pres-about .bio{left:calc(118 * var(--u))}
.pres-about .polaroid{left:calc(1029.6 * var(--u))}

/* ---------- MA DÉMARCHE (1920 → 2957) ---------- */
.process{height:calc(1036.52 * var(--u));background:var(--night) url(../img/fig-process-bg.jpg) 0 calc(-107.48 * var(--u)) / 100% auto no-repeat}
.process .ttl{left:calc(95 * var(--u));top:calc(235.52 * var(--u))}
/* La maquette contient quatre étapes dont la dernière dépasse du cadre (frame de 4126 px, pensé pour un défilement).
   Sans animation, la rangée est réduite à 84,5 % pour que tout reste visible sans rien couper. */
.proc-row{position:absolute;inset:0;transform-origin:0 calc(632 * var(--u));transform:translateX(calc(14.7 * var(--u))) scale(.845)}
.step{position:absolute;top:0;width:calc(800 * var(--u));height:100%}
.step-fl{position:absolute;left:calc(230 * var(--u));width:calc(340 * var(--u));aspect-ratio:340/361;height:auto;fill:var(--cream);transform-origin:50% 55%}
.step-t{position:absolute;left:0;width:100%;top:calc(846.52 * var(--u));text-align:center;font-family:var(--f-title);font-weight:700;font-size:calc(72 * var(--u));line-height:1;color:var(--cream);white-space:nowrap}
.s1{left:calc(312 * var(--u) - 400 * var(--u))} .s1 .step-fl{top:calc(452.52 * var(--u))}
.s2{left:calc(801 * var(--u) - 400 * var(--u))} .s2 .step-fl{top:calc(452.52 * var(--u))}
.s3{left:calc(1321 * var(--u) - 400 * var(--u))} .s3 .step-fl{top:calc(452.52 * var(--u))}
.s4{left:calc(1775 * var(--u) - 400 * var(--u))} .s4 .step-fl{top:calc(452.52 * var(--u))}

/* ---------- MON TRAVAIL (2957 → 4228) : grille 3 × 2 de cartes 322 × 446 ---------- */
.work{height:calc(1271 * var(--u));background:var(--olive);scroll-margin-top:80px}
.work .ttl{left:calc(95 * var(--u));top:calc(61 * var(--u))}
.grid{position:absolute;inset:0}
.grid li{position:absolute;width:calc(322 * var(--u));height:calc(446 * var(--u))}
.grid .c1{left:calc(322 * var(--u));top:calc(236 * var(--u))}
.grid .c2{left:calc(694 * var(--u));top:calc(236 * var(--u))}
.grid .c3{left:calc(1083 * var(--u));top:calc(236 * var(--u))}
.grid .c4{left:calc(322 * var(--u));top:calc(753 * var(--u))}
.grid .c5{left:calc(694 * var(--u));top:calc(753 * var(--u))}
.grid .c6{left:calc(1083 * var(--u));top:calc(753 * var(--u))}
.card{display:block;position:relative;width:100%;height:100%;background:var(--gray);overflow:hidden}
.card img{width:100%;height:100%;object-fit:cover}
.card{transition:background .5s cubic-bezier(.65,0,.35,1)}
.card:hover{background:var(--cream)}
.card:focus-visible{outline-offset:6px}

/* ---------- CONTACT (4228 → 5280) ---------- */
.contact{height:calc(1052 * var(--u));background:var(--night) url(../img/fig-contact-bg.jpg) 0 calc(-340 * var(--u)) / 100% auto no-repeat;scroll-margin-top:0}
.contact .ttl{left:calc(94 * var(--u));top:calc(180 * var(--u))}
.form{position:absolute;inset:0}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.field{position:absolute}
.f-nom{left:calc(909 * var(--u));top:calc(372 * var(--u));width:calc(327 * var(--u));height:calc(57 * var(--u))}
.f-mail{left:calc(1282 * var(--u));top:calc(372 * var(--u));width:calc(327 * var(--u));height:calc(57 * var(--u))}
.f-sujet{left:calc(909 * var(--u));top:calc(465 * var(--u));width:calc(700 * var(--u));height:calc(57 * var(--u))}
.f-msg{left:calc(909 * var(--u));top:calc(558 * var(--u));width:calc(700 * var(--u));height:calc(257 * var(--u))}
.field input,.field textarea{display:block;width:100%;height:100%;border:0;border-radius:calc(45 * var(--u));background:var(--gray);color:#000;font-family:var(--f-title);font-size:max(16px,calc(36 * var(--u)));line-height:normal;padding:0 calc(24 * var(--u));resize:none}
.field textarea{padding-top:calc(14 * var(--u))}
/* Étiquette DANS la pilule (comme la maquette); dès qu'on écrit, elle passe au-dessus du champ pour rester visible. */
.field label{position:absolute;left:calc(24 * var(--u));top:50%;transform:translateY(-50%);font-family:var(--f-title);font-size:max(16px,calc(36 * var(--u)));line-height:normal;color:#000;pointer-events:none}
.f-msg label{top:calc(14 * var(--u));transform:none}
.field input:focus + label,.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,.field textarea:not(:placeholder-shown) + label{top:auto;bottom:calc(100% + 4px);left:calc(10 * var(--u));transform:none;font-size:max(16px,calc(22 * var(--u)));line-height:1;color:var(--white);background:var(--night);padding:3px 10px;border-radius:12px}
.field input:focus-visible,.field textarea:focus-visible{outline:3px solid var(--white);outline-offset:3px}
.field [aria-invalid="true"]{box-shadow:inset 0 0 0 3px #b3261e}
.field-err{position:absolute;left:calc(10 * var(--u));top:calc(100% + 4px);z-index:2;font-size:max(16px,calc(20 * var(--u)));line-height:1.2;color:var(--cream);background:var(--night);padding:3px 10px;border-radius:12px}
.form-msg{position:absolute;left:calc(909 * var(--u));top:calc(845 * var(--u));width:calc(480 * var(--u));font-family:var(--f-text);font-size:max(16px,calc(22 * var(--u)));color:var(--cream)}
.form-msg > p,.form-msg > div{background:var(--night);padding:8px 16px;border-radius:18px}
.form-msg ul{margin-top:6px}
.form-msg li{margin-top:4px}
.form-msg a{text-underline-offset:.2em}
.send{position:absolute;left:calc(1412 * var(--u));top:calc(845 * var(--u));width:calc(197 * var(--u));height:calc(70 * var(--u));border:0;border-radius:calc(35 * var(--u));background:var(--taupe);color:#000;font-family:var(--f-title);font-size:max(16px,calc(36 * var(--u)));line-height:normal;cursor:pointer}
.send:hover{background:var(--cream)}
.send:focus-visible{outline:3px solid var(--white);outline-offset:4px}

/* ---------- Pied de page (ajouté : réseaux, courriel, langue, confidentialité — absent de la maquette) ---------- */
.site-footer{background:var(--olive);padding:56px var(--gut) 40px;position:relative;z-index:3;font-family:var(--f-text);font-size:1rem}
.foot-grid{display:grid;grid-template-columns:1fr auto;gap:20px 40px;align-items:center}
.social{display:flex;flex-wrap:wrap;gap:8px 28px}
.social a,.mail a,.foot-tools a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:.25em}
.foot-tools{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:4px 32px;align-items:center}
.foot-tools li{display:flex;align-items:center;gap:6px}
.lang-current{font-weight:600;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--cream);color:var(--olive)}
.lang-link{justify-content:center;min-width:44px;font-weight:600}
.copy{grid-column:1 / -1}

/* ---------- Page « Contactez-moi » (maquette Figma « Contact », 1728 × 2239) ---------- */
.cpage{position:relative;height:calc(2239 * var(--u));overflow:hidden;background:var(--night) url(../img/fig-contact-page-bg.jpg) center top/cover no-repeat}
.fl-c{left:calc(864 * var(--u));top:calc(251 * var(--u));width:calc(232 * var(--u))}
.fl-d{left:calc(1373 * var(--u));top:calc(668 * var(--u));width:calc(232 * var(--u))}
.cform{position:absolute;inset:0}
.cf{position:absolute;left:calc(83 * var(--u));width:calc(616 * var(--u))}
.cf label{display:block;height:calc(62 * var(--u));font-family:var(--f-title);font-size:max(18px,calc(36 * var(--u)));line-height:calc(62 * var(--u));color:var(--cream)}
.cf input,.cf textarea{display:block;width:100%;height:calc(57 * var(--u));border:0;border-radius:calc(45 * var(--u));background:var(--gray);color:#000;font-family:var(--f-title);font-size:max(16px,calc(36 * var(--u)));line-height:normal;padding:0 calc(24 * var(--u));resize:none}
.cf textarea{height:calc(305 * var(--u));padding-top:calc(14 * var(--u))}
.cf input:focus-visible,.cf textarea:focus-visible{outline:3px solid var(--white);outline-offset:3px}
.cf [aria-invalid="true"]{box-shadow:inset 0 0 0 3px #b3261e}
.cf-nom{top:calc(713 * var(--u))}
.cf-mail{top:calc(877 * var(--u))}
.cf-sujet{top:calc(1033 * var(--u))}
.cf-msg{top:calc(1209 * var(--u))}
.cf-send{left:calc(502 * var(--u));top:calc(1621 * var(--u));width:calc(197 * var(--u))}
.cf-send .send{position:static;display:block;width:100%;height:calc(70 * var(--u))}
.cf-note.form-msg{position:absolute;left:calc(83 * var(--u));top:calc(1721 * var(--u));width:calc(616 * var(--u))}
/* Entrée douce (easy ease) : les fleurs éclosent, puis les champs montent l'un après l'autre */
html.js[data-motion="full"] .cpage .fl{transform:scale(0)}
html.js[data-motion="full"] .cpage .hero-line .m i{transform:translateY(110%)}
html.js[data-motion="full"] .cpage .cf{opacity:0;transform:translateY(26px);transition:opacity .9s cubic-bezier(.65,0,.35,1),transform .9s cubic-bezier(.65,0,.35,1)}
html.js[data-motion="full"] .cpage.in .cf{opacity:1;transform:none}
html.js[data-motion="full"] .cpage.in .cf-nom{transition-delay:.55s}
html.js[data-motion="full"] .cpage.in .cf-mail{transition-delay:.68s}
html.js[data-motion="full"] .cpage.in .cf-sujet{transition-delay:.81s}
html.js[data-motion="full"] .cpage.in .cf-msg{transition-delay:.94s}
html.js[data-motion="full"] .cpage.in .cf-send{transition-delay:1.07s}
html.js[data-motion="full"] .cpage.in .cf-note{transition-delay:1.2s}

/* ---------- Pages intérieures (projet, confidentialité, 404) : même langage visuel ---------- */
.wrap{padding-inline:var(--gut);max-width:1728px;margin-inline:auto}
.h1{font-family:var(--f-title);font-weight:400;font-size:max(40px,calc(96 * var(--u)));line-height:normal;color:var(--cream)}
.project{padding-top:clamp(110px,12vw,180px);min-height:100svh;background:var(--olive)}
.p-head{display:grid;gap:14px;justify-items:start;padding-bottom:clamp(40px,6vw,96px)}
.back{text-decoration:none;font-weight:600;padding:.6em 0;min-height:44px;display:inline-flex;align-items:center}
.back:hover{text-decoration:underline;text-underline-offset:.2em}
.p-num{font-family:var(--f-title);font-weight:700;letter-spacing:.2em}
.p-sub{font-size:max(18px,calc(24 * var(--u)))}
.p-sub.draft{background:var(--night);padding:6px 14px;border-radius:14px;font-size:1rem}
.p-meta{display:flex;flex-wrap:wrap;gap:12px 48px;margin-top:8px}
.p-meta dt{font-size:.85rem;letter-spacing:.16em;text-transform:uppercase;font-weight:600}
.p-blocks{display:grid;gap:clamp(24px,3vw,48px);padding-block:clamp(30px,5vw,80px)}
.blk{display:grid;grid-template-columns:repeat(12,1fr);gap:8px 24px;border-top:1px solid var(--cream);padding-top:20px}
.blk h2{grid-column:1 / span 4;font-family:var(--f-title);font-weight:700;font-size:max(22px,calc(36 * var(--u)));line-height:1.1}
.blk p,.blk-body{grid-column:6 / span 6;max-width:60ch;font-size:max(16px,calc(20 * var(--u)));line-height:1.6}
.blk-body p{grid-column:auto;font-size:inherit}
.blk-body p+p{margin-top:1em}
.gallery{background:var(--cream);color:var(--olive);padding-block:clamp(48px,6vw,96px)}
.gallery :focus-visible{outline-color:var(--olive)}
.g-title{font-family:var(--f-title);font-weight:400;font-size:max(26px,calc(48 * var(--u)));margin-bottom:clamp(20px,3vw,40px)}
.g-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.g-ctrl{display:none;align-items:center;gap:12px}
.g-btn{min-width:44px;min-height:44px;border:2px solid var(--olive);border-radius:999px;background:transparent;color:var(--olive);font:600 1.1rem var(--f-body);cursor:pointer;transition:background .4s cubic-bezier(.65,0,.35,1),color .4s cubic-bezier(.65,0,.35,1)}
.g-btn:hover{background:var(--olive);color:var(--cream)}
.g-count{font-weight:600;min-width:4.5em;text-align:center;margin:0}
/* Galerie séquentielle : l'image suivante s'ouvre en cercle au défilement (sans JS ou en « réduire les animations » : liste simple) */
html.js[data-motion="full"] .gallery[data-gallery]{height:calc(100svh * (1 + (var(--n,2) - 1) * 1.05));padding-block:0}
html.js[data-motion="full"] [data-gallery] .g-sticky{position:sticky;top:0;height:100svh;overflow:hidden;display:grid;grid-template-rows:auto 1fr;gap:12px;padding-block:clamp(84px,9vw,110px) 28px}
html.js[data-motion="full"] [data-gallery] .g-ctrl{display:flex}
html.js[data-motion="full"] [data-gallery] .g-title{margin-bottom:0}
html.js[data-motion="full"] [data-gallery] .g-head{width:100%}
html.js[data-motion="full"] [data-gallery] .g-wrap{min-height:0;width:100%}
html.js[data-motion="full"] [data-gallery] .g-list{display:grid;place-items:center;height:100%;position:relative}
html.js[data-motion="full"] [data-gallery] .g-item{grid-area:1/1;width:min(88vw,1100px);height:100%;display:grid;place-items:center}
html.js[data-motion="full"] [data-gallery] .g-item figure{display:grid;gap:10px;justify-items:center;max-height:100%}
html.js[data-motion="full"] [data-gallery] .g-item img,html.js[data-motion="full"] [data-gallery] .g-item video{width:auto;height:auto;max-width:100%;max-height:calc(100svh - 270px)}
.g-list{display:grid;gap:clamp(24px,3vw,48px);justify-items:center}
.g-item{width:min(100%,900px)}
.g-item img,.g-item video{width:100%;height:auto}
.g-item figcaption{margin-top:10px;font-size:.95rem}
.g-ph{position:relative;display:grid;place-items:center;background:var(--gray);aspect-ratio:4/5;color:var(--olive)}
.g-ph svg{width:30%;height:auto;aspect-ratio:340/361;fill:var(--olive);opacity:.22}
.g-ph span{position:absolute;left:16px;top:12px;font-family:var(--f-title);font-weight:700;letter-spacing:.14em}
.p-next{display:flex;justify-content:space-between;gap:20px;padding-block:clamp(40px,6vw,100px) clamp(80px,10vw,160px)}
.p-next a{text-decoration:none;max-width:48%;display:grid;gap:4px;min-height:44px}
.p-next a:last-child{text-align:right;margin-left:auto}
.p-dir{font-weight:600}
.p-name{font-family:var(--f-title);font-size:max(20px,calc(40 * var(--u)))}
.p-next a:hover .p-name{text-decoration:underline;text-underline-offset:.2em}
.nf-flower{width:96px;height:auto;aspect-ratio:340/361;fill:var(--cream)}

/* =========================================================
   DISPOSITION PROVISOIRE sous 1000 px (téléphone et tablette)
   Empilée, textes en rem (suivent la taille de texte choisie par la personne).
   À remplacer par le vrai mobile conçu avec Megan.
   ========================================================= */
@media (max-width:999px){
  :root{--gut:20px}
  .site-header::before{height:76px;opacity:0}
  .site-header.solid::before{opacity:1}
  .cpage .hero-line{position:static;display:block;text-align:center;white-space:normal;font-size:clamp(2.25rem,9vw,3.5rem)}
  /* Maquette iPhone : grand logo (108 sur 440) et trois barres de 88 × 10; ils rapetissent quand on défile */
  .brand{left:2.84vw;top:10vw;width:24.6vw;transition:left .5s cubic-bezier(.65,0,.35,1),top .5s cubic-bezier(.65,0,.35,1),width .5s cubic-bezier(.65,0,.35,1)}
  .site-header.solid .brand,.site-header.menu-open.solid .brand{left:16px;top:14px;width:48px}
  .logo-full{display:none}
  .logo-mark{display:block;width:100%;height:auto}
  .main-nav,.site-header.solid .main-nav{left:80px;right:16px;top:16px;width:auto}
  .main-nav ul{height:auto;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 18px}
  .main-nav li,.main-nav li:nth-child(n){position:static}
  .main-nav a{font-size:1rem;padding:6px 0}

  .ttl{position:static;white-space:normal;text-align:center;font-size:clamp(2.25rem,9vw,3.5rem)}
  .wave{height:64px}

  .hero{height:min(100svh,780px)}
  .hero-stage{height:100%}
  .hero-art{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:110px 20px 80px}
  .hero-line{position:static;display:block;white-space:normal}
  .l1{font-size:clamp(1.9rem,9vw,3rem)}
  .l2{font-size:clamp(1.9rem,9vw,3rem)}
  .l3{font-size:clamp(3rem,15vw,5.5rem)}
  .pres-about,.pres-about .ttl,.pres-about .bio,.pres-about .polaroid{left:auto}
  .pres-about{height:auto;min-height:60svh}
  .fl-a{left:8%;top:22%;width:clamp(56px,14vw,100px)}
  .fl-b{left:auto;right:8%;top:auto;bottom:24%;width:clamp(56px,14vw,100px)}

  .pres{height:auto;padding:72px var(--gut) 110px}
  .bio{position:static;width:auto;max-width:42rem;margin-top:24px;font-size:1.0625rem;line-height:1.65}
  .polaroid{position:relative;left:auto;top:auto;width:min(100%,440px);height:auto;margin:56px auto 0}
  .polaroid .pf-1{left:20%;top:-6%;width:24%}

  .process{height:auto;padding:72px var(--gut) 110px;background-size:cover;background-position:center}
  .proc-row{position:static;transform:none;display:grid;grid-template-columns:1fr;gap:56px;margin-top:48px}
  .step,.s1,.s2,.s3,.s4{position:static;left:auto;width:auto;height:auto;text-align:center}
  .step-fl,.s1 .step-fl,.s2 .step-fl,.s3 .step-fl,.s4 .step-fl{position:static;width:min(46%,190px);margin:0 auto 12px}
  .step-t{position:static;font-size:clamp(1.4rem,5.2vw,2.2rem);line-height:normal;white-space:normal}

  .work{height:auto;padding:72px var(--gut) 110px}
  .grid{position:static;display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:36px}
  .grid li,.grid li:nth-child(n){position:static;width:auto;height:auto}
  .card{height:auto;aspect-ratio:322/446}

  .contact{height:auto;padding:72px var(--gut) 100px;background-size:cover;background-position:center bottom}
  .form{position:static;display:grid;gap:34px;margin-top:40px;max-width:36rem}
  .field,.f-nom,.f-mail,.f-sujet,.f-msg{position:relative;left:auto;top:auto;width:auto;height:56px}
  .f-msg{height:170px}
  .field input,.field textarea{border-radius:28px;font-size:1.0625rem;padding:0 22px}
  .field textarea{padding-top:16px}
  .field label{left:22px;font-size:1.0625rem}
  .f-msg label{top:16px}
  .field input:focus + label,.field input:not(:placeholder-shown) + label,
  .field textarea:focus + label,.field textarea:not(:placeholder-shown) + label{left:8px;font-size:1rem}
  .field-err{position:static;margin:6px 0 0;font-size:1rem;display:inline-block}
  .form-msg{position:static;width:auto;font-size:1rem}
  .send{position:static;justify-self:end;width:auto;min-width:140px;height:52px;border-radius:26px;font-size:1.25rem;padding:0 28px}

  .blk{grid-template-columns:1fr}
  .blk h2,.blk p,.blk-body{grid-column:1}
  .p-next{flex-direction:column}
  .p-next a,.p-next a:last-child{max-width:none;text-align:left;margin:0}
  .foot-grid{grid-template-columns:1fr}

  /* Page « Contactez-moi » : empilée, titre centré */
  .cpage{height:auto;padding:205px var(--gut) 100px;background-position:center bottom}
  .cpage .ttl{text-align:center}
  .fl-c{left:auto;right:9%;top:112px;width:clamp(48px,14vw,72px)}
  .fl-d{left:5%;top:auto;bottom:30px;width:clamp(56px,16vw,96px)}
  .cform{position:static;display:grid;gap:20px;margin:36px auto 0;max-width:36rem}
  .cf,.cf-nom,.cf-mail,.cf-sujet,.cf-msg,.cf-send,.cf-note.form-msg{position:relative;left:auto;top:auto;width:auto}
  .cf label{height:auto;line-height:1.7;font-size:1.25rem;padding-left:10px}
  .cf input,.cf textarea{height:56px;border-radius:28px;font-size:1.0625rem;padding:0 22px}
  .cf textarea{height:170px;padding-top:16px}
  .cf-send{justify-self:end}
  .cf-send .send{width:auto;min-width:140px;height:52px;border-radius:26px;font-size:1.25rem;padding:0 28px}
  .cf-note.form-msg{position:static;font-size:1rem}

  /* Même animation que sur ordinateur : le héros reste en place pendant que les lettres remontent, les fleurs tournent et la vague se déforme */
  html.js[data-motion="full"] .hero{height:calc(min(100svh,780px) + 70svh)}
  html.js[data-motion="full"] .hero-stage{position:sticky;top:0;height:min(100svh,780px)}

  /* Menu hamburger (maquette iPhone) : une page-menu avec les quatre liens. Sans JavaScript, les liens restent visibles en haut. */
  html.js .nav-toggle{position:absolute;right:calc(6.1vw - 12px);top:calc(19.5vw - 22px);z-index:3;display:grid;place-items:center;width:calc(20vw + 24px);height:44px;padding:0;margin:0;border:0;background:transparent;cursor:pointer;transition:right .5s cubic-bezier(.65,0,.35,1),top .5s cubic-bezier(.65,0,.35,1)}
  .bars{--bh:2.27vw;position:relative;display:block;width:20vw;height:8.64vw;transition:width .5s cubic-bezier(.65,0,.35,1),height .5s cubic-bezier(.65,0,.35,1)}
  .bars i{position:absolute;left:0;width:100%;height:var(--bh);border-radius:var(--bh);background:var(--white);transition:transform .5s cubic-bezier(.65,0,.35,1),opacity .35s cubic-bezier(.65,0,.35,1),top .5s cubic-bezier(.65,0,.35,1),height .5s cubic-bezier(.65,0,.35,1)}
  .bars i:nth-child(1){top:0}.bars i:nth-child(2){top:calc(50% - var(--bh) / 2)}.bars i:nth-child(3){top:calc(100% - var(--bh))}
  .site-header.solid .nav-toggle{right:6px;top:14px}
  .site-header.solid .bars{--bh:3px;width:30px;height:22px}
  .site-header.menu-open .bars i:nth-child(1){top:calc(50% - var(--bh) / 2);transform:rotate(45deg)}
  .site-header.menu-open .bars i:nth-child(2){opacity:0}
  .site-header.menu-open .bars i:nth-child(3){top:calc(50% - var(--bh) / 2);transform:rotate(-45deg)}
  html.js .brand{z-index:2}
  html.js .main-nav,html.js .site-header.solid .main-nav{position:fixed;inset:0;left:0;right:0;top:0;width:auto;z-index:1;display:grid;place-items:center;background:var(--olive);opacity:0;visibility:hidden;transition:opacity .5s cubic-bezier(.65,0,.35,1),visibility 0s linear .5s}
  html.js .site-header.menu-open .main-nav{opacity:1;visibility:visible;transition-delay:0s}
  html.js .main-nav ul{display:grid;gap:30px;justify-items:center;height:auto}
  html.js .main-nav a{font-size:clamp(1.7rem,8vw,2.3rem);padding:8px 14px}
  html.js[data-motion="full"] .main-nav li{opacity:0;transform:translateY(22px);transition:opacity .6s cubic-bezier(.65,0,.35,1),transform .6s cubic-bezier(.65,0,.35,1)}
  html.js[data-motion="full"] .site-header.menu-open .main-nav li{opacity:1;transform:none}
  html.js[data-motion="full"] .site-header.menu-open .main-nav li:nth-child(2){transition-delay:.07s}
  html.js[data-motion="full"] .site-header.menu-open .main-nav li:nth-child(3){transition-delay:.14s}
  html.js[data-motion="full"] .site-header.menu-open .main-nav li:nth-child(4){transition-delay:.21s}
  body.menu-open{overflow:hidden}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* Ouverture d'un projet — easy ease */
.page-veil{position:fixed;inset:0;z-index:200;background:var(--olive);opacity:0;pointer-events:all;transition:opacity .6s cubic-bezier(.65,0,.35,1)}
.page-veil.on{opacity:1}
@keyframes projIn{from{opacity:0;transform:translateY(48px)}to{opacity:1;transform:none}}
html.js[data-motion="full"] .project .p-head>*{opacity:0;animation:projIn .9s cubic-bezier(.65,0,.35,1) forwards}
html.js[data-motion="full"] .project .p-head>*:nth-child(1){animation-delay:.05s}
html.js[data-motion="full"] .project .p-head>*:nth-child(2){animation-delay:.15s}
html.js[data-motion="full"] .project .p-head>*:nth-child(3){animation-delay:.25s}
html.js[data-motion="full"] .project .p-head>*:nth-child(4){animation-delay:.35s}
html.js[data-motion="full"] .project .p-head>*:nth-child(n+5){animation-delay:.45s}
@media (prefers-reduced-motion:reduce){.page-veil{display:none}}

/* Démarche : voile noir pour mieux lire les textes sur la photo */
.process{position:relative}
.process::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.5);pointer-events:none}

/* Démarche : survol (easy ease) — la fleur tourne, le mot monte et s'éclaire */
@media (hover:hover) and (pointer:fine){
  .step-fl{transition:rotate .9s cubic-bezier(.65,0,.35,1),fill .6s cubic-bezier(.65,0,.35,1)}
  .step-t{transition:translate .6s cubic-bezier(.65,0,.35,1),letter-spacing .6s cubic-bezier(.65,0,.35,1),color .6s cubic-bezier(.65,0,.35,1)}
  .step:hover .step-fl{rotate:36deg}
  .step:hover .step-t{translate:0 calc(-14 * var(--u));letter-spacing:.02em;color:#fff}
}
@media (prefers-reduced-motion:reduce){.step-fl,.step-t{transition:none}.step:hover .step-fl{rotate:none}.step:hover .step-t{translate:none;letter-spacing:normal}}

/* Ouverture des sections (Sur moi, Démarche, Mon travail) : le texte de présentation monte en fondu, easy ease */
html.js[data-motion="full"] .bio{opacity:0;transform:translateY(40px);transition:opacity 1s cubic-bezier(.65,0,.35,1) .45s,transform 1s cubic-bezier(.65,0,.35,1) .45s}
html.js[data-motion="full"] .bio.in{opacity:1;transform:none}
/* Survol des titres : chaque lettre s'incline et s'éclaire, easy ease (une fois l'animation d'entrée finie) */
@media (hover:hover) and (pointer:fine){
  .kin.done .m,.cpage.done .hero-line .m{overflow:visible}
  .kin.done .m i,.cpage.done .hero-line .m i{transition:rotate .55s cubic-bezier(.65,0,.35,1),color .55s cubic-bezier(.65,0,.35,1),translate .55s cubic-bezier(.65,0,.35,1)}
  .kin.done .m:hover i,.cpage.done .hero-line .m:hover i{rotate:-8deg;translate:0 -.06em;color:#fff}
}
@media (prefers-reduced-motion:reduce){.kin .m:hover i,.hero-line .m:hover i{rotate:none;translate:none}}

/* Page contact : bouton « Envoyer » assorti au fond vert très foncé, liseré crème pour qu'il reste visible */
.cf-send .send{background:#0b100b;color:var(--cream);box-shadow:inset 0 0 0 2px var(--cream);transition:background .5s cubic-bezier(.65,0,.35,1),color .5s cubic-bezier(.65,0,.35,1)}
.cf-send .send:hover{background:var(--cream);color:#0b100b}

/* ---------- PAGE PROJET (maquette « Pour mes project » : 1728 × 3110) ---------- */
.pj{position:relative;height:calc(3110 * var(--u));background:var(--olive);overflow:hidden}
.pj .ttl{left:calc(83 * var(--u));top:calc(336 * var(--u))}
.pj-img{position:absolute;margin:0;border-radius:calc(40 * var(--u));overflow:hidden;background:var(--gray)}
.pj-img img,.pj-img video,.pj-ph{display:block;width:100%;height:100%;object-fit:cover}
.pj-1{left:calc(78 * var(--u));top:calc(609 * var(--u));width:calc(1300 * var(--u));height:calc(692 * var(--u))}
.pj-2{left:calc(78 * var(--u));top:calc(1540 * var(--u));width:calc(601 * var(--u));height:calc(483 * var(--u))}
.pj-3{left:calc(921 * var(--u));top:calc(1540 * var(--u));width:calc(661 * var(--u));height:calc(483 * var(--u))}
.pj-4{left:calc(83 * var(--u));top:calc(2139 * var(--u));width:calc(616 * var(--u));height:calc(728 * var(--u))}
.pj-txt{position:absolute;left:calc(791 * var(--u));top:calc(2246 * var(--u));width:calc(690 * var(--u));font-family:var(--f-text);font-size:max(16px,calc(24 * var(--u)));color:var(--white)}
.pj-txt p+p{margin-top:1.362em}
html.js[data-motion="full"] .pj-img,html.js[data-motion="full"] .pj-txt{opacity:0;transform:translateY(48px);transition:opacity 1s cubic-bezier(.65,0,.35,1),transform 1s cubic-bezier(.65,0,.35,1)}
html.js[data-motion="full"] .pj-img.in,html.js[data-motion="full"] .pj-txt.in{opacity:1;transform:none}
html.js[data-motion="full"] .pj-1{transition-delay:.35s}
@media (max-width:999px){
  .pj{height:auto;padding:150px var(--gut) 90px;display:grid;gap:24px}
  .pj .ttl{order:-1;margin-bottom:12px}
  .pj-img,.pj-txt{position:static;width:auto;height:auto;border-radius:24px}
  .pj-1{aspect-ratio:1300/692}.pj-2{aspect-ratio:601/483}.pj-3{aspect-ratio:661/483}.pj-4{aspect-ratio:616/728}
  .pj-txt{font-size:1rem;border-radius:0}
}

.pj-img.is-png img{object-fit:contain;padding:calc(24 * var(--u)) 0}

/* Projet à trois images : on enlève le portrait, le texte vient se placer sous les deux images moyennes et la page raccourcit */
.pj-no4{height:calc(2420 * var(--u))}
.pj-no4 .pj-txt{left:calc(78 * var(--u));top:calc(2169 * var(--u));width:calc(853 * var(--u))}
@media (max-width:999px){.pj-no4{height:auto}.pj-no4 .pj-txt{left:auto;top:auto;width:auto}}

/* ---------- GABARIT DES PROJETS = page « Navia » de la maquette (1728 × 3110) ---------- */
.pj .ttl{font-weight:700}
.pj-img{background:#fff}
.pj-1{left:calc(106 * var(--u));top:calc(609 * var(--u));width:calc(1471 * var(--u));height:calc(692 * var(--u))}
.pj-2{left:calc(83 * var(--u));top:calc(1406 * var(--u));width:calc(616 * var(--u));height:calc(728 * var(--u))}
.pj-3{left:calc(956 * var(--u));top:calc(1406 * var(--u));width:calc(616 * var(--u));height:calc(728 * var(--u))}
.pj-4{left:calc(83 * var(--u));top:calc(2239 * var(--u));width:calc(616 * var(--u));height:calc(728 * var(--u))}
.pj-txt{left:calc(725 * var(--u));top:calc(2437 * var(--u));width:calc(969 * var(--u));font-size:max(16px,calc(32 * var(--u)))}
.pj-no4{height:calc(2440 * var(--u))}
.pj-no4 .pj-txt{left:calc(83 * var(--u));top:calc(2239 * var(--u));width:calc(969 * var(--u))}
@media (max-width:999px){
  .pj-1{aspect-ratio:1471/692}.pj-2,.pj-3,.pj-4{aspect-ratio:616/728}
  .pj-txt,.pj-no4 .pj-txt{font-size:1rem}
}

/* Titres de projet longs : ils passent sur deux lignes sans toucher la grande image */
.pj .ttl{white-space:normal;width:calc(1560 * var(--u));line-height:1.1;top:calc(367 * var(--u))}
@media (max-width:999px){.pj .ttl{width:auto;top:auto;line-height:1.1}}

/* ---------- PAGE PROJET « bannière » (maquette Figma « Cantley » : 1728 de large) ---------- */
.pj-banner{position:relative;width:100%;height:100%;background:linear-gradient(135deg,#2b372d,#0f1410)}
.pj-banner::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.63);pointer-events:none}
.pj-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pj-banner .pj-logo{position:absolute;z-index:1;left:17.51%;top:29.34%;width:66.58%;height:auto;object-fit:contain}
.pj-lead{font-weight:700}
.pj-ban .pj-img{background:transparent}
@media (min-width:1000px){
  .pj-ban{height:calc(3110 * var(--u));background:#1f221d}
  .pj-ban .ttl{left:calc(100 * var(--u));top:calc(336 * var(--u));width:calc(1528 * var(--u))}
  .pj-ban .pj-img{border-radius:calc(45 * var(--u))}
  .pj-ban .pj-1{left:calc(104 * var(--u));top:calc(609 * var(--u));width:calc(1496 * var(--u));height:calc(692 * var(--u))}
  .pj-ban .pj-2{left:calc(104 * var(--u));top:calc(1369 * var(--u));width:calc(797 * var(--u));height:calc(486 * var(--u))}
  .pj-ban .pj-3{left:calc(1008 * var(--u));top:calc(1369 * var(--u));width:calc(593 * var(--u));height:calc(483 * var(--u))}
  .pj-ban .pj-4{left:calc(104 * var(--u));top:calc(1920 * var(--u));width:calc(797 * var(--u));height:calc(488 * var(--u))}
  .pj-ban .pj-5{left:calc(1008 * var(--u));top:calc(1920 * var(--u));width:calc(593 * var(--u));height:calc(913 * var(--u))}
  .pj-ban .pj-txt{left:calc(104 * var(--u));top:calc(2484 * var(--u));width:calc(797 * var(--u));font-size:max(16px,calc(32 * var(--u)))}
  .pj-ban .pj-txt p+p{margin-top:0}
}
@media (max-width:999px){
  /* Maquette mobile Cantley : fond foncé comme le site, bannière un peu plus large que les images, ordre bannière → borne → chandail → macaron → billet → texte */
  .pj{grid-template-columns:minmax(0,1fr)} /* une colonne pleine largeur : sinon les images prennent des largeurs différentes */
  /* Mobile commun à TOUS les projets : fond foncé, une colonne, images pleine largeur, mêmes espaces */
  .pj{padding:clamp(150px,56vw,260px) 6.8vw 90px;gap:48px}
  .pj .ttl{margin-bottom:8vw}
  .pj .pj-img{width:100%;height:auto;border-radius:28px}
  .pj.pj-no4{height:auto}
  .pj .pj-txt{width:auto;max-width:34rem}
  .pj-ban .pj-img,.pj-trio .pj-img,.pj-duo .pj-img,.pj-rebel .pj-img{width:100%;height:auto} /* les largeurs « bureau » de .pj-2, .pj-3… ne doivent pas rétrécir les images sur mobile */
  .pj-ban{background:#1f221d;padding:clamp(150px,56vw,260px) 6.8vw 90px;gap:60px}
  .pj-ban .ttl{margin-bottom:8vw}
  .pj-ban .pj-1{aspect-ratio:395/194;margin-inline:-2.5vw;margin-bottom:-34px}
  .pj-ban .pj-2,.pj-ban .pj-3,.pj-ban .pj-4,.pj-ban .pj-5{aspect-ratio:370/257}
  .pj-ban .pj-4{order:0}
  .pj-ban .pj-5{aspect-ratio:593/913}
  .pj-ban .pj-txt{order:2;max-width:34rem}
  .pj-ban .pj-logo{top:30.5%}
  .pj-ban .pj-img{border-radius:28px}
  .pj-ban .pj-txt p+p{margin-top:0}
}
/* Pied de page de la page « bannière » : même gris-vert très foncé que la page (maquette Figma) */
body:has(.pj-ban) .site-footer{background:#1f221d}
/* Projets au fond sombre (Navia) : page et pied de page en gris-vert très foncé */
.pj-dark{background:#1f221d}
body:has(.pj-dark) .site-footer{background:#1f221d}

/* ---------- PAGE PROJET « trio » (maquette Figma « Zest Horizon » : 1728 × 3102) ---------- */
@media (min-width:1000px){
  .pj-trio{height:calc(3102 * var(--u))}
  .pj-trio .ttl{left:calc(100 * var(--u));top:calc(336 * var(--u));width:calc(1528 * var(--u))}
  .pj-trio .pj-img{border-radius:calc(45 * var(--u))}
  .pj-trio .pj-1{border-radius:calc(59 * var(--u))}
  .pj-trio .pj-1{left:calc(189 * var(--u));top:calc(575 * var(--u));width:calc(1323 * var(--u));height:calc(744 * var(--u))}
  .pj-trio .pj-2{left:calc(104 * var(--u));top:calc(1453 * var(--u));width:calc(643 * var(--u));height:calc(519 * var(--u))}
  .pj-trio .pj-3{left:calc(952 * var(--u));top:calc(1453 * var(--u));width:calc(643 * var(--u));height:calc(519 * var(--u))}
  .pj-trio .pj-4{left:calc(104 * var(--u));top:calc(2061 * var(--u));width:calc(643 * var(--u));height:calc(519 * var(--u))}
  .pj-trio .pj-txt{left:calc(952 * var(--u));top:calc(2194 * var(--u));width:calc(643 * var(--u));font-size:max(16px,calc(32 * var(--u)))}
}
@media (max-width:999px){
  .pj-trio .pj-1{aspect-ratio:16/9}.pj-trio .pj-2,.pj-trio .pj-3,.pj-trio .pj-4{aspect-ratio:643/519}
  /* Même mise en page mobile que Cantley : fond foncé, marges de 6,8 vw, bannière plus large, coins arrondis, texte étroit */
  .pj-trio{padding-inline:6.8vw;gap:28px}
  .pj-trio .pj-1{margin-inline:-2.5vw}
  .pj-trio .pj-txt{max-width:34rem}
  .pj-trio .pj-img{border-radius:28px}
}

/* ---------- PAGE PROJET « duo » (maquette Figma « Rapport annuel » : 1728 × 2684) ---------- */
@media (min-width:1000px){
  .pj-duo{height:calc(2684 * var(--u))}
  .pj-duo .ttl{left:calc(100 * var(--u));top:calc(336 * var(--u));width:calc(1528 * var(--u))}
  .pj-duo .pj-img{border-radius:calc(45 * var(--u))}
  .pj-duo .pj-1{left:calc(189 * var(--u));top:calc(575 * var(--u));width:calc(1323 * var(--u));height:calc(744 * var(--u));border-radius:calc(59 * var(--u))}
  .pj-duo .pj-2{left:calc(104 * var(--u));top:calc(1453 * var(--u));width:calc(643 * var(--u));height:calc(519 * var(--u))}
  .pj-duo .pj-3{left:calc(908 * var(--u));top:calc(1453 * var(--u));width:calc(643 * var(--u));height:calc(519 * var(--u))}
  .pj-duo .pj-txt{left:calc(104 * var(--u));top:calc(2186 * var(--u));width:calc(1500 * var(--u));font-size:max(16px,calc(32 * var(--u)))}
  .pj-duo .pj-txt p+p{margin-top:0}
}
@media (max-width:999px){
  .pj-duo .pj-1{aspect-ratio:16/9}.pj-duo .pj-2,.pj-duo .pj-3{aspect-ratio:643/519}
  /* Même mise en page mobile que Cantley : fond foncé, marges de 6,8 vw, bannière plus large, coins arrondis, texte étroit */
  .pj-duo{padding-inline:6.8vw;gap:28px}
  .pj-duo .pj-1{margin-inline:-2.5vw}
  .pj-duo .pj-txt{max-width:34rem}
  .pj-duo .pj-img{border-radius:28px}
  .pj-duo .pj-txt p+p{margin-top:0}
}

/* Bouton FR / EN dans le menu */
.nav-lang{display:flex;align-items:center;gap:6px;color:var(--white)}
.nav-lang a,.nav-lang span[aria-hidden]{font-family:var(--f-nav);font-size:inherit}
.nav-lang .lang-current{min-width:0;min-height:0;padding:5px 12px 3px;line-height:1.1;font-family:var(--f-nav);font-weight:400}
.nav-lang .lang-link{min-width:0;min-height:0;padding:5px 8px 3px;line-height:1.1;font-weight:400}
@media (min-width:1000px){
  .nav-lang{font-size:max(16px,calc(24 * var(--u)))}
  .main-nav{left:auto;right:calc(99 * var(--u));width:auto}
  .main-nav ul{gap:calc(56 * var(--u))}
}
@media (max-width:999px){
  .nav-lang{font-size:clamp(1.3rem,6vw,1.7rem);justify-content:center}
  .nav-lang .lang-current,.nav-lang .lang-link{padding:8px 14px}
  .main-nav ul{align-items:center}
}

/* ---------- PAGE PROJET « Rebel Raccoon » (maquette Figma : 1728 × 3102) ---------- */
@media (min-width:1000px){
  .pj-rebel{height:calc(3102 * var(--u))}
  .pj-rebel .ttl{left:calc(100 * var(--u));top:calc(256 * var(--u));width:calc(1528 * var(--u))}
  .pj-rebel .pj-img{border-radius:0;background:transparent}
  .pj-rebel .pj-1{left:calc(144 * var(--u));top:calc(484 * var(--u));width:calc(1411 * var(--u));height:calc(836 * var(--u));border-radius:calc(85 * var(--u))}
  .pj-rebel .pj-2{left:calc(158 * var(--u));top:calc(1437 * var(--u));width:calc(389 * var(--u));height:calc(693 * var(--u))}
  .pj-rebel .pj-3{left:calc(699 * var(--u));top:calc(1453 * var(--u));width:calc(459 * var(--u));height:calc(519 * var(--u))}
  .pj-rebel .pj-4{left:calc(1204 * var(--u));top:calc(1453 * var(--u));width:calc(391 * var(--u));height:calc(519 * var(--u))}
  .pj-rebel .pj-txt{left:calc(104 * var(--u));top:calc(2375 * var(--u));width:calc(1500 * var(--u));font-size:max(16px,calc(32 * var(--u)))}
  .pj-rebel .pj-txt p+p{margin-top:0}
}
@media (max-width:999px){
  .pj-rebel{padding:clamp(150px,56vw,260px) 6.8vw 90px;gap:48px}
  .pj-rebel .ttl{margin-bottom:8vw}
  .pj-rebel .pj-1{aspect-ratio:1411/836;margin-inline:-2.5vw;border-radius:28px}
  .pj-rebel .pj-2{aspect-ratio:389/693;width:62%;justify-self:center}
  .pj-rebel .pj-3{aspect-ratio:459/519}
  .pj-rebel .pj-4{aspect-ratio:391/519}
  .pj-rebel .pj-img{border-radius:0;background:transparent}
  .pj-rebel .pj-1{border-radius:28px}
  .pj-rebel .pj-txt{max-width:34rem}
  .pj-rebel .pj-txt p+p{margin-top:0}
}

/* ---------- Mon travail sur mobile : une colonne, grandes cartes arrondies avec le titre dessous (comme les pages projet) ---------- */
.card-cap{display:none}
@media (max-width:999px){
  .grid{grid-template-columns:minmax(0,1fr);gap:44px;max-width:34rem;margin-inline:auto}
  .card{border-radius:28px}
  .card-cap{display:block;margin-top:14px;font-family:var(--f-title);font-weight:700;font-size:clamp(1.3rem,5.4vw,1.8rem);line-height:1.2;color:var(--cream)}
  html.js[data-motion="full"] .grid li{opacity:1;transform:none} /* toujours visibles sur mobile (pas d'attente du défilement) */
  .proc-row{position:relative;z-index:1} /* les titres de la démarche passent au-dessus du voile sombre */
}

/* ---- Pages projet : agrandissement, partage, autres projets ---- */
.pj-img[data-zoom]{cursor:zoom-in}
.pj-img[data-zoom]:focus-visible{outline:3px solid var(--cream);outline-offset:4px}
.pj-after{position:relative;z-index:2;background:var(--olive);padding:calc(90*var(--u)) calc(99*var(--u)) calc(120*var(--u));font-family:var(--f-text)}
.pj-after-dark,body:has(.pj-dark) .pj-after{background:#1f221d}
.pj-h{margin:0 0 .6em;font-family:var(--f-title);font-weight:700;font-size:clamp(1.6rem,calc(40*var(--u)),2.6rem);line-height:1.1;color:var(--cream)}
.pj-after ul{list-style:none;margin:0;padding:0}
.pj-share{margin-bottom:calc(110*var(--u))}
.pj-share ul{display:flex;flex-wrap:wrap;gap:12px}
.pj-share a,.pj-share button{display:inline-block;min-height:44px;padding:.55em 1.3em;border:2px solid var(--cream);border-radius:999px;background:transparent;color:var(--cream);font:600 1rem var(--f-text);text-decoration:none;cursor:pointer;transition:background .3s,color .3s}
.pj-share a:hover,.pj-share button:hover,.pj-share a:focus-visible,.pj-share button:focus-visible{background:var(--cream);color:#1f221d}
.pj-more ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:calc(40*var(--u))}
.pj-more a{display:block;color:var(--cream);text-decoration:none}
.pj-more img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:28px;transition:transform .5s cubic-bezier(.65,0,.35,1)}
.pj-more a:hover img,.pj-more a:focus-visible img{transform:scale(1.025)}
.pj-more-t{display:block;margin-top:14px;font-family:var(--f-title);font-weight:700;font-size:clamp(1.2rem,calc(32*var(--u)),1.9rem);line-height:1.2}
.pj-more a:focus-visible{outline:3px solid var(--cream);outline-offset:6px;border-radius:28px}
@media (max-width:999px){
  .pj-after{padding:20px 6.8vw 90px}
  .pj-share{margin-bottom:56px}
  .pj-more ul{grid-template-columns:minmax(0,1fr);gap:36px;max-width:34rem}
  .pj-more img{aspect-ratio:4/3}
}
.lb{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:rgba(10,12,9,.92);padding:56px 64px}
.lb-i{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px}
.lb button{position:absolute;width:48px;height:48px;border:2px solid var(--cream);border-radius:50%;background:rgba(31,34,29,.8);color:var(--cream);font:400 2rem/1 var(--f-text);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0 0 .12em}
.lb button:hover,.lb button:focus-visible{background:var(--cream);color:#1f221d}
.lb-x{top:12px;right:12px}.lb-p{left:10px;top:50%;margin-top:-24px}.lb-n{right:10px;top:50%;margin-top:-24px}
html.lb-open{overflow:hidden}
@media (max-width:999px){.lb{padding:64px 12px}.lb-p,.lb-n{top:auto;bottom:10px;margin:0}.lb-p{left:calc(50% - 56px)}.lb-n{right:calc(50% - 56px)}}

/* ---- Infos sur les cartes « Mon travail » : au survol (web), toujours visibles sur mobile ---- */
.card-info{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:calc(8*var(--u));padding:calc(22*var(--u));color:var(--cream);background:linear-gradient(to top,rgba(31,34,29,.94) 0%,rgba(31,34,29,.78) 55%,rgba(31,34,29,.15) 100%);opacity:0;transform:translateY(12px);transition:opacity .45s cubic-bezier(.65,0,.35,1),transform .45s cubic-bezier(.65,0,.35,1);pointer-events:none}
.card:hover .card-info,.card:focus-visible .card-info{opacity:1;transform:none}
.card img{transition:transform .8s cubic-bezier(.65,0,.35,1)}
.card:hover img,.card:focus-visible img{transform:scale(1.05)}
.ci-cat{align-self:flex-start;padding:.15em .8em;border:1.5px solid var(--cream);border-radius:999px;font:600 clamp(.7rem,calc(14*var(--u)),.85rem)/1.5 var(--f-text)}
.ci-ttl{font-family:var(--f-title);font-weight:700;font-size:clamp(1.05rem,calc(26*var(--u)),1.5rem);line-height:1.1}
.ci-txt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:400 clamp(.72rem,calc(14*var(--u)),.9rem)/1.4 var(--f-text)}
.ci-go{font:600 clamp(.78rem,calc(15*var(--u)),.95rem) var(--f-text);text-decoration:underline;text-underline-offset:3px}
@media (max-width:999px),(hover:none){
  .card-info{opacity:1;transform:none;padding:18px;gap:6px;background:linear-gradient(to top,rgba(31,34,29,.92) 0%,rgba(31,34,29,.6) 45%,rgba(31,34,29,0) 75%)}
  .ci-txt{display:none}
  .ci-ttl{display:none} /* le titre est déjà sous la carte */
  .ci-cat{font-size:.8rem}
  .ci-go{font-size:.9rem}
}
@media (prefers-reduced-motion:reduce){.card-info,.card img{transition:none}}

/* ---- Ma démarche : texte d'explication au survol (web), toujours visible sur mobile ---- */
.step-d{position:absolute;left:calc(170*var(--u));width:calc(460*var(--u));top:calc(930*var(--u));margin:0;text-align:center;font:400 max(.8rem,calc(27*var(--u)))/1.35 var(--f-text);color:var(--cream);opacity:0;transform:translateY(12px);transition:opacity .5s cubic-bezier(.65,0,.35,1),transform .5s cubic-bezier(.65,0,.35,1);pointer-events:none}
.step:hover .step-d,.step:focus-visible .step-d,.step:focus-within .step-d{opacity:1;transform:none}
.step:focus-visible{outline:2px solid var(--cream);outline-offset:6px;border-radius:12px}
@media (max-width:999px){
  .step-d{position:static;width:auto;max-width:28rem;margin:10px auto 0;opacity:1;transform:none;font-size:1rem;line-height:1.45}
}
@media (prefers-reduced-motion:reduce){.step-d{transition:none}}

/* ---- Menu : une bulle crème glisse d'un lien à l'autre, avec une petite fleur qui y pousse (sans boîte) ---- */
.nav-blob{display:none}
.main-nav a[aria-current="page"]{font-weight:700}
@media (min-width:1000px){
  .main-nav ul{position:relative;gap:2px}
  .main-nav a{padding:.55em 1.2em .4em;border-radius:999px;position:relative;z-index:1;transition:color .35s}
  .main-nav a:hover{text-decoration:none}
  .main-nav a.is-on{color:#1f221d}
  .nav-blob{display:block;position:absolute;left:0;top:0;height:0;width:0;border-radius:999px;background:var(--cream);z-index:0;opacity:0;pointer-events:none;transition:left .55s cubic-bezier(.34,1.3,.64,1),top .3s,width .55s cubic-bezier(.34,1.3,.64,1),height .3s,opacity .3s}
  .nav-blob.on{opacity:1}
  .nav-blob svg{position:absolute;right:-.45em;top:-.75em;width:1.3em;height:1.38em;fill:var(--cream);transform:rotate(0);transition:transform .7s cubic-bezier(.34,1.56,.64,1)}
  .nav-blob.turn svg{transform:rotate(72deg)}
  .nav-lang{margin-left:calc(20*var(--u))}
  .nav-lang span[aria-hidden]{display:none}
  .nav-lang .lang-link{padding:5px 10px 3px}
}
@media (max-width:999px){
  html.js .main-nav a[aria-current="page"]{background:var(--cream);color:#1f221d;border-radius:999px;padding:8px 22px}
}
@media (prefers-reduced-motion:reduce){.nav-blob,.nav-blob svg,.main-nav a{transition:none}}

/* ---- Curseur en fleur ---- */
.fcur{position:fixed;left:0;top:0;z-index:3000;width:0;height:0;pointer-events:none;opacity:0;transition:opacity .25s}
.fcur.on{opacity:1}
.fcur svg{position:absolute;left:-15px;top:-16px;width:30px;height:32px;max-width:none;fill:#fff;mix-blend-mode:difference;transition:scale .3s cubic-bezier(.34,1.56,.64,1)}
.fcur.hot svg{scale:1.9}
.fcur.down svg{scale:.7}
html.has-fcur,html.has-fcur *{cursor:none!important}
@media (hover:none),(pointer:coarse),(prefers-reduced-motion:reduce){.fcur{display:none}}

/* ---- Pied de page : fond #1f221d, logo + courriel alignés ---- */
.site-footer{background:#1f221d}
.foot-brand{display:flex;align-items:center;flex-wrap:wrap;gap:12px 32px}
.foot-logo{display:block;width:clamp(150px,calc(230*var(--u)),230px)}
.foot-logo img{display:block;width:100%;height:auto}
.foot-mail{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--cream);text-decoration:none;font-weight:600}
.foot-mail svg{flex:none;transition:transform .35s cubic-bezier(.34,1.56,.64,1)}
.foot-mail span{text-decoration:underline;text-underline-offset:.25em}
.foot-mail:hover svg,.foot-mail:focus-visible svg{transform:translateY(-3px) rotate(-8deg)}
@media (prefers-reduced-motion:reduce){.foot-mail svg{transition:none}}
@media (max-width:999px){.foot-brand{flex-direction:column;align-items:flex-start;gap:8px}}

/* ---- Mon travail sur mobile : titre et cartes plus grands ---- */
@media (max-width:999px){
  .work{padding:80px 5vw 110px}
  .work .grid{max-width:none;gap:40px;margin-top:44px}
  .work .card{aspect-ratio:4/5;border-radius:32px}
  .work .card-cap{font-size:clamp(1.6rem,7vw,2.3rem);margin-top:16px}
  .work .card-info .ci-cat{font-size:1rem}
  .work .card-info .ci-go{font-size:1.05rem}
}

/* ---- Titres de section sur mobile (Sur moi, Ma démarche, Mon travail) : même taille ---- */
@media (max-width:999px){
  .pres .ttl,.process .ttl,.work .ttl{font-size:clamp(2.6rem,11.5vw,3.8rem);line-height:1.1;text-align:center}
}

/* ---- Page Sur moi : 1er paragraphe plus grand + boutons ---- */
.pres-about .bio p:first-of-type{font-size:max(19px,calc(31 * var(--u)));line-height:1.45}
.bio-cta{display:flex;flex-wrap:wrap;gap:16px;margin-top:calc(44 * var(--u))}
.btn-cta{display:inline-flex;align-items:center;min-height:48px;padding:0 28px;border-radius:999px;box-shadow:inset 0 0 0 2px var(--cream);color:var(--cream);font:600 max(16px,calc(22 * var(--u)))/1 var(--f-text);text-decoration:none;transition:background .4s,color .4s}
.btn-cta-fill{background:var(--cream);color:var(--olive)}
.btn-cta:hover,.btn-cta:focus-visible{background:var(--cream);color:var(--olive)}
.btn-cta-fill:hover,.btn-cta-fill:focus-visible{background:transparent;color:var(--cream)}

/* ---- Hamburger mobile (option B) : deux lignes fines, la 2e plus courte ---- */
@media (max-width:999px){
  .site-header .bars,.site-header.solid .bars{--bh:2px;width:26px;height:12px}
  .bars i:nth-child(2){display:none}
  .bars i:nth-child(1){top:0}
  .bars i:nth-child(3){top:calc(100% - var(--bh));left:auto;right:0;width:62%;transition:transform .5s cubic-bezier(.65,0,.35,1),top .5s cubic-bezier(.65,0,.35,1),width .5s cubic-bezier(.65,0,.35,1)}
  .site-header.menu-open .bars i:nth-child(1){top:calc(50% - var(--bh) / 2)}
  .site-header.menu-open .bars i:nth-child(3){top:calc(50% - var(--bh) / 2);width:100%;left:0;right:auto}
}

/* ---- Pas de mot orphelin seul sur la dernière ligne ---- */
p,li,figcaption,.bio p,.step-d,.cc-txt,.ci-txt,.card-cap{text-wrap:pretty}
h1,h2,h3,.ttl,.card-cap .cc-ttl,.step-t{text-wrap:balance}

/* ---- Ouverture (logo animé) sur mobile : le logo entier est visible, plus petit, centré ---- */
@media (max-width:999px){
  .intro{background:#575a4c}
  .intro video{width:100%;height:auto;max-height:100%;object-fit:contain;transform:scale(.86);
    -webkit-mask-image:linear-gradient(to right,transparent,#000 3%,#000 97%,transparent),linear-gradient(to bottom,transparent,#000 35%,#000 65%,transparent);
    -webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent,#000 3%,#000 97%,transparent),linear-gradient(to bottom,transparent,#000 35%,#000 65%,transparent);mask-composite:intersect}
  .btn-skip{right:auto;left:50%;transform:translateX(-50%);bottom:max(28px,env(safe-area-inset-bottom))}
}

/* ---- Agrandissement : la bannière Cantley montre aussi son logo ---- */
.lb-w{position:relative;display:flex;max-width:100%;max-height:100%;border-radius:12px;overflow:hidden}
.lb-w .lb-i{max-height:calc(100vh - 112px);width:auto;border-radius:0}
.lb-w.has-logo::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.63);pointer-events:none}
.lb-l{position:absolute;z-index:1;left:17.51%;top:29.34%;width:66.58%;height:auto}
.lb-l[hidden]{display:none}
@media (max-width:999px){.lb-w .lb-i{max-height:calc(100vh - 140px)}}

/* ======== Échelle typographique (mobile) : h1 > h2 > h3 > h4 > texte ========
   h1 : titres d'accueil, contact, 404      → 2.75 – 4.25 rem
   h2 : titres de section, titre de projet  → 2.25 – 3.8 rem
   h3 : étapes, titres de cartes, blocs     → 1.5 – 1.875 rem
   h4 : petits titres, catégories           → 0.8125 – 1.25 rem
   texte : 1.0625 rem (17 px), interligne 1.6 ; petit texte 1 rem                    */
h4{font-family:var(--f-title);font-weight:700;font-size:1.25rem;line-height:1.3}
@media (max-width:999px){
  .l1,.l2{font-size:clamp(2.25rem,10.5vw,3.5rem);line-height:1.1}
  .cpage .hero-line,.h1{font-size:clamp(2.75rem,12vw,4.25rem);line-height:1.1}
  .pres .ttl,.process .ttl,.work .ttl,.contact .ttl{font-size:clamp(2.6rem,11.5vw,3.8rem);line-height:1.1}
  .pj .ttl{font-size:clamp(2.25rem,10vw,3.4rem);line-height:1.1}
  .step-t,.cc-ttl,.pj-h{font-size:clamp(1.5rem,6.5vw,1.875rem);line-height:1.2}
  .cc-cat,.ci-cat{font-size:.8125rem;line-height:1.4}
  .bio,.pj-txt,.pj-no4 .pj-txt,.pj-ban .pj-txt,.step-d{font-size:1.0625rem;line-height:1.6}
  .bio p+p,.pj-txt p+p{margin-top:1em}
  .cc-txt,.hint,.form-msg,.copy,.site-footer{font-size:1rem;line-height:1.5}
  .cf label,.field label,.form label{font-size:1.125rem}
}

/* ---- Contact : version compacte (1 seule page) — 3 champs à gauche, message à droite (commentaire du prof) ---- */
@media (min-width:1000px){
  .cpage{height:min(100svh,calc(1010 * var(--u)));min-height:max(560px,calc(860 * var(--u)))}
  .cpage .l4{left:calc(83 * var(--u));top:calc(190 * var(--u));font-size:calc(72 * var(--u))}
  .cpage .fl-c{left:calc(720 * var(--u));top:calc(175 * var(--u));width:calc(120 * var(--u))}
  .cpage .fl-d{left:calc(1480 * var(--u));top:calc(560 * var(--u));width:calc(170 * var(--u))}
  .cf{width:calc(520 * var(--u))}
  .cf label{height:calc(44 * var(--u));line-height:calc(44 * var(--u));font-size:max(16px,calc(28 * var(--u)))}
  .cf input,.cf textarea{height:calc(52 * var(--u));font-size:max(16px,calc(26 * var(--u)))}
  .cf-nom{top:calc(350 * var(--u))}
  .cf-mail{top:calc(490 * var(--u))}
  .cf-sujet{top:calc(630 * var(--u))}
  .cf-msg{left:calc(700 * var(--u));width:calc(640 * var(--u));top:calc(350 * var(--u))}
  .cf textarea{height:calc(280 * var(--u))}
  .cf-send{left:calc(1143 * var(--u));top:calc(740 * var(--u));width:calc(197 * var(--u))}
  .cf-send .send{height:calc(60 * var(--u))}
  .cf-note.form-msg{left:calc(700 * var(--u));top:calc(750 * var(--u));width:calc(420 * var(--u));font-size:max(14px,calc(20 * var(--u)))}
}

/* ---- Projet suivant : petite pastille avec une icône de fleur ---- */
.pj-next{display:inline-flex;align-items:center;gap:14px;margin:calc(70 * var(--u)) 0 calc(90 * var(--u));padding:10px 22px 10px 12px;border-radius:999px;box-shadow:inset 0 0 0 2px var(--cream);color:var(--cream);text-decoration:none;transition:background .4s cubic-bezier(.65,0,.35,1),color .4s cubic-bezier(.65,0,.35,1)}
.pj-next-fl{flex:none;width:34px;height:auto;aspect-ratio:340/361;fill:currentColor;transition:rotate .7s cubic-bezier(.34,1.56,.64,1)}
.pj-next-txt{display:flex;flex-direction:column;gap:2px;line-height:1.15}
.pj-next-k{font:600 .75rem/1.2 var(--f-text);letter-spacing:.08em;text-transform:uppercase;opacity:.85}
.pj-next-t{font-family:var(--f-title);font-weight:700;font-size:1.125rem}
.pj-next-go{font:600 1.25rem/1 var(--f-text);transition:transform .4s cubic-bezier(.34,1.56,.64,1)}
.pj-next:hover,.pj-next:focus-visible{background:var(--cream);color:#1f221d}
.pj-next:hover .pj-next-fl,.pj-next:focus-visible .pj-next-fl{rotate:60deg}
.pj-next:hover .pj-next-go,.pj-next:focus-visible .pj-next-go{transform:translateX(5px)}
.pj-next:focus-visible{outline:3px solid var(--cream);outline-offset:5px}
@media (max-width:999px){.pj-next{margin:34px 0 50px}}
@media (prefers-reduced-motion:reduce){.pj-next,.pj-next *{transition:none!important}}

/* Washi tape on top of the polaroid */
.polaroid::before{content:"";position:absolute;z-index:20;left:65.6%;top:11.5%;width:calc(250 * var(--u));min-width:110px;aspect-ratio:800/116;transform:translate(-50%,-50%) rotate(26deg);background:linear-gradient(180deg,rgba(255,255,255,.35) 0,rgba(255,255,255,0) 35%,rgba(0,0,0,.08) 100%),url("../img/tape.png") center/100% 100% no-repeat;opacity:.9;clip-path:polygon(2% 0,100% 0,98% 10%,100% 20%,98% 30%,100% 40%,98% 50%,100% 60%,98% 70%,100% 80%,98% 90%,100% 100%,2% 100%,0 90%,2% 80%,0 70%,2% 60%,0 50%,2% 40%,0 30%,2% 20%,0 10%);pointer-events:none}

/* Hero : bandeau défilant de présentation */
.hero-tag{position:absolute;left:0;right:0;top:calc(690 * var(--u));margin:0;overflow:hidden;font-family:var(--f-text);font-size:max(14px,calc(24 * var(--u)));letter-spacing:.24em;text-transform:uppercase;color:var(--cream);opacity:.9;-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.tag-track{display:flex;width:max-content;white-space:nowrap}
.tag-row{display:flex;align-items:center;flex:none}
.tag-row>span{padding:0 1.6em}
.hero-tag .tag-fl{width:.7em;height:auto;aspect-ratio:340/361;fill:var(--cream);flex:none}
html.js[data-motion="full"] .tag-track{animation:tagScroll 40s linear infinite}
html.js[data-motion="full"] .hero-tag{animation:tagIn .9s cubic-bezier(.65,0,.35,1) 1.4s both}
@keyframes tagScroll{to{transform:translateX(-25%)}}
@keyframes tagSpin{to{transform:rotate(360deg)}}
@keyframes tagIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (max-width:999px){.hero-tag{position:static;margin-top:22px;width:100%;font-size:.95rem;letter-spacing:.12em}}
@media (prefers-reduced-motion:reduce){html.js[data-motion="full"] .hero-tag,html.js[data-motion="full"] .tag-track,html.js[data-motion="full"] .tag-fl{animation:none}.hero-tag{-webkit-mask-image:none;mask-image:none}.tag-track{width:100%;justify-content:center;flex-wrap:wrap}.tag-row[aria-hidden]{display:none}}

/* Bouton pour arrêter / reprendre les animations */
.motion-btn{position:fixed;left:16px;bottom:16px;z-index:90;display:inline-flex;align-items:center;gap:.5em;padding:.55em 1em;border:1.5px solid rgba(242,231,213,.55);border-radius:999px;background:rgba(31,34,29,.82);color:#f2e7d5;font:500 .8rem/1 var(--f-text);cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .25s,color .25s}
.motion-btn svg{width:1em;height:1em;fill:currentColor;flex:none}
.motion-btn:hover,.motion-btn:focus-visible{background:#f2e7d5;color:#1f221d}
.motion-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (max-width:999px){.motion-btn{left:10px;bottom:10px;font-size:.72rem;padding:.5em .85em}}

/* Petite fleur « Retour en haut » */
.to-top{position:fixed;right:18px;bottom:18px;z-index:90;width:56px;height:56px;padding:0;border:0;border-radius:50%;background:rgba(31,34,29,.82);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(14px) scale(.8);transition:opacity .35s,transform .45s cubic-bezier(.34,1.56,.64,1),visibility 0s .45s}
.to-top.show{opacity:1;visibility:visible;transform:none;transition:opacity .35s,transform .45s cubic-bezier(.34,1.56,.64,1)}
.to-top>svg:first-child{position:absolute;inset:7px;width:calc(100% - 14px);height:calc(100% - 14px);fill:#f2e7d5;transition:transform .7s cubic-bezier(.65,0,.35,1)}
.to-top-ar{position:absolute;left:50%;top:50%;width:13px;height:13px;margin:-6.5px 0 0 -6.5px;fill:none;stroke:#f2e7d5;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.to-top:hover>svg:first-child,.to-top:focus-visible>svg:first-child{transform:rotate(90deg)}
.to-top:focus-visible{outline:2px solid #f2e7d5;outline-offset:3px}
@media (max-width:999px){.to-top{width:46px;height:46px;right:12px;bottom:12px}}
@media (prefers-reduced-motion:reduce){.to-top,.to-top.show,.to-top>svg:first-child{transition:none}}

/* Ruban du polaroïd : il se décolle et se balance au survol */
.polaroid::before{transition:transform .6s cubic-bezier(.34,1.56,.64,1),opacity .4s ease}
@media (hover:hover) and (pointer:fine){
  .polaroid:hover::before{transform:translate(-50%,-62%) rotate(31deg) scale(1.06);opacity:1;animation:tapeSway 1.6s ease-in-out .6s infinite alternate}
}
@keyframes tapeSway{from{transform:translate(-50%,-62%) rotate(31deg) scale(1.06)}to{transform:translate(-50%,-60%) rotate(28deg) scale(1.06)}}
@media (prefers-reduced-motion:reduce){.polaroid::before{transition:none}.polaroid:hover::before{animation:none}}
html[data-motion="reduced"] .polaroid::before{transition:none}html[data-motion="reduced"] .polaroid:hover::before{animation:none}

/* Page Ingenium : grande couverture (1496 × 842) puis deux doubles pages (728 × 540 chacune), marges de 104, écart de 40 */
@media (min-width:1000px){
  .pj.pj-ingenium{height:calc(2440 * var(--u))}
  .pj-ingenium .pj-1{left:calc(104 * var(--u));top:calc(609 * var(--u));width:calc(1496 * var(--u));height:calc(842 * var(--u))}
  .pj-ingenium .pj-2{left:calc(104 * var(--u));top:calc(1491 * var(--u));width:calc(728 * var(--u));height:calc(540 * var(--u))}
  .pj-ingenium .pj-3{left:calc(872 * var(--u));top:calc(1491 * var(--u));width:calc(728 * var(--u));height:calc(540 * var(--u))}
  .pj-ingenium .pj-txt{left:calc(104 * var(--u));top:calc(2111 * var(--u));width:calc(1496 * var(--u))}
}
@media (max-width:999px){
  .pj-ingenium .pj-1{aspect-ratio:1496/842}
  .pj-ingenium .pj-2,.pj-ingenium .pj-3{aspect-ratio:728/540}
}

/* Pied de page : courriel et Instagram l'un sous l'autre */
.foot-contact{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.foot-insta span:not(.sr){text-decoration:underline;text-underline-offset:.25em}
.foot-insta:hover svg,.foot-insta:focus-visible svg{transform:translateY(-3px) rotate(8deg)}

/* Ma démarche : les fleurs s'ouvrent d'étape en étape (graine, bourgeon, fleur à moitié ouverte, fleur épanouie) et le texte reste visible sous chacune */
.step-fl{color:var(--cream)}

/* Ma démarche : au survol d'un titre d'étape, chaque lettre s'incline et s'éclaire (comme les grands titres) */
@media (hover:hover) and (pointer:fine){
  .step-t .m,.step-t .m i{display:inline-block}
  .step-t .m i{font-style:normal;transition:rotate .55s cubic-bezier(.65,0,.35,1),translate .55s cubic-bezier(.65,0,.35,1),color .55s cubic-bezier(.65,0,.35,1)}
  .step-t .m:hover i{rotate:-8deg;translate:0 -.06em;color:#fff}
}
@media (prefers-reduced-motion:reduce){.step-t .m:hover i{rotate:none;translate:none}}

/* ---- Même structure pour tous les projets : titre, bannière, deux colonnes (large à gauche, étroite à droite), texte à gauche ----
   pj-n4 = bannière + 4 images (Cantley) · pj-n3 = bannière + 3 images · pj-n2 = bannière + 2 images */
@media (min-width:1000px){
  .pj.pj-uni .ttl{left:calc(100 * var(--u));top:calc(336 * var(--u));width:calc(1528 * var(--u))}
  .pj.pj-uni .pj-img{border-radius:calc(45 * var(--u))}
  .pj.pj-uni .pj-1{left:calc(104 * var(--u));top:calc(609 * var(--u));width:calc(1496 * var(--u));height:calc(692 * var(--u))}
  .pj.pj-uni .pj-2{left:calc(104 * var(--u));top:calc(1369 * var(--u));width:calc(797 * var(--u));height:calc(486 * var(--u))}
  .pj.pj-uni .pj-3{left:calc(1008 * var(--u));top:calc(1369 * var(--u));width:calc(593 * var(--u));height:calc(483 * var(--u))}
  .pj.pj-n4 .pj-4{left:calc(104 * var(--u));top:calc(1920 * var(--u));width:calc(797 * var(--u));height:calc(488 * var(--u))}
  .pj.pj-n4 .pj-5{left:calc(1008 * var(--u));top:calc(1920 * var(--u));width:calc(593 * var(--u));height:calc(913 * var(--u))}
  .pj.pj-n3 .pj-4{left:calc(1008 * var(--u));top:calc(1920 * var(--u));width:calc(593 * var(--u));height:calc(913 * var(--u))}
  .pj.pj-uni .pj-txt{left:calc(104 * var(--u));width:calc(797 * var(--u));font-size:max(16px,calc(32 * var(--u)))}
  .pj.pj-n4 .pj-txt{top:calc(2484 * var(--u))}
  .pj.pj-n3 .pj-txt{top:calc(1920 * var(--u))}
  .pj.pj-n2 .pj-txt{top:calc(1915 * var(--u))}
  .pj.pj-n4{height:calc(3110 * var(--u))}
  .pj.pj-n3{height:calc(2960 * var(--u))}
  .pj.pj-n2{height:calc(2330 * var(--u))}
  .pj-ingenium .pj-1 img{object-position:50% 38%}
}
@media (max-width:999px){
  .pj-uni:not(.pj-ban) .pj-img{aspect-ratio:auto;height:auto}
  .pj-uni:not(.pj-ban) .pj-img img,.pj-uni:not(.pj-ban) .pj-img video{height:auto}
}

/* Rebel Raccoon: portrait screen video fits its box (no cropping) */
.pj-rebel .pj-img video{object-fit:contain;background:#171c18}
@media (max-width:999px){
  .pj-rebel .pj-img video{height:auto;max-height:80svh;margin:0 auto}
}

/* Footer: icônes de réseaux sociaux */
.foot-icons{gap:12px}
.foot-icons .soc-ico{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;border:1.5px solid currentColor;border-radius:50%;text-decoration:none;color:var(--cream);transition:transform .35s cubic-bezier(.34,1.56,.64,1),background-color .25s,color .25s}
.foot-icons .soc-ico:hover,.foot-icons .soc-ico:focus-visible{transform:translateY(-3px) rotate(-6deg);background:var(--cream);color:var(--olive)}
@media (prefers-reduced-motion:reduce){.foot-icons .soc-ico{transition:none}.foot-icons .soc-ico:hover,.foot-icons .soc-ico:focus-visible{transform:none}}

/* Bouton « Projet suivant » sous le texte */
.pj-txt .pj-next{margin:calc(56 * var(--u)) 0 0}
@media (max-width:999px){.pj-txt .pj-next{margin:32px 0 0}}

/* Contact : phrase sous le titre */
.cp-sub{position:absolute;left:calc(83 * var(--u));top:calc(276 * var(--u));width:calc(1100 * var(--u));margin:0;font-family:var(--f-text);font-size:max(16px,calc(26 * var(--u)));line-height:1.35;color:var(--cream);z-index:2}
@media (min-width:1000px){.cp-sub{top:calc(304 * var(--u));width:calc(1100 * var(--u));font-size:max(16px,calc(24 * var(--u)));line-height:1.2;white-space:nowrap}}
@media (max-width:999px){.cp-sub{position:static;width:auto;margin:14px auto 0;max-width:36rem;text-align:center;font-size:1.05rem}}

/* Contact : ligne de confidentialité sous le message */
.cf-priv{margin:0;color:var(--cream);font-family:var(--f-text);line-height:1.4}
.cf-priv a{color:var(--cream);text-decoration:underline;text-underline-offset:.2em;font-weight:600}
.cf-priv a:hover{text-decoration-thickness:2px}
.cf-priv a:focus-visible{outline:3px solid var(--cream);outline-offset:3px}
@media (min-width:1000px){.cf-priv{left:calc(700 * var(--u));top:calc(686 * var(--u));width:calc(640 * var(--u));font-size:max(14px,calc(19 * var(--u)))}}
@media (max-width:999px){.cf-priv{position:relative;left:auto;top:auto;width:auto;font-size:.95rem}}
html.js[data-motion="full"] .cpage.in .cf-priv{transition-delay:1s}

/* Rebel Raccoon, mobile : une seule colonne propre, mêmes marges et coins arrondis partout */
@media (max-width:999px){
  .pj.pj-rebel.pj-uni{gap:22px}
  .pj.pj-rebel.pj-uni .ttl{margin-bottom:6vw}
  .pj.pj-rebel.pj-uni .pj-img{width:100%;margin-inline:0;justify-self:stretch;border-radius:22px;overflow:hidden;aspect-ratio:auto}
  .pj.pj-rebel.pj-uni .pj-img img{width:100%;height:auto}
  .pj.pj-rebel.pj-uni .pj-4{width:min(78%,320px);justify-self:center;background:#171c18}
  .pj.pj-rebel.pj-uni .pj-4 video{width:100%;height:auto;max-height:none;margin:0;object-fit:cover}
  .pj.pj-rebel.pj-uni .pj-txt{max-width:none;margin-top:10px}
}

/* Logo mobile : plus petit (fleur du menu) */
@media (max-width:999px){
  .brand{width:max(56px,16vw);top:7vw}
  .site-header.solid .brand,.site-header.menu-open.solid .brand{width:40px;top:12px}
}

/* À propos : boutons centrés */
.pres .bio-cta{justify-content:center}

/* Mon travail (web) : même texte que sur mobile, toujours visible (catégorie, titre, « Voir le projet ») */
@media (min-width:1000px){
  .card-info{opacity:1;transform:none;gap:calc(6*var(--u));padding:calc(20*var(--u));background:linear-gradient(to top,rgba(31,34,29,.92) 0%,rgba(31,34,29,.6) 45%,rgba(31,34,29,0) 75%)}
  .ci-txt{display:none}
}

/* Survol des lettres aussi sur « Ma démarche » et « Mon travail » (web) : les titres passent au-dessus des couches de contenu */
@media (min-width:1000px){
  .process .ttl,.work .ttl{z-index:5}
}

/* Icônes des logiciels */
.tool-ico-l{display:flex;flex-wrap:wrap;gap:12px;list-style:none;margin:calc(28 * var(--u)) 0 0;padding:0}
.tool-ico{display:flex;align-items:center;justify-content:center;width:max(48px,calc(64 * var(--u)));height:max(48px,calc(64 * var(--u)));border:2px solid var(--cream);border-radius:12px;color:var(--cream);font:700 max(1.1rem,calc(26 * var(--u)))/1 var(--f-title)}
.pres .tool-ico-l{justify-content:center}
.tool-ico img{width:62%;height:62%;object-fit:contain;filter:invert(1)}

/* Texte courant : lecture plus propre (web + mobile) */
.bio,.pj-txt,.step-d{line-height:1.5}
.bio p,.pj-txt p{margin:0 0 .9em}
.bio p:last-of-type,.pj-txt p:last-of-type{margin-bottom:0}
@media (max-width:999px){
  .bio,.pj-txt,.pj-no4 .pj-txt,.pj-ban .pj-txt,.step-d{font-size:1.0625rem;line-height:1.6;text-align:left;overflow-wrap:break-word;hyphens:auto}
  .pres .bio,.pres .bio p{text-align:center}
}

/* Contact : plus d'espace pour respirer */
@media (min-width:1000px){
  .cpage{height:calc(1130 * var(--u));min-height:calc(1130 * var(--u))}
  .cf-nom{top:calc(410 * var(--u))}
  .cf-mail{top:calc(570 * var(--u))}
  .cf-sujet{top:calc(730 * var(--u))}
  .cf-msg{left:calc(740 * var(--u));top:calc(410 * var(--u));width:calc(640 * var(--u))}
  .cf textarea{height:calc(320 * var(--u))}
  .cf-priv{left:calc(740 * var(--u));top:calc(790 * var(--u))}
  .cf-send{left:calc(1183 * var(--u));top:calc(870 * var(--u))}
  .cf-note.form-msg{left:calc(740 * var(--u));top:calc(880 * var(--u))}
}
@media (max-width:999px){
  .cpage{padding-top:220px;padding-bottom:130px}
  .cform{gap:28px;margin-top:48px}
  .cf-priv{margin-top:4px}
}

/* Texte des projets : un peu plus petit, jamais coupé (toutes les pages projet) */
@media (min-width:1000px){
  .pj .pj-txt,.pj.pj-uni .pj-txt,.pj-no4 .pj-txt{font-size:max(15px,calc(26 * var(--u)));line-height:1.55}
}
@media (min-width:1000px) and (max-width:1499px){
  .pj.pj-n4{height:calc(3110 * var(--u) + 520px)}
  .pj.pj-n3{height:calc(2960 * var(--u) + 520px)}
  .pj.pj-n2{height:calc(2330 * var(--u) + 520px)}
  .pj.pj-no4{height:calc(2440 * var(--u) + 520px)}
}
@media (max-width:999px){
  .pj-txt,.pj-no4 .pj-txt,.pj-ban .pj-txt{font-size:1rem;line-height:1.6}
}

/* À propos : texte des paragraphes un peu plus petit */
.bio{font-size:max(15px,calc(21 * var(--u)))}
.pres-about .bio p:first-of-type{font-size:max(17px,calc(26 * var(--u)))}
@media (max-width:999px){
  .bio{font-size:1rem;line-height:1.6}
  .pres-about .bio p:first-of-type{font-size:1.125rem;line-height:1.5}
}

/* Accueil : section « Sur moi » plus aérée */
.pres:not(.pres-about) .bio p{margin:0 0 1.1em}
.pres:not(.pres-about) .bio p:last-of-type{margin-bottom:0}
.pres:not(.pres-about) .tool-ico-l{margin-top:calc(40 * var(--u))}
.pres:not(.pres-about) .bio-cta{margin-top:calc(48 * var(--u))}
@media (min-width:1000px){
  .pres:not(.pres-about){height:calc(1180 * var(--u))}
  .pres:not(.pres-about) .ttl{top:calc(150 * var(--u))}
  .pres:not(.pres-about) .bio{top:calc(340 * var(--u))}
  .pres:not(.pres-about) .polaroid{top:calc(70 * var(--u))}
}
@media (max-width:999px){
  .pres:not(.pres-about){padding:96px var(--gut) 140px}
  .pres:not(.pres-about) .bio{margin-top:36px}
  .pres:not(.pres-about) .polaroid{margin-top:72px}
}

/* Ma démarche : tout le texte centré */
.process .step,.process .step-t,.process .step-d{text-align:center}
@media (max-width:999px){
  .step-d{text-align:center;margin-inline:auto}
}

/* Ouverture sur mobile : la vidéo occupe toute la largeur, logo entier visible */
@media (max-width:999px){
  .intro video{width:100vw;max-width:none;height:auto;object-fit:contain;transform:scale(1.02)}
}

/* Changement de page en fondu (navigateurs compatibles) */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.35s;animation-timing-function:cubic-bezier(.65,0,.35,1)}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}

/* Web : icônes et boutons alignés à gauche, comme le texte */
@media (min-width:1000px){
  .pres .tool-ico-l,.pres .bio-cta{justify-content:flex-start}
}

/* Grands écrans : de la place sous le texte pour que le bouton « Projet suivant » ne soit jamais coupé */
@media (min-width:1500px){
  .pj.pj-n4{height:calc(3110 * var(--u) + 360px)}
  .pj.pj-n3{height:calc(2960 * var(--u) + 360px)}
  .pj.pj-n2{height:calc(2330 * var(--u) + 360px)}
  .pj.pj-no4{height:calc(2440 * var(--u) + 360px)}
}
