/* L'Atelier Bernard : charte commune, novembre 2026 (maquette d'accueil v4).
   Chargée après Base.css et ab-anim.css sur toutes les pages, SAUF /avis-clients et /avis,
   qui gardent leurs feuilles d'origine. Ce fichier ne remplace rien : il surcharge.
   1. Jetons   2. Typographie   3. Espacements   4. Boutons et liens   5. En-tête
   6. Photos   7. Mouvement   8. Accessibilité   9. Tailles et espacements alignés (généré) */

/* ───────── 1. Jetons ───────── */
:root{
  --ink:var(--noir); --ink-2:#4A443F; --muted:var(--taupe-text); --bg:var(--ivoire);
  --accent:var(--terracotta-text); --accent-strong:#8F4836; --on-dark:var(--ivoire); --on-dark-2:#D9D5CC;

  /* Échelle typographique unique */
  --t-h1:clamp(2.7rem,5vw,4.5rem);        /* 43 → 72 px */
  --t-h2:clamp(2.1rem,3.5vw,3.125rem);    /* 34 → 50 px */
  --t-quote:clamp(1.5rem,2.4vw,2.125rem); /* 24 → 34 px : titres serif de second niveau */
  --t-serif-s:1.5rem;                     /* 24 px */
  --t-h3:1.375rem;                        /* 22 px */
  --t-lead:1.1875rem;                     /* 19 px */
  --t-body:1.0625rem;                     /* 17 px */
  --t-small:.9375rem;                     /* 15 px */
  --t-caption:.84375rem;                  /* 13,5 px */
  --t-eyebrow:.78125rem;                  /* 12,5 px */

  /* Les jetons déjà utilisés par Base.css pointent vers la même échelle */
  --fs-h1:var(--t-h1); --fs-h1-long:var(--t-h1); --fs-h2:var(--t-h2); --fs-h2-s:var(--t-quote); --fs-name:var(--t-quote);
  --fs-h3:var(--t-h3); --fs-quote:var(--t-h3); --fs-quote-l:var(--t-h3); --fs-body:var(--t-body); --fs-eyebrow:var(--t-eyebrow);

  --space:clamp(3.25rem,7.2vw,6.5rem);    /* 52 → 104 px : espacement vertical des sections */
  --radius:6px; --radius-btn:8px;

  /* Mouvement : une courbe, trois durées */
  --ease:cubic-bezier(.22,1,.36,1); --fast:.2s; --mid:.45s; --slow:1s;
  /* Ombres en couches, teintées du brun de la marque */
  --shadow-1:0 1px 2px rgba(36,33,31,.06),0 4px 12px rgba(36,33,31,.05);
  --shadow-2:0 2px 4px rgba(36,33,31,.05),0 12px 28px rgba(36,33,31,.10),0 32px 64px rgba(36,33,31,.08);
  --shadow-3:0 4px 8px rgba(36,33,31,.08),0 20px 48px rgba(36,33,31,.16);
}

/* ───────── 2. Typographie ───────── */
html{scroll-behavior:smooth;scroll-padding-top:88px}
body{line-height:1.7;font-optical-sizing:auto;font-kerning:normal}
h1:not(#t),h2:not(#t){letter-spacing:-.02em;text-wrap:balance}
h1:not(#t){line-height:1.02}
h3{text-wrap:balance}
p,li,dd{text-wrap:pretty}
/* Citations : DM Sans 22 px avec filet terracotta, comme sur l'accueil (plus de serif épais) */
.rsc__text:not(#t),.proofquote p:not(#t),.pp__quote:not(#t),.sprev__q:not(#t),.refshot__q:not(#t),.reviews__main blockquote p:not(#t),.reviews__main blockquote p.is-long:not(#t),.svcproof blockquote p{
  font-family:var(--sans);font-size:var(--t-h3);line-height:1.6;letter-spacing:0;border-left:2px solid var(--accent);padding-left:1.5rem}

/* ───────── 4. Boutons et liens ───────── */
.btn{transition:transform var(--mid) var(--ease),box-shadow var(--mid) var(--ease),background-color var(--fast) ease,color var(--fast) ease,border-color var(--fast) ease}
.btn:hover{transform:translateY(-2px)}
.btn--dark:hover{background:#3A3531;box-shadow:var(--shadow-2)}
.btn--light:hover{background:var(--ivoire);box-shadow:var(--shadow-2)}
.btn:active{transform:translateY(0) scale(.98);box-shadow:none;transition-duration:.08s}
.link{text-decoration:none;background:linear-gradient(var(--accent),var(--accent)) 0 100%/100% 1px no-repeat;padding-bottom:3px;transition:color var(--fast) ease}
.link:hover{color:var(--accent);animation:c4-redraw .7s var(--ease)}
@keyframes c4-redraw{0%{background-size:100% 1px;background-position:100% 100%}45%{background-size:0 1px;background-position:100% 100%}46%{background-size:0 1px;background-position:0 100%}100%{background-size:100% 1px;background-position:0 100%}}

/* ───────── 5. En-tête : verre dépoli, se resserre et prend une ombre au défilement ───────── */
.site-header{background:rgba(246,244,239,.9);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);transition:box-shadow var(--mid) var(--ease),border-color var(--mid) ease}
.site-header.is-scrolled{box-shadow:var(--shadow-1);border-color:transparent}
.site-header__bar{transition:min-height var(--mid) var(--ease)}
.site-header.is-scrolled .site-header__bar{min-height:60px}
@media (width>1080px){
  .site-header__nav li a{position:relative;border-bottom-color:transparent}
  .site-header__nav li a:hover{border-bottom-color:transparent}
  .site-header__nav li a::after{content:"";position:absolute;left:0;right:0;bottom:6px;height:1px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform var(--mid) var(--ease)}
  .site-header__nav li a:hover::after,.site-header__nav li a:focus-visible::after,.site-header__nav li a[aria-current]::after{transform:scaleX(1)}
}

/* ───────── 6. Photos ───────── */
main img{outline:1px solid rgba(36,33,31,.08);outline-offset:-1px}   /* filet qui détache les photos claires du fond ivoire */
main a picture{display:block;overflow:hidden;border-radius:var(--radius)}
main a picture img{transition:transform 1.2s var(--ease)}
.rlp__main{display:block;border-radius:var(--radius);transition:transform var(--mid) var(--ease),box-shadow var(--mid) var(--ease)}
@media (hover:hover){
  main a:hover picture img{transform:scale(1.04)}
  .rlp__main:hover{transform:translateY(-6px);box-shadow:var(--shadow-2)}
}
.sphero__fig,.pp__cover:not(:has(figcaption)),.about__photo:not(:has(figcaption)){border-radius:var(--radius);box-shadow:var(--shadow-2)}
.cta{background:radial-gradient(56rem 28rem at 12% 0%,rgba(183,101,79,.26),rgba(183,101,79,0) 62%),var(--noir)}

/* ───────── 7. Mouvement : une entrée en haut de page, des survols, rien d'autre ───────── */
@keyframes c4-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes c4-unveil{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
@keyframes c4-settle{from{transform:scale(1.08)}to{transform:none}}
@media (prefers-reduced-motion:no-preference){
  main:not(.h4) h1{animation:c4-enter .8s var(--ease) both}
  .sphero__promise,.sphero__side,.svchero__lead,.inshero__lead,.rl__intro,.pp__lead,.refhero__intro,.about__lead,.section__head h1+p{animation:c4-enter .8s var(--ease) .15s both}
  .sphero__fig img,.pp__cover img,.about__photo img{animation:c4-unveil 1.1s var(--ease) .15s both,c4-settle 1.8s var(--ease) .15s both}
  .motion-ok [data-reveal] picture{transition:clip-path var(--slow) var(--ease)}
}
/* Les apparitions en fondu section par section sont retirées, comme sur l'accueil */
.section__head h2,.intro h2,.aboutteaser h2,.sps__head h2{animation:none}
.motion-ok .services li,.motion-ok .proofquote blockquote,.motion-ok .refrow,.motion-ok .refmain,.motion-ok .pa blockquote,.motion-ok .steps li{opacity:1;transform:none;transition:none}

/* ───────── 8. Accessibilité ───────── */
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.site-footer :focus-visible,.cta :focus-visible,.intro :focus-visible,.mobile-bar :focus-visible{outline-color:var(--on-dark)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Sur mobile, les petits liens gardent leur apparence mais leur zone de clic passe à 44 px de haut */
@media (max-width:760px){
  .crumbs a,.sphero__contact a,.svc__links a,.sv-links a,.section__more a,.cta__numbers a,.site-footer li a,.site-footer__legal a,.rf-links a,.h4-more-row a,.h4-links a,.spproof a,.spproj__more a,.pp__nav a{position:relative}
  .crumbs a::before,.sphero__contact a::before,.svc__links a::before,.sv-links a::before,.section__more a::before,.cta__numbers a::before,.site-footer li a::before,.site-footer__legal a::before,.rf-links a::before,.h4-more-row a::before,.h4-links a::before,.spproof a::before,.spproj__more a::before,.pp__nav a::before{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
  .sphero__contact{display:flex;flex-wrap:wrap;gap:.9rem 1.5rem}
}
label small,.form small{font-size:var(--t-caption)}

/* ───────── 9. Tailles et espacements alignés sur l'échelle (généré à partir de Base.css et ab-anim.css) ───────── */
.btn{font-size:var(--t-small)}
.site-header__nav a{font-size:var(--t-small)}
@media (width<=1080px){
.site-header__nav li a{font-size:var(--t-lead)}
}
.hero{padding-block:clamp(28px,4vw,56px) var(--space)}
.hero__place{font-size:var(--t-small)}
.hero__title{font-size:var(--t-h1)}
.hero__lead{font-size:var(--t-lead)}
.hero__figure figcaption{font-size:var(--t-caption)}
.proof__item{font-size:var(--t-small)}
.section{padding-block:var(--space)}
.section__head h2,.method .section__head h2{font-size:var(--t-h2)}
.section__head p{font-size:var(--t-small)}
.case__meta{font-size:var(--t-caption)}
.case h3{font-size:var(--t-quote)}
.proofquote{padding-block:0 var(--space)}
.proofquote footer{font-size:var(--t-small)}
.intro{padding-block:var(--space)}
.intro h2{font-size:var(--t-h2)}
.services__sum{font-size:var(--t-small)}
.cr__col h3{font-size:var(--t-h3)}
.ba__tag{font-size:var(--t-caption)}
.ba__cap{font-size:var(--t-caption)}
.method{padding-block:var(--space)}
.steps__n{font-size:var(--t-quote)}
.steps h3{font-size:var(--t-lead)}
.steps p{font-size:var(--t-small)}
@media (width<=1000px){
.steps__n{font-size:var(--t-quote)}
}
.reviews blockquote footer{font-size:var(--t-small)}
.reviews__score{font-size:var(--t-small)}
.reviews__score strong{font-size:var(--t-quote)}
.reviews__side li{font-size:var(--t-small)}
.reviews__side li span{font-size:var(--t-caption)}
.cta{padding-block:var(--space)}
.cta h2{font-size:var(--t-h1)}
.site-footer{font-size:var(--t-small)}
.site-footer__title{font-size:var(--t-small)}
.site-footer__legal{font-size:var(--t-caption)}
@media (width<=760px){
.mobile-bar a{font-size:var(--t-small)}
}
.hero__rating{font-size:var(--t-small)}
.insp figcaption{font-size:var(--t-caption)}
.tag{font-size:var(--t-eyebrow)}
@media (width<=420px){
.insp__figcaption{font-size:var(--t-eyebrow)}
}
.cta__numbers{font-size:var(--t-small)}
.reviews__main blockquote p.is-long{font-size:var(--t-serif-s)}
.crumbs{font-size:var(--t-caption)}
.page-title,.project-page h1,.about h1{font-size:var(--t-h1)}
.project-page{padding-bottom:var(--space)}
.project-page__lead{font-size:var(--t-lead)}
.project-page__gallery figcaption{font-size:var(--t-caption)}
.project-page__works h2{font-size:var(--t-quote)}
.about__hero{padding-block:24px var(--space)}
.about__lead{font-size:var(--t-lead)}
.about__body h2{font-size:var(--t-h2)}
.about__situations h3{font-size:var(--t-quote)}
.reflabel{font-size:var(--t-eyebrow)}
.refhero__grid{padding-block:8px var(--space)}
.refhero__eyebrow{font-size:var(--t-eyebrow)}
.refhero h1{font-size:var(--t-h1)}
.refhero__intro{font-size:var(--t-h3)}
.refhero__index{font-size:var(--t-small)}
.refhead{padding-top:var(--space)}
.refhead h2{font-size:var(--t-h2)}
.refhead__intro{font-size:var(--t-small)}
.refmain h3{font-size:var(--t-h1)}
.refmain__scope{font-size:var(--t-small)}
.refmain__text{font-size:var(--t-body)}
.refrow__name{font-size:var(--t-quote)}
.refrow__meta{font-size:var(--t-caption)}
.refrow__note{font-size:var(--t-small)}
.refshots{padding-block:var(--space)}
.refshots h2{font-size:var(--t-h2)}
.refshot h3{font-size:var(--t-quote)}
.reftrans{padding-block:var(--space)}
.reftrans p{font-size:var(--t-h1)}
.refpart{padding-bottom:var(--space)}
.pa__quote--long{font-size:var(--t-serif-s)}
.pa footer{font-size:var(--t-small)}
.pa__tag{font-size:var(--t-eyebrow)}
.pa__score{font-size:var(--t-small)}
.pa__big strong{font-size:var(--t-h2)}
.pa__pair figcaption{font-size:var(--t-caption)}
.case__facts{font-size:var(--t-small)}
.aboutteaser{padding-block:clamp(40px,5vw,72px) var(--space)}
.aboutteaser h2{font-size:var(--t-quote)}
.channels strong{font-size:var(--t-lead)}
.svchero__title{font-size:var(--t-h1)}
.svchero__lead{font-size:var(--t-lead)}
.svcintro h2{font-size:var(--t-quote)}
.svcgroup>h2,.svcfin h2{font-size:var(--t-quote)}
.svc__name{font-size:var(--t-quote)}
.svc__links{font-size:var(--t-small)}
.svc--flag .svc__name{font-size:var(--t-h2)}
.svcfin{padding-block:var(--space)}
.svcreal .section__head h2{font-size:var(--t-quote)}
.svcproj h3{font-size:var(--t-h3)}
.svcproj__tags{font-size:var(--t-small)}
.svcquote{padding-bottom:var(--space)}
.svc__tag{font-size:var(--t-eyebrow)}
.svcsin .svc__name{font-size:var(--t-h3)}
.svcinsp h2{font-size:var(--t-serif-s)}
.svchow{padding-block:var(--space) 0}
.svchow h2{font-size:var(--t-quote)}
.svcsteps__n{font-size:var(--t-small)}
.svcsteps h3{font-size:var(--t-body)}
.svcsteps p{font-size:var(--t-small)}
.svchow__more{font-size:var(--t-small)}
.svcproof{padding-block:var(--space) var(--space)}
.svcproof h2{font-size:var(--t-quote)}
.svcproof blockquote p{font-size:var(--t-h3)}
.svcproof footer{font-size:var(--t-small)}
.inshero__title{font-size:var(--t-h1)}
.inshero__lead{font-size:var(--t-lead)}
.insnote{font-size:var(--t-small)}
.inscats a{font-size:var(--t-small)}
.inssec{padding-block:var(--space) 0}
.inssec__head h2{font-size:var(--t-quote)}
.inssec__service{font-size:var(--t-small)}
.ins__text{font-size:var(--t-body)}
.ins__tag{font-size:var(--t-eyebrow)}
.ins__advice{font-size:var(--t-small)}
.ins__advice em{font-size:var(--t-eyebrow)}
.ins__credit{font-size:var(--t-eyebrow)}
@media (hover:none),(pointer:coarse){
.ins__advice{font-size:var(--t-small)}
}
.insnotebox h3{font-size:var(--t-h3)}
@media (width<=899px){
.inscats a{font-size:var(--t-small)}
}
.pvideo__text h2{font-size:var(--t-quote)}
.pvideo figcaption{font-size:var(--t-small)}
.rl__hero{padding-bottom:var(--space)}
.rl__hero h1{font-size:var(--t-h1)}
.rl__intro{font-size:var(--t-lead)}
.rl{padding-bottom:var(--space)}
.rlp__text h2{font-size:var(--t-quote)}
.rlp__tag{font-size:var(--t-caption)}
.pp__hero{padding-block:16px var(--space)}
.pp__head h1{font-size:var(--t-h1)}
.pp__lead{font-size:var(--t-lead)}
.pp section h2{font-size:var(--t-quote)}
.pp__ctx,.pp__int,.pp__svc{padding-bottom:var(--space)}
.pp__ctxgrid h3{font-size:var(--t-body)}
.pgal figcaption{font-size:var(--t-caption)}
.pp__nav a span{font-size:var(--t-caption)}
.pp__prev,.pp__next{font-size:var(--t-lead)}
.pp__all{font-size:var(--t-small)}
.pp__review{padding-bottom:var(--space)}
.pp__quote{font-size:var(--t-quote)}
.rl__hero h1{font-size:var(--t-h1)}
.reftrans p{font-size:var(--t-h1)}
.pa__quote--long{font-size:var(--t-quote)}
.reviews__main blockquote p{font-size:var(--t-quote)}
.reviews__main blockquote p.is-long{font-size:var(--t-quote)}
.refshot__proof p.refshot__q{font-size:var(--t-quote)}
.refshot__proof footer{font-size:var(--t-small)}
.sps{padding-block:var(--space)}
.sps__head h2,.sprev h2,.spref h2,.spfaq h2,.sprel h2{font-size:var(--t-h2)}
.sphero h1{font-size:var(--t-h1)}
.sphero__promise{font-size:var(--t-quote)}
.sphero__lead{font-size:var(--t-lead)}
.sphero__contact{font-size:var(--t-small)}
.sp--surface .sphero h1{font-size:var(--t-h1)}
.spproof{font-size:var(--t-small)}
.spintro__txt p{font-size:var(--t-lead)}
.spintro__benefits h2{font-size:var(--t-body)}
.spintro__benefits p{font-size:var(--t-small)}
.spgrid__t{font-size:var(--t-lead)}
.spgrid p{font-size:var(--t-small)}
@media (width>=1000px){
.sp--precision .spgrid__t{font-size:var(--t-body)}
.sp--surface .spgrid__t{font-size:var(--t-quote)}
.sp--surface .spgrid p{font-size:var(--t-body)}
}
.spcon__fig figcaption{font-size:var(--t-small)}
.spcon__list h3{font-size:var(--t-body)}
.spsteps__n{font-size:var(--t-quote)}
.spsteps h3{font-size:var(--t-body)}
.spproj__cards h3{font-size:var(--t-quote)}
.spproj__why p{font-size:var(--t-quote)}
.spproj__photos figcaption{font-size:var(--t-small)}
.spref__row h3{font-size:var(--t-quote)}
.sprev__q{font-size:var(--t-quote)}
.sprev footer{font-size:var(--t-small)}
.sprev__more p{font-size:var(--t-body)}
.spfaq__item h3{font-size:var(--t-body)}
.sprel span{font-size:var(--t-small)}
.rsc{padding-block:var(--space)}
.rsc__head h2,.rsc__head h3{font-size:var(--t-h2)}
.rsc__head p{font-size:var(--t-body)}
.rsc__photos figcaption{font-size:var(--t-small)}
.rsc__stars{font-size:var(--t-body)}
.rsc__text{font-size:var(--t-h2)}
.rsc__q footer{font-size:var(--t-body)}
.rsc__tags li{font-size:var(--t-caption)}
.rsc__note{font-size:var(--t-caption)}
.sp--matiere .sphero h1{font-size:var(--t-h1)}
.spdet{padding-block:var(--space)}
.spdet__fig figcaption{font-size:var(--t-small)}
.spdet__kicker{font-size:var(--t-small)}
.spdet__txt h2{font-size:var(--t-h1)}
.spdet__txt p{font-size:var(--t-body)}
.site-footer__title:not(#t){font-size:var(--t-small)}
.spgrid p,.spcon__list p,.spintro__benefits p,.spfaq__item p,.pp__ctxgrid p,.spsteps p,.steps p,.sprel span,.spproj__cards p,.spref__text,.ins__advice:not(#t),.inssec__service:not(#t),.section__head p:not(#t),.refhead__intro:not(#t),.insnote:not(#t),.svchow__more:not(#t),.reviews__side blockquote p:not(#t),.reviews__side li:not(#t),.proof__item:not(#t){font-size:var(--t-body)}
.spstg__cap{font-size:var(--t-small)}
.spstg__note{font-size:var(--t-small)}
.spproj__more-t:not(#t){font-size:var(--t-lead)}
.sphero__tag{font-size:var(--t-eyebrow)}
.deca{font-size:var(--t-small)}
.deca small{font-size:var(--t-eyebrow)}
.site-footer__deca{font-size:var(--t-small)}
.plink__tip{font-size:var(--t-caption)}
.tagnew{font-size:var(--t-eyebrow)}
.ba__tag{font-size:var(--t-eyebrow)}
.bapair figcaption{font-size:var(--t-caption)}
.bapair h3{font-size:var(--t-h3)}
.bapair h3 small{font-size:var(--t-small)}
@media (width <= 560px){
.ba__tag{font-size:var(--t-eyebrow)}
}
.wipe__cap{font-size:var(--t-small)}
.slc:not(#t){padding-block:0 var(--space)}
.slc__card figcaption{font-size:var(--t-small)}
.slc__card figcaption strong{font-size:var(--t-serif-s)}
