/* @fonts:debut - genere par tools/fetch-fonts.py, ne pas editer a la main */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/gyByhwUxId8gMEwSGFWfOw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/gyByhwUxId8gMEwcGFU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* @fonts:fin */

/* ============================================================
   Portfolio Ilies Allali - rebuild clean du design "Framewell"
   Design system = valeurs EXACTES lues via le MCP Framer
   (framewell-design-system.json). Police Geist, palette grayscale.
   Feuille partagée par index.html et blog.html.
   ============================================================ */

/* ---- Tokens couleur (exacts) ---- */
:root{
  interpolate-size:allow-keywords; /* height:0 -> auto animable, ignore ailleurs */
  --black:rgb(9,9,9);
  --dark-gray:rgb(74,74,74);
  --gray:rgb(102,102,102);
  --medium-gray:rgb(112,112,112);   /* 4,95:1 sur blanc, #777 tombait a 4,48 */
  --light-gray:rgb(153,153,153);
  --xlight-gray:rgb(224,224,224);
  --white:rgb(255,255,255);
  --off-white:rgb(247,247,247);
  --overlay:rgba(9,9,9,0.6);
  --live:rgb(47,178,113);
  --font:'Geist','Inter',system-ui,-apple-system,sans-serif;
  --maxw:1200px;
  /* easings (Emil-style, plus fort que les courbes CSS natives) */
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-io:cubic-bezier(.77,0,.175,1);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{font-family:var(--font);background:var(--white);color:var(--black);font-weight:500;-webkit-font-smoothing:antialiased;line-height:1.3;}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}
[id]{scroll-margin-top:88px;}

/* ---- Échelle typographique (exacte, responsive) ---- */
.h1{font-weight:600;font-size:51px;letter-spacing:-0.0431em;line-height:103%;}
.h2{font-weight:600;font-size:40px;letter-spacing:-0.055em;line-height:103%;}
.h3{font-weight:500;font-size:20px;letter-spacing:-0.02em;line-height:130%;}
.h4{font-weight:500;font-size:18px;letter-spacing:-0.0222em;line-height:130%;}
.h5{font-weight:500;font-size:15px;letter-spacing:-0.02em;line-height:130%;}
.h6{font-weight:500;font-size:13px;letter-spacing:-0.02em;line-height:130%;}
.body{font-weight:500;font-size:16px;line-height:150%;}
.body-lg{font-weight:500;font-size:32px;letter-spacing:-0.02em;line-height:120%;}
.body-md{font-weight:500;font-size:20px;line-height:150%;}

@media (max-width:1200px){
  .h1{font-size:42px;} .h2{font-size:34px;} .h3{font-size:18px;} .h4{font-size:16px;}
  .h5{font-size:14px;} .h6{font-size:13px;} .body{font-size:15px;} .body-lg{font-size:26px;} .body-md{font-size:18px;}
}
@media (max-width:810px){
  .h1{font-size:34px;} .h2{font-size:28px;} .h3{font-size:16px;} .h4{font-size:14px;}
  .h5{font-size:13px;} .h6{font-size:12px;} .body{font-size:14px;} .body-lg{font-size:22px;} .body-md{font-size:16px;}
}

/* ---- Utilitaires ---- */
.muted{color:var(--gray);}
.container{max-width:var(--maxw);margin:0 auto;padding:0 30px;}
.overline{font-size:13px;font-weight:500;letter-spacing:0.02em;color:var(--medium-gray);text-transform:capitalize;}
.accent{color:var(--black);text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:9px;text-decoration-color:var(--xlight-gray);}   /* #999 = 2,85:1, illisible pour le mot mis en avant du H1 */

/* ---- Boutons ---- */
.btn{display:inline-flex;align-items:center;gap:8px;font-weight:500;font-size:13px;line-height:1;padding:12px 20px;border-radius:30px;transition:opacity .2s,background .2s;}
.btn .btn-arrow{width:14px;height:14px;}
.btn-dark{background:var(--black);color:var(--white);}
.btn-dark:hover{opacity:.85;}
.btn-ghost{background:transparent;color:var(--black);border:1px solid var(--xlight-gray);}
.btn-ghost:hover{background:var(--white);border-color:var(--light-gray);}
/* feedback à la pression : le bouton "écoute" (Emil) */
.btn-ghost:active{transform:scale(.97);}
/* le hover leve le bouton de 1px : le press doit repartir de la, sinon il saute */
.btn-dark:active{transform:translateY(-1px) scale(.97);}

/* Focus clavier visible (accessibilité + finition) */
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,.btn:focus-visible{outline:2px solid var(--black);outline-offset:3px;border-radius:4px;}
.btn:focus-visible{outline-offset:3px;}


/* ---- Lien d'evitement (50 elements focusables avant le contenu sinon) ---- */
.skip-link{position:absolute;left:12px;top:12px;transform:translateY(-80px);z-index:100;background:var(--black);color:var(--white);
  font-size:14px;font-weight:500;padding:10px 16px;border-radius:30px;transition:transform 160ms var(--ease-out);}
.skip-link:focus-visible{transform:none;outline-offset:3px;}
#contenu:focus{outline:none;}

/* ---- Nav (pixel perfect Framewell : logo© + pill horloge, liens Heading 5) ---- */
.nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.82);border-bottom:1px solid transparent;transition:background .35s ease,border-color .35s ease,box-shadow .35s ease;}
@supports (backdrop-filter:blur(1px)){.nav{background:rgba(255,255,255,.65);backdrop-filter:saturate(1.4) blur(0px);transition:background .35s ease,border-color .35s ease,box-shadow .35s ease;}}
.nav.scrolled{background:rgba(255,255,255,.82);border-bottom-color:var(--xlight-gray);box-shadow:0 6px 24px -18px rgba(9,9,9,.35);}
@supports (backdrop-filter:blur(1px)){.nav.scrolled{background:rgba(255,255,255,.72);backdrop-filter:saturate(1.4) blur(12px);}}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:20px 30px;}
.nav-left{display:flex;align-items:center;gap:16px;}
.nav-logo{display:inline-flex;align-items:center;gap:9px;font-weight:500;font-size:15px;letter-spacing:-0.02em;color:var(--black);}
.nav-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;object-position:50% 16%;flex:none;}
.nav-time{background:var(--off-white);padding:5px 18px;font-size:14px;font-weight:500;color:var(--dark-gray);font-variant-numeric:tabular-nums;line-height:1.3;}
.nav-links{display:flex;align-items:center;gap:20px;}
.nav-link{font-size:15px;font-weight:500;color:var(--black);transition:opacity .2s;}
.nav-link:hover{opacity:.55;}
.nav-menu{display:none;font-size:15px;font-weight:500;color:var(--black);cursor:pointer;background:none;border:0;font-family:inherit;letter-spacing:-0.01em;padding:4px 0;}
@media (max-width:810px){ .nav-links{display:none;} .nav-menu{display:inline-block;} .nav-time{display:none;} }

/* ---- Menu mobile (drawer plein écran) ---- */
.mobile-menu{position:fixed;inset:0;z-index:60;background:var(--white);display:flex;flex-direction:column;padding:20px 30px 40px;opacity:0;visibility:hidden;transition:opacity .28s ease,visibility .28s ease;}
.mobile-menu.open{opacity:1;visibility:visible;}
.mm-head{display:flex;align-items:center;justify-content:space-between;}
.mm-brand{display:inline-flex;align-items:center;gap:9px;font-weight:500;font-size:15px;letter-spacing:-0.02em;color:var(--black);}
.mm-brand img{width:28px;height:28px;border-radius:50%;object-fit:cover;object-position:50% 16%;}
.mm-close{background:none;border:0;font-family:inherit;font-size:15px;font-weight:500;color:var(--black);cursor:pointer;padding:4px 0;}
.mm-links{display:flex;flex-direction:column;margin-top:44px;}
.mm-link{font-size:32px;font-weight:600;letter-spacing:-0.03em;color:var(--black);padding:18px 0;border-bottom:1px solid var(--xlight-gray);opacity:0;transform:translateY(14px);transition:opacity .32s var(--ease-out),transform .32s var(--ease-out);}
.mobile-menu.open .mm-link{opacity:1;transform:none;}
.mobile-menu.open .mm-link:nth-child(1){transition-delay:.04s;}
.mobile-menu.open .mm-link:nth-child(2){transition-delay:.07s;}
.mobile-menu.open .mm-link:nth-child(3){transition-delay:.10s;}
.mobile-menu.open .mm-link:nth-child(4){transition-delay:.13s;}
.mobile-menu.open .mm-link:nth-child(5){transition-delay:.16s;}
/* la sortie est plus rapide que l entree : l utilisateur decide en ouvrant,
   le systeme repond en fermant */
.mobile-menu:not(.open){transition-duration:.18s;}
.mobile-menu:not(.open) .mm-link{transition-duration:.16s;transition-delay:0s;}
.mobile-menu:not(.open) .mm-foot{transition-duration:.14s;transition-delay:0s;}
.mm-link:active{opacity:.5;}
.mm-foot{margin-top:auto;display:flex;gap:26px;opacity:0;transition:opacity .3s ease .2s;}
.mobile-menu.open .mm-foot{opacity:1;}
.mm-foot a{font-size:13px;font-weight:500;letter-spacing:0.04em;text-transform:uppercase;color:var(--medium-gray);}
.mm-foot a:hover{color:var(--black);}
body.menu-open{overflow:hidden;}
@media (min-width:811px){ .mobile-menu{display:none!important;} }

/* ---- Hero ---- */
.hero{padding:100px 0 90px;}
.hero-container{display:flex;flex-direction:column;gap:40px;align-items:flex-start;}
.hero-text{display:flex;flex-direction:column;gap:20px;align-items:flex-start;}
.hero-h1{max-width:22ch;}
.hero-p{max-width:420px;color:var(--dark-gray);}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;}
@media (max-width:810px){ .hero{padding:64px 0 64px;} }

/* Pastille disponibilité : le seul point de couleur, assumé */
.hero-status{display:inline-flex;align-items:center;gap:9px;padding:7px 14px 7px 12px;background:var(--off-white);border:1px solid var(--xlight-gray);border-radius:30px;font-size:13px;font-weight:500;letter-spacing:-0.01em;color:var(--dark-gray);}
.hero-dot{position:relative;width:8px;height:8px;flex:none;border-radius:50%;background:var(--live);}
.hero-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--live);animation:heroPulse 2.4s ease-out infinite;}
@keyframes heroPulse{0%{transform:scale(1);opacity:.55;}70%,100%{transform:scale(2.6);opacity:0;}}

/* Entrée au chargement (générique, toutes pages) :
   titres révélés ligne à ligne sous un masque, le reste en fade-rise décalé.
   Stagger piloté par --ld (lignes) / --ed (fade) posés en inline. */
.line{display:block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em;}
.line-in{display:block;text-wrap:balance;}
html.js .line-in{transform:translateY(120%);}
html.ready .line-in{transform:none;transition:transform .55s var(--ease-out);transition-delay:var(--ld,0s);}
html.ready .line:nth-child(2) .line-in{transition-delay:.08s;}
html.js .enter-fade{opacity:0;transform:translateY(16px);}
html.ready .enter-fade{opacity:1;transform:none;transition:opacity .45s ease,transform .5s var(--ease-out);transition-delay:var(--ed,0s);}

/* ---- Sections ---- */
.section{padding:96px 0;border-top:1px solid var(--xlight-gray);}
.sec-head{display:flex;flex-direction:column;gap:14px;margin-bottom:40px;}
.sec-overline{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--medium-gray);font-weight:500;margin:0;}
.sec-overline::before{content:"";width:8px;height:8px;background:var(--dark-gray);}
.sec-head-row{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;}

/* ---- Projets (Project Card fidèle Framewell) ---- */
.proj-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:20px;row-gap:50px;}
/* la derniere carte gardait un cadre 21/9 qui ecrasait un visuel en 56/45.
   Les sept cartes ont desormais le meme format, aucune n'est rognee. */
.proj-card{display:flex;flex-direction:column;gap:12px;}
.proj-hook{font-size:16px;line-height:148%;letter-spacing:-0.011em;color:var(--dark-gray);max-width:90%;transition:color .2s;}
.proj-card:hover .proj-hook{color:var(--black);}
.proj-thumb{position:relative;aspect-ratio:56/45;overflow:hidden;background:var(--xlight-gray);}
.proj-thumb img{width:100%;height:100%;object-fit:cover;}
/* pastille du client, posee dans la vignette. Verre depoli pour tenir aussi bien
   sur une capture claire que sur un rendu produit sombre. */
.proj-client{position:absolute;top:14px;left:14px;z-index:3;pointer-events:none;
  padding:7px 13px;border-radius:30px;font-size:12px;font-weight:500;letter-spacing:-0.005em;
  color:var(--black);background:rgba(255,255,255,.78);
  backdrop-filter:blur(10px) saturate(140%);-webkit-backdrop-filter:blur(10px) saturate(140%);
  box-shadow:0 1px 3px rgba(9,9,9,.10);transition:background .25s ease;}
.proj-card:hover .proj-client{background:rgba(255,255,255,.94);}
@media (max-width:810px){ .proj-client{top:10px;left:10px;padding:6px 11px;font-size:11px;} }
.proj-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--light-gray);font-size:15px;background:linear-gradient(135deg,#efefef,#e2e2e2);}
.proj-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(0deg,rgba(9,9,9,.30),rgba(9,9,9,.08));opacity:0;transition:opacity .35s ease;}
@media (hover:hover) and (pointer:fine){.proj-thumb:hover .proj-overlay{opacity:1;}}
.proj-pill{background:var(--white);color:var(--black);border-radius:30px;padding:11px 20px;font-size:13px;font-weight:500;transform:scale(.92);transition:transform .22s var(--ease-out);}
@media (hover:hover) and (pointer:fine){.proj-thumb:hover .proj-pill{transform:none;}}
/* aligne sur la premiere ligne du titre : en 'center', un titre sur deux lignes
   faisait flotter le tiret et la categorie au milieu */
/* Les sept titres n'ont pas du tout la meme longueur. En ligne, la categorie
   se faisait pousser hors du cadre une fois sur deux. Elle a maintenant sa ligne,
   identique sur les sept cartes. */
.proj-meta{display:flex;flex-direction:column;align-items:flex-start;gap:5px;}
.proj-name{font-weight:600;font-size:19px;line-height:132%;letter-spacing:-0.024em;color:var(--black);}
.proj-cat{font-weight:500;font-size:14px;letter-spacing:-0.005em;color:var(--medium-gray);}
@media (max-width:810px){
  .proj-grid{grid-template-columns:1fr;}
  .proj-name{font-size:17px;} .proj-cat{font-size:13px;} .proj-hook{font-size:15px;}
  /* pas la place pour trois colonnes : titre puis categorie, sans tiret */
  .proj-meta{flex-direction:column;align-items:flex-start;gap:2px;}
}

/* ---- À propos (image portrait 410x500 gauche + paragraphe BodyLarge + bouton, top-aligné) ---- */
.about{display:grid;grid-template-columns:1fr 1fr;column-gap:20px;row-gap:32px;align-items:start;}
.about-photo{justify-self:start;width:410px;max-width:100%;height:500px;overflow:hidden;background:var(--xlight-gray);}
.about-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 18%;}
.about-body{display:flex;flex-direction:column;gap:40px;align-items:flex-start;justify-content:flex-start;}
@media (max-width:810px){ .about{grid-template-columns:1fr;} .about-photo{width:100%;height:440px;} }

/* ---- Ce que je fais (Service Card pixel-perfect : zone haute 220 off-white + ticker, puis nom H3 + desc) ---- */
.svc-grid{display:grid;grid-template-columns:1fr 1fr 1fr;column-gap:20px;row-gap:10px;}
.svc-card{display:flex;flex-direction:column;gap:16px;overflow:clip;min-width:0;}
.svc-top{position:relative;height:220px;background:var(--off-white);display:flex;align-items:center;overflow:hidden;min-width:0;}
.svc-num{position:absolute;top:20px;left:22px;font-size:14px;font-weight:500;color:var(--medium-gray);}
.svc-ticker{width:100%;display:flex;align-items:center;overflow:hidden;-webkit-mask:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);mask:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);}
.svc-track{display:flex;align-items:center;flex:none;white-space:nowrap;animation:svcTicker 26s linear infinite;}
.svc-kw{font-size:20px;letter-spacing:-0.02em;color:var(--medium-gray);}
.svc-kw::after{content:"·";margin:0 18px;color:var(--light-gray);}
@keyframes svcTicker{from{transform:translateX(-50%);}to{transform:translateX(0);}}
.svc-body{display:flex;flex-direction:column;gap:9px;}
@media (max-width:810px){ .svc-grid{grid-template-columns:1fr;} .svc-top{height:132px;} .svc-kw{font-size:17px;} }

/* ---- Produits (bento) ---- */
.bento{display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:238px 238px;gap:10px;}
.bento-card{position:relative;background:var(--off-white);padding:20px;display:flex;flex-direction:column;justify-content:space-between;overflow:clip;min-width:0;text-decoration:none;color:inherit;transition:background-color .25s ease;}
a.bento-card:hover{background:#efefef;}
.bento-card.tall{grid-row:span 2;}
.bento-icon{width:24px;height:24px;color:var(--black);flex:none;}
.bento-icon svg{width:24px;height:24px;display:block;}
.bento-arrow{position:absolute;top:20px;right:20px;width:18px;height:18px;color:var(--light-gray);transition:color .25s ease,transform .25s ease;}
.bento-arrow svg{width:18px;height:18px;display:block;}
@media (hover:hover) and (pointer:fine){a.bento-card:hover .bento-arrow{color:var(--black);transform:translate(3px,-3px);}}
.bento-texts{padding-top:50px;display:flex;flex-direction:column;gap:12px;}
.bento-title-row{display:flex;align-items:center;gap:8px;}
@media (max-width:810px){ .bento{grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:minmax(200px,auto);} .bento-card.tall{grid-row:auto;} }

/* ---- Process (gros numéro H2 + titre BodyMedium + desc + ligne) ---- */
.process{display:grid;grid-template-columns:1fr 1fr;column-gap:20px;row-gap:40px;align-items:start;}
.process .sec-head{position:sticky;top:104px;align-self:start;}
.steps{display:flex;flex-direction:column;gap:30px;}
.step{display:flex;flex-direction:column;gap:24px;}
.step-row{display:flex;gap:64px;align-items:flex-start;}
.step-num{font-weight:600;font-size:40px;letter-spacing:-0.055em;line-height:103%;color:var(--medium-gray);min-width:52px;}
.step-body{display:flex;flex-direction:column;gap:12px;}
.step-line{height:1px;background:var(--xlight-gray);width:100%;}
@media (max-width:810px){ .process{grid-template-columns:1fr;} .process .sec-head{position:static;} .step-row{gap:32px;} .step-num{font-size:32px;} }

/* ---- Témoignages (marquee off-white, pixel perfect Framewell) ---- */
.testi-head{align-items:center;text-align:center;margin-bottom:40px;}
.testi-head .sec-overline{justify-content:center;}
.testi-marquee{position:relative;overflow:hidden;width:100%;-webkit-mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);}
.testi-marquee{cursor:grab;}
.testi-marquee.dragging{cursor:grabbing;}
.testi-marquee.dragging .testi{user-select:none;}
.testi-track{display:flex;gap:15px;width:max-content;}
.testi-track img{pointer-events:none;-webkit-user-drag:none;}
.testi{background:var(--off-white);padding:20px;width:312px;min-height:300px;flex:none;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;}
.testi-quote{font-size:16px;font-weight:500;line-height:141%;letter-spacing:-0.0125em;color:var(--black);}
.testi-author{display:flex;align-items:center;gap:14px;}
/* initiales sur fond xlight-gray : medium-gray donnait 3,75 de contraste, sous le seuil AA de 4,5. dark-gray monte a 6,71. */
.testi-avatar{width:45px;height:45px;overflow:hidden;background:var(--xlight-gray);flex:none;display:flex;align-items:center;justify-content:center;color:var(--dark-gray);font-size:14px;font-weight:500;}
.testi-avatar img{width:100%;height:100%;object-fit:cover;}
.testi-name{font-size:15px;font-weight:500;line-height:120%;color:var(--black);}
.testi-role{font-size:13px;font-weight:500;line-height:110%;color:var(--medium-gray);margin-top:6px;}

/* ---- Footer (pixel perfect Framewell) ---- */
.site-footer{background:var(--off-white);padding:40px 30px 30px;}
.footer-inner{max-width:1140px;margin:0 auto;display:flex;flex-direction:column;gap:130px;}
.footer-top{display:flex;flex-direction:column;align-items:flex-start;gap:20px;}
.footer-cta{display:inline-flex;align-items:center;gap:15px;text-decoration:none;color:var(--black);}
.footer-cta-text{position:relative;overflow:hidden;display:inline-block;height:1.05em;line-height:103%;}
.footer-cta-roll{display:flex;flex-direction:column;transition:transform .26s var(--ease-out);}
@media (hover:hover) and (pointer:fine){.footer-cta:hover .footer-cta-roll{transform:translateY(-50%);}}
.footer-cta-roll span{display:block;line-height:103%;}
.footer-cta-icon{width:34px;height:29px;color:var(--black);flex:none;transition:transform .26s var(--ease-out);}
.footer-cta-icon svg{width:34px;height:29px;display:block;}
@media (hover:hover) and (pointer:fine){.footer-cta:hover .footer-cta-icon{transform:translateX(6px);}}
.footer-tagline{max-width:320px;}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;}
.footer-copy{font-size:13px;font-weight:500;letter-spacing:-0.02em;color:var(--medium-gray);}
.footer-socials{display:flex;align-items:center;gap:26px;}
.footer-socials a{font-size:13px;font-weight:500;letter-spacing:0.04em;text-transform:uppercase;color:var(--medium-gray);text-decoration:none;transition:color .2s;}
.footer-socials a:hover{color:var(--black);}
@media (max-width:810px){ .footer-inner{gap:70px;} .footer-bottom{flex-direction:column;align-items:flex-start;gap:16px;} }

/* ---- Blog (Blog Card pixel perfect Framewell + page /blog) ---- */
.blog-hero{padding:150px 0 130px;}
.blog-hero .h1{margin-bottom:50px;max-width:16ch;}
.blog-grid{display:grid;grid-template-columns:1fr 1fr 1fr;column-gap:20px;row-gap:50px;}
.blog-card{display:flex;flex-direction:column;gap:20px;text-decoration:none;color:inherit;}
.blog-thumb{position:relative;height:290px;overflow:hidden;background:var(--off-white);}
.blog-thumb img{width:100%;height:100%;object-fit:cover;}
.blog-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--light-gray);background:linear-gradient(135deg,#efefef,#e4e4e4);}
.blog-ph svg{width:42px;height:42px;}
.blog-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(9,9,9,.35);opacity:0;transition:opacity .3s;}
@media (hover:hover) and (pointer:fine){.blog-card:hover .blog-overlay{opacity:1;}}
.blog-pill{background:var(--white);color:var(--black);border-radius:30px;padding:12px 20px;font-size:13px;font-weight:500;}
.blog-info{display:flex;flex-direction:column;gap:6px;max-width:90%;}
.blog-meta{font-size:13px;font-weight:500;letter-spacing:-0.02em;color:var(--medium-gray);}
.blog-title{font-weight:500;font-size:18px;letter-spacing:-0.0222em;line-height:130%;color:var(--black);}
@media (max-width:1200px){ .blog-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:810px){ .blog-grid{grid-template-columns:1fr;} .blog-hero{padding:110px 0 0;} }

/* ============ Motion & polish (calqué Framewell, affiné) ============ */
/* Révélations au scroll : opacity + translateY spring, comme le template (offset 100 affiné à 46) */
html.js .reveal{opacity:0;transform:translateY(20px);}
html.js .reveal.in{opacity:1;transform:none;transition:opacity .5s var(--ease-out),transform .5s var(--ease-out);transition-delay:var(--rd,0s);}

/* Transitions de page : seule la sortie est animee. Masquer le body a l'entree
   repoussait le premier rendu derriere le JS. */
html.js body.leaving{opacity:0;transition:opacity .13s ease;}

/* Retour a la pression : un element cliquable doit "ecouter" (Emil) */
.bento-card{transition:background-color .25s ease,transform 160ms var(--ease-out);}
.footer-cta,.nav-menu,.proj-thumb{transition:transform 160ms var(--ease-out);}
a.bento-card:active,.footer-cta:active{transform:scale(.985);}
.nav-menu:active{transform:scale(.97);}
.proj-thumb:active{transform:scale(.99);}
.nav-link:active,.footer-socials a:active,.ct-social-links a:active,.case-pager a:active{opacity:.4;}

/* Transition de page native : le fondu est fait par le navigateur, sans delai JS.
   A l arrivee, .vt-in coupe l animation d entree pour ne pas la jouer deux fois. */
@view-transition{navigation:auto;}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none;}}
html.vt-in .line-in,html.vt-in .enter-fade{transform:none!important;opacity:1!important;transition:none!important;}

/* Hover polish */
.proj-thumb img,.blog-thumb img{transition:transform .38s var(--ease-out);}
@media (hover:hover) and (pointer:fine){.proj-card:hover .proj-thumb img,.blog-card:not(.soon):hover .blog-thumb img{transform:scale(1.04);}}
.proj-overlay,.blog-overlay{transition:opacity .35s ease;}
.blog-ph svg{transition:transform .5s cubic-bezier(.16,1,.3,1),color .3s ease;}
@media (hover:hover) and (pointer:fine){.blog-card:not(.soon):hover .blog-ph svg{transform:translateY(-5px) scale(1.06);color:var(--medium-gray);}}
.btn{transition:opacity .2s ease,transform 140ms var(--ease-out),background .2s ease;}
@media (hover:hover) and (pointer:fine){.btn-dark:hover{transform:translateY(-1px);}}
.proj-cat{transition:color .25s ease;}
.proj-card:hover .proj-cat{color:var(--black);}
.blog-title{transition:color .25s ease;}
.blog-info{transition:transform .4s var(--ease-out);}
@media (hover:hover) and (pointer:fine){.blog-card:not(.soon):hover .blog-info{transform:translateY(-3px);}}

/* ============ Case study : entrée hero au load + reveals image en clip-path ============ */
/* Le hero d une page case est l element LCP : le reveler au clip-path le masquait
   jusqu a la fin de l animation d entree, soit 4,3 s de render delay mesures au
   Lighthouse mobile. Il se peint donc immediatement. Le volet reste sur les
   visuels en cours de page (.case-img.reveal), qui ne sont jamais l element LCP. */
html.js .case-img.reveal{opacity:1;transform:none;filter:none;clip-path:inset(0 0 100% 0);}
html.js .case-img.reveal.in{clip-path:inset(0 0 0 0);transition:clip-path .9s var(--ease-out);transition-delay:var(--rd,0s);}

/* ============ Process : le trait se dessine au reveal ============ */
html.js .step .step-line{transform:scaleX(0);transform-origin:left center;}
html.js .step.reveal.in .step-line{transform:scaleX(1);transition:transform .7s var(--ease-out) .15s;}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  html.js .reveal{opacity:1!important;transform:none!important;filter:none!important;}
  html.js body{opacity:1!important;}
  html.js .enter-fade{opacity:1!important;transform:none!important;}
  html.js .line-in{transform:none!important;}
  .hero-dot::after{animation:none!important;}
  .faq-a{height:auto!important;transition:none!important;}
  .blog-thumb::after{display:none!important;}
  html.js .case-hero-img,html.js .case-img.reveal{clip-path:none!important;}
  html.js .step .step-line{transform:none!important;}
  /* le JS ne clone ni ne defile ici : sans ca le premier temoignage restait
     a moitie efface par le masque et les suivants inatteignables */
  .testi-marquee{-webkit-mask:none;mask:none;overflow-x:auto;cursor:default;}
  .testi-track{width:auto;}
}

/* ============ Scrollbar custom (fine, carrée, grayscale) ============ */
html{scrollbar-width:thin;scrollbar-color:var(--light-gray) transparent;}
::-webkit-scrollbar{width:11px;height:11px;}
::-webkit-scrollbar-track{background:var(--white);}
::-webkit-scrollbar-thumb{background:var(--xlight-gray);border:3px solid var(--white);}
::-webkit-scrollbar-thumb:hover{background:var(--light-gray);}

/* ============ Boutons : roll-up au survol (comme le template) ============ */
.btn{overflow:hidden;}
.btn-roll{position:relative;display:inline-block;overflow:hidden;height:1.25em;line-height:1.25;white-space:nowrap;vertical-align:middle;}
.btn-roll-in{display:flex;flex-direction:column;transition:transform .26s var(--ease-out);}
.btn-roll-in span{display:block;height:1.25em;line-height:1.25;}
@media (hover:hover) and (pointer:fine){.btn:hover .btn-roll-in{transform:translateY(-50%);}}

/* ============ Page case study (pixel perfect Framewell project page) ============ */
.case-main{max-width:var(--maxw);margin:0 auto;padding:120px 30px 120px;display:flex;flex-direction:column;gap:140px;}
.case-hero{display:flex;flex-direction:column;gap:50px;}
.case-lead{display:flex;flex-direction:column;align-items:flex-start;gap:40px;}
.case-head{display:flex;flex-direction:column;gap:18px;}
/* Le titre courait sur toute la largeur pendant que l accroche et l intro etaient
   bridees a 560 et 460 px : desequilibre. Le titre est cadre, les deux autres respirent. */
/* Le titre reste le plus large des trois : titre > accroche > intro. 15ch le
   rendait plus etroit que l accroche, ce qui inversait la hierarchie. */
.case-head .h1{max-width:900px;}
.case-hook{font-weight:500;font-size:26px;line-height:126%;letter-spacing:-0.02em;color:var(--black);max-width:720px;}
.case-intro{max-width:640px;color:var(--dark-gray);}
@media (max-width:810px){ .case-hook{font-size:20px;} }
.case-live[hidden]{display:none;}
.case-hero-img{width:100%;overflow:hidden;background:var(--off-white);}
.case-hero-img img{width:100%;height:auto;display:block;}
.case-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--light-gray);font-size:15px;background:linear-gradient(135deg,#efefef,#e4e4e4);}
.case-details{display:grid;grid-template-columns:1fr 2fr;gap:20px 48px;align-items:start;}
.case-meta{display:flex;flex-direction:column;gap:26px;}
.case-detail{display:flex;flex-direction:column;gap:6px;padding-left:27px;}
.case-meta .k{display:flex;align-items:center;gap:12px;margin-left:-27px;font-weight:500;font-size:18px;letter-spacing:-0.0222em;color:var(--black);}
.case-meta .k svg{width:15px;height:15px;flex:none;fill:none;stroke:var(--medium-gray);stroke-width:1.25;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round;}
.case-meta .v{color:var(--gray);font-size:16px;line-height:150%;margin:0;}
.case-meta .k,.case-meta .v{margin-inline-start:0;}
.case-body{display:flex;flex-direction:column;gap:90px;}
.case-unit{display:flex;flex-direction:column;gap:40px;}
.case-block{display:grid;grid-template-columns:1fr 2fr;gap:20px 48px;align-items:start;}
.case-block-t{color:var(--dark-gray);max-width:620px;}
@media (max-width:810px){ .case-body{gap:64px;} .case-unit{gap:28px;} .case-block{grid-template-columns:1fr;gap:12px;} }
.case-images{display:flex;flex-direction:column;gap:20px;}
#case-images{display:flex;flex-direction:column;gap:20px;}
.case-img{width:100%;overflow:hidden;background:var(--off-white);}
.case-img img{width:100%;height:auto;object-fit:unset;display:block;}
/* Visuels panoramiques ou verticaux : ratio naturel, pas de crop */
.case-img.free{aspect-ratio:auto;}
.case-img.free img{height:auto;object-fit:unset;display:block;}
/* Dispositions de visuels : paire pour comparer, triptyque pour une serie,
   resserre pour aligner le visuel sur la colonne de texte et casser le rythme */
.case-figs{display:grid;gap:20px;align-items:start;}
/* sans min-width:0 une colonne fr prend la largeur intrinseque de l'image et la grille deborde */
.case-figs > .case-img{min-width:0;}
/* galerie de case : les visuels s'affichent entiers, dans le cadre du contenu.
   Aucune hauteur imposee, aucun object-fit:cover, donc aucun recadrage.
   Clic = lightbox pour lire une planche en grand. */
.case-figs.gallery{grid-template-columns:repeat(2,1fr);gap:20px;}
.case-figs.gallery.g1{grid-template-columns:1fr;}
.case-figs.gallery.g3{grid-template-columns:repeat(3,1fr);}
.case-figs.gallery > .case-img{background:var(--off-white);}
.case-figs.gallery > .case-img{display:flex;align-items:center;justify-content:center;}
/* max-width contraint la quasi-totalite des visuels (rien n'est rogne).
   max-height ne sert qu'aux formats verticaux, pour qu'une capture mobile
   n'occupe pas trois ecrans de haut. */
.case-figs.gallery > .case-img img{width:auto;height:auto;max-width:100%;max-height:74vh;object-fit:unset;display:block;}
/* nombre impair : le premier visuel prend toute la largeur et sert d'ouverture */
.case-figs.gallery.lead > .case-img:first-child{grid-column:1 / -1;}
/* un visuel vertical n'a pas besoin d'un aplat gris sur toute la largeur */
.case-figs.gallery > .case-img.tall{background:none;}
@media (max-width:810px){ .case-figs.gallery,.case-figs.gallery.g3{grid-template-columns:1fr;} }

.case-figs.pair{grid-template-columns:1fr 1fr;}
.case-figs.trio{grid-template-columns:repeat(3,1fr);}
.case-figs.inset{grid-template-columns:1fr 2fr;gap:20px 48px;}
.case-figs.inset > .case-img{grid-column:2;}
/* Video : meme grammaire que les visuels, ratio naturel, jamais de crop */
.case-vid{width:100%;line-height:0;}
.case-vid video{width:100%;height:auto;display:block;}
.case-vid.inset{display:grid;grid-template-columns:1fr 2fr;gap:48px;background:none;}
.case-vid.inset video{grid-column:2;}
/* Video centree, jamais collee a un bord */
.case-vid video{margin:0 auto;}
.case-vid.mid video{max-width:1000px;}
.case-vid.small video{max-width:560px;}
/* Demo embarquee : le prototype HTML tourne dans la page, pas une capture */
.case-demo{width:100%;background:var(--off-white);border:1px solid var(--xlight-gray);}
.case-demo iframe{display:block;width:100%;height:560px;border:0;transition:height .25s;}
.case-demo.mid{max-width:1000px;margin:0 auto;}
.case-demo-note{font-size:13px;color:var(--gray);margin-top:10px;}
@media (max-width:810px){ .case-demo iframe{height:420px;} }
/* Slider : une serie se parcourt lateralement au lieu de s'empiler */
.case-figs.slider{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;
  gap:20px;padding-bottom:14px;scrollbar-width:thin;overscroll-behavior-x:contain;}
.case-figs.slider > .case-img{flex:0 0 72%;scroll-snap-align:start;}
.case-figs.slider > .case-img img{width:100%;height:auto;object-fit:unset;}
/* Ticker : defilement continu, meme principe que le marquee des temoignages */
.case-ticker{position:relative;overflow:hidden;width:100%;
  -webkit-mask:linear-gradient(90deg,transparent 0,#000 12%,#000 88%,transparent 100%);
  mask:linear-gradient(90deg,transparent 0,#000 12%,#000 88%,transparent 100%);}
.ticker-track{display:flex;gap:20px;width:max-content;}
.ticker-track .case-img{flex:0 0 auto;width:auto;height:min(440px,34vw);background:none;}
.ticker-track .case-img img{width:auto;height:100%;object-fit:contain;-webkit-user-drag:none;}
@media (max-width:810px){ .ticker-track .case-img{height:260px;} }
/* Bento : une piece maitresse et des satellites, comme la grille de la marque */
/* Bento sans recadrage : deux colonnes reelles, hauteurs naturelles.
   Les largeurs sont calees pour que les deux piles tombent a la meme hauteur. */
.case-figs.casebento{grid-template-columns:1.45fr 1fr;grid-template-rows:auto;gap:16px;align-items:start;}
.bento-col{display:flex;flex-direction:column;gap:16px;min-width:0;}
.bento-col .case-img{background:var(--off-white);min-width:0;}
.bento-col .case-img img{width:100%;height:auto;object-fit:unset;display:block;}
.case-ticker{position:relative;left:50%;transform:translateX(-50%);width:100vw;margin:0;}
body{overflow-x:clip;}
/* Une couverture peut etre une video : memes regles que l'image */
/* contain et pas cover : la video ne doit jamais etre rognee, meme si son ratio
   ne colle pas exactement au cadre. Les marges eventuelles sont noires, pas grises. */
.proj-thumb video{width:100%;height:100%;object-fit:contain;display:block;background:#000;}
.proj-thumb:has(video){background:#000;}
.case-hero-img video{width:100%;height:auto;display:block;}
@media (max-width:810px){
  .case-figs.casebento{grid-template-columns:1fr;}
}
@media (max-width:810px){ .case-figs.slider > .case-img{flex:0 0 88%;} }
@media (max-width:810px){ .case-vid.inset{grid-template-columns:1fr;} .case-vid.inset video{grid-column:1;} }
@media (max-width:810px){
  .case-figs.pair,.case-figs.trio,.case-figs.inset{grid-template-columns:1fr;}
  .case-figs.inset > .case-img{grid-column:1;}
}
.case-pager{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--xlight-gray);padding-top:26px;margin-top:10px;}
.case-pager a{font-size:15px;font-weight:500;color:var(--black);transition:opacity .2s;}
.case-pager a:hover{opacity:.55;}
/* light-gray sur blanc = 2,85, sous le seuil AA. medium-gray monte a 4,95. */
.case-pager .disabled{color:var(--medium-gray);pointer-events:none;}
@media (max-width:810px){ .case-main{padding:100px 30px 90px;gap:90px;} .case-details{grid-template-columns:1fr;gap:24px;} }

/* ============ Lenis (smooth scroll) ============ */
html.lenis,html.lenis body{height:auto;}
.lenis.lenis-smooth{scroll-behavior:auto!important;}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain;}
.lenis.lenis-stopped{overflow:hidden;}

/* ============ Page About (pixel perfect Framewell /about) ============ */
.ab-hero{display:flex;flex-direction:column;gap:50px;}
.ab-hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start;}
.ab-lead{display:flex;flex-direction:column;align-items:flex-start;gap:36px;}
.ab-bio{color:var(--dark-gray);max-width:540px;}
.ab-img{width:100%;height:680px;overflow:hidden;background:var(--off-white);}
.ab-img img{width:100%;height:100%;object-fit:cover;object-position:50% 22%;}
@media (max-width:810px){ .ab-img{height:420px;} }
.ab-philo{display:grid;grid-template-columns:460px 1fr;gap:56px;align-items:center;}
.ab-philo-img{width:100%;aspect-ratio:400/430;overflow:hidden;background:var(--off-white);}
.ab-philo-img img{width:100%;height:100%;object-fit:cover;}
.ab-philo-text{display:flex;flex-direction:column;gap:20px;max-width:520px;}
.ab-philo-text .body{color:var(--dark-gray);}
.stack-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:20px;margin-top:8px;}
.stack-tile{aspect-ratio:1;background:var(--off-white);display:flex;align-items:center;justify-content:center;}
.stack-tile img{width:44px;height:44px;object-fit:contain;}
.stack-tile img[alt="Figma"]{width:30px;height:44px;}
.stack-tile img[alt="Photoshop"]{transform:scale(1.4);}
/* La grille vit sur la liste, pas sur chaque ligne : sinon chaque .exp-row calculait
   ses propres colonnes a partir de sa 3e cellule ("2021 - aujourd hui" contre "Avant"),
   et les descriptions demarraient a quatre abscisses differentes. */
.exp-list{display:grid;grid-template-columns:1.1fr 1.4fr auto;}
.exp-row{display:grid;grid-template-columns:subgrid;grid-column:1/-1;gap:20px;align-items:baseline;padding:26px 0;border-top:1px solid var(--xlight-gray);}
.exp-row:last-child{border-bottom:1px solid var(--xlight-gray);}
.exp-role{font-weight:500;font-size:20px;letter-spacing:-0.02em;color:var(--black);}
.exp-desc{color:var(--gray);font-size:16px;line-height:150%;}
.exp-period{color:var(--medium-gray);font-size:15px;white-space:nowrap;}
@media (max-width:810px){ .ab-hero-grid{grid-template-columns:1fr;} .ab-philo{grid-template-columns:1fr;} .stack-grid{grid-template-columns:repeat(3,1fr);} .exp-list{grid-template-columns:1fr;}
  .exp-row{grid-template-columns:1fr;gap:6px;} }

/* ============ Page Contact (pixel perfect Framewell /contact) ============ */
.ct-hero{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:stretch;}
.ct-lead{display:flex;flex-direction:column;gap:20px;}
.ct-lead .body{color:var(--dark-gray);max-width:420px;}
.ct-form{display:flex;flex-direction:column;gap:20px;}
.ct-form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.ct-field{display:flex;flex-direction:column;gap:8px;}
.ct-field label{font-size:15px;font-weight:500;}
.ct-field input,.ct-field textarea{font-family:var(--font);font-weight:500;font-size:15px;padding:14px 16px;background:var(--off-white);border:1px solid transparent;color:var(--black);width:100%;transition:border-color .2s ease,background .2s ease;}
.ct-field textarea{min-height:170px;resize:vertical;}
.ct-field input:hover,.ct-field textarea:hover{background:#f2f2f2;}
.ct-field input:focus,.ct-field textarea:focus{outline:none;border-color:var(--black);background:var(--white);}
/* statut d'envoi : apparaît en douceur sous le bouton */
.ct-status{margin:0;height:0;overflow:hidden;opacity:0;transform:translateY(6px);font-size:15px;font-weight:500;color:var(--dark-gray);transition:opacity .3s ease,transform .35s var(--ease-out),height .35s var(--ease-out);}
.ct-status.show{height:auto;opacity:1;transform:none;}
.ct-status.is-error{color:var(--black);}
.ct-status a{color:var(--black);text-decoration:underline;text-underline-offset:2px;}
.ct-copy{font:inherit;color:var(--black);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:2px;}
.ct-submit{width:100%;justify-content:center;padding:16px 20px;}
.ct-socials{display:flex;flex-direction:column;gap:16px;margin-top:auto;padding-top:32px;}
.ct-social-links{display:flex;gap:24px;flex-wrap:wrap;}
.ct-social-links a{font-size:13px;font-weight:500;letter-spacing:0.04em;text-transform:uppercase;color:var(--medium-gray);transition:color .2s;}
.ct-social-links a:hover{color:var(--black);}
/* FAQ centrée en boîtes off-white */
.faq-sec{display:flex;flex-direction:column;align-items:center;gap:40px;}
.faq-head{text-align:center;align-items:center;margin-bottom:0;}
.faq-head .sec-overline{justify-content:center;}
.faq-list{display:flex;flex-direction:column;gap:10px;width:100%;max-width:760px;}
.faq-item{background:var(--off-white);}
.faq-q{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;cursor:pointer;font-weight:500;font-size:18px;letter-spacing:-0.0222em;color:var(--black);list-style:none;}
.faq-q::-webkit-details-marker{display:none;}
.faq-icon{flex:none;width:16px;height:16px;position:relative;transition:transform .3s cubic-bezier(.5,0,.15,1);}
.faq-icon::before,.faq-icon::after{content:"";position:absolute;background:var(--black);}
.faq-icon::before{left:0;top:7px;width:16px;height:2px;}
.faq-icon::after{left:7px;top:0;width:2px;height:16px;}
.faq-item[open] .faq-icon{transform:rotate(135deg);}
.faq-a{overflow:hidden;padding:0 24px;transition:height .28s var(--ease-out);}
.faq-a-in{color:var(--gray);padding-bottom:24px;line-height:150%;}
@media (max-width:810px){ .ct-hero{grid-template-columns:1fr;gap:32px;} .ct-form-row{grid-template-columns:1fr;} }

/* ============ Lecteur d'article (pixel perfect Framewell blog post) ============ */
.art{display:flex;flex-direction:column;gap:44px;}
.art-head{display:flex;flex-direction:column;gap:22px;max-width:760px;}
.art-meta{display:flex;align-items:center;gap:13px;font-size:15px;font-weight:500;color:var(--medium-gray);}
.art-meta .cat{color:var(--black);}
.art-meta .sep{width:4px;height:4px;border-radius:50%;background:var(--light-gray);flex:none;}
.art-hero{width:100%;height:540px;overflow:hidden;background:var(--off-white);}
.art-hero img{width:100%;height:100%;object-fit:cover;}
.art-body{max-width:720px;}
.art-body>:first-child{margin-top:0;}
.art-body .lead{font-size:22px;line-height:152%;font-weight:500;color:var(--black);margin-bottom:30px;letter-spacing:-0.01em;}
.art-body h2{font-weight:600;font-size:28px;letter-spacing:-0.03em;line-height:122%;margin:48px 0 16px;}
.art-body h3{font-weight:500;font-size:20px;letter-spacing:-0.02em;margin:34px 0 12px;}
.art-body p{font-size:18px;line-height:172%;color:var(--dark-gray);margin-bottom:20px;}
.art-body ul,.art-body ol{margin:0 0 22px 22px;color:var(--dark-gray);font-size:18px;line-height:172%;}
.art-body li{margin-bottom:8px;}
.art-body a{color:var(--black);text-decoration:underline;text-underline-offset:3px;}
.art-body strong{color:var(--black);font-weight:600;}
.art-body blockquote{margin:30px 0;padding-left:24px;border-left:2px solid var(--black);font-size:22px;font-weight:500;color:var(--black);line-height:146%;letter-spacing:-0.01em;}
@media (max-width:810px){ .art-hero{height:300px;} .art-body{max-width:100%;} .art-body p,.art-body ul,.art-body ol{font-size:16px;} .art-body h2{font-size:24px;} .art-body .lead{font-size:19px;} }

/* Carte blog "Bientôt" (article pas encore écrit) */
.blog-card.soon{cursor:default;}
.blog-card.soon .blog-overlay{background:rgba(9,9,9,.28);}
.blog-card.soon .blog-pill{background:var(--black);color:var(--white);}

/* --- Blog : animations vignette (pas de photo -> on anime la matiere) --- */
.blog-thumb::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(115deg,transparent 32%,rgba(255,255,255,.6) 50%,transparent 68%);transform:translateX(-130%);transition:transform .75s var(--ease-out);}
@media (hover:hover) and (pointer:fine){.blog-card:not(.soon):hover .blog-thumb::after{transform:translateX(130%);}}
.blog-overlay{z-index:2;}
.blog-pill{transform:scale(.9);transition:transform .4s var(--ease-out),background .25s ease,color .25s ease;}
@media (hover:hover) and (pointer:fine){.blog-card:hover .blog-pill{transform:none;}}
.blog-card.soon .blog-ph{opacity:.5;}
.blog-card.soon .blog-title{color:var(--medium-gray);}
.blog-card.soon .blog-thumb::after{display:none;}


/* ============ Agrandissement au clic ============ */
.case-img img{cursor:zoom-in;}
.lb{position:fixed;inset:0;z-index:200;background:rgba(16,18,21,.94);
  display:flex;align-items:center;justify-content:center;padding:48px;cursor:zoom-out;}
.lb[hidden]{display:none;}
.lb img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 24px 80px rgba(0,0,0,.4);}
.lb-close{position:absolute;top:22px;right:26px;width:40px;height:40px;border:0;background:none;
  color:#FFFFFA;font-size:26px;line-height:1;cursor:pointer;opacity:.7;}
.lb-close:hover{opacity:1;}
@media (max-width:810px){ .lb{padding:18px;} }

/* ============ PAGES DE SERVICE (mentions légales, 404) ============ */
/* Deux pages courtes, un seul bloc de prose : pas de grille, la mesure de lecture suffit. */
.legal-main{max-width:var(--maxw);margin:0 auto;padding:120px 30px 120px;display:flex;flex-direction:column;gap:70px;}
.legal-body{max-width:680px;display:flex;flex-direction:column;gap:44px;}
.legal-block{display:flex;flex-direction:column;gap:12px;}
.legal-block h2{font-weight:600;font-size:20px;letter-spacing:-0.02em;line-height:130%;margin:0;}
.legal-block p{margin:0;color:var(--dark-gray);}
.legal-block a{color:var(--black);text-decoration:underline;text-underline-offset:2px;}
.legal-block dl{margin:0;display:grid;grid-template-columns:180px 1fr;gap:10px 24px;}
.legal-block dt{color:var(--medium-gray);font-weight:500;font-size:15px;}
.legal-block dd{margin:0;color:var(--dark-gray);font-weight:500;font-size:16px;}
.legal-updated{font-size:14px;color:var(--medium-gray);font-weight:500;}
/* 404 : le bloc est court, on le centre verticalement plutôt que de le coller en haut */
.nf-main{max-width:var(--maxw);margin:0 auto;padding:0 30px;min-height:78vh;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:26px;}
.nf-main .h1{max-width:620px;}
.nf-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px;}
@media (max-width:810px){
  .legal-main{padding:100px 30px 90px;gap:50px;}
  .legal-body{gap:36px;}
  .legal-block dl{grid-template-columns:1fr;gap:4px;}
  .legal-block dt{margin-top:10px;}
  .nf-main{min-height:70vh;}
}

.nf-lead{max-width:520px;}

/* ============ BILINGUE ============ */
/* Le switcher FR/EN est un lien de nav, mais il ne navigue pas dans la page :
   on le sort visuellement de la liste des sections pour qu'il ne se lise pas comme une rubrique. */
.nav-lang{font-size:12px;letter-spacing:0.06em;text-transform:uppercase;color:var(--medium-gray);border:1px solid var(--xlight-gray);border-radius:30px;padding:5px 10px;line-height:1;transition:color .2s ease,border-color .2s ease;}
.nav-lang:hover{opacity:1;color:var(--black);border-color:var(--light-gray);}
/* Note sous un sur-titre de section (ex. "les études de cas sont en français"). */
.sec-note{margin:0;font-size:14px;}
/* Un témoignage traduit le dit, plutôt que de laisser croire à une citation d'origine. */
.testi-tr{display:block;margin-top:3px;font-size:12px;color:var(--light-gray);}

/* ============ CORRECTIFS MOBILE (04/09) ============ */

/* 1. RETOUR A LA LIGNE
   Un temps mis en text-wrap:balance pour eviter que "concoit" se retrouve seul
   sur sa ligne. Patch prefere le retour a la ligne naturel : retire.

   A garder en tete si le sujet revient : a un viewport reellement de 360px
   (mesure dans une iframe, pas au screenshot), aucun titre ne deborde. Les
   captures headless a --window-size=360 mentent, Chrome impose une largeur de
   fenetre minimale, met la page en page plus large puis rogne l'image. */

/* 2. TICKERS MANIPULABLES AU DOIGT
   Sur mobile l'animation defile toute seule et overflow:hidden empeche de
   l'attraper. On coupe l'animation et on rend la bande scrollable au doigt. */
@media (max-width:810px){
  .svc-ticker{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;cursor:grab;}
  .svc-ticker::-webkit-scrollbar{display:none;}
  .svc-track{animation:none;padding-right:30px;}
}
/* Le doigt ne doit pas emporter la page quand il fait defiler la bande. */
.svc-ticker{touch-action:pan-x;}

/* 3. DEMO EMBARQUEE
   Le prototype ECHO-5 est concu pour 800px de large. En dessous, case.js le
   met a l'echelle plutot que de le rogner : on fige la largeur de mise en page
   et on applique un facteur, la hauteur du cadre suit. */
.case-demo{overflow:hidden;}
.case-demo.is-scaled iframe{transform-origin:top left;}
