/* ==========================================================================
   Hrafn Studio — feuille de style unique (mobile d'abord).
   Identité : voir IDENTITE_VISUELLE.md. Couleurs des branches : inc/config.php.
   ========================================================================== */

/* Polices (SIL Open Font License, hébergées sur le site) */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 500 900; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }

:root {
    --nuit: #15171c;           /* fond : plumage du corbeau */
    --plume: #1d2027;          /* surfaces */
    --plume-claire: #262a33;
    --os: #ece7df;             /* texte */
    --cendre: #a39e95;         /* texte secondaire (6,7:1) */
    --trait: rgba(236, 231, 223, .14);
    --champ-bord: rgba(236, 231, 223, .35);
    --accent-defaut: #ece7df;  /* accent hors branche */
    --alerte: #e8b25c; --alerte-fond: rgba(232, 178, 92, .08); --erreur: #f39a85; --ok: #5cc49b;
    --fleche-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ece7df' stroke-width='1.6'/%3E%3C/svg%3E");
    color-scheme: dark;
    --f-titre: "Archivo", "Arial Narrow", system-ui, sans-serif;
    --f-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --gouttiere: clamp(1.25rem, 4.5vw, 3.5rem);
    --max: 80rem;
    --section: clamp(4rem, 9vw, 8rem);
    --entete-h: 4.25rem;
    --courbe: cubic-bezier(.22, .8, .24, 1);
}

/* Mode clair : thème par défaut. Le mode sombre se choisit avec le bouton (data-theme="sombre"). */
:root[data-theme="clair"] {
    --nuit: #f6f3ee; --plume: #ebe6de; --plume-claire: #e1dbd1; --os: #1b1d22; --cendre: #5d5a54;
    --trait: rgba(27, 29, 34, .14); --champ-bord: rgba(27, 29, 34, .4); --accent-defaut: #1b1d22;
    --alerte: #916115; --alerte-fond: rgba(145, 97, 21, .08); --erreur: #b0301a; --ok: #2b785a;
    --fleche-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1d22' stroke-width='1.6'/%3E%3C/svg%3E");
    color-scheme: light;
}
:root:not([data-theme="sombre"]) {
    --nuit: #f6f3ee; --plume: #ebe6de; --plume-claire: #e1dbd1; --os: #1b1d22; --cendre: #5d5a54;
--trait: rgba(27, 29, 34, .14); --champ-bord: rgba(27, 29, 34, .4); --accent-defaut: #1b1d22;
--alerte: #916115; --alerte-fond: rgba(145, 97, 21, .08); --erreur: #b0301a; --ok: #2b785a;
--fleche-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1d22' stroke-width='1.6'/%3E%3C/svg%3E");
color-scheme: light;
}
/* Couleurs des branches et de la page : sombres ou claires selon le thème. */
[style*="--b-s"] { --branche: var(--b-s); }
body { --accent: var(--a-s, var(--accent-defaut)); }
:root[data-theme="clair"] [style*="--b-s"] { --branche: var(--b-c); }
:root[data-theme="clair"] body { --accent: var(--a-c, var(--accent-defaut)); }
:root:not([data-theme="sombre"]) [style*="--b-s"] { --branche: var(--b-c); }
:root:not([data-theme="sombre"]) body { --accent: var(--a-c, var(--accent-defaut)); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 1rem); }
body { margin: 0; background: var(--nuit); color: var(--os); font: 400 1.0625rem/1.65 var(--f-texte); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
h1, h2, h3, p, figure, dl, dd, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--os); color: var(--nuit); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lien-evitement { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .75rem 1.1rem; background: var(--os); color: var(--nuit); transform: translateY(-200%); }
.lien-evitement:focus { transform: none; color: var(--nuit); }

/* Composants ------------------------------------------------------------- */
.section { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gouttiere) 0; }
.section--serree { padding-top: 2rem; }
.section__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section__titre {
    margin-bottom: 2rem;
    font: 800 clamp(1.6rem, 1.1rem + 2.2vw, 2.75rem)/1.05 var(--f-titre);
    font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em;
}
.section__tete .section__titre { margin-bottom: 0; }
.section__titre--grand { font-size: clamp(2rem, 1.2rem + 4vw, 4.25rem); }
.surtitre { margin-bottom: 1.25rem; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cendre); }
.surtitre--accent { color: var(--accent); }
.chapo { max-width: 40ch; font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.5; color: var(--os); text-wrap: pretty; }
.fil { margin-bottom: 2rem; font-size: .8125rem; color: var(--cendre); }
.fil a { color: var(--cendre); }

.bouton {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 3.25rem; padding: .85rem 1.5rem; border: 2px solid var(--accent);
    font-weight: 700; font-size: .9375rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
    transition: background-color .3s, color .3s, transform .3s var(--courbe);
}
.bouton--plein { background: var(--accent); color: var(--nuit); }
.bouton--plein:hover { color: var(--nuit); transform: translateY(-2px); }
.bouton--trait { background: transparent; color: var(--os); }
.bouton--trait:hover { background: var(--accent); color: var(--nuit); }
.bouton[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.lien-fleche { display: inline-flex; gap: .5rem; align-items: center; padding: .5rem 0; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; }
.lien-fleche::after { content: "→"; transition: transform .3s var(--courbe); }
.lien-fleche:hover::after { transform: translateX(.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2rem; }
.a-completer {
    display: inline-block; padding: .05rem .5rem; border: 1px dashed currentColor;
    font: 600 .75rem/1.6 var(--f-texte); letter-spacing: .04em; text-transform: uppercase;
    color: var(--alerte); background: var(--alerte-fond);
}
.a-completer--legal { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.pastille { display: inline-block; margin-right: .4rem; padding: .05rem .45rem; border: 1px solid currentColor; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* En-tête et menu --------------------------------------------------------- */
.entete { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--entete-h); background: color-mix(in srgb, var(--nuit) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.entete.est-defile { box-shadow: 0 1px 0 var(--trait); }
.entete__barre { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gouttiere); }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--os); }
.logo:hover { color: var(--os); }
.logo__corbeau { width: 2.1rem; color: var(--accent); transition: color .4s; }
.logo__corbeau svg { width: 100%; }
.logo:hover .logo__corbeau { transform: rotate(-6deg); transition: transform .4s var(--courbe), color .4s; }
.logo__mot { font: 800 1.15rem/1 var(--f-titre); font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; }
.logo__mot span { margin-left: .4em; font-weight: 500; font-stretch: 100%; color: var(--cendre); letter-spacing: .12em; font-size: .7em; }
.entete__bouton { display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; padding: 0 .25rem 0 .9rem; border: 0; background: none; cursor: pointer; font-size: .9375rem; font-weight: 600; }
.entete__bouton-icone { position: relative; width: 1.6rem; height: .7rem; }
.entete__bouton-icone span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .35s var(--courbe), top .35s var(--courbe); }
.entete__bouton-icone span:first-child { top: 0; }
.entete__bouton-icone span:last-child { top: calc(100% - 2px); right: .45rem; }
.menu-ouvert .entete__bouton-icone span { top: calc(50% - 1px); right: 0; }
.menu-ouvert .entete__bouton-icone span:first-child { transform: rotate(45deg); }
.menu-ouvert .entete__bouton-icone span:last-child { transform: rotate(-45deg); }
.menu-ouvert { overflow: hidden; }
.menu {
    position: fixed; z-index: 1; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--entete-h) + 1.5rem) var(--gouttiere) 2rem; background: var(--plume); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-1rem);
    transition: opacity .35s var(--courbe), transform .35s var(--courbe), visibility 0s .35s;
}
.menu-ouvert .menu { visibility: visible; opacity: 1; transform: none; transition: opacity .35s var(--courbe), transform .35s var(--courbe), visibility 0s; }
.menu__liste { list-style: none; }
.menu__lien {
    display: block; padding: .6rem 0; border-bottom: 1px solid var(--trait);
    font: 800 clamp(1.7rem, 7vw, 2.6rem)/1.1 var(--f-titre); font-stretch: 125%; text-transform: uppercase;
    text-decoration: none; color: var(--branche, var(--os));
}
.menu__secondaire .menu__lien { font-size: 1.25rem; color: var(--os); }
.menu__lien[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; }
.menu__pied { margin-top: 2rem; color: var(--cendre); }
.menu__tel { font: 700 1.5rem/1.3 var(--f-titre); color: var(--os); text-decoration: none; }
@media (min-width: 68rem) {
    :root { --entete-h: 5rem; }
    .entete__bouton { display: none; }
    .entete { display: flex; justify-content: center; }
    .entete__barre { position: absolute; inset: 0; pointer-events: none; }
    .logo { pointer-events: auto; }
    .menu { position: static; inset: auto; flex-direction: row; justify-content: flex-end; align-items: center; width: 100%; max-width: var(--max); height: 100%; padding: 0 var(--gouttiere); background: none; overflow: visible; visibility: visible; opacity: 1; transform: none; transition: none; }
    .menu__liste { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.8rem); }
    .menu__lien, .menu__secondaire .menu__lien { position: relative; padding: .4rem 0; border: 0; font: 600 .9375rem/1.2 var(--f-texte); text-transform: none; color: var(--os); }
    .menu__lien::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--branche, var(--os)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--courbe); }
    .menu__lien:hover, .menu__lien[aria-current] { color: var(--branche, var(--os)); text-decoration: none; }
    .menu__lien:hover::after, .menu__lien[aria-current]::after { transform: scaleX(1); }
    .menu__secondaire:first-of-type { margin-left: 1rem; padding-left: 1.8rem; border-left: 1px solid var(--trait); }
    .menu__lien--contact { padding: .5rem 1rem; border: 2px solid var(--os); }
    .menu__lien--contact::after { display: none; }
    .menu__lien--contact:hover { background: var(--os); color: var(--nuit); }
    .menu__pied { display: none; }
    .menu-ouvert { overflow: auto; }
}

main { display: block; padding-top: var(--entete-h); }

/* Accueil ---------------------------------------------------------------- */
.hero { position: relative; display: grid; gap: 2rem; align-items: center; max-width: var(--max); min-height: calc(92svh - var(--entete-h)); margin: 0 auto; padding: clamp(2.5rem, 7vh, 5rem) var(--gouttiere) 2rem; }
.hero__titre { font: 900 clamp(2.6rem, 1.2rem + 7.5vw, 7.25rem)/.92 var(--f-titre); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; }
.hero__titre span { color: var(--cendre); }
.hero__intro { max-width: 46ch; margin-top: 1.75rem; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--os); }
.hero__corbeau { width: min(60vw, 26rem); justify-self: end; color: var(--accent); transition: color .5s var(--courbe); }
.hero__corbeau svg, .logo__corbeau svg { width: 100%; height: auto; }
.hero__corbeau svg { width: 100%; }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } .hero__corbeau { width: 100%; } }
@media (max-width: 59.99rem) { .hero__corbeau { order: -1; justify-self: start; width: 4.5rem; } }

/* Haut de l'accueil : photo de l'atelier (PC ouvert vu du dessus), sous un voile pour la lisibilité */
.hero { isolation: isolate; }
.hero::before, .hero::after {
    content: ""; position: absolute; top: calc(-1 * var(--entete-h)); bottom: 0; left: 50%; width: 100vw;
    transform: translateX(-50%); pointer-events: none;
}
.hero::before { z-index: -2; background: url("../img/fond-atelier-1920.webp") 30% 45% / cover no-repeat; }
.hero::after {
    z-index: -1;
    background:
        linear-gradient(180deg, transparent 60%, var(--nuit) 100%),
        linear-gradient(90deg, var(--nuit) 0%, color-mix(in srgb, var(--nuit) 82%, transparent) 30%, color-mix(in srgb, var(--nuit) 40%, transparent) 62%, color-mix(in srgb, var(--nuit) 15%, transparent) 100%);
}
/* Mode clair : photo désaturée et éclaircie, voile clair */
:root[data-theme="clair"] .hero::before { filter: grayscale(1) brightness(2.1) contrast(.75); }
:root[data-theme="clair"] .hero::after {
    background:
        linear-gradient(180deg, transparent 60%, var(--nuit) 100%),
        linear-gradient(90deg, var(--nuit) 0%, color-mix(in srgb, var(--nuit) 85%, transparent) 32%, color-mix(in srgb, var(--nuit) 45%, transparent) 65%, color-mix(in srgb, var(--nuit) 25%, transparent) 100%);
}
:root:not([data-theme="sombre"]) .hero::before { filter: grayscale(1) brightness(2.1) contrast(.75); }
:root:not([data-theme="sombre"]) .hero::after {
    background:
        linear-gradient(180deg, transparent 60%, var(--nuit) 100%),
        linear-gradient(90deg, var(--nuit) 0%, color-mix(in srgb, var(--nuit) 85%, transparent) 32%, color-mix(in srgb, var(--nuit) 45%, transparent) 65%, color-mix(in srgb, var(--nuit) 25%, transparent) 100%);
}
/* Mobile : la photo en haut, fondue vers le bas (image plus légère) */
@media (max-width: 59.99rem) {
    .hero::before { background-image: url("../img/fond-atelier-960.webp"); background-position: 32% top; background-size: auto 62%; }
    .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--nuit) 35%, transparent) 0%, color-mix(in srgb, var(--nuit) 80%, transparent) 38%, var(--nuit) 60%); }
    :root[data-theme="clair"] .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--nuit) 50%, transparent) 0%, color-mix(in srgb, var(--nuit) 88%, transparent) 34%, var(--nuit) 58%); }
}
@media (max-width: 59.99rem) {
    :root:not([data-theme="sombre"]) .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--nuit) 50%, transparent) 0%, color-mix(in srgb, var(--nuit) 88%, transparent) 34%, var(--nuit) 58%); }
}

.branches__liste { list-style: none; border-top: 1px solid var(--trait); }
.rangee__lien {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1.5rem; align-items: center;
    padding: 1.5rem .25rem; border-bottom: 1px solid var(--trait); text-decoration: none;
    transition: background-color .35s, padding .35s var(--courbe);
}
.rangee__nom { font: 900 clamp(1.45rem, .5rem + 3.2vw, 3.2rem)/1 var(--f-titre); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.015em; color: var(--branche); white-space: nowrap; }
.rangee__texte { grid-column: 1; display: grid; gap: .15rem; }
.rangee__titre { font-weight: 600; color: var(--os); }
.rangee__accroche { font-size: .9375rem; color: var(--cendre); }
.rangee__fleche { grid-column: 2; grid-row: 1 / span 2; font-size: 1.75rem; color: var(--branche); transition: transform .35s var(--courbe); }
.rangee__lien:hover { color: inherit; background: color-mix(in srgb, var(--branche) 9%, transparent); padding-left: 1rem; }
.rangee__lien:hover .rangee__fleche { transform: translateX(.4rem); }
@media (min-width: 60rem) {
    .rangee__lien { grid-template-columns: minmax(max-content, 6fr) minmax(0, 5fr) auto; column-gap: 2.5rem; padding: 1.75rem .25rem; }
    .rangee__texte { grid-column: 2; }
    .rangee__fleche { grid-column: 3; grid-row: 1; }
}

.grille-cartes { display: grid; gap: 2rem 1.5rem; }
@media (min-width: 40rem) { .grille-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grille-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; } }
.carte__lien { display: block; height: 100%; text-decoration: none; color: inherit; border-top: 3px solid var(--branche); }
.carte__lien:hover { color: inherit; }
.carte__visuel { aspect-ratio: 1; overflow: hidden; background: var(--plume); }
.carte__visuel img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--courbe); }
a.carte__lien:hover .carte__visuel img { transform: scale(1.04); }
.carte__texte { display: grid; gap: .35rem; padding-top: 1rem; }
.carte__meta { font-size: .8125rem; color: var(--cendre); }
.carte__branche { margin-right: .35rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--branche); }
.carte__titre { font: 800 1.35rem/1.15 var(--f-titre); font-stretch: 112%; }
.carte__fleche { margin-left: .35rem; font-size: .9em; color: var(--branche); }
.carte__detail { font-weight: 600; color: var(--branche); }
.carte__description { color: var(--os); font-size: .9375rem; }
.carte__client { font-size: .875rem; color: var(--cendre); }

.studio__grille { display: grid; gap: 2.5rem; }
.studio__grille .chapo { margin-bottom: 1.25rem; }
.studio__grille p + p { margin-top: 1rem; }
.studio__colonne { display: grid; gap: 1.5rem; align-content: start; }
.mascotte { width: 9rem; }
.mascotte img { image-rendering: pixelated; }
.reperes { display: flex; gap: 2.5rem; }
.reperes dt { font: 900 3rem/1 var(--f-titre); font-stretch: 125%; }
.reperes dd { color: var(--cendre); font-size: .9375rem; }
.studio__parcours { color: var(--cendre); font-size: .9375rem; max-width: 48ch; }
.studio__parcours a { color: var(--os); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 60rem) { .studio__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 5rem; } }

.temoignages__avertissement { margin: -1rem 0 2rem; font-size: .875rem; color: var(--cendre); }
.temoignages__avertissement .pastille { color: var(--alerte); }
.temoignages__liste { list-style: none; display: grid; gap: 1.5rem; }
.temoignages__liste li { padding: 1.5rem; background: var(--plume); border-left: 3px solid var(--branche); }
.temoignages__liste blockquote { font-size: 1.05rem; }
.temoignages__nom { margin-top: 1rem; font-weight: 700; }
.temoignages__nom span { margin-left: .5rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--branche); }
/* Mode clair : petit texte sur fond « plume », couleur d'atelier assombrie pour atteindre 4,5:1. */
:root:not([data-theme="sombre"]) .temoignages__nom span { color: color-mix(in srgb, var(--branche) 80%, #000); }
@media (min-width: 48rem) { .temoignages__liste { grid-template-columns: 1fr 1fr; } }

.faq__liste { border-top: 1px solid var(--trait); }
.faq__liste details { border-bottom: 1px solid var(--trait); }
.faq__liste summary { position: relative; padding: 1.25rem 2.5rem 1.25rem 0; font: 700 1.15rem/1.3 var(--f-titre); font-stretch: 110%; cursor: pointer; list-style: none; }
.faq__liste summary::-webkit-details-marker { display: none; }
.faq__liste summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font-size: 1.5rem; color: var(--accent); }
.faq__liste details[open] summary::after { content: "−"; }
.faq__liste details p { max-width: 62ch; padding-bottom: 1.5rem; color: var(--cendre); }

.contact { padding-bottom: var(--section); }
.contact__grille { display: grid; gap: 3rem; }
.contact .chapo { margin: 1rem 0 2rem; }
.contact__moyens { list-style: none; border-top: 1px solid var(--trait); }
.contact__moyens li { display: grid; gap: .1rem; padding: 1rem 0; border-bottom: 1px solid var(--trait); }
.contact__libelle { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cendre); }
.contact__lien { font: 800 clamp(1.3rem, 1rem + 1.4vw, 2rem)/1.2 var(--f-titre); text-decoration: none; overflow-wrap: anywhere; }
@media (min-width: 64rem) { .contact__grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; } }

/* Formulaire (inc/formulaire.php) */
.formulaire { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--plume); border-top: 3px solid var(--accent); }
.formulaire__titre { margin-bottom: 1.5rem; font: 800 1.5rem/1.1 var(--f-titre); font-stretch: 125%; text-transform: uppercase; }
.champs { display: grid; gap: 1.35rem; }
.champ { display: grid; gap: .4rem; align-content: start; }
.champ label { font-size: .9375rem; font-weight: 600; }
.champ__requis { margin-left: .35rem; font-size: .75rem; font-weight: 500; color: var(--cendre); }
.champ input:not([type=checkbox]), .champ select, .champ textarea { width: 100%; min-height: 3rem; padding: .7rem .8rem; border: 1px solid var(--champ-bord); border-radius: 0; background: var(--nuit); }
.champ select { appearance: none; padding-right: 2.5rem; background: var(--nuit) var(--fleche-select) right .9rem center no-repeat; }
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
.champ__erreur { font-size: .9375rem; color: var(--erreur); }
.champ--case { grid-template-columns: auto 1fr; gap: .2rem .8rem; }
.champ--case input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--accent); }
.champ--case label { font-weight: 400; font-size: .9375rem; }
.champ--case .champ__erreur { grid-column: 1 / -1; }
.champ--piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.formulaire__note { font-size: .875rem; color: var(--cendre); }
.message { margin-bottom: 1.5rem; padding: 1rem 1.15rem; border-left: 3px solid; font-weight: 500; }
.message--ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.message--erreur { border-color: var(--erreur); background: color-mix(in srgb, var(--erreur) 12%, transparent); }
.message--info { border-color: var(--alerte); background: var(--alerte-fond); font-weight: 400; font-size: .9375rem; }
@media (min-width: 40rem) { .champs { grid-template-columns: 1fr 1fr; } .champ--large { grid-column: 1 / -1; } }

/* Pages des branches -------------------------------------------------------- */
.tete-branche { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.tete-branche__titre { max-width: 18ch; margin-bottom: 1.75rem; font: 900 clamp(2.2rem, 1.2rem + 5vw, 5.25rem)/.98 var(--f-titre); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; text-wrap: balance; }
.tete-branche__titre em { font-style: normal; color: var(--accent); }
.page-branche .tete-branche__titre { color: var(--os); }
.page-branche .tete-branche { border-bottom: 1px solid var(--trait); padding-bottom: var(--section); }
.prestations__liste, .formats__liste { list-style: none; display: grid; gap: 0 2.5rem; }
.prestations__liste li, .formats__liste li { padding: 1.5rem 0; border-top: 1px solid var(--trait); }
.prestations__liste h3, .formats__liste h3, .deroule__liste h3 { margin-bottom: .4rem; font: 800 1.3rem/1.2 var(--f-titre); font-stretch: 112%; color: var(--accent); }
.prestations__liste p, .formats__liste p, .deroule__liste p { color: var(--cendre); max-width: 52ch; }
@media (min-width: 48rem) { .prestations__liste, .formats__liste { grid-template-columns: 1fr 1fr; } }
.note-limite, .references { max-width: 62ch; margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: var(--plume); }
.deroule__liste { list-style: none; display: grid; gap: 1.5rem; counter-reset: etape; }
.deroule__liste li { counter-increment: etape; padding-top: 1rem; border-top: 3px solid var(--accent); }
.deroule__liste li::before { content: counter(etape, decimal-leading-zero); display: block; margin-bottom: .5rem; font: 900 1rem/1 var(--f-titre); font-stretch: 125%; color: var(--cendre); }
@media (min-width: 48rem) { .deroule__liste { grid-template-columns: repeat(4, 1fr); } }
.tarifs__liste { border-top: 1px solid var(--trait); max-width: 46rem; }
.tarifs__liste div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--trait); }
.tarifs__liste dt { font-weight: 600; }
.tarifs__liste dd { font: 800 1.15rem/1.3 var(--f-titre); font-stretch: 112%; color: var(--accent); }
.tarifs__note { max-width: 62ch; margin-top: 1rem; font-size: .9375rem; color: var(--cendre); }
.encart { display: grid; gap: 1.25rem; align-items: center; }
.encart__texte { max-width: 52ch; padding-left: 1.25rem; border-left: 3px solid var(--accent); }
@media (min-width: 48rem) { .encart { grid-template-columns: 1fr auto; } }
.avant-apres__grille { display: grid; gap: 2rem; }
.avant-apres__paire { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.avant-apres__vide { display: grid; place-items: end start; aspect-ratio: 4 / 3; padding: .9rem; background: repeating-linear-gradient(-45deg, var(--plume) 0 14px, var(--plume-claire) 14px 15px); }
.avant-apres__vide span { font: 800 .875rem/1 var(--f-titre); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.avant-apres__paire figcaption { grid-column: 1 / -1; }
@media (min-width: 64rem) { .avant-apres__grille { grid-template-columns: 1fr 1fr; } }
.devis { padding-bottom: 0; }
.autres { padding-bottom: var(--section); }
.autres__liste { list-style: none; display: grid; gap: 1rem; }
.autres__liste a { display: grid; gap: .2rem; padding: 1.25rem; height: 100%; background: var(--plume); border-top: 3px solid var(--branche); text-decoration: none; color: var(--cendre); font-size: .9375rem; }
.autres__liste a span { font: 900 1.4rem/1.1 var(--f-titre); font-stretch: 125%; text-transform: uppercase; color: var(--branche); }
.autres__liste a:hover { background: var(--plume-claire); color: var(--os); }
@media (min-width: 40rem) { .autres__liste { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .autres__liste { grid-template-columns: repeat(4, 1fr); } }

/* Réalisations : filtres */
.filtres { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filtre { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .45rem 1rem; border: 2px solid var(--branche, var(--os)); color: var(--os); font-weight: 600; text-decoration: none; }
.filtre span { font-size: .8125rem; color: var(--cendre); }
.filtre:hover { color: var(--os); background: color-mix(in srgb, var(--branche, var(--os)) 15%, transparent); }
.filtre[aria-current] { background: var(--branche, var(--os)); color: var(--nuit); }
.filtre[aria-current] span { color: var(--nuit); }

/* Pages légales (inc/legal.php) */
.legal { padding-bottom: var(--section); }
.legal .chapo { margin: 0 0 1rem; max-width: 46ch; }
.legal__maj { font-size: .9375rem; color: var(--cendre); }
.legal__corps { max-width: 52rem; margin-top: 3rem; }
.legal__section { padding: 1.75rem 0; border-top: 1px solid var(--trait); }
.legal__section h2 { display: flex; gap: .9rem; align-items: baseline; margin-bottom: 1rem; font: 800 1.35rem/1.2 var(--f-titre); font-stretch: 112%; }
.legal__num { font: 600 .75rem/1 var(--f-texte); color: var(--cendre); }
.legal__section ul { display: grid; gap: .45rem; padding-left: 1.1rem; margin-top: .8rem; }
.legal__section p + p { margin-top: .8rem; }
.legal__note { font-size: .9375rem; color: var(--cendre); }
.erreur { min-height: 60svh; padding-bottom: var(--section); }

/* Pied de page */
.pied { margin-top: var(--section); padding: clamp(3rem, 7vw, 5rem) max(var(--gouttiere), calc((100% - var(--max)) / 2 + var(--gouttiere))) 2rem; background: var(--plume); }
.pied__haut { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--trait); }
.pied__devise { display: grid; gap: .5rem; align-content: start; font: 900 clamp(1.8rem, 1.1rem + 2.4vw, 2.75rem)/1 var(--f-titre); font-stretch: 115%; text-transform: uppercase; }
.pied__devise span { font: 400 1.1rem/1.4 var(--f-texte); text-transform: none; color: var(--cendre); }
.pied__colonnes { display: grid; gap: 2rem; }
.pied__titre { margin-bottom: .9rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cendre); }
.pied__liste { list-style: none; display: grid; gap: .5rem; }
.pied__liste a { text-decoration: none; }
.pied__liste a[style]:hover { color: var(--branche); }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .8125rem; color: var(--cendre); }
@media (min-width: 48rem) { .pied__haut { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .pied__colonnes { grid-template-columns: repeat(3, 1fr); } }
.page-accueil .pied { margin-top: 0; }

/* Apparitions au défilement (activées seulement par hrafn.js) */
.js-apparitions [data-apparition] { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s var(--courbe), transform .8s var(--courbe); }
.js-apparitions [data-apparition].est-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .js-apparitions [data-apparition] { opacity: 1; transform: none; }
}
@media print { .entete, .menu, .formulaire, .hero__corbeau, .hero::before, .hero::after { display: none !important; } main { padding-top: 0; } body { background: #fff; color: #000; } }

/* Bouton de thème (clair / sombre) */
.theme-bouton {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem 0;
    border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--os);
}
.theme-bouton svg { width: 1.25rem; height: 1.25rem; }
.theme-bouton .icone-lune { display: none; }
:root[data-theme="clair"] .theme-bouton .icone-soleil { display: none; }
:root[data-theme="clair"] .theme-bouton .icone-lune { display: block; }
:root:not([data-theme="sombre"]) .theme-bouton .icone-soleil { display: none; }
:root:not([data-theme="sombre"]) .theme-bouton .icone-lune { display: block; }
.theme-bouton:hover { color: var(--accent); }
.menu__theme { margin-top: 1rem; }
@media (min-width: 68rem) {
    .menu__theme { margin: 0 0 0 .5rem; }
    .theme-bouton__texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
