/* ==========================================================================
   renover-maison.net : direction artistique « Atelier »
   Magazine déco contemporain + carnet d'architecte + collage de matières.
   Couche de présentation appliquée au build Astro existant : chargée en
   dernier, elle remappe les jetons et restyle les composants sans toucher
   au contenu, aux URL ni aux scripts.
   ========================================================================== */

@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:800;font-display:swap;src:url(fonts/barlow-condensed-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/manrope-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/manrope-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:800;font-display:swap;src:url(fonts/manrope-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:"Caveat";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/caveat-latin-500-normal.woff2) format("woff2")}

/* ---------- Jetons ---------- */
:root.atelier{
  --at-creme:#F4F0E6;
  --at-papier:#FAF7F0;
  --at-sable:#E9E2D3;
  --at-charbon:#191919;
  --at-encre:#2B2824;
  --at-gris:#5E5850;
  --at-orange:#FF5A24;
  --at-orange-titre:#E4461A;   /* orange lisible en grand corps sur crème */
  --at-orange-texte:#C23A0E;   /* orange lisible en petit corps sur crème */
  --at-cobalt:#234BFF;
  --at-cobalt-fonce:#1A36C4;
  --at-trait:rgba(25,25,25,.16);
  --at-trait-fort:rgba(25,25,25,.42);

  --at-display:"Barlow Condensed","Arial Narrow",Impact,sans-serif;
  --at-texte:"Manrope",ui-sans-serif,system-ui,sans-serif;
  --at-main:"Caveat","Segoe Print","Comic Sans MS",cursive;

  --at-ease:cubic-bezier(.23,1,.32,1);
  --at-r:2px;

  /* Remappage des jetons du thème d'origine (Tailwind v4 + composants) */
  --color-ardoise:var(--at-charbon);
  --color-ardoise-700:#3F3A34;
  --color-ardoise-500:var(--at-gris);
  --color-marine:var(--at-charbon);
  --color-marine-800:#232120;
  --color-marine-950:var(--at-charbon);
  --color-marine-100:#E9E2D3;
  --color-marine-50:#EFE9DC;
  --color-bleu-plan:var(--at-cobalt);
  --color-bleu-plan-700:var(--at-cobalt-fonce);
  --color-bleu-plan-100:#DFE4FF;
  --color-ambre:var(--at-orange);
  --color-ambre-400:#FF7A4D;
  --color-ambre-600:var(--at-orange-texte);
  --color-ambre-100:#FFE3D8;
  --color-blanc-platre:var(--at-creme);
  --color-platre-200:#E4DCCB;
  --color-platre-300:#D3C8B3;
  --color-white:var(--at-papier);
  --font-titre:var(--at-display);
  --font-corps:var(--at-texte);
  --font-sans:var(--at-texte);
  --radius-rm:var(--at-r);
  --shadow-rm:0 1px 0 rgba(25,25,25,.08);
  --shadow-lg:0 18px 40px -24px rgba(25,25,25,.35);
  --ease-rm:var(--at-ease);
  --cote:var(--at-charbon);
  color-scheme:light;
}

/* ---------- Base ---------- */
html.atelier body{
  background-color:var(--at-creme);
  /* grain papier très léger (SVG inline, aucun appel réseau) */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .09 0 0 0 0 .07 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color:var(--at-charbon);
  font-family:var(--at-texte);
  font-size:1.0625rem;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
html.atelier main{overflow-x:clip}
html.atelier ::selection{background:var(--at-orange);color:var(--at-charbon)}
html.atelier :focus-visible{outline:3px solid var(--at-cobalt);outline-offset:3px;border-radius:0}

html.atelier h1,html.atelier h2,html.atelier h3,html.atelier h4{
  font-family:var(--at-display);font-weight:800;color:var(--at-charbon);
  letter-spacing:.002em;text-wrap:balance;
}
html.atelier h1,html.atelier h2{text-transform:uppercase;line-height:.95}
html.atelier h3,html.atelier h4{line-height:1.1}
html.atelier p,html.atelier li{text-wrap:pretty}
html.atelier .num{font-variant-numeric:tabular-nums}

/* Surtitres : numéro de cahier plutôt que pastille */
html.atelier .surtitre{
  font-family:var(--at-texte);font-weight:800;font-size:.72rem;letter-spacing:.18em;
  color:var(--at-charbon);display:inline-flex;align-items:center;gap:.6rem;
}
html.atelier .surtitre::before{background:var(--at-orange);width:1.75rem;height:2px;border-radius:0}

/* ---------- Boutons ---------- */
html.atelier .btn,
html.atelier .b,
html.atelier .at-btn{
  border-radius:var(--at-r)!important;
  font-family:var(--at-texte)!important;font-weight:800!important;
  letter-spacing:.01em;text-transform:none;
  box-shadow:none!important;
  min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  padding:.8rem 1.35rem;
  transition:background-color .18s var(--at-ease),color .18s var(--at-ease),border-color .18s var(--at-ease),transform .12s var(--at-ease);
}
html.atelier .btn:active,html.atelier .b:active,html.atelier .at-btn:active,html.atelier .devis-mini:active{transform:scale(.97)}
html.atelier .btn svg,html.atelier .at-btn svg{transition:transform .2s var(--at-ease)}
html.atelier .btn:hover svg,html.atelier .at-btn:hover svg{transform:translate(3px,-3px)}

html.atelier .btn-cta,
html.atelier .at-btn-noir{background:var(--at-charbon)!important;color:var(--at-creme)!important;border:1.5px solid var(--at-charbon)!important}
html.atelier .btn-cta:hover,
html.atelier .at-btn-noir:hover{background:var(--at-cobalt)!important;border-color:var(--at-cobalt)!important;color:#fff!important}
html.atelier .btn-ligne{background:transparent!important;color:var(--at-charbon)!important;border:1.5px solid var(--at-charbon)!important}
html.atelier .btn-ligne:hover{background:var(--at-charbon)!important;color:var(--at-creme)!important}
html.atelier .btn-ligne-clair{border:1.5px solid var(--at-creme)!important;color:var(--at-creme)!important;background:transparent!important}
html.atelier .btn-ligne-clair:hover{background:var(--at-creme)!important;color:var(--at-charbon)!important}

/* ---------- Barre haute et en-tête ---------- */
html.atelier .topbar{background:var(--at-charbon)!important;color:#D9D1C1!important;font-size:.76rem!important;letter-spacing:.02em}
html.atelier .topbar a{color:var(--at-creme)!important}
html.atelier .topbar a:hover{color:var(--at-orange)!important}
html.atelier .topbar svg{color:var(--at-orange)}

/* Fond opaque, sans backdrop-filter : ce filtre fait de l'en-tête le bloc
   conteneur du tiroir mobile (position:fixed), qui se retrouvait réduit à 45 px. */
html.atelier .entete{
  background:var(--at-creme)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  border-bottom:1px solid var(--at-charbon)!important;
}
html.atelier .entete.defile{box-shadow:0 10px 30px -22px rgba(25,25,25,.55)!important}

/* Logo : mot-signature rénover.maison + carré orange */
html.atelier .logo{gap:0!important}
html.atelier .logo > svg{display:none!important}
html.atelier .logo .nom{
  font-family:var(--at-texte)!important;font-weight:800!important;
  font-size:clamp(1.3rem,1.05rem + .9vw,1.7rem)!important;letter-spacing:-.055em!important;
  color:var(--at-charbon)!important;line-height:1;display:inline-flex;align-items:baseline;
}
html.atelier .logo .point{font-size:0!important;margin:0!important}
html.atelier .logo .point::before{content:".";font-size:clamp(1.3rem,1.05rem + .9vw,1.7rem);color:var(--at-charbon)}
html.atelier .logo .nom::after{content:"";width:.34em;height:.34em;background:var(--at-orange);margin-left:.12em;align-self:flex-end;transform:translateY(-.08em)}
html.atelier .logo.clair .nom,html.atelier .logo.clair .point::before{color:var(--at-creme)!important}

html.atelier .top{
  font-family:var(--at-texte)!important;font-weight:600!important;font-size:.92rem!important;
  border-radius:0!important;color:var(--at-charbon)!important;background:transparent!important;
}
html.atelier .top::after{background:var(--at-orange)!important;height:2px!important;border-radius:0!important}
html.atelier .item:hover .top,html.atelier .item:focus-within .top{background:transparent!important;color:var(--at-charbon)!important}
html.atelier .top .chev{color:var(--at-charbon)!important}

html.atelier .mega-in{
  background:var(--at-papier)!important;border:1px solid var(--at-charbon)!important;
  border-radius:0!important;box-shadow:0 30px 60px -40px rgba(25,25,25,.5)!important;
}
html.atelier .mega .col-titre{font-family:var(--at-texte)!important;font-weight:800!important;letter-spacing:.16em!important;color:var(--at-gris)!important}
html.atelier .mega .col a{border-radius:0!important;font-weight:600}
html.atelier .mega .col a:hover{background:var(--at-creme)!important;color:var(--at-charbon)!important}
html.atelier .mega .pic,html.atelier .mega .col a svg{color:var(--at-cobalt)!important;background:transparent!important}
html.atelier .promo{
  background:var(--at-charbon)!important;color:#D9D1C1!important;border-radius:0!important;
}
html.atelier .promo-pic{background:transparent!important;color:var(--at-orange)!important;border:1px solid rgba(244,240,230,.25);border-radius:0!important}
html.atelier .promo-titre{font-family:var(--at-display)!important;text-transform:uppercase;font-size:1.5rem!important;line-height:1;color:var(--at-creme)!important}
html.atelier .promo-cta{font-family:var(--at-texte)!important;font-weight:800!important;color:var(--at-orange)!important}

html.atelier .loupe,html.atelier .menu-mobile>summary{border-radius:0!important;color:var(--at-charbon)!important}
html.atelier .loupe:hover,html.atelier .menu-mobile[open]>summary{background:var(--at-sable)!important}

html.atelier .devis-mini{display:none}
@media (min-width:1080px){html.atelier .devis-mini{display:inline-flex;align-items:center;gap:.5rem}}
html.atelier .devis-mini{
  border-radius:var(--at-r)!important;font-family:var(--at-texte)!important;font-weight:800!important;box-shadow:none!important;
  background:var(--at-cobalt)!important;color:#fff!important;border:0!important;
  padding:.7rem 1.1rem!important;min-height:44px;font-size:.92rem!important;
}
html.atelier .devis-mini::after{content:"\2197";font-weight:600;transition:transform .2s var(--at-ease)}
html.atelier .devis-mini:hover{background:var(--at-charbon)!important;transform:none!important}
html.atelier .devis-mini:hover::after{transform:translate(2px,-2px)}

/* Tiroir mobile */
html.atelier .tiroir{background:var(--at-creme)!important;border-top:1px solid var(--at-charbon)!important}
html.atelier .sec{border-bottom:1px solid var(--at-trait-fort)!important}
html.atelier .sec>summary,html.atelier .sec-lien{
  font-family:var(--at-display)!important;font-weight:800!important;text-transform:uppercase;
  font-size:1.6rem!important;color:var(--at-charbon)!important;letter-spacing:.01em;
}
html.atelier .sec>summary .chev{color:var(--at-orange)!important}
html.atelier .sec-titre{font-family:var(--at-texte)!important;color:var(--at-gris)!important}
html.atelier .sec-in li a{background:var(--at-papier)!important;border-radius:0!important;border:1px solid var(--at-trait)}
html.atelier .sec-in li a svg{color:var(--at-cobalt)!important}
html.atelier .voir-tout{color:var(--at-cobalt-fonce)!important;font-weight:800}
html.atelier .tiroir-cta .b-plein{background:var(--at-charbon)!important;color:var(--at-creme)!important}
html.atelier .tiroir-cta .b-ligne{border:1.5px solid var(--at-charbon)!important;color:var(--at-charbon)!important}
html.atelier .tiroir-cta .b-discret{color:var(--at-cobalt-fonce)!important}

/* ---------- Fil d'Ariane ---------- */
html.atelier .ariane{font-size:.74rem!important;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
html.atelier .ariane a{color:var(--at-gris)!important;text-decoration:none!important}
html.atelier .ariane a:hover{color:var(--at-charbon)!important;text-decoration:underline!important}
html.atelier .ariane [aria-current]{color:var(--at-charbon)!important}

/* ---------- En-tête des pages intérieures ---------- */
html.atelier main .hero h1{
  font-size:clamp(2.4rem,1.4rem + 3.4vw,4.4rem)!important;line-height:.94!important;
  max-width:18ch;letter-spacing:.003em;
}
html.atelier main .hero h1::after{
  content:"";display:block;margin-top:.32em;height:14px;max-width:min(100%,24rem);
  background:
    linear-gradient(var(--at-charbon),var(--at-charbon)) center/100% 1px no-repeat,
    linear-gradient(var(--at-charbon),var(--at-charbon)) left center/1px 14px no-repeat,
    linear-gradient(var(--at-charbon),var(--at-charbon)) right center/1px 14px no-repeat;
  transform-origin:left;animation:at-trace 1.1s .25s var(--at-ease) both;
}
html.atelier main .hero > div > p:first-child{
  font-family:var(--at-texte)!important;font-weight:800!important;letter-spacing:.18em!important;
  color:var(--at-orange-texte)!important;
}
html.atelier .reponse{border-left:0!important;padding-left:0!important}
html.atelier main .hero .reponse{font-size:1.18rem!important;line-height:1.6;color:var(--at-encre)}

/* ---------- Ligne de cote (séparateur) ---------- */
html.atelier .ligne-cote{color:var(--at-charbon)!important}
html.atelier .ligne-cote svg{color:var(--at-charbon)!important}
html.atelier .ligne-cote svg{transform-origin:left center}
html.atelier.js .ligne-cote:not(.at-trace) svg{transform:scaleX(0)}
html.atelier.js .ligne-cote.at-trace svg{transform:scaleX(1);transition:transform 1.4s var(--at-ease)}
html.atelier .ligne-cote .cote{
  font-family:var(--at-main)!important;font-weight:500!important;font-size:1.45rem!important;
  letter-spacing:0!important;text-transform:none!important;color:var(--at-charbon)!important;
  background:var(--at-creme)!important;
}
html.atelier .ligne-cote .arrow{border-color:var(--at-charbon)!important}

/* ---------- Estimateur : fiche de carnet ---------- */
html.atelier .estimateur{
  background:
    linear-gradient(rgba(35,75,255,.07) 1px,transparent 1px) 0 0/22px 22px,
    linear-gradient(90deg,rgba(35,75,255,.07) 1px,transparent 1px) 0 0/22px 22px,
    var(--at-papier)!important;
  border:1.5px solid var(--at-charbon)!important;border-radius:0!important;box-shadow:8px 8px 0 var(--at-charbon)!important;
}
html.atelier .estimateur .bandeau,html.atelier .outil .bandeau{
  background:var(--at-charbon)!important;color:var(--at-creme)!important;border-radius:0!important;
}
html.atelier .estimateur .kicker,html.atelier .outil .kicker{
  font-family:var(--at-main)!important;font-size:1.25rem!important;font-weight:500!important;
  letter-spacing:0!important;text-transform:none!important;color:var(--at-orange)!important;
}
html.atelier .estimateur .titre,html.atelier .outil .bandeau .titre{
  font-family:var(--at-display)!important;text-transform:uppercase;font-size:1.5rem!important;line-height:1.02;color:var(--at-creme)!important;
}
html.atelier .estimateur .fourchette{font-family:var(--at-display)!important;font-weight:800!important;font-size:2.1rem!important;color:var(--at-charbon)!important}
html.atelier .estimateur .de,html.atelier .estimateur .unite{font-family:var(--at-texte);font-weight:600;font-size:.9rem;color:var(--at-gris)!important}
html.atelier .estimateur .barre{background:var(--at-sable)!important;border-radius:0!important;height:10px}
html.atelier .estimateur .plage{background:var(--at-orange)!important;border-radius:0!important}
html.atelier .estimateur .tick{background:var(--at-charbon)!important;opacity:.5}
html.atelier .estimateur .graduation{color:var(--at-gris)!important}
html.atelier .estimateur .note,html.atelier .estimateur .meta{color:#3F3A34!important}
html.atelier .estimateur .meta a{color:var(--at-cobalt-fonce)!important}
html.atelier .estimateur > svg,html.atelier .outil > svg{color:var(--at-orange)!important}

/* Outils (formulaires de calcul) */
html.atelier .outil{border:1.5px solid var(--at-charbon)!important;border-radius:0!important;background:var(--at-papier)!important;box-shadow:8px 8px 0 var(--at-charbon)!important}
html.atelier input:not([type=checkbox]):not([type=radio]):not([type=range]),
html.atelier select,html.atelier textarea{
  border-radius:var(--at-r)!important;border:1.5px solid var(--at-charbon)!important;
  background-color:#fff!important;color:var(--at-charbon)!important;font-family:var(--at-texte)!important;
}
html.atelier input::placeholder{color:#6B6359!important;opacity:1}
html.atelier input:focus-visible,html.atelier select:focus-visible,html.atelier textarea:focus-visible{outline:3px solid var(--at-cobalt)!important;outline-offset:2px}
html.atelier input[type=checkbox],html.atelier input[type=radio],html.atelier input[type=range]{accent-color:var(--at-cobalt)}
html.atelier .rm-champ label,html.atelier .rm-champ legend,html.atelier .lot-tete{font-family:var(--at-texte)!important;font-weight:800;color:var(--at-charbon)}
html.atelier .rm-bouton,html.atelier form button:not(.suivante){
  border-radius:var(--at-r)!important;background:var(--at-charbon)!important;color:var(--at-creme)!important;
  font-family:var(--at-texte)!important;font-weight:800!important;border:0;
}
html.atelier .rm-bouton:hover,html.atelier form button:not(.suivante):hover{background:var(--at-cobalt)!important;color:#fff!important}
html.atelier .rm-resultat,html.atelier .ligne-res,html.atelier .lot{border-radius:0!important}
html.atelier .rm-erreur{color:#A32A08!important}

/* ---------- Cartes : rangées éditoriales, pas de vignettes arrondies ---------- */
html.atelier .carte{
  background:transparent!important;border:0!important;border-top:1px solid var(--at-charbon)!important;
  border-radius:0!important;box-shadow:none!important;padding:1.1rem .1rem 1.25rem!important;transform:none!important;
}
html.atelier .carte .picto{
  background:transparent!important;border:1px solid var(--at-trait-fort);border-radius:0!important;color:var(--at-cobalt)!important;
}
html.atelier .carte .titre{
  font-family:var(--at-display)!important;font-weight:800!important;text-transform:uppercase;
  font-size:1.45rem!important;line-height:1!important;color:var(--at-charbon)!important;letter-spacing:.005em;
}
html.atelier .carte .texte{color:#3F3A34!important;font-size:.95rem}
html.atelier .carte > svg:last-child{color:var(--at-charbon)!important;transition:transform .2s var(--at-ease)}
html.atelier .carte:hover{background:transparent!important}
html.atelier .carte:hover .titre{color:var(--at-cobalt-fonce)!important}
html.atelier .carte:hover > svg:last-child{transform:translateX(4px)}

/* ---------- Blocs d'aside, encarts, FAQ ---------- */
html.atelier nav.bloc,html.atelier form.bloc,html.atelier .astuce,html.atelier .actus,html.atelier .populaires,html.atelier .sommaire,html.atelier .sommaire-mobile{
  border-radius:0!important;box-shadow:none!important;background:var(--at-papier)!important;border:1px solid var(--at-charbon)!important;
}
html.atelier .bloc .titre,html.atelier .pop-titre,html.atelier .sommaire .titre,html.atelier .actus .tete,html.atelier .sources h2{
  font-family:var(--at-display)!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.01em!important;
  font-size:1.35rem!important;color:var(--at-charbon)!important;
}
html.atelier .astuce{background:var(--at-cobalt)!important;border-color:var(--at-cobalt)!important;color:#fff!important}
html.atelier .astuce::before,html.atelier .astuce::after{display:none!important}
html.atelier .astuce .tete{font-family:var(--at-main)!important;font-size:1.6rem!important;font-weight:500!important;color:#fff!important;text-transform:none!important;letter-spacing:0!important}
html.atelier .astuce .ico{background:transparent!important;color:#fff!important}
html.atelier .astuce .texte{color:#fff!important;font-weight:600}
html.atelier .astuce .suivante{font-family:var(--at-texte)!important;font-size:.85rem!important;padding:.55rem .9rem!important;min-height:40px;display:inline-flex;align-items:center;gap:.4rem;color:#fff!important;border:1.5px solid #fff!important;border-radius:var(--at-r)!important;background:transparent!important;font-weight:800}
html.atelier .astuce .suivante:hover{background:#fff!important;color:var(--at-cobalt-fonce)!important}
html.atelier .populaires a,html.atelier .voisins a,html.atelier .outils a{border-radius:0!important}
html.atelier .populaires a svg,html.atelier .outils .pic{color:var(--at-cobalt)!important;background:transparent!important}
html.atelier .populaires a:hover,html.atelier .outils a:hover,html.atelier .voisins a:hover{background:var(--at-creme)!important;color:var(--at-charbon)!important}
html.atelier .bloc.scan{background:var(--at-charbon)!important;color:var(--at-creme)!important}
html.atelier .bloc.scan .scan-titre{font-family:var(--at-display);text-transform:uppercase;font-weight:800;font-size:1.4rem;color:var(--at-creme)!important}
html.atelier .bloc.scan .scan-texte{color:#D9D1C1!important}
html.atelier .bloc.scan button{background:var(--at-orange)!important;color:var(--at-charbon)!important}
html.atelier .bloc.scan button:hover{background:var(--at-creme)!important;color:var(--at-charbon)!important}
html.atelier .tout{font-family:var(--at-texte)!important;font-size:.88rem!important;color:var(--at-cobalt-fonce)!important;font-weight:800}

html.atelier .encart{border-radius:0!important;border:1px solid var(--at-charbon)!important;background:var(--at-papier)!important;box-shadow:none!important}
html.atelier .encart .tete{font-family:var(--at-texte)!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem!important}
html.atelier .encart .tete svg{color:currentColor}
html.atelier .encart-attention{background:#FFE9DF!important;border-color:var(--at-orange-texte)!important}
html.atelier .encart-attention .tete{color:#9E2F0A!important}
html.atelier .encart-conseil .tete{color:var(--at-cobalt-fonce)!important}
html.atelier .encart-officiel{background:var(--at-sable)!important}
html.atelier .lien-aff{border-radius:var(--at-r)!important}

html.atelier .faq h2{font-size:clamp(2rem,1.4rem + 2vw,3rem)!important}
html.atelier .faq details{border:0!important;border-top:1px solid var(--at-charbon)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html.atelier .faq details:last-child{border-bottom:1px solid var(--at-charbon)!important}
html.atelier .faq summary h3{font-family:var(--at-texte)!important;font-weight:800!important;font-size:1.08rem!important;text-transform:none;color:var(--at-charbon)!important}
html.atelier .faq summary svg{color:var(--at-orange-texte)!important}
html.atelier .sources a{color:var(--at-cobalt-fonce)!important}

/* ---------- Prose ---------- */
html.atelier .prose-rm{counter-reset:at-h2;font-size:1.06rem;line-height:1.68;color:var(--at-encre)}
html.atelier .prose-rm > h2{
  counter-increment:at-h2;font-size:clamp(1.8rem,1.3rem + 1.6vw,2.6rem)!important;line-height:.98!important;
  padding-top:1.1rem!important;border-top:1px solid var(--at-charbon);
}
html.atelier .prose-rm > h2::before{
  content:counter(at-h2,decimal-leading-zero);display:block;margin-bottom:.35rem;
  font-family:var(--at-texte);font-weight:800;font-size:.8rem;letter-spacing:.16em;color:var(--at-orange-texte);
}
html.atelier .prose-rm h3{font-size:1.5rem!important;text-transform:uppercase}
html.atelier .prose-rm a:not([class]){color:var(--at-cobalt-fonce)!important;text-decoration-color:rgba(26,54,196,.45)!important;text-decoration-thickness:1.5px!important}
html.atelier .prose-rm a:not([class]):hover{color:var(--at-charbon)!important;text-decoration-color:var(--at-orange)!important}
html.atelier .prose-rm ul>li::before{background:var(--at-orange)!important;height:2px;width:.6em;border-radius:0}
html.atelier .prose-rm ol>li::marker{font-family:var(--at-display);font-weight:800;color:var(--at-orange-texte)!important}
html.atelier .prose-rm strong{color:var(--at-charbon)!important;font-weight:800}
html.atelier .prose-rm blockquote{border-left:0!important;font-family:var(--at-display);font-weight:600;font-size:1.6rem;line-height:1.15;color:var(--at-charbon)!important;padding:0 0 0 2.2rem!important;position:relative}
html.atelier .prose-rm blockquote::before{content:"\201C";position:absolute;left:0;top:-.15em;font-size:3rem;color:var(--at-orange)}
html.atelier .prose-rm table{border-radius:0!important;border:1px solid var(--at-charbon)!important;background:var(--at-papier)!important}
html.atelier .prose-rm thead th{background:var(--at-charbon)!important;color:var(--at-creme)!important;font-family:var(--at-texte)!important;font-weight:800!important;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase}
html.atelier .prose-rm tbody td{border-top:1px solid var(--at-trait)!important}
html.atelier .prose-rm tbody td:first-child{background:var(--at-sable)!important;color:var(--at-charbon)!important;font-weight:800!important}
html.atelier .prose-rm tbody tr:nth-child(2n) td:not(:first-child){background:#F6F2E9!important}

html.atelier .sommaire-mobile summary,html.atelier .sommaire a{color:var(--at-charbon)!important}
html.atelier .sommaire a:hover,html.atelier .sommaire-mobile a:hover{color:var(--at-cobalt-fonce)!important}
html.atelier .sommaire-mobile li::marker{color:var(--at-orange-texte)!important}

/* ---------- Pied de page ---------- */
html.atelier .pied{background:var(--at-charbon)!important;color:#D9D1C1!important;margin-top:6rem!important}
html.atelier .pied .bandeau{background:var(--at-orange)!important;color:var(--at-charbon)!important}
html.atelier .pied .bandeau::after{display:none!important}
html.atelier .pied .b-titre{
  font-family:var(--at-display)!important;font-weight:800!important;text-transform:uppercase;
  font-size:clamp(2rem,1.2rem + 3vw,3.6rem)!important;line-height:.92!important;color:var(--at-charbon)!important;
}
html.atelier .pied .b-texte{color:var(--at-charbon)!important;font-weight:600}
html.atelier .pied .bandeau .b-plein{background:var(--at-charbon)!important;color:var(--at-creme)!important}
html.atelier .pied .bandeau .b-plein:hover{background:var(--at-cobalt)!important;color:#fff!important}
html.atelier .pied .bandeau .b-ligne{border:1.5px solid var(--at-charbon)!important;color:var(--at-charbon)!important;background:transparent!important}
html.atelier .pied .bandeau .b-ligne:hover{background:var(--at-charbon)!important;color:var(--at-creme)!important}
html.atelier .pied .titre{font-family:var(--at-texte)!important;font-weight:800!important;letter-spacing:.16em;text-transform:uppercase;font-size:.75rem!important;color:var(--at-orange)!important}
html.atelier .pied a{color:var(--at-creme)}
html.atelier .pied a:hover{color:var(--at-orange)!important}
html.atelier .pied .garanties{background:transparent!important;border:0!important;border-top:1px solid rgba(244,240,230,.2)!important;border-bottom:1px solid rgba(244,240,230,.2)!important;border-radius:0!important}
html.atelier .pied .garanties svg{color:var(--at-orange)!important}
html.atelier .pied .officiel a{color:var(--at-creme)!important}

/* ==========================================================================
   ACCUEIL
   ========================================================================== */
.at-hero{position:relative;padding:clamp(1.5rem,1rem + 2vw,3rem) 0 0}
.at-hero-grid{
  max-width:76rem;margin:0 auto;padding:0 1rem;
  display:grid;gap:2.5rem;grid-template-columns:minmax(0,1fr);
}
@media (min-width:64rem){
  .at-hero-grid{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:3rem;align-items:start}
}
.at-badge{
  display:inline-flex;align-items:center;gap:.6rem;margin:0;
  font-weight:800;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--at-charbon);
}
.at-badge::before{content:"";width:1.75rem;height:2px;background:var(--at-orange)}
html.atelier .at-h1{
  margin:.9rem 0 0;font-size:clamp(3.2rem,1rem + 4.4vw,5.6rem);line-height:.86;letter-spacing:-.004em;
}
.at-h1 span{display:block}
.at-h1 .at-or{color:var(--at-orange-titre)}
.at-lead{margin:1.4rem 0 0;max-width:36ch;font-size:1.22rem;line-height:1.5;color:var(--at-encre)}

.at-scan{margin-top:2rem;max-width:36rem}
.at-scan label{display:block;font-weight:800;font-size:.9rem;margin-bottom:.5rem}
.at-scan-row{display:flex;flex-direction:column;gap:.5rem}
@media (min-width:36rem){.at-scan-row{flex-direction:row;gap:0}}
html.atelier .at-scan input{flex:1;min-height:56px;padding:0 1rem;font-size:1rem;border-right-width:1.5px}
@media (min-width:36rem){html.atelier .at-scan input{border-right:0!important}}
html.atelier .at-scan .at-btn{min-height:56px;white-space:nowrap}
.at-scan-note{margin:.7rem 0 0;font-size:.82rem;line-height:1.5;color:#4A443D}

.at-chiffres{list-style:none;margin:2rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:0;border-top:1px solid var(--at-charbon);max-width:36rem}
.at-chiffres li{flex:1 1 0;min-width:7.5rem;padding:.8rem 1rem .2rem 0;font-size:.82rem;font-weight:600;line-height:1.3;color:#3F3A34}
.at-chiffres li + li{padding-left:1rem;border-left:1px solid var(--at-trait-fort)}
.at-chiffres strong{display:block;font-family:var(--at-display);font-weight:800;font-size:2.6rem;line-height:1;color:var(--at-charbon)}

/* Collage */
.at-collage{position:relative;padding:0 0 3.5rem 0;min-width:0}
.at-arche{
  position:relative;margin:0 0 0 auto;width:min(100%,40rem);aspect-ratio:4/4.6;
  border-top-left-radius:52% 40%;overflow:hidden;background:var(--at-sable);
}
.at-arche img{width:100%;height:100%;object-fit:cover;object-position:50% 40%;display:block;transition:transform 1.2s var(--at-ease)}
.at-collage:hover .at-arche img{transform:scale(1.035)}
.at-tag{
  position:absolute;z-index:2;background:var(--at-papier);color:var(--at-charbon);
  font-family:var(--at-display);font-weight:800;font-size:1.05rem;letter-spacing:.06em;text-transform:uppercase;
  padding:.3rem .7rem;box-shadow:2px 2px 0 var(--at-charbon);
}
.at-arche .at-tag{top:42%;left:1.2rem;transform:rotate(-4deg)}
.at-polaroid{
  position:absolute;z-index:3;right:-.5rem;bottom:0;width:min(46%,17rem);margin:0;
  background:#FDFBF6;padding:.55rem .55rem 2.2rem;transform:rotate(4deg);
  box-shadow:0 1px 0 rgba(25,25,25,.15),0 22px 40px -22px rgba(25,25,25,.55);
}
.at-polaroid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;filter:saturate(.75) contrast(1.02)}
.at-polaroid .at-tag{left:auto;right:.7rem;bottom:.55rem;font-size:.95rem;box-shadow:none;background:transparent;padding:0}
.at-polaroid figcaption{position:absolute;left:.7rem;bottom:.5rem;font-family:var(--at-main);font-size:1.15rem;color:#4A443D}

.at-echantillons{position:absolute;z-index:4;left:0;bottom:1.2rem;display:flex;align-items:flex-end}
.at-ech{display:block;width:clamp(4.2rem,3rem + 4vw,6.6rem);aspect-ratio:1;background-size:cover;background-position:center;box-shadow:0 14px 24px -16px rgba(25,25,25,.7);border:1px solid rgba(25,25,25,.25)}
.at-ech-tomette{background-image:url(img/mat-tomettes-700.webp);transform:rotate(-8deg)}
.at-ech-chene{background-image:url(img/mat-chene-700.webp);aspect-ratio:.55;width:clamp(2.6rem,2rem + 2.4vw,4rem);margin-left:-.9rem;transform:rotate(5deg) translateY(-.4rem)}
.at-ech-ciment{background-image:url(img/mat-ciment-700.webp);width:clamp(3.4rem,2.6rem + 3vw,5.2rem);margin-left:-.6rem;transform:rotate(-3deg) translateY(.5rem)}

.at-sticker{
  position:absolute;z-index:5;left:clamp(9rem,6rem + 9vw,14rem);bottom:3.2rem;
  background:var(--at-cobalt);color:#fff;font-family:var(--at-main);font-size:1.7rem;line-height:1;
  padding:.35rem .8rem .45rem;transform:rotate(-7deg);
}
.at-note{
  position:absolute;z-index:4;margin:0;font-family:var(--at-main);font-size:1.3rem;line-height:1.05;color:var(--at-charbon);
}
.at-note-1{top:-.4rem;left:6%;transform:rotate(-8deg);max-width:7em}
.at-note-2{left:clamp(10rem,7rem + 9vw,17rem);bottom:-.9rem;transform:rotate(-3deg);max-width:8.5em}
.at-dessin{position:absolute;z-index:4;pointer-events:none;color:var(--at-orange);overflow:visible}
.at-dessin path{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.at-fleche-1{top:2.6rem;left:13%;width:7rem;height:4rem}
.at-fleche-2{left:clamp(7.5rem,5rem + 8vw,14rem);bottom:.2rem;width:2.6rem;height:2.2rem;color:var(--at-charbon);transform:scaleX(-1)}
.at-cote{position:absolute;z-index:4;color:var(--at-charbon);overflow:visible;pointer-events:none}
.at-cote line,.at-cote path,.at-cote rect{stroke:currentColor;stroke-width:1;fill:none}
.at-cote text{font-family:var(--at-texte);font-weight:600;font-size:11px;fill:currentColor;stroke:none}
.at-cote-v{
  position:absolute;z-index:4;top:30%;right:-1.4rem;height:42%;width:0;border-left:1px solid var(--at-charbon);
  transform-origin:top;pointer-events:none;
}
.at-cote-v::before,.at-cote-v::after{content:"";position:absolute;left:-6px;width:11px;border-top:1px solid var(--at-charbon)}
.at-cote-v::before{top:0}.at-cote-v::after{bottom:0}
.at-cote-v span{position:absolute;top:50%;left:1.05rem;transform:translate(-50%,-50%) rotate(-90deg);font-size:.72rem;font-weight:600;background:var(--at-creme);padding:0 .3rem}
html.js .at-cote-v{transform:scaleY(0)}
@media (max-width:80rem){.at-cote-v{display:none}}
html.js .at-cote-v.at-trace{transform:scaleY(1);transition:transform 1.2s var(--at-ease) .4s}
.at-plan{top:-1.2rem;right:-1rem;width:8.5rem;height:9.5rem;background:rgba(250,247,240,.9);padding:.4rem}

/* Tracé progressif */
.at-trace-svg path,.at-trace-svg line,.at-trace-svg rect{stroke-dasharray:var(--len,600);stroke-dashoffset:0}
html.js .at-trace-svg:not(.at-trace) path,html.js .at-trace-svg:not(.at-trace) line,html.js .at-trace-svg:not(.at-trace) rect{stroke-dashoffset:var(--len,600)}
html.js .at-trace-svg.at-trace path,html.js .at-trace-svg.at-trace line,html.js .at-trace-svg.at-trace rect{transition:stroke-dashoffset 1.6s var(--at-ease) .3s}

/* Bandeau orange */
.at-bande{background:var(--at-orange);color:var(--at-charbon);margin-top:clamp(2rem,1rem + 3vw,3.5rem);border-top:1px solid var(--at-charbon);border-bottom:1px solid var(--at-charbon)}
.at-bande-in{max-width:76rem;margin:0 auto;padding:1.3rem 1rem;display:grid;gap:.8rem;align-items:center}
@media (min-width:64rem){.at-bande-in{grid-template-columns:1fr auto auto;gap:2rem;padding:1.6rem 1rem}}
.at-bande-titre{margin:0;font-family:var(--at-display);font-weight:800;text-transform:uppercase;font-size:clamp(2rem,1.1rem + 3.6vw,4.4rem);line-height:.9;letter-spacing:.004em}
.at-bande-sous{margin:0;font-weight:800;font-size:.76rem;letter-spacing:.16em;text-transform:uppercase;line-height:1.5;max-width:24ch}
.at-bande svg{width:6rem;height:1rem;color:var(--at-charbon);display:none}
@media (min-width:64rem){.at-bande svg{display:block}}
.at-bande svg path{fill:none;stroke:currentColor;stroke-width:1.5}

/* Numéros de section sur l'accueil */
html.at-accueil main{counter-reset:at-sec}
html.at-accueil main h2#renover,html.at-accueil main h2#outils,html.at-accueil main h2#couts,
html.at-accueil main h2#pro,html.at-accueil main h2#aides,html.at-accueil main h2#fil,html.at-accueil main h2#recents{counter-increment:at-sec}
html.at-accueil main h2#renover::before,html.at-accueil main h2#outils::before,html.at-accueil main h2#couts::before,
html.at-accueil main h2#pro::before,html.at-accueil main h2#aides::before,html.at-accueil main h2#fil::before,html.at-accueil main h2#recents::before{
  content:counter(at-sec,decimal-leading-zero) " /";display:block;margin-bottom:.5rem;
  font-family:var(--at-texte);font-weight:800;font-size:.78rem;letter-spacing:.18em;color:var(--at-orange-texte);
}
html.at-accueil main h2#renover,html.at-accueil main h2#outils,html.at-accueil main h2#couts,
html.at-accueil main h2#fil,html.at-accueil main h2#recents{font-size:clamp(2.4rem,1.5rem + 3.4vw,4.6rem)!important;line-height:.9!important}
html.at-accueil main h2#renover{font-size:clamp(2.4rem,1.6rem + 2.4vw,3.6rem)!important}
html.at-accueil main h2#pro,html.at-accueil main h2#aides{font-size:clamp(1.9rem,1.4rem + 1.6vw,2.8rem)!important}
html.at-accueil main section.pt-14{padding-top:clamp(3.5rem,2rem + 5vw,6.5rem)!important}
html.at-accueil main section.pt-16,html.at-accueil main section.mt-16{margin-top:0!important;padding-top:clamp(3.5rem,2rem + 5vw,6.5rem)!important}
html.at-accueil main .surtitre{display:none}

/* Section 01 : une envie */
.at-envie{display:grid;gap:1.6rem;grid-template-columns:minmax(0,1fr)}
@media (min-width:64rem){
  .at-envie{grid-template-columns:17rem minmax(0,1fr);column-gap:3rem;align-items:start}
  .at-envie > .grid{grid-column:1/-1;margin-top:2rem!important}
}
.at-envie-tete h2{margin:0}
.at-envie-tete::after{content:"";display:block;width:3rem;height:3px;background:var(--at-orange);margin-top:1.2rem}
.at-main-note{margin:1rem 0 0;font-family:var(--at-main);font-size:1.5rem;line-height:1.1;color:var(--at-gris);transform:rotate(-2deg)}
.at-trio{display:grid;gap:1.25rem;grid-template-columns:minmax(0,1fr)}
@media (min-width:40rem){.at-trio{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:64rem){.at-trio > :nth-child(2){margin-top:2.5rem}.at-trio > :nth-child(3){margin-top:1rem}}
.at-trio a{display:block;color:var(--at-charbon);text-decoration:none}
.at-trio .at-ph{display:block;overflow:hidden;aspect-ratio:3/2;background:var(--at-sable)}
.at-trio img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .9s var(--at-ease)}
.at-trio a:hover img{transform:scale(1.05)}
.at-trio .at-leg{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.8rem;padding:.75rem 0;border-bottom:1px solid var(--at-charbon)}
.at-trio .at-n{font-weight:800;font-size:.85rem}
.at-trio .at-t{font-family:var(--at-display);font-weight:800;text-transform:uppercase;font-size:1.35rem;line-height:1}
.at-trio .at-go{width:2.4rem;height:2.4rem;display:grid;place-items:center;background:var(--at-cobalt);color:#fff;transition:background-color .2s var(--at-ease),transform .2s var(--at-ease)}
.at-trio a:hover .at-go{background:var(--at-charbon);transform:translateX(3px)}
.at-trio a:hover .at-t{color:var(--at-cobalt-fonce)}

/* Tuiles (index des projets) */
html.atelier .tuile{
  border:0!important;border-top:1px solid var(--at-charbon)!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;min-height:64px;font-family:var(--at-display)!important;font-weight:800!important;
  text-transform:uppercase;font-size:1.25rem!important;letter-spacing:.01em;color:var(--at-charbon)!important;transform:none!important;
}
html.atelier .tuile-pic{background:transparent!important;color:var(--at-cobalt)!important;border-radius:0!important}
html.atelier .tuile:hover{color:var(--at-cobalt-fonce)!important}
html.atelier .tuile .tuile-fl{color:var(--at-charbon)!important}

/* Photo immersive */
.at-immersif{
  position:relative;margin:clamp(4rem,2rem + 6vw,7rem) 0 0;width:100vw;left:50%;transform:translateX(-50%);
  height:clamp(24rem,60vw,44rem);overflow:hidden;background:var(--at-sable);
}
.at-immersif img{width:100%;height:100%;object-fit:cover;object-position:50% 55%;display:block;transition:transform 1.6s var(--at-ease)}
.at-immersif:hover img{transform:scale(1.025)}
.at-immersif figcaption{
  position:absolute;left:max(1rem,calc(50vw - 41rem));bottom:clamp(1rem,3vw,2.5rem);max-width:min(30rem,calc(100% - 2rem));
  background:var(--at-creme);padding:1.1rem 1.3rem 1.2rem;border:1px solid var(--at-charbon);
}
.at-immersif .at-cap-titre{display:block;font-family:var(--at-display);font-weight:800;text-transform:uppercase;font-size:clamp(1.6rem,1.2rem + 1.4vw,2.4rem);line-height:.95}
.at-immersif .at-cap-note{display:block;margin-top:.45rem;font-family:var(--at-main);font-size:1.35rem;line-height:1.1;color:#4A443D}
.at-immersif .at-tag{top:clamp(1rem,3vw,2.2rem);right:max(1rem,calc(50vw - 41rem));transform:rotate(3deg)}

/* Encadrés de l'accueil (RGE, aides) : bloc papier + bloc cobalt */
html.at-accueil main section[aria-labelledby=pro] > div{border:1px solid var(--at-charbon)!important;border-radius:0!important;background:var(--at-papier)!important;padding:clamp(1.4rem,1rem + 2vw,2.4rem)!important}
html.at-accueil main section[aria-labelledby=aides]{border:0!important;border-radius:0!important;background:var(--at-cobalt)!important;color:#fff!important;padding:clamp(1.6rem,1rem + 2.5vw,3rem)!important}
html.at-accueil main section[aria-labelledby=aides] h2,html.at-accueil main section[aria-labelledby=aides] p{color:#fff!important}
html.at-accueil main section[aria-labelledby=aides] h2#aides::before{color:#fff}
html.at-accueil main section[aria-labelledby=aides] .btn-ligne{border-color:#fff!important;color:#fff!important}
html.at-accueil main section[aria-labelledby=aides] .btn-ligne:hover{background:#fff!important;color:var(--at-cobalt-fonce)!important}
html.at-accueil main section[aria-labelledby=aides] a.underline{color:#fff!important}
html.at-accueil main section[aria-labelledby=pro] p.font-titre,html.at-accueil main section[aria-labelledby=aides] p.font-titre{font-family:var(--at-texte)!important;font-weight:800!important}

/* Crédits photos */
.at-credits{max-width:76rem;margin:4rem auto 0;padding:1rem 1rem 0;border-top:1px solid var(--at-trait-fort);font-size:.78rem;line-height:1.6;color:#4A443D}
.at-credits a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.at-credits a:hover{color:var(--at-cobalt-fonce)}

/* ---------- Mobile ---------- */
@media (max-width:63.99rem){
  .at-collage{padding:2.2rem 0 4.5rem;margin:0 .25rem}
  .at-arche{width:100%;aspect-ratio:4/4.4;border-top-left-radius:46% 34%}
  .at-polaroid{width:44%;right:-.25rem;bottom:.5rem}
  .at-note-2,.at-fleche-2,.at-cote-v{display:none}
  .at-note-1{top:-.2rem;left:.5rem;font-size:1.2rem}
  .at-fleche-1{top:1.4rem;left:4.5rem;width:5rem;height:3rem}
  .at-plan{display:none}
  .at-echantillons{left:.5rem;bottom:.4rem}
  .at-sticker{left:auto;right:48%;bottom:-.6rem;font-size:1.4rem}
  .at-immersif{height:clamp(20rem,95vw,30rem)}
  .at-immersif figcaption{position:relative;left:auto;bottom:auto;max-width:none;margin:-3rem 1rem 0;}
  .at-immersif{overflow:visible;height:auto}
  .at-immersif img{height:clamp(18rem,80vw,28rem)}
}
@media (max-width:30rem){
  html.atelier .at-h1{font-size:clamp(2.6rem,12vw,4rem)}
  .at-chiffres li{min-width:6rem}
  .at-chiffres strong{font-size:2.1rem}
}

/* ---------- Animations ---------- */
@keyframes at-trace{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes at-pose{from{opacity:0;transform:translateY(14px) rotate(var(--r,0deg))}to{opacity:1;transform:translateY(0) rotate(var(--r,0deg))}}
html.js .at-hero .at-arche{animation:at-apparait .9s var(--at-ease) both}
html.js .at-hero .at-polaroid{--r:4deg;animation:at-pose .8s .35s var(--at-ease) both}
html.js .at-hero .at-echantillons{animation:at-apparait .8s .5s var(--at-ease) both}
html.js .at-hero .at-sticker{--r:-7deg;animation:at-pose .6s .7s var(--at-ease) both}
@keyframes at-apparait{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
html.atelier [data-reveal]{transition:opacity .6s var(--at-ease),transform .6s var(--at-ease)!important}

@media (prefers-reduced-motion:reduce){
  html.atelier *,html.atelier *::before,html.atelier *::after{animation:none!important;transition-duration:.01ms!important}
  html.js .at-trace-svg path,html.js .at-trace-svg line,html.js .at-trace-svg rect{stroke-dashoffset:0!important}
  html.atelier.js .ligne-cote svg,html.js .at-cote-v{transform:none!important}
  .at-collage:hover .at-arche img,.at-trio a:hover img,.at-immersif:hover img{transform:none}
}

/* ==========================================================================
   PAGES INTÉRIEURES : photos
   ========================================================================== */
/* A. En-tête sans estimateur : photo en arche dans la colonne de droite */
.at-pp{position:relative;margin:0;min-width:0;padding:1.6rem 0 2.6rem}
.at-pp .at-pp-cadre{position:relative;display:block;overflow:hidden;aspect-ratio:4/4.8;border-top-left-radius:50% 36%;background:var(--at-sable)}
.at-pp img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.2s var(--at-ease)}
.at-pp:hover img{transform:scale(1.035)}
.at-pp .at-tag{top:38%;left:-.6rem;transform:rotate(-4deg)}
.at-pp .at-note{top:-.2rem;right:.2rem;left:auto;transform:rotate(-5deg);max-width:12em;text-align:right;font-size:1.25rem}
.at-pp .at-ech{position:absolute;z-index:4;left:1rem;bottom:.6rem;width:4.6rem;transform:rotate(-7deg)}
.at-pp .at-cote-h{position:absolute;left:30%;right:0;bottom:1rem;height:0;border-top:1px solid var(--at-charbon);transform-origin:left}
.at-pp .at-cote-h::before,.at-pp .at-cote-h::after{content:"";position:absolute;top:-6px;height:11px;border-left:1px solid var(--at-charbon)}
.at-pp .at-cote-h::before{left:0}.at-pp .at-cote-h::after{right:0}
.at-pp .at-cote-h span{position:absolute;left:50%;top:-.7rem;transform:translateX(-50%);font-size:.72rem;font-weight:600;background:var(--at-creme);padding:0 .35rem}
html.js .at-cote-h{transform:scaleX(0)}
html.js .at-cote-h.at-trace{transform:scaleX(1);transition:transform 1.2s var(--at-ease) .3s}
@media (max-width:63.99rem){
  .at-pp{max-width:34rem;padding-top:2rem}
  .at-pp .at-pp-cadre{aspect-ratio:4/3;border-top-left-radius:42% 46%}
}

/* B. En-tête avec estimateur : bandeau photo pleine largeur sous l'en-tête */
.at-bp{
  position:relative;margin:1.5rem 0 2.5rem;width:100vw;left:50%;transform:translateX(-50%);
}
.at-bp .at-bp-cadre{display:block;overflow:hidden;height:clamp(15rem,34vw,28rem);background:var(--at-sable);border-top:1px solid var(--at-charbon);border-bottom:1px solid var(--at-charbon)}
.at-bp img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.6s var(--at-ease)}
.at-bp img[src*="parquet-bibliotheque"]{object-position:50% 88%}
.at-bp img[src*="douche-italienne"]{object-position:50% 80%}
.at-bp img[src*="grille-fonte"]{object-position:50% 40%}
.at-bp:hover img{transform:scale(1.025)}
.at-bp-int{position:absolute;inset:0;max-width:76rem;margin:0 auto;padding:0 1rem;pointer-events:none}
.at-bp .at-tag{top:1.2rem;left:1rem;transform:rotate(-3deg)}
.at-bp figcaption{
  position:absolute;right:1rem;bottom:-1.4rem;max-width:min(24rem,calc(100% - 2rem));pointer-events:auto;
  background:var(--at-creme);border:1px solid var(--at-charbon);padding:.7rem 1rem .8rem;
  font-family:var(--at-main);font-size:1.3rem;line-height:1.1;color:var(--at-encre);transform:rotate(-1.2deg);
}
.at-bp .at-ech{position:absolute;z-index:4;right:clamp(14rem,10rem + 14vw,27rem);bottom:-1.8rem;width:clamp(3.6rem,2.6rem + 3vw,5.4rem);transform:rotate(6deg)}
.at-bp .at-fleche{position:absolute;right:clamp(8rem,6rem + 6vw,14rem);top:1.2rem;width:5.5rem;height:3.4rem;color:var(--at-orange);overflow:visible}
.at-bp .at-fleche path{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:40rem){
  .at-bp .at-ech,.at-bp .at-fleche{display:none}
  .at-bp figcaption{font-size:1.1rem;bottom:-1.2rem}
  .at-bp{margin-bottom:2.8rem}
}
.at-ech-terre{background-image:url(img/mat-tomettes-700.webp)}
.at-ech-bois{background-image:url(img/mat-chene-700.webp);aspect-ratio:.62}
.at-ech-carreau{background-image:url(img/mat-ciment-700.webp)}
@media (prefers-reduced-motion:reduce){
  html.js .at-cote-h{transform:none!important}
  .at-pp:hover img,.at-bp:hover img{transform:none}
}

/* ==========================================================================
   Responsive : mobile, tablette, laptop, grand écran
   ========================================================================== */

/* ---------- Grand écran : tout grandit avec l'écran (rem), conteneur compris ---------- */
@media (min-width:96rem){html.atelier{font-size:106.25%}}
@media (min-width:118rem){html.atelier{font-size:112.5%}}

/* ---------- Lisibilité : plus de chiffres en police condensée dans le texte courant ---------- */
html.atelier .prose-rm strong.num,html.atelier p strong.num,html.atelier li strong.num{font-family:var(--at-texte)}

/* ---------- Petits textes : plancher à 12 px ---------- */
html.atelier .at-credits,html.atelier .at-credits a{font-size:max(.78rem,12px)!important}
html.atelier .kicker,html.atelier .surtitre,html.atelier .col-titre,html.atelier footer .titre,html.atelier nav.col .titre{font-size:max(.72rem,12px)!important}

/* ---------- Cibles tactiles ---------- */
html.atelier .astuce .suivante,html.atelier .lien-btn{min-height:44px}
html.atelier .rm-choix label,html.atelier label.rm-choix{min-height:44px}
html.atelier input[type=radio],html.atelier input[type=checkbox]{width:1.15rem;height:1.15rem;accent-color:var(--at-charbon)}
html.atelier input[type=search],html.atelier input[type=text],html.atelier input[type=email],html.atelier input[type=number],html.atelier select,html.atelier textarea{font-size:max(1rem,16px)}
@media (max-width:63.99rem){
  html.atelier footer li a,html.atelier footer .liens a{display:inline-block;padding-block:.4rem}
  html.atelier .ariane a{display:inline-block;padding-block:.35rem}
  html.atelier nav.bloc a.tout{display:inline-flex;align-items:center;min-height:44px}
}

/* ---------- Tableaux → fiches empilées sur mobile ---------- */
@media (max-width:39.99rem){
  html.atelier .table-rm{max-height:none!important;overflow:visible!important;border:0!important;background:none!important}
  html.atelier table.at-tcartes{display:block!important;min-width:0!important;width:100%!important;border:0!important;background:none!important;overflow:visible!important;font-size:.95rem}
  html.atelier table.at-tcartes thead{display:block!important;position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;margin:-1px;padding:0;border:0}
  html.atelier table.at-tcartes tbody{display:grid;gap:.75rem}
  html.atelier table.at-tcartes tr{display:block;border:1px solid var(--at-charbon);background:var(--at-papier)}
  html.atelier table.at-tcartes td,html.atelier table.at-tcartes tbody th{
    display:grid;grid-template-columns:minmax(0,46%) minmax(0,1fr);gap:.9rem;align-items:baseline;
    padding:.6rem .9rem!important;border-top:1px solid var(--at-trait)!important;background:transparent!important;
    text-align:left;min-width:0!important;white-space:normal!important;font-weight:400!important;color:var(--at-encre)!important;
  }
  html.atelier table.at-tcartes td::before,html.atelier table.at-tcartes tbody th::before{
    content:attr(data-label);font-size:.74rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--at-gris);line-height:1.3;
  }
  html.atelier table.at-tcartes tr > :first-child{
    display:block;border-top:0!important;background:var(--at-sable)!important;
    font-weight:800!important;color:var(--at-charbon)!important;font-size:1rem;line-height:1.35;
  }
  html.atelier table.at-tcartes tr > :first-child::before{content:none}
}

/* ---------- Formulaires des outils : champs alignés, pleine largeur sur mobile ---------- */
html.atelier .rm-champ input,html.atelier .rm-champ select{min-height:46px}
@media (max-width:39.99rem){
  html.atelier .rm-form button[type=submit],html.atelier .rm-bouton{width:100%}
}

/* ---------- Tablette (48–64 rem) : la colonne latérale passe en grille sous l'article ---------- */
@media (min-width:48rem) and (max-width:63.99rem){
  html.atelier aside.colonne{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;align-items:start}
  html.atelier aside.colonne > *{margin:0!important}
}

/* ---------- Accueil : le fil sans flux d'actualités occupe toute la largeur ---------- */
html.atelier .grid:has(> .actus[hidden]){grid-template-columns:minmax(0,1fr)!important}
@media (min-width:48rem){
  html.atelier .grid:has(> .actus[hidden]) > .grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
}
/* Tablette et plus : les en-têtes de tableau reviennent à la ligne au lieu d'élargir le tableau */
@media (min-width:40rem){
  html.atelier .prose-rm thead th,html.atelier .table-rm thead th{white-space:normal!important;vertical-align:bottom}
  html.atelier .table-rm table{min-width:0!important}
}
html.atelier .sec-titre,html.atelier .at-badge{font-size:max(.72rem,12px)!important}
html.atelier .sommaire-mobile li a,html.atelier .sommaire li a{display:inline-block;padding-block:.3rem}
@media (max-width:63.99rem){html.atelier .sommaire-mobile li a{padding-block:.5rem}}

/* Bandeau final : boutons jamais coupés en deux lignes, ils passent dessous si la place manque */
html.atelier .pied .b-actions{flex-wrap:wrap;flex:none;max-width:100%}
html.atelier .pied .b-actions .b{white-space:nowrap}
@media (max-width:39.99rem){html.atelier .pied .b-actions,html.atelier .pied .b-actions .b{width:100%}}

/* Accueil, laptop étroit (64–80 rem) : la colonne de texte est courte, le champ et le bouton s'empilent */
@media (min-width:64rem) and (max-width:84.99rem){
  .at-scan-row{flex-direction:column!important;gap:.5rem!important}
  html.atelier .at-scan input{border-right:1.5px solid var(--at-charbon)!important}
  html.atelier .at-scan .at-btn{align-self:flex-start}
}

/* Formulaires des outils : un champ ne s'étire pas à la hauteur de son voisin qui a une aide */
html.atelier .rm-champ{align-content:start}
html.atelier .rm-champ input,html.atelier .rm-champ select{height:auto;align-self:start}
.at-bp img[src*="sdb-bois"]{object-position:85% 50%}
.at-bp img[src*="porte-bleue"],.at-bp img[src*="brique-plante"]{object-position:50% 75%}
