/* Pages intérieures (Benjamin, 17/11/2026) : design et animations communs aux
   pages services, studio, conseils, accompagnement, contact et pages légales.
   Chargée sur toutes les pages sauf l'accueil. Rien n'est masqué ici : les
   états de départ viennent de anim.css, sous html.an-pret. */
:root{--pg-ac:#ff8b42;--pg-ac2:#ffb17b;--pg-p1:#151516;--pg-p2:#1c1b1d;--pg-li:#ffffff1a;--pg-e:cubic-bezier(.16,1,.3,1)}
main{overflow-x:clip}
.pg-prog{position:fixed;inset:0 0 auto 0;height:2px;z-index:200;background:linear-gradient(90deg,#ff712b,#ffb17b);transform-origin:0 50%;scale:var(--pg-p,0) 1;pointer-events:none}

/* En-tête de page : halos lents, trame de points, lueur au pointeur. */
html body main>section:first-child{position:relative;isolation:isolate}
html body main>section:first-child:before{content:"";position:absolute;z-index:-2;left:-12%;top:-140px;width:640px;height:560px;border-radius:50%;background:radial-gradient(circle,#ff7a2c33,transparent 66%);filter:blur(30px);animation:pg-halo 16s ease-in-out infinite alternate;pointer-events:none}
html body main>section:first-child:after{content:"";position:absolute;z-index:-1;inset:-120px -50vw 0 -50vw;background:radial-gradient(#ffffff1c 1px,transparent 1.6px) 0 0/30px 30px;-webkit-mask-image:radial-gradient(60% 90% at 50% 20%,#000,transparent 75%);mask-image:radial-gradient(60% 90% at 50% 20%,#000,transparent 75%);pointer-events:none}
@keyframes pg-halo{to{translate:160px 70px;scale:1.2}}
html body .breadcrumb,html body .crumb{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;border:1px solid var(--pg-li);background:#ffffff08;font-size:13px;transition:border-color .3s,background .3s,translate .4s var(--pg-e)}
html body .breadcrumb:hover,html body .crumb a:hover{border-color:#ff8b4266;background:#ff8b4212;translate:-3px 0}
html body main .kicker{display:inline-flex;align-items:center;gap:10px}
html body main .kicker:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--pg-ac);box-shadow:0 0 0 4px #ff8b421f;flex:none}

/* Boutons : pilule, dégradé, reflet (le reflet vient de anim.css). */
html body main .button,html body .contact-band .button{border-radius:999px;transition:box-shadow .4s var(--pg-e),translate .3s var(--pg-e)}
html body main .button.blue,html body .contact-band .button.blue{background:linear-gradient(120deg,#ffb27a,#ff8b42 50%,#ff6f28);color:#190d06;border:0;box-shadow:0 14px 34px -14px #ff7a2c99,inset 0 1px 0 #ffffff66}
html body main .button.blue:hover,html body .contact-band .button.blue:hover{box-shadow:0 22px 44px -14px #ff7a2ccc,inset 0 1px 0 #ffffff66}

/* Cartes : relief, liseré, projecteur sous le pointeur. */
html body .pg-carte{position:relative;isolation:isolate;border-radius:22px;border:1px solid var(--pg-li);background:linear-gradient(160deg,var(--pg-p2),var(--pg-p1));overflow:hidden;transition:translate .6s var(--pg-e),border-color .4s,box-shadow .6s var(--pg-e)}
html body .pg-carte:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(380px circle at var(--pg-x,50%) var(--pg-y,0%),#ff8b4226,transparent 62%);opacity:0;transition:opacity .5s;pointer-events:none}
html body .pg-carte:hover{border-color:#ff8b4255;box-shadow:0 30px 60px -34px #000}
html body .pg-carte:hover:before{opacity:1}

/* Captures de sites : cadre, zoom doux, inclinaison au pointeur. */
html body .work-capture{display:block;border-radius:16px;overflow:hidden;border:1px solid var(--pg-li);background:#17171a;transform:perspective(900px) rotateX(var(--pg-rx,0deg)) rotateY(var(--pg-ry,0deg));transition:transform .5s var(--pg-e),border-color .4s,box-shadow .5s var(--pg-e);will-change:transform}
html body .work-capture:hover{border-color:#ff8b4266;box-shadow:0 34px 60px -30px #000}
html body .work-capture img{transition:scale 1.4s var(--pg-e)}
html body .work-capture:hover img{scale:1.04}
html body .work-pair{gap:14px}

/* Page service : contexte, livrables, étapes, préparation. */
html body .service-context{background:none}
html body .service-context .context-grid{position:relative;border-radius:26px;border:1px solid var(--pg-li);background:linear-gradient(120deg,#231811,#151314 62%);overflow:hidden;padding:clamp(28px,4vw,58px)}
html body .service-context .context-grid:before{content:"";position:absolute;left:0;top:14%;bottom:14%;width:3px;border-radius:3px;background:linear-gradient(180deg,#ff712b,#ffb17b);transform-origin:50% 0;animation:pg-barre 1.6s var(--pg-e) both}
@keyframes pg-barre{from{scale:1 0}}
html body .deliverables{gap:16px}
html body .deliverables>article{padding:clamp(22px,2.4vw,32px)}
html body .deliverables>article>span:first-child,html body .deliverables>article>b:first-child{display:inline-grid;place-items:center;min-width:38px;height:38px;border-radius:50%;border:1px solid #ff8b4255;color:var(--pg-ac);font-size:12px;font-weight:600}
html body .home-process{gap:16px}
html body .home-process>article{padding:26px 24px;transition:border-color .6s,background .6s,translate .6s var(--pg-e)}
html body .home-process>article.pg-act{border-color:#ff8b4255;background:linear-gradient(170deg,#221812,var(--pg-p1))}
html body .home-process>article>span:first-child{transition:background .5s,color .5s,border-color .5s,scale .6s var(--pg-e)}
html body .home-process>article.pg-act>span:first-child{background:var(--pg-ac);border-color:var(--pg-ac);color:#1b0d05;scale:1.1}
html body .preparation{gap:16px}
html body .preparation>div{padding:clamp(26px,3vw,42px)}
html body .preparation li{transition:translate .4s var(--pg-e),color .3s}
html body .preparation li:hover{translate:6px 0;color:#fff}

/* Questions : rangées, bouton rond, ouverture animée par pages.js. */
html body main details{border-top:1px solid var(--pg-li);transition:border-color .4s}
html body main details[open]{border-color:#ff8b4266}
html body main details>summary{cursor:pointer;transition:color .3s,padding .5s var(--pg-e)}
html body main details>summary:hover{padding-left:8px;color:#fff}
html body .pg-rep{overflow:hidden}

/* Guides et articles. */
html body .guide-grid{gap:16px}
html body .guide-grid>*{padding:clamp(22px,2.2vw,30px);display:flex;flex-direction:column}
html body .guide-grid>*:after{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,#ff712b,#ffb17b);transform-origin:0 50%;scale:0 1;transition:scale .7s var(--pg-e)}
html body .guide-grid>*:hover:after{scale:1 1}

/* Formulaire de contact. */
html body main form{border-radius:24px}
html body main form input,html body main form select,html body main form textarea{border-radius:12px;border:1px solid var(--pg-li);background:#0e0e0f;transition:border-color .3s,box-shadow .4s var(--pg-e),background .3s}
html body main form input:hover,html body main form select:hover,html body main form textarea:hover{border-color:#ffffff40}
html body main form input:focus,html body main form select:focus,html body main form textarea:focus{outline:0;border-color:var(--pg-ac);background:#121112;box-shadow:0 0 0 4px #ff8b4226}
html body main form label{transition:color .3s}
html body main form label:focus-within,html body main form .form-row>div:focus-within label{color:var(--pg-ac2)}
html body .contact-direct aside a{transition:translate .45s var(--pg-e),color .3s}
html body .contact-direct aside a:hover{translate:6px 0;color:var(--pg-ac2)}

/* Bandeau de contact : grand panneau, halo qui flotte. */
html body .contact-band{background:none;border:0;padding:clamp(40px,6vw,90px) 0}
html body .contact-band>.container{position:relative;isolation:isolate;overflow:hidden;border-radius:30px;border:1px solid #ff8b4233;background:linear-gradient(120deg,#2b1b12,#161213 62%);padding:clamp(30px,4.6vw,64px)}
html body .contact-band>.container:before{content:"";position:absolute;z-index:-1;width:640px;height:640px;right:-160px;top:-300px;border-radius:50%;background:radial-gradient(circle,#ff8b4255,transparent 62%);animation:pg-flotte 9s ease-in-out infinite alternate;pointer-events:none}
@keyframes pg-flotte{to{translate:-90px 70px;scale:1.15}}
html body .contact-band h2{font-size:clamp(30px,4vw,56px);line-height:1.02}

/* Pied de page. */
html body footer a{transition:color .3s,translate .4s var(--pg-e)}
html body footer .footer-services a:hover,html body footer .footer-studio a:hover{translate:5px 0;color:var(--pg-ac2)}

@media(max-width:760px){
  html body .service-context .context-grid{border-radius:20px}
  html body .contact-band>.container{border-radius:22px}
  html body .pg-carte{border-radius:18px}
  html body main>section:first-child:before{width:380px;height:380px;left:-30%}
}
@media print{.pg-prog{display:none}}

/* Cartes sans marge intérieure d'origine (principes, etc.) : pages.js pose
   .pg-pad quand une carte n'a aucun padding. */
html body .pg-carte.pg-pad{padding:clamp(24px,2.4vw,34px)}
html body .pg-carte.pg-pad>:first-child{margin-top:0}
html body .pg-carte.pg-pad>:last-child{margin-bottom:0}
html body .principles{gap:16px;margin-top:clamp(28px,3.4vw,48px)}
html body .principles>article>span:first-child{display:inline-grid;place-items:center;min-width:38px;height:38px;border-radius:50%;border:1px solid #ff8b4255;color:var(--pg-ac);font-size:12px;font-weight:600;margin-bottom:18px}

/* Page Studio (Benjamin, 17/11/2026) : chaque section a sa propre mise en
   page, pour ne plus répéter « titre à gauche, texte à droite ». */
/* 01 — grand panneau éditorial : phrase d'ouverture en grand, suite sur deux colonnes, chiffre en filigrane. */
html body .studio-origin{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(140deg,#1f1a17,#141314 60%);border:1px solid var(--pg-li);border-radius:30px;margin:10px max(14px,calc(var(--header-gutter,5.5vw) - 44px)) 0}
html body .studio-origin:before{content:"01";position:absolute;z-index:-1;right:3%;top:-.16em;font:600 clamp(180px,26vw,420px)/1 'Bricolage Grotesque',sans-serif;letter-spacing:-.06em;color:transparent;-webkit-text-stroke:1px #ffffff14;pointer-events:none}
html body .studio-origin .studio-chapter{display:block;padding-top:clamp(44px,6vw,90px);padding-bottom:clamp(44px,6vw,90px)}
html body .studio-origin .studio-prose{display:grid;grid-template-columns:1fr 1fr;gap:6px 56px;margin-top:clamp(28px,3.4vw,48px)}
html body .studio-origin .studio-prose>.studio-intro{grid-column:1/-1;font:500 clamp(22px,2.5vw,34px)/1.28 'Bricolage Grotesque',sans-serif;letter-spacing:-.03em;color:#faf6f1;max-width:26em;margin-bottom:clamp(22px,2.6vw,38px);padding-left:22px;border-left:3px solid var(--pg-ac)}
/* 02 — colonnes inversées, titre qui reste accroché, filet vertical. */
html body .studio-need{grid-template-columns:1.2fr .8fr;align-items:start}
html body .studio-need .studio-chapter-label{order:2;position:sticky;top:120px;padding-left:clamp(22px,3vw,44px);border-left:1px solid #ff8b4255}
html body .studio-need .studio-prose>.studio-intro{font-size:clamp(19px,1.7vw,23px);color:#faf6f1}
/* Exemples : la carte du milieu est décalée. */
@media(min-width:900px){html body .studio-work-grid>*:nth-child(2){margin-top:44px}}
/* 03 — bandeau centré, anneaux qui tournent lentement. */
html body .studio-future{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(90% 120% at 50% 0,#3a2314,#171314 70%);text-align:center}
html body .studio-future:before,html body .studio-future:after{content:"";position:absolute;z-index:-1;left:50%;top:50%;border-radius:50%;border:1px dashed #ff8b4233;translate:-50% -50%;pointer-events:none}
html body .studio-future:before{width:min(900px,120vw);aspect-ratio:1;animation:pg-tourne 70s linear infinite}
html body .studio-future:after{width:min(560px,80vw);aspect-ratio:1;border-style:solid;border-color:#ffffff12;animation:pg-tourne 50s linear infinite reverse}
@keyframes pg-tourne{to{rotate:360deg}}
html body .studio-future .studio-chapter{display:block;max-width:860px;margin-inline:auto}
html body .studio-future .studio-chapter-label h2{font-size:clamp(32px,4.2vw,58px);line-height:1.05}
html body .studio-future .studio-prose{margin-top:30px}
html body .studio-future .studio-prose>p{max-width:62ch;margin-inline:auto}
html body .studio-future .studio-prose>.studio-intro{font-size:clamp(19px,1.7vw,23px)}
/* Promesses : trois cartes en escalier, grand chiffre. */
html body .studio-promise-grid{gap:16px;align-items:start}
html body .studio-promise-grid>article{padding:clamp(24px,2.6vw,36px)}
html body .studio-promise-grid>article>span{font-size:clamp(44px,5vw,72px);background:linear-gradient(120deg,#ffb27a,#ff6f28);-webkit-background-clip:text;background-clip:text;color:transparent}
@media(min-width:900px){html body .studio-promise-grid>article:nth-child(2){margin-top:36px}html body .studio-promise-grid>article:nth-child(3){margin-top:72px}}
/* Conclusion : halo central. */
html body .studio-closing{position:relative;isolation:isolate}
html body .studio-closing:before{content:"";position:absolute;z-index:-1;left:50%;top:50%;width:min(720px,100vw);height:420px;translate:-50% -50%;border-radius:50%;background:radial-gradient(circle,#ff8b422e,transparent 66%);animation:pg-flotte 9s ease-in-out infinite alternate;pointer-events:none}
html body .studio-closing h2{font-size:clamp(34px,5vw,68px);line-height:1.02}
@media(max-width:760px){
  html body .studio-origin{border-radius:22px;margin-inline:10px}
  html body .studio-origin .studio-prose{grid-template-columns:1fr}
  html body .studio-need{grid-template-columns:1fr}
  html body .studio-need .studio-chapter-label{order:0;position:static;padding-left:16px}
}
