/* ══════════════════════════════════════════════════════════
   Ortoli Travaux — feuille de style commune à toutes les pages
   Palette tirée des chantiers : bleu ardoise, bleu faïence,
   blanc plâtre, et le jaune du mètre ruban pour les actions.
══════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Instrument Sans';
    src: url('/fonts/instrument-sans.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --encre: #0d1b25;
    --ardoise: #15303f;
    --ardoise-clair: #1f4256;
    --platre: #f3f5f4;
    --blanc: #ffffff;
    --faience: #b6cfd6;
    --faience-clair: #e2ecee;
    --jaune: #ffc531;
    --jaune-fonce: #e9ac0c;
    --texte: #0d1b25;
    --texte-doux: #4a5b66;       /* 6,6:1 sur plâtre */
    --clair-doux: #a9bcc5;       /* texte secondaire sur fond sombre, 8:1 */
    --trait: rgba(13, 27, 37, 0.12);
    --trait-clair: rgba(255, 255, 255, 0.14);

    --titre: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --corps: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --doux: cubic-bezier(0.22, 1, 0.36, 1);
    --rayon: 18px;
    --rayon-petit: 10px;
    --gouttiere: clamp(1.25rem, 4vw, 3.5rem);
    --largeur: 1240px;
    --entete: 76px;
    --barre-appel: 0px;

    --carreau: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88' fill='none' stroke='%23ffffff' stroke-width='1.1'%3E%3Ccircle cx='0' cy='0' r='28'/%3E%3Ccircle cx='88' cy='0' r='28'/%3E%3Ccircle cx='0' cy='88' r='28'/%3E%3Ccircle cx='88' cy='88' r='28'/%3E%3Cpath d='M44 12 76 44 44 76 12 44Z'/%3E%3Ccircle cx='44' cy='44' r='10'/%3E%3C/svg%3E");
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--entete) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--corps);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--texte);
    background: var(--platre);
    overflow-x: clip;
    padding-bottom: var(--barre-appel);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul[class], ol[class], ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3 {
    font-family: var(--titre);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }
p { text-wrap: pretty; }

:focus-visible {
    outline: 3px solid var(--jaune);
    outline-offset: 3px;
    border-radius: 4px;
}
.sombre :focus-visible, .entete :focus-visible { outline-color: var(--jaune); }
.clair :focus-visible { outline-color: var(--ardoise); }

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.evitement {
    position: absolute; left: 1rem; top: -100px; z-index: 300;
    background: var(--jaune); color: var(--encre);
    padding: 0.75rem 1.1rem; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.evitement:focus { top: 1rem; }

.cadre {
    width: 100%;
    max-width: calc(var(--largeur) + 2 * var(--gouttiere));
    margin-inline: auto;
    padding-inline: var(--gouttiere);
}

.bloc { padding-block: clamp(4.5rem, 10vw, 8.5rem); position: relative; }
.sombre { background: var(--encre); color: var(--platre); }
.teinte { background: var(--faience-clair); }

.chapeau { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.chapeau p { margin-top: 1.1rem; font-size: 1.15rem; color: var(--texte-doux); max-width: 38rem; }
.sombre .chapeau p { color: var(--clair-doux); }

/* ───────── Boutons ───────── */
.btn {
    --fond: var(--jaune);
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    min-height: 54px; padding: 0.85rem 1.6rem;
    border: 0; border-radius: 999px;
    background: var(--fond); color: var(--encre);
    font-family: var(--corps); font-weight: 650; font-size: 1rem; line-height: 1.2;
    text-decoration: none; white-space: nowrap;
    overflow: hidden; isolation: isolate;
    transition: transform 0.5s var(--doux), box-shadow 0.5s var(--doux);
}
.btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--blanc);
    transform: translateY(101%);
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
    transition: transform 0.6s var(--doux), border-radius 0.6s var(--doux);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); border-radius: 0; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(255, 197, 49, 0.55); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-contour {
    --fond: transparent;
    color: var(--platre);
    box-shadow: inset 0 0 0 1.5px var(--trait-clair);
}
.btn-contour:hover { color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--blanc); }
.clair .btn-contour, .btn-contour.sur-clair { color: var(--encre); box-shadow: inset 0 0 0 1.5px rgba(13, 27, 37, 0.3); }
.btn-contour.sur-clair::before { background: var(--encre); }
.btn-contour.sur-clair:hover { color: var(--platre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.btn-sombre { --fond: var(--encre); color: var(--platre); }
.btn-sombre::before { background: var(--jaune); }
.btn-sombre:hover { color: var(--encre); box-shadow: 0 14px 30px -14px rgba(13, 27, 37, 0.6); }

.lien-fleche {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-weight: 600; text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
    padding-bottom: 3px;
    transition: background-size 0.5s var(--doux);
}
.lien-fleche:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.lien-fleche svg { width: 1em; height: 1em; transition: transform 0.5s var(--doux); }
.lien-fleche:hover svg { transform: translate(3px, -3px); }

/* ───────── En-tête ───────── */
.progression {
    position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 210;
    background: var(--jaune);
    transform: scaleX(var(--avance, 0)); transform-origin: 0 50%;
    pointer-events: none;
}

.entete {
    position: fixed; inset: 0 0 auto 0; z-index: 200;
    height: var(--entete);
    color: var(--platre);
    transition: transform 0.6s var(--doux), background-color 0.4s ease, box-shadow 0.4s ease;
}
.entete.pleine {
    background: rgba(13, 27, 37, 0.86);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 1px 0 var(--trait-clair);
}
.entete.cachee { transform: translateY(-100%); }
.entete .cadre { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.logo {
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-family: var(--titre); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em;
    text-decoration: none; margin-right: auto;
}
.logo svg { width: 38px; height: 38px; flex: none; }
.logo .anneau { transform-origin: 25px 32px; transition: transform 0.9s var(--doux); }
.logo:hover .anneau { transform: rotate(180deg); }

.menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.menu a {
    position: relative; text-decoration: none; font-size: 0.97rem; font-weight: 500;
    padding-block: 0.5rem;
}
.menu a:not(.btn)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 1.5px;
    background: var(--jaune); transform: scaleX(0); transform-origin: 100% 50%;
    transition: transform 0.5s var(--doux);
}
.menu a:not(.btn):hover::after, .menu a[aria-current]::after { transform: scaleX(1); transform-origin: 0 50%; }
.menu .btn { min-height: 44px; padding: 0.55rem 1.15rem; font-size: 0.95rem; }

.entete-tel {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-weight: 650; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.entete-tel svg { width: 18px; height: 18px; color: var(--jaune); }

.burger {
    display: none; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); position: relative;
}
.burger span[aria-hidden] {
    position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px;
    background: var(--platre); transition: transform 0.5s var(--doux), top 0.5s var(--doux);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ───────── Hero ───────── */
.hero {
    position: relative;
    background: var(--encre); color: var(--platre);
    padding-top: calc(var(--entete) + clamp(2rem, 6vw, 4.5rem));
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: -10% -5%;
    background-image: var(--carreau); background-size: 88px 88px;
    opacity: 0.11;
    -webkit-mask-image: radial-gradient(ellipse 70% 75% at 78% 45%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 75% at 78% 45%, #000 0%, transparent 72%);
    transform: translate3d(0, calc(var(--defile, 0) * 0.12px), 0);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
    right: -12vw; top: -18vw; border-radius: 50%;
    background: radial-gradient(circle, rgba(182, 207, 214, 0.2), transparent 62%);
    pointer-events: none;
}
.hero .cadre {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 5rem); align-items: center;
}

.repere {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.45rem 0.95rem 0.45rem 0.7rem; margin-bottom: 1.6rem;
    border-radius: 999px; background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px var(--trait-clair);
    font-size: 0.92rem; font-weight: 500; color: var(--faience);
}
.repere svg { width: 17px; height: 17px; color: var(--jaune); }

.hero h1 {
    font-size: clamp(2.55rem, 6.1vw, 5.1rem);
    font-weight: 650; line-height: 0.98; letter-spacing: -0.035em;
}
.hero h1 .ligne { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.hero h1 .ligne > span { display: block; }
.hero-texte {
    margin-top: 1.6rem; max-width: 34rem;
    font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--clair-doux);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }

.chiffres {
    display: flex; flex-wrap: wrap; gap: 1.5rem clamp(1.5rem, 4vw, 3.2rem);
    margin-top: clamp(2.5rem, 5vw, 3.8rem); padding-top: 1.7rem;
    border-top: 1px solid var(--trait-clair);
}
.chiffres dt {
    font-family: var(--titre); font-weight: 650; font-size: clamp(2rem, 3.4vw, 2.7rem);
    line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.chiffres dt small { font-size: 0.5em; font-weight: 500; color: var(--clair-doux); letter-spacing: 0; }
.chiffres dd { margin-top: 0.4rem; font-size: 0.93rem; color: var(--clair-doux); }
.chiffres div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.chiffres div { flex-direction: column; }

/* Comparateur avant / après */
.hero-visuel { position: relative; justify-self: end; width: min(100%, 460px); }
.comparateur {
    position: relative; aspect-ratio: 3 / 4; border-radius: var(--rayon); overflow: hidden;
    background: var(--ardoise); isolation: isolate;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--trait-clair);
    --pos: 50%;
}
.comparateur img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparateur .avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.comparateur input[type="range"] {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 3;
    opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.comparateur .poignee {
    position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; z-index: 2;
    background: var(--blanc); transform: translateX(-1px); pointer-events: none;
}
.comparateur .poignee::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: var(--jaune) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1b25' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 24px no-repeat;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s var(--doux);
}
.comparateur:hover .poignee::after { transform: translate(-50%, -50%) scale(1.1); }
.comparateur input:focus-visible ~ .poignee::after { outline: 3px solid var(--blanc); outline-offset: 3px; }
.etiquette {
    position: absolute; top: 1rem; z-index: 2; pointer-events: none;
    padding: 0.3rem 0.8rem; border-radius: 999px;
    background: rgba(13, 27, 37, 0.72); color: var(--blanc);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-size: 0.82rem; font-weight: 600;
}
.etiquette.gauche { left: 1rem; }
.etiquette.droite { right: 1rem; background: var(--jaune); color: var(--encre); }
.hero-visuel figcaption { margin-top: 0.9rem; font-size: 0.9rem; color: var(--clair-doux); text-align: center; }

.pastille {
    position: absolute; left: -1.6rem; bottom: 4.6rem; z-index: 4;
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.8rem 1.1rem 0.8rem 0.85rem; border-radius: 14px;
    background: var(--blanc); color: var(--encre);
    box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.55);
    font-size: 0.9rem; line-height: 1.25;
    animation: flotte 6s ease-in-out infinite;
}
.pastille strong { display: block; font-family: var(--titre); font-size: 1.02rem; }
.pastille svg { width: 34px; height: 34px; flex: none; }
@keyframes flotte { 50% { transform: translateY(-9px); } }

/* ───────── Bandeau défilant des communes ───────── */
.bandeau {
    background: var(--jaune); color: var(--encre);
    overflow: hidden; padding-block: 1.05rem;
    font-family: var(--titre); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.4rem); letter-spacing: -0.01em;
}
.bandeau-piste { display: flex; width: max-content; animation: defile 48s linear infinite; }
.bandeau:hover .bandeau-piste { animation-play-state: paused; }
.bandeau ul { display: flex; flex: none; }
.bandeau li { display: flex; align-items: center; white-space: nowrap; }
.bandeau li::after {
    content: ''; width: 0.62em; height: 0.62em; margin-inline: 1.3em;
    background: var(--encre); transform: rotate(45deg); border-radius: 1px;
}
@keyframes defile { to { transform: translateX(-50%); } }

/* ───────── Métiers ───────── */
.metiers { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); column-gap: clamp(2rem, 5vw, 5rem); }
.metier { grid-column: 1; border-top: 1px solid var(--trait); }
.metier:last-of-type { border-bottom: 1px solid var(--trait); }
.metier-titre {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.35rem 0; background: none; border: 0; text-align: left;
    font-family: var(--titre); font-weight: 600; font-size: clamp(1.55rem, 3.1vw, 2.5rem);
    line-height: 1.05; letter-spacing: -0.03em;
    color: rgba(13, 27, 37, 0.42);
    transition: color 0.5s var(--doux), padding-left 0.6s var(--doux);
}
.metier-titre h3 { font: inherit; letter-spacing: inherit; }
.metier-titre .plus {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: inset 0 0 0 1.5px var(--trait);
    transition: background-color 0.5s var(--doux), transform 0.6s var(--doux), box-shadow 0.5s;
}
.metier-titre .plus svg { width: 16px; height: 16px; }
.metier-titre:hover { color: var(--encre); }
.metier.actif .metier-titre { color: var(--encre); padding-left: 0.4rem; }
.metier.actif .plus { background: var(--jaune); box-shadow: none; transform: rotate(45deg); }
.metier-corps { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--doux); }
.metier.actif .metier-corps { grid-template-rows: 1fr; }
.metier-corps > div { overflow: hidden; }
.metier-corps p { max-width: 34rem; color: var(--texte-doux); padding-left: 0.4rem; }
.metier-corps ul {
    display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; padding: 0 0 1.6rem 0.4rem;
}
.metier-corps li {
    padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--blanc);
    box-shadow: inset 0 0 0 1px var(--trait); font-size: 0.88rem; font-weight: 500;
}
.metier figure {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: calc((100% - clamp(2rem, 5vw, 5rem)) * 0.82 / 1.82);
    border-radius: var(--rayon); overflow: hidden;
    clip-path: inset(100% 0 0 0 round var(--rayon));
    transition: clip-path 0.9s var(--doux);
    z-index: 0;
}
.metier figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--doux); }
.metier.actif figure { clip-path: inset(0 0 0 0 round var(--rayon)); z-index: 1; }
.metier.actif figure img { transform: scale(1); }

/* ───────── Méthode ───────── */
.etapes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); counter-reset: etape; }
.etapes::before, .etapes::after {
    content: ''; position: absolute; left: 0; right: 0; top: 27px; height: 2px;
    background: rgba(13, 27, 37, 0.14);
}
.etapes::after { background: var(--encre); transform: scaleX(var(--trace, 0)); transform-origin: 0 50%; }
.etape { position: relative; z-index: 1; counter-increment: etape; }
.etape::before {
    content: counter(etape);
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.5rem;
    border-radius: 50%; background: var(--faience-clair); color: var(--encre);
    box-shadow: inset 0 0 0 2px rgba(13, 27, 37, 0.2);
    font-family: var(--titre); font-weight: 700; font-size: 1.3rem;
    transition: background-color 0.6s var(--doux), box-shadow 0.6s var(--doux), transform 0.6s var(--doux);
}
.etape.atteinte::before { background: var(--jaune); box-shadow: inset 0 0 0 2px var(--encre); transform: scale(1.06); }
.etape h3 { margin-bottom: 0.6rem; }
.etape p { color: var(--texte-doux); font-size: 1rem; }

/* ───────── Réalisations ───────── */
.pose {
    display: grid; grid-auto-flow: column; grid-auto-columns: 64px; height: 64px; overflow: hidden;
    position: absolute; inset: 0 0 auto 0; justify-content: center;
}
.pose i {
    display: block; background: var(--platre) var(--carreau-plein) center / cover;
    transform: perspective(400px) rotateX(-92deg); transform-origin: 50% 0; opacity: 0;
}
.pose.vu i { animation: poser 0.9s var(--doux) forwards; animation-delay: calc(var(--n) * 45ms); }
@keyframes poser { to { transform: perspective(400px) rotateX(0); opacity: 1; } }
:root {
    --carreau-plein: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23f3f5f4'/%3E%3Cg fill='%230d1b25'%3E%3Ccircle cx='0' cy='0' r='20'/%3E%3Ccircle cx='64' cy='0' r='20'/%3E%3Ccircle cx='0' cy='64' r='20'/%3E%3Ccircle cx='64' cy='64' r='20'/%3E%3Cpath d='M32 9 55 32 32 55 9 32Z'/%3E%3C/g%3E%3Cg fill='%23f3f5f4'%3E%3Ccircle cx='0' cy='0' r='11'/%3E%3Ccircle cx='64' cy='0' r='11'/%3E%3Ccircle cx='0' cy='64' r='11'/%3E%3Ccircle cx='64' cy='64' r='11'/%3E%3Cpath d='M32 19 45 32 32 45 19 32Z'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='5' fill='%23b6cfd6'/%3E%3Cpath d='M0 0h64v64H0z' fill='none' stroke='%230d1b25' stroke-opacity='.25'/%3E%3C/svg%3E");
}
.realisations { padding-top: calc(clamp(4.5rem, 10vw, 8.5rem) + 64px); overflow: hidden; }
.realisations-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.realisations-tete .chapeau { margin-bottom: 0; }
.fleches { display: flex; gap: 0.6rem; }
.fleche {
    width: 54px; height: 54px; border-radius: 50%; border: 0; display: grid; place-items: center;
    background: transparent; color: var(--platre); box-shadow: inset 0 0 0 1.5px var(--trait-clair);
    transition: background-color 0.4s var(--doux), color 0.4s var(--doux), transform 0.4s var(--doux), opacity 0.3s;
}
.fleche svg { width: 20px; height: 20px; }
.fleche:hover:not(:disabled) { background: var(--jaune); color: var(--encre); box-shadow: none; transform: scale(1.06); }
.fleche:disabled { opacity: 0.3; cursor: default; }

.rail {
    display: flex; gap: clamp(0.8rem, 1.6vw, 1.3rem);
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    padding-inline: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2));
    scroll-padding-inline: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2));
    cursor: grab; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail.glisse { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail.glisse .photo { pointer-events: none; }
.photo {
    position: relative; flex: none; scroll-snap-align: start;
    height: clamp(320px, 52vh, 520px); aspect-ratio: 3 / 4;
    padding: 0; border: 0; border-radius: var(--rayon); overflow: hidden; background: var(--ardoise);
}
.photo.large { aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--doux); -webkit-user-drag: none; user-select: none; }
.photo:hover img, .photo:focus-visible img { transform: scale(1.06); }
.photo span {
    position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.9rem;
    padding: 0.6rem 0.9rem; border-radius: 10px; text-align: left;
    background: rgba(13, 27, 37, 0.78); color: var(--blanc); font-size: 0.9rem; font-weight: 500; line-height: 1.3;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transform: translateY(calc(100% + 1rem)); transition: transform 0.6s var(--doux);
}
.photo:hover span, .photo:focus-visible span { transform: none; }

.diptyque { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(0.8rem, 1.6vw, 1.3rem); margin-top: clamp(3rem, 6vw, 5rem); }
.diptyque figure { position: relative; transition: background-color 0.6s; border-radius: var(--rayon); overflow: hidden; height: clamp(260px, 42vw, 520px); background: var(--ardoise); }
.diptyque img { width: 100%; height: 100%; object-fit: cover; }
.diptyque-legende { margin-top: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; color: var(--clair-doux); }
.diptyque-legende p { max-width: 36rem; }

/* ───────── Garanties & avis ───────── */
.confiance { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.note {
    position: sticky; top: calc(var(--entete) + 2rem);
    padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: var(--rayon);
    background: var(--encre); color: var(--platre); overflow: hidden;
}
.note::before {
    content: ''; position: absolute; inset: 0; background-image: var(--carreau); background-size: 66px;
    opacity: 0.07; -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%);
}
.note > * { position: relative; }
.note-valeur { font-family: var(--titre); font-weight: 650; font-size: clamp(4rem, 8vw, 6.2rem); line-height: 0.9; letter-spacing: -0.04em; }
.note-valeur small { font-size: 0.32em; color: var(--clair-doux); letter-spacing: 0; font-weight: 500; }
.etoiles { position: relative; display: inline-block; margin-top: 1rem; width: 150px; height: 28px; --plein: 92%; }
.etoiles::before, .etoiles::after {
    content: ''; position: absolute; inset: 0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M15 1.5l4 8.4 9.2 1.2-6.8 6.3 1.8 9.1L15 22l-8.2 4.5 1.8-9.1L1.8 11.1 11 9.9z'/%3E%3C/svg%3E") 0 0 / 30px 28px repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M15 1.5l4 8.4 9.2 1.2-6.8 6.3 1.8 9.1L15 22l-8.2 4.5 1.8-9.1L1.8 11.1 11 9.9z'/%3E%3C/svg%3E") 0 0 / 30px 28px repeat-x;
    background: rgba(255, 255, 255, 0.2);
}
.etoiles::after { background: var(--jaune); width: var(--plein); }
.note p { margin: 1rem 0 1.6rem; color: var(--clair-doux); }
.note .petit { margin: 1.2rem 0 0; font-size: 0.9rem; }

.garanties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--trait); }
.garantie { padding: 1.8rem 1.5rem 1.8rem 0; border-bottom: 1px solid var(--trait); }
.garantie:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--trait); }
.garantie svg { width: 34px; height: 34px; margin-bottom: 1rem; color: var(--ardoise); }
.garantie h3 { margin-bottom: 0.5rem; }
.garantie p { color: var(--texte-doux); font-size: 1rem; }
.garantie a { font-weight: 600; }

/* ───────── Zone ───────── */
.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.secteur + .secteur { margin-top: 1.8rem; }
.secteur h3 { font-size: 1.05rem; font-family: var(--corps); font-weight: 650; letter-spacing: 0; margin-bottom: 0.8rem; }
.communes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.communes li, .communes a {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.42rem 0.95rem; border-radius: 999px;
    background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait);
    font-size: 0.95rem; font-weight: 500; text-decoration: none;
    transition: background-color 0.4s var(--doux), color 0.4s var(--doux), transform 0.4s var(--doux);
}
.communes li:has(a) { padding: 0; background: none; box-shadow: none; }
.communes a { background: var(--encre); color: var(--platre); box-shadow: none; }
.communes a:hover { background: var(--jaune); color: var(--encre); transform: translateY(-2px); }
.communes a svg { width: 0.9em; height: 0.9em; }
.zone-note { margin-top: 1.8rem; color: var(--texte-doux); font-size: 0.98rem; }

.carte { position: sticky; top: calc(var(--entete) + 2rem); border-radius: var(--rayon); overflow: hidden; background: var(--ardoise); aspect-ratio: 5 / 4; }
.carte iframe { width: 100%; height: 100%; border: 0; display: block; }
.carte-bouton {
    position: absolute; inset: 0; width: 100%; border: 0; padding: 2rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; text-align: center;
    background: var(--ardoise); color: var(--platre); overflow: hidden;
}
.carte-bouton::before {
    content: ''; position: absolute; inset: 0; background-image: var(--carreau); background-size: 72px; opacity: 0.09;
    transition: transform 1.2s var(--doux), opacity 0.6s;
}
.carte-bouton:hover::before { transform: scale(1.08); opacity: 0.16; }
.carte-bouton > * { position: relative; }
.carte-bouton .epingle {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: var(--jaune); color: var(--encre); animation: flotte 4s ease-in-out infinite;
}
.carte-bouton .epingle svg { width: 28px; height: 28px; }
.carte-bouton strong { font-family: var(--titre); font-size: 1.35rem; letter-spacing: -0.02em; }
.carte-bouton small { max-width: 22rem; color: var(--clair-doux); font-size: 0.88rem; }

/* ───────── FAQ ───────── */
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq .chapeau { position: sticky; top: calc(var(--entete) + 2rem); margin-bottom: 0; }
.faq .chapeau .btn { margin-top: 1.8rem; }
.questions { border-top: 1px solid var(--trait); interpolate-size: allow-keywords; }
.question { border-bottom: 1px solid var(--trait); }
.question summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
    padding: 1.4rem 0; cursor: pointer; list-style: none;
    font-family: var(--titre); font-weight: 600; font-size: clamp(1.12rem, 1.8vw, 1.32rem); line-height: 1.25; letter-spacing: -0.015em;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
    content: ''; flex: none; width: 38px; height: 38px; border-radius: 50%;
    background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230d1b25' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 2v12M2 8h12'/%3E%3C/svg%3E") center / 15px no-repeat;
    box-shadow: inset 0 0 0 1px var(--trait);
    transition: transform 0.6s var(--doux), background-color 0.5s var(--doux);
}
.question[open] summary::after { transform: rotate(45deg); background-color: var(--jaune); }
.question::details-content { block-size: 0; overflow: hidden; transition: block-size 0.6s var(--doux), content-visibility 0.6s allow-discrete; }
.question[open]::details-content { block-size: auto; }
.reponse { padding: 0 3.5rem 1.6rem 0; color: var(--texte-doux); max-width: 44rem; }
.reponse a { font-weight: 600; color: var(--encre); }

/* ───────── Contact ───────── */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact::before { content: none; }
.sombre.motif::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: var(--carreau); background-size: 88px; opacity: 0.06;
    -webkit-mask-image: linear-gradient(120deg, #000, transparent 55%); mask-image: linear-gradient(120deg, #000, transparent 55%);
}
.contact-infos { position: sticky; top: calc(var(--entete) + 2rem); }
.contact-infos h2 + p { margin-top: 1.1rem; color: var(--clair-doux); font-size: 1.15rem; max-width: 30rem; }
.coordonnees { margin-top: 2.4rem; display: grid; gap: 0; border-top: 1px solid var(--trait-clair); }
.coordonnees li { display: flex; align-items: center; gap: 1.1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--trait-clair); }
.coordonnees .ico { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--jaune); }
.coordonnees .ico svg { width: 20px; height: 20px; }
.coordonnees a, .coordonnees b { display: block; font-family: var(--titre); font-weight: 600; font-size: 1.18rem; text-decoration: none; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.coordonnees a:hover { color: var(--jaune); }
.coordonnees small { color: var(--clair-doux); font-size: 0.9rem; }

.formulaire {
    position: relative; padding: clamp(1.5rem, 3.5vw, 2.8rem); border-radius: calc(var(--rayon) + 4px);
    background: var(--blanc); color: var(--encre);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.champ { margin-bottom: 1.1rem; }
.champ label, .champ .libelle { display: block; margin-bottom: 0.4rem; font-size: 0.92rem; font-weight: 600; }
.champ input, .champ select, .champ textarea {
    width: 100%; min-height: 52px; padding: 0.8rem 1rem;
    border: 1.5px solid rgba(13, 27, 37, 0.16); border-radius: var(--rayon-petit);
    background: var(--platre); color: var(--encre); font: inherit; font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.champ textarea { min-height: 130px; resize: vertical; }
.champ select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230d1b25' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 14px; }
.champ input::placeholder, .champ textarea::placeholder { color: #7a8891; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
    outline: none; border-color: var(--encre); background: var(--blanc); box-shadow: 0 0 0 4px rgba(255, 197, 49, 0.45);
}
.depot {
    width: 100%; padding: 1.4rem 1rem; border: 1.5px dashed rgba(13, 27, 37, 0.3); border-radius: var(--rayon-petit);
    background: var(--platre); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--doux);
}
.depot:hover, .depot.survol { border-color: var(--encre); background: var(--faience-clair); }
.depot.survol { transform: scale(1.01); }
.depot svg { width: 30px; height: 30px; color: var(--ardoise); }
.depot b { font-size: 0.95rem; }
.depot small { color: var(--texte-doux); font-size: 0.85rem; }
.apercus { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.7rem; }
.apercus:empty { display: none; }
.vignette { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; animation: apparait 0.5s var(--doux); }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette button {
    position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border: 0; border-radius: 50%;
    background: rgba(13, 27, 37, 0.85); color: var(--blanc); font-size: 0.75rem; line-height: 1; display: grid; place-items: center;
}
@keyframes apparait { from { opacity: 0; transform: scale(0.8); } }

.accord { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.3rem 0; font-size: 0.92rem; color: var(--texte-doux); }
.accord input { flex: none; width: 22px; height: 22px; margin-top: 0.1rem; accent-color: var(--encre); }
.accord a { color: var(--encre); font-weight: 600; }
.formulaire .btn { width: 100%; min-height: 58px; font-size: 1.05rem; }
.formulaire .btn[disabled] { opacity: 0.6; cursor: progress; }
.etat { display: none; margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--rayon-petit); font-weight: 500; font-size: 0.97rem; }
.etat.visible { display: block; animation: apparait 0.5s var(--doux); }
.etat.succes { background: #dff3e4; color: #12492a; }
.etat.erreur { background: #fde4e1; color: #7c1d13; }
.etat a { color: inherit; font-weight: 700; }
.mention { margin-top: 0.9rem; text-align: center; font-size: 0.88rem; color: var(--texte-doux); }

/* ───────── Pied de page ───────── */
.pied { background: var(--encre); color: var(--clair-doux); border-top: 1px solid var(--trait-clair); font-size: 0.96rem; }
.pied .cadre { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.pied .logo { color: var(--platre); margin-bottom: 1rem; }
.pied address { font-style: normal; line-height: 1.7; }
.pied address a { text-decoration: none; }
.pied h2 { font-family: var(--corps); font-size: 0.95rem; font-weight: 650; letter-spacing: 0; color: var(--platre); margin-bottom: 0.9rem; }
.pied li + li { margin-top: 0.45rem; }
.pied a { text-decoration: none; transition: color 0.3s; }
.pied a:hover { color: var(--jaune); }
.pied-bas { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--trait-clair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; font-size: 0.88rem; }
.pied-bas a { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── Barre d'appel mobile ───────── */
.barre-appel {
    display: none; position: fixed; inset: auto 0 0 0; z-index: 190;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    gap: 0.6rem; background: rgba(13, 27, 37, 0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 -1px 0 var(--trait-clair);
}
.barre-appel .btn { flex: 1; min-height: 50px; padding-inline: 0.8rem; }

/* ───────── Visionneuse ───────── */
.visionneuse {
    position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 4.5rem 1rem 5rem;
    background: rgba(8, 17, 24, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s 0.45s;
}
.visionneuse.ouverte { opacity: 1; visibility: visible; transition: opacity 0.45s ease; }
.visionneuse img { max-width: 100%; max-height: 100%; border-radius: 12px; transform: scale(0.94); transition: transform 0.6s var(--doux); }
.visionneuse.ouverte img { transform: none; }
.visionneuse button {
    position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.12); color: var(--blanc); transition: background-color 0.3s, color 0.3s;
}
.visionneuse button:hover { background: var(--jaune); color: var(--encre); }
.visionneuse button svg { width: 20px; height: 20px; }
.visionneuse .fermer { top: 1rem; right: 1rem; }
.visionneuse .prec { left: 1rem; bottom: 1rem; }
.visionneuse .suiv { right: 1rem; bottom: 1rem; }
.visionneuse p { position: absolute; left: 5rem; right: 5rem; bottom: 1.6rem; text-align: center; color: var(--clair-doux); font-size: 0.95rem; }
@media (min-width: 900px) {
    .visionneuse .prec, .visionneuse .suiv { top: 50%; bottom: auto; transform: translateY(-50%); }
    .visionneuse { padding-inline: 6rem; }
}

/* ───────── Pages locales ───────── */
.hero-local { padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-local .cadre { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.hero-local h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.fil { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.92rem; color: var(--clair-doux); }
.fil a { color: var(--faience); text-underline-offset: 3px; }
.fil li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.5; }
.hero-local figure { position: relative; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65); }
.hero-local figure img { width: 100%; height: 100%; object-fit: cover; }

.deux-colonnes { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.deux-colonnes > :first-child { position: sticky; top: calc(var(--entete) + 2rem); }
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--texte-doux); max-width: 42rem; }
.prose h3 { margin-top: 2.2rem; }
.prose strong { color: var(--encre); }

.prestations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--trait); border-left: 1px solid var(--trait); }
.prestation { padding: 1.8rem 1.6rem 2rem; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); background: var(--platre); transition: background-color 0.5s var(--doux); }
.teinte .prestation { background: transparent; }
.prestation:hover { background: var(--blanc); }
.prestation svg { width: 32px; height: 32px; margin-bottom: 1.1rem; color: var(--ardoise); transition: transform 0.6s var(--doux); }
.prestation:hover svg { transform: translateY(-4px) rotate(-6deg); }
.prestation h3 { margin-bottom: 0.5rem; }
.prestation p { color: var(--texte-doux); font-size: 1rem; }

.appel-final { text-align: center; }
.appel-final h2 { max-width: 20ch; margin-inline: auto; }
.appel-final p { margin: 1.2rem auto 2.2rem; max-width: 34rem; color: var(--clair-doux); font-size: 1.15rem; }
.appel-final .hero-actions { justify-content: center; margin-top: 0; }

/* ───────── Pages légales & 404 ───────── */
.page-simple { background: var(--encre); color: var(--platre); padding: calc(var(--entete) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-simple::before { content: ''; position: absolute; inset: 0; background-image: var(--carreau); background-size: 88px; opacity: 0.07; -webkit-mask-image: linear-gradient(240deg, #000, transparent 55%); mask-image: linear-gradient(240deg, #000, transparent 55%); }
.page-simple .cadre { position: relative; }
.page-simple h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.page-simple .maj { margin-top: 0.9rem; color: var(--clair-doux); }
.legal { max-width: 50rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 2.8rem 0 1rem; line-height: 1.15; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin-bottom: 1rem; color: var(--texte-doux); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal strong { color: var(--encre); }
.legal a { color: var(--encre); font-weight: 600; text-underline-offset: 3px; }
.legal dl { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); border-top: 1px solid var(--trait); margin-bottom: 1.2rem; }
.legal dt, .legal dd { padding: 0.8rem 0; border-bottom: 1px solid var(--trait); }
.legal dt { font-weight: 600; padding-right: 1rem; }
.legal dd { color: var(--texte-doux); }
.legal .tableau-scroll { overflow-x: auto; margin-bottom: 1.2rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.legal th, .legal td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.legal th { font-weight: 650; }
.legal td { color: var(--texte-doux); }
.legal .encadre { padding: 1.2rem 1.4rem; border-radius: var(--rayon-petit); background: var(--faience-clair); margin-bottom: 1.2rem; }

.perdu { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--encre); color: var(--platre); padding: 2rem var(--gouttiere); position: relative; overflow: hidden; }
.perdu::before { content: ''; position: absolute; inset: 0; background-image: var(--carreau); background-size: 88px; opacity: 0.07; -webkit-mask-image: radial-gradient(circle, #000, transparent 70%); mask-image: radial-gradient(circle, #000, transparent 70%); }
.perdu > div { position: relative; }
.perdu .code { font-family: var(--titre); font-weight: 700; font-size: clamp(7rem, 26vw, 15rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--jaune); }
.perdu h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-top: 1rem; }
.perdu p { margin: 1rem auto 2rem; max-width: 30rem; color: var(--clair-doux); }
.perdu .hero-actions { justify-content: center; }

/* ───────── Animations d'apparition ─────────
   Actives seulement si JavaScript tourne (classe .js sur <html>) :
   sans script, tout le contenu reste visible. */
.js .r { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--doux), transform 1.1s var(--doux); transition-delay: calc(var(--i, 0) * 90ms); }
.js .r.vu { opacity: 1; transform: none; }
.js .r-img:not(.vu) { background: transparent; }
.js .r-img img { clip-path: inset(0 0 100% 0); transform: scale(1.18); transition: clip-path 1.2s var(--doux), transform 1.6s var(--doux); transition-delay: calc(var(--i, 0) * 130ms); }
.js .r-img .etiquette { opacity: 0; transition: opacity 0.6s ease 0.7s; }
.js .r-img.vu img { clip-path: inset(0 0 0 0); transform: none; }
.js .r-img.vu .etiquette { opacity: 1; }

.js .hero h1 .ligne > span { transform: translateY(108%); }
.js .hero .entree { opacity: 0; transform: translateY(22px); }
.js .hero .hero-visuel, .js .hero-local figure { opacity: 0; transform: translateY(40px) scale(0.97); }
.js.pret .hero h1 .ligne > span { transform: none; transition: transform 1.15s var(--doux); transition-delay: calc(120ms + var(--i, 0) * 110ms); }
.js.pret .hero .entree { opacity: 1; transform: none; transition: opacity 0.9s var(--doux), transform 1s var(--doux); transition-delay: calc(480ms + var(--i, 0) * 100ms); }
.js.pret .hero .hero-visuel, .js.pret .hero-local figure { opacity: 1; transform: none; transition: opacity 1s var(--doux) 0.3s, transform 1.3s var(--doux) 0.3s; }

/* ───────── Adaptation aux écrans ───────── */
@media (max-width: 1080px) {
    .entete-tel span { display: none; }
    .entete-tel { width: 46px; height: 46px; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
    .pied-grille { grid-template-columns: 1fr 1fr; }
    .prestations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    :root { --entete: 66px; --barre-appel: calc(74px + env(safe-area-inset-bottom)); }
    .burger { display: block; }
    .menu {
        position: fixed; inset: var(--entete) 0 0 0; height: calc(100dvh - var(--entete));
        flex-direction: column; align-items: stretch; gap: 0; padding: 1.5rem var(--gouttiere) 7rem;
        background: var(--encre); overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity 0.4s ease, transform 0.6s var(--doux), visibility 0s 0.4s;
    }
    .menu.ouvert { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s ease, transform 0.6s var(--doux); }
    .menu a:not(.btn) { font-family: var(--titre); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; padding: 1rem 0; border-bottom: 1px solid var(--trait-clair); }
    .menu a:not(.btn)::after { content: none; }
    .menu .btn { margin-top: 1.8rem; min-height: 56px; font-size: 1.05rem; }
    .menu > * { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--doux), transform 0.7s var(--doux); }
    .menu.ouvert > * { opacity: 1; transform: none; transition-delay: calc(80ms + var(--i, 0) * 55ms); }
    .barre-appel { display: flex; }

    .hero .cadre, .hero-local .cadre { grid-template-columns: 1fr; }
    .hero-visuel { justify-self: center; width: min(100%, 420px); }
    .pastille { left: 0.8rem; bottom: 3.9rem; }
    .hero-local figure { aspect-ratio: 16 / 10; }

    .metiers { display: block; }
    .metier figure { position: static; width: auto; height: auto; aspect-ratio: 4 / 3; margin: 0 0 1.6rem; clip-path: none; }
    .metier figure img { transform: none; }
    .metier-corps ul { padding-bottom: 1.2rem; }

    .etapes { grid-template-columns: 1fr; gap: 0; }
    .etapes::before, .etapes::after { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
    .etapes::after { transform: scaleY(var(--trace, 0)); transform-origin: 50% 0; }
    .etape { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.2rem; padding-bottom: 2.2rem; }
    .etape:last-child { padding-bottom: 0; }
    .etape::before { grid-row: span 2; margin: 0; }
    .etape h3 { align-self: end; padding-top: 0.2rem; }

    .confiance, .zone, .faq, .contact, .deux-colonnes { grid-template-columns: 1fr; }
    .note, .carte, .faq .chapeau, .contact-infos, .deux-colonnes > :first-child { position: static; }
    .diptyque { grid-template-columns: 1fr 1fr; }
    .reponse { padding-right: 0; }
    .photo span { transform: none; }
}

@media (max-width: 620px) {
    body { font-size: 1rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .chiffres { gap: 1.2rem 1.6rem; }
    .garanties { grid-template-columns: 1fr; }
    .garantie:nth-child(even) { padding-left: 0; border-left: 0; }
    .rangee { grid-template-columns: 1fr; gap: 0; }
    .pied-grille { grid-template-columns: 1fr; gap: 2rem; }
    .prestations { grid-template-columns: 1fr; }
    .legal dl { grid-template-columns: 1fr; }
    .legal dt { border-bottom: 0; padding-bottom: 0; }
    .legal dd { padding-top: 0.2rem; }
    .diptyque figure { height: 240px; }
    .fleches { display: none; }
    .pose { grid-auto-columns: 48px; height: 48px; }
    .realisations { padding-top: calc(4.5rem + 48px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
    .bandeau-piste { animation: none; flex-wrap: wrap; width: auto; }
    .bandeau ul { flex-wrap: wrap; justify-content: center; row-gap: 0.4rem; }
    .bandeau ul[aria-hidden] { display: none; }
    .entete.cachee { transform: none; }
    .hero::before { transform: none; }
    @view-transition { navigation: none; }
}

@media print {
    .entete, .barre-appel, .bandeau, .progression, .visionneuse { display: none !important; }
    body { background: #fff; padding: 0; }
}

.champ { position: relative; }
.champ input.sr-only { left: 0; top: 0; min-height: 0; padding: 0; }

/* ───────── Titres qui s'illuminent mot par mot au défilement ─────────
   Les mots sont découpés par le script : sans JavaScript, le titre reste entier et lisible. */
.mot { opacity: 0.2; transition: opacity 0.55s ease; }
.mot.lu { opacity: 1; }

/* ───────── Surlignage jaune qui se trace sous les mots importants ───────── */
.trace {
    background: linear-gradient(var(--jaune), var(--jaune)) no-repeat 0 92% / 0% 0.15em;
    padding-bottom: 0.03em;
}
.js .trace { transition: background-size 1.2s var(--doux) 0.35s; }
.js .hero .trace { transition-delay: 1.25s; }
.trace.trace-on, html:not(.js) .trace { background-size: 100% 0.15em; }
p .trace { background-position: 0 100%; background-size: 0% 0.2em; }
p .trace.trace-on, html:not(.js) p .trace { background-size: 100% 0.2em; }
@media print { .mot { opacity: 1; } }

/* ───────── Pages prestations ───────── */
.metier-plus { padding: 0 0 1.6rem 0.4rem; font-size: 0.98rem; }
.metier-corps ul { padding-bottom: 1.1rem; }
.suite { margin-top: 2rem; color: var(--texte-doux); }
.suite a { color: var(--encre); margin-left: 0.3rem; }
.prestation { position: relative; }
.prestation h3 a { text-decoration: none; }
.prestation h3 a::after { content: ''; position: absolute; inset: 0; }
.prestation:has(h3 a):hover h3 { text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.trio figure { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ardoise); }
.trio img { width: 100%; height: 100%; object-fit: cover; }
.fil li[aria-current] { color: var(--platre); }
@media (max-width: 620px) {
    .trio { grid-template-columns: 1fr 1fr; }
    .trio figure:last-child { display: none; }
}

/* ───────── Pages chantiers ───────── */
.fiche { margin-top: 1.8rem; display: grid; gap: 0; border-top: 1px solid var(--trait-clair); max-width: 34rem; }
.fiche > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--trait-clair); }
.fiche dt { color: var(--clair-doux); font-size: 0.95rem; }
.fiche dd { font-weight: 600; }
.fiche ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fiche li { padding: 0.2rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--trait-clair); font-size: 0.9rem; font-weight: 500; }
.hero-local .fiche + .hero-actions { margin-top: 1.8rem; }
.diptyque.egal { grid-template-columns: 1fr 1fr; margin-top: 0; }
.diptyque.egal figure { height: auto; aspect-ratio: 3 / 4; }
.paire-titre { font-size: 1.15rem; margin: clamp(2.2rem, 4vw, 3.2rem) 0 1rem; color: var(--faience); }
.avant-apres .chapeau { margin-bottom: 0; }
.chantiers { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--trait-clair); }
.chantiers h3 { font-size: 1.05rem; font-family: var(--corps); font-weight: 650; letter-spacing: 0; margin-bottom: 0.9rem; }
.sombre .communes a { background: var(--jaune); color: var(--encre); }
.sombre .communes a:hover { background: var(--blanc); }

/* ───────── Rubrique Conseils ───────── */
.cadre-article { width: 100%; max-width: calc(48rem + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); position: relative; }
.page-simple.hero { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-simple.hero::after { content: none; }
.page-simple.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.02; }
.page-simple .hero-texte { max-width: 40rem; }
.signature { margin-top: 1.4rem; font-size: 0.92rem; color: var(--clair-doux); }
.article { padding-block: clamp(2.5rem, 6vw, 4.5rem); font-size: 1.1rem; line-height: 1.7; }
.article > h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.15; margin: 2.8rem 0 1rem; }
.article > p, .article > ul, .article > ol { margin-bottom: 1.1rem; color: #2f404b; }
.article > ul, .article > ol { padding-left: 1.3rem; }
.article > ul li, .article > ol li { margin-bottom: 0.55rem; padding-left: 0.2rem; }
.article > ol li::marker { font-family: var(--titre); font-weight: 700; color: var(--encre); }
.article strong { color: var(--encre); }
.en-bref { padding: 1.5rem 1.6rem; border-radius: var(--rayon); background: var(--encre); color: var(--platre); margin-bottom: 2rem; }
.en-bref h2 { font-size: 1.05rem; font-family: var(--corps); font-weight: 650; letter-spacing: 0; color: var(--jaune); margin-bottom: 0.8rem; }
.en-bref ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; font-size: 1.02rem; line-height: 1.5; }
.en-bref li { position: relative; padding-left: 1.5rem; }
.en-bref li::before { content: ''; position: absolute; left: 0.15rem; top: 0.5em; width: 0.5em; height: 0.5em; background: var(--jaune); transform: rotate(45deg); border-radius: 1px; }
.article-photo { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ardoise); margin-bottom: 2.4rem; }
.article-photo img { width: 100%; height: 100%; object-fit: cover; }
.article-appel { margin: 3rem 0 2.4rem; padding: clamp(1.6rem, 3vw, 2.2rem); border-radius: var(--rayon); background: var(--jaune); color: var(--encre); }
.article-appel h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 0.6rem; }
.article-appel p { max-width: 34rem; }
.article-appel .hero-actions { margin-top: 1.4rem; }
.article-appel .btn-sombre::before { background: var(--blanc); }
.article-appel .btn-contour.sur-clair { box-shadow: inset 0 0 0 1.5px var(--encre); }

.articles { border-top: 1px solid var(--trait); }
.articles li { border-bottom: 1px solid var(--trait); }
.articles a {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 1rem clamp(1.5rem, 4vw, 4rem);
    padding: 1.6rem 0; text-decoration: none; transition: padding-left 0.6s var(--doux);
}
.articles a:hover { padding-left: 0.8rem; }
.article-titre { font-family: var(--titre); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.15; letter-spacing: -0.02em; }
.article-resume { color: var(--texte-doux); font-size: 1rem; }
.article-fleche { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--trait); transition: background-color 0.5s var(--doux), transform 0.6s var(--doux), box-shadow 0.4s; }
.article-fleche svg { width: 18px; height: 18px; }
.articles a:hover .article-fleche { background: var(--jaune); box-shadow: none; transform: translateX(4px); }
#conseils .realisations-tete { align-items: flex-end; }
@media (max-width: 760px) {
    .articles a { grid-template-columns: minmax(0, 1fr) auto; }
    .article-resume { grid-column: 1; grid-row: 2; }
    .article-fleche { grid-row: 1 / span 2; grid-column: 2; }
    .article { font-size: 1.04rem; }
}
.page-simple.hero .cadre { display: block; }

.article .tableau-scroll { overflow-x: auto; margin: 1.6rem 0; border-radius: var(--rayon-petit); box-shadow: inset 0 0 0 1px var(--trait); background: var(--blanc); }
.article table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 26rem; }
.article th, .article td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--trait); white-space: nowrap; }
.article th { font-weight: 650; background: var(--faience-clair); }
.article tr:last-child td { border-bottom: 0; }
.article td:first-child { font-weight: 600; }
