/* DSI Maintenance & Sécurité Incendie — charte du site.
   Marine, bleu roi et or du logo ; crème du dépliant ; titres en capitales étroites, comme sur le fourgon.
   Le motif récurrent est l'inclinaison des lettres « DSI » : boutons, étiquettes et filets penchent du même angle. */

@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-700-latin.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-600-latin.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/fonts/public-sans-latin.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --marine: #0b1b3f; --marine-fonce: #071230; --marine-clair: #142c63;
  --bleu: #1b3f9c; --or: #dba42c; --or-vif: #f2b930; --or-texte: #8a5f08;
  --creme: #f5efe2; --papier: #fbf8f1; --blanc: #fff;
  --encre: #141b2d; --doux: #535d72; --trait: #e2d9c5;
  --rouge: #c4161c;
  --titres: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --texte: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --penche: -12deg;
  --ombre: 0 18px 40px -22px rgba(11, 27, 63, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font: 400 17px/1.62 var(--texte); color: var(--encre); background: var(--papier); -webkit-font-smoothing: antialiased; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--titres); font-weight: 700; text-transform: uppercase; line-height: .98; letter-spacing: .004em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.5rem; line-height: 1.05; }
h1 em, h2 em { font-style: normal; color: var(--or-vif); }
.section h2 em { color: var(--or-texte); }
.sombre h2 em, .appel h2 em { color: var(--or-vif); }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--or-vif); outline-offset: 3px; border-radius: 3px; }

.contenu { width: min(1200px, 100%); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.etroit { max-width: 820px; }
.evitement { position: absolute; left: -999px; top: 8px; background: var(--or-vif); color: var(--marine); padding: 10px 16px; z-index: 100; font-weight: 700; }
.evitement:focus { left: 8px; }

/* --- Éléments récurrents ------------------------------------------------------ */
.surtitre { font: 600 1rem/1.2 var(--titres); letter-spacing: .16em; text-transform: uppercase; color: var(--or-texte); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.surtitre::before { content: ""; width: 34px; height: 10px; background: var(--or); transform: skewX(var(--penche)); flex: none; }
.tete .surtitre, .hero .surtitre, .sombre .surtitre, .appel .surtitre { color: var(--or-vif); }

.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font: 700 1.12rem/1 var(--titres); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: var(--marine); border: 0; background: none; cursor: pointer; white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(var(--penche)); border-radius: 3px; background: var(--or-vif); transition: background .15s, transform .15s; }
.btn:hover::before { background: #ffd05a; transform: skewX(var(--penche)) scale(1.03); }
.btn svg { transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.btn-contour { color: var(--blanc); }
.btn-contour::before { background: transparent; border: 2px solid rgba(255, 255, 255, .6); }
.btn-contour:hover::before { background: rgba(255, 255, 255, .1); border-color: var(--blanc); }
.btn-marine { color: var(--blanc); }
.btn-marine::before { background: var(--marine); }
.btn-marine:hover::before { background: var(--bleu); }
.btn-groupe { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 28px 0 0; align-items: center; }
.lien-or { color: var(--or-texte); font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--or); padding-bottom: 1px; }
.lien-or:hover { color: var(--marine); }
.sombre .lien-or, .pied .lien-or { color: var(--or-vif); }

/* Étiquette de vérification : la plaquette que l'on attache au col d'un extincteur. */
.etiquette { display: inline-flex; align-items: center; gap: 9px; font: 600 .95rem/1 var(--titres); letter-spacing: .08em; text-transform: uppercase; color: var(--marine); background: var(--blanc); border: 1.5px solid var(--marine); border-radius: 4px 4px 4px 14px; padding: 7px 12px 7px 10px; }
.etiquette::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--marine); background: var(--creme); flex: none; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

.coches { display: grid; gap: 12px; margin: 0 0 1.2em; }
.coches li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.coches li svg { margin-top: 4px; color: var(--marine); background: var(--or-vif); border-radius: 50%; padding: 4px; width: 24px; height: 24px; }
.sombre .coches li svg { color: var(--marine); }

/* --- En-tête -------------------------------------------------------------------- */
.bandeau-haut { background: var(--marine-fonce); color: #c9d2ea; font-size: .86rem; }
.bandeau-haut .contenu { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.bandeau-haut span, .bandeau-haut a { display: inline-flex; align-items: center; gap: 7px; }
.bandeau-haut svg { width: 15px; height: 15px; color: var(--or-vif); }
.bandeau-haut a { color: var(--blanc); text-decoration: none; font-weight: 600; }
.bandeau-haut a:hover { color: var(--or-vif); }

.entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: 1px solid var(--trait); box-shadow: 0 6px 20px -18px rgba(11, 27, 63, .6); }
.entete .contenu { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); min-height: 78px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.marque img { width: auto; height: 54px; }
.marque-texte { font: 600 .82rem/1.15 var(--titres); letter-spacing: .1em; text-transform: uppercase; color: var(--marine); border-left: 2px solid var(--or); padding-left: 11px; }
.nav { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 26px); margin-left: auto; }
.nav a { font: 600 1.08rem/1 var(--titres); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--marine); padding: 10px 0; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--or); transform: scaleX(0) skewX(var(--penche)); transform-origin: left; transition: transform .18s; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1) skewX(var(--penche)); }
.nav-espace { display: none; }
.entete-tel { display: inline-flex; align-items: center; gap: 8px; font: 700 1.35rem/1 var(--titres); letter-spacing: .03em; color: var(--marine); text-decoration: none; white-space: nowrap; }
.entete-tel svg { color: var(--or-texte); }
.entete-tel:hover { color: var(--bleu); }
.entete-devis { padding: 12px 22px; font-size: 1.02rem; }
.nav-bouton { display: none; background: var(--marine); color: var(--blanc); border: 0; border-radius: 4px; padding: 9px; cursor: pointer; }

/* --- Héros de l'accueil : le dépliant, version écran ------------------------------ */
.hero { position: relative; background: var(--marine); color: var(--blanc); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 520px at 78% 30%, rgba(47, 95, 208, .45), transparent 70%), linear-gradient(180deg, var(--marine-fonce), var(--marine) 45%); }
.hero-grille { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(10px, 3vw, 50px); align-items: end; }
.hero-texte { padding: clamp(40px, 6vw, 84px) 0 clamp(130px, 13vw, 190px); position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); margin-bottom: .32em; }
.chapo { font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.55; color: #d6def2; max-width: 56ch; margin: 0; }
.section .chapo, .clair .chapo { color: var(--doux); }
.hero-mots { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 34px 0 0; }
.hero-mots li { font: 600 1rem/1 var(--titres); letter-spacing: .12em; text-transform: uppercase; color: var(--blanc); padding: 8px 14px; position: relative; isolation: isolate; }
.hero-mots li::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(var(--penche)); border: 1.5px solid rgba(242, 185, 48, .7); border-radius: 2px; }
.hero-portrait { position: relative; z-index: 2; align-self: end; justify-self: center; width: 100%; max-width: 520px; margin-bottom: -2px; }
.hero-portrait img { width: 100%; filter: drop-shadow(0 24px 30px rgba(3, 9, 26, .45)); }
.hero-nom { position: absolute; left: -92px; bottom: 7%; margin: 0; background: var(--blanc); color: var(--marine); padding: 10px 16px 10px 14px; border-left: 5px solid var(--or); font: 700 1.2rem/1.1 var(--titres); letter-spacing: .04em; text-transform: uppercase; box-shadow: var(--ombre); }
.hero-nom small { display: block; font: 500 .8rem/1.3 var(--texte); letter-spacing: 0; text-transform: none; color: var(--doux); margin-top: 3px; }
.hero-courbe { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(120px, 15vw, 220px); z-index: 1; }

/* Les cinq pictogrammes du logo, sur la bande crème du dépliant. */
.pictos { background: var(--creme); border-bottom: 1px solid var(--trait); }
.pictos ul { display: flex; flex-wrap: wrap; justify-content: center; padding: 6px 0 30px; }
.pictos li { flex: 0 0 12.5%; min-width: 0; }
.pictos a { display: grid; justify-items: center; gap: 10px; text-decoration: none; padding: 14px 6px; border-radius: 8px; transition: background .15s, transform .15s; }
.pictos a:hover { background: var(--blanc); transform: translateY(-3px); }
.pictos .picto, .pictos .picto-dessin { width: 74px; height: 74px; }
.pictos .picto { mix-blend-mode: multiply; }
.pictos span { font: 700 1.02rem/1.05 var(--titres); letter-spacing: .04em; text-transform: uppercase; text-align: center; color: var(--marine); hyphens: manual; }

/* --- Sections --------------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-titre { max-width: 760px; margin: 0 0 clamp(28px, 4vw, 48px); }
.section-titre p:last-child { color: var(--doux); font-size: 1.08rem; margin: 0; }
.creme { background: var(--creme); }
.sombre { background: var(--marine); color: #dbe2f3; position: relative; }
.sombre h2, .sombre h3 { color: var(--blanc); }
.sombre .section-titre p:last-child { color: #b9c4e0; }

.deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.deux.haut { align-items: start; }
.deux.inverse > :first-child { order: 2; }
/* Colonnes inégales : le formulaire de contact et sa colonne de coordonnées, un guide et sa marge. */
.deux.large-gauche { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.deux.avec-marge { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.photo { position: relative; }
.photo picture, .photo img { border-radius: 6px; }
.photo img { width: 100%; box-shadow: var(--ombre); }
/* Équerres or dans les angles : le cadrage d'une photo de chantier. */
.photo::before, .photo::after { content: ""; position: absolute; width: 64px; height: 64px; border: 5px solid var(--or); z-index: 1; pointer-events: none; }
.photo::before { left: -12px; top: -12px; border-right: 0; border-bottom: 0; }
.photo::after { right: -12px; bottom: -12px; border-left: 0; border-top: 0; }
.legende { font-size: .88rem; color: var(--doux); margin: 14px 0 0; }

/* Tuiles photo (prestations, secteurs) */
.tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tuiles.cinq { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tuiles.cinq .tuile { grid-column: span 2; }
.tuiles.cinq .tuile:nth-child(-n+2) { grid-column: span 3; }
.tuile { position: relative; display: block; overflow: hidden; border-radius: 6px; min-height: 290px; color: var(--blanc); text-decoration: none; background: var(--marine); isolation: isolate; }
.tuile picture, .tuile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tuile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 18, 48, 0) 30%, rgba(7, 18, 48, .78) 68%, rgba(7, 18, 48, .96)); }
.tuile:hover img { transform: scale(1.05); }
.tuile-texte { position: absolute; left: 22px; right: 62px; bottom: 20px; display: grid; gap: 6px; }
.tuile-texte strong { font: 700 1.75rem/1 var(--titres); letter-spacing: .02em; text-transform: uppercase; }
.tuile-texte span { font-size: .95rem; line-height: 1.4; color: #d8dff0; }
.tuile-fleche { position: absolute; right: 18px; bottom: 20px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--or-vif); color: var(--marine); transform: skewX(var(--penche)); border-radius: 3px; transition: transform .15s; }
.tuile-fleche svg { transform: skewX(12deg); }
.tuile:hover .tuile-fleche { transform: skewX(var(--penche)) translateX(4px); }
.tuiles .tuile.grande { grid-row: span 2; min-height: 596px; }
.tuiles.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tuiles.quatre .tuile-texte { left: 18px; right: 58px; }
.tuiles.quatre .tuile-texte strong { font-size: 1.5rem; }
.tuiles.quatre .tuile-texte span { font-size: .9rem; }

/* Étapes numérotées */
.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; counter-reset: etape; }
.etapes.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.etapes li { counter-increment: etape; border-top: 3px solid var(--or); padding-top: 18px; }
.etapes li::before { content: counter(etape, decimal-leading-zero); display: block; font: 700 3.4rem/.9 var(--titres); color: transparent; -webkit-text-stroke: 1.5px var(--marine); margin-bottom: 12px; }
.sombre .etapes li::before { -webkit-text-stroke-color: var(--or-vif); }
.etapes h3 { font-size: 1.4rem; margin-bottom: .35em; }
.etapes p { margin: 0; font-size: .98rem; color: var(--doux); }
.sombre .etapes p { color: #b9c4e0; }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0 0; }
.chiffres div { border-left: 4px solid var(--or); padding: 2px 0 2px 16px; }
.chiffres strong { display: block; font: 700 clamp(2.2rem, 4vw, 3.2rem)/.95 var(--titres); color: var(--marine); }
.chiffres span { font-size: .92rem; color: var(--doux); line-height: 1.35; display: block; margin-top: 4px; }
.sombre .chiffres strong { color: var(--blanc); }
.sombre .chiffres span { color: #b9c4e0; }

/* Cartes texte */
.cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cartes.deux-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.carte-texte { background: var(--blanc); border: 1px solid var(--trait); border-top: 4px solid var(--marine); border-radius: 4px; padding: 26px 24px; }
/* Une carte placée juste sous le titre de la page porte un h2, pour ne pas sauter de niveau : même allure que le h3. */
.carte-texte h2, .carte-texte h3 { font-size: 1.42rem; line-height: 1.05; }
.carte-texte p { color: var(--doux); font-size: .98rem; }
.carte-texte > :last-child { margin-bottom: 0; }
a.carte-texte { text-decoration: none; display: block; transition: transform .15s, border-color .15s, box-shadow .15s; }
a.carte-texte:hover { transform: translateY(-3px); border-top-color: var(--or); box-shadow: var(--ombre); }
.carte-texte .picto { width: 58px; height: 58px; margin-bottom: 14px; mix-blend-mode: multiply; }
.carte-texte .picto-dessin { display: block; width: 58px; height: 58px; margin-bottom: 14px; }

/* Encadré réglementaire */
.regle { background: var(--blanc); border-left: 6px solid var(--marine); padding: 24px 26px; border-radius: 0 4px 4px 0; box-shadow: var(--ombre); }
.regle h3 { font-size: 1.3rem; }
.regle > :last-child { margin-bottom: 0; }
.regle ul { display: grid; gap: 10px; }
.regle li { padding-left: 20px; position: relative; }
.regle li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 5px; background: var(--or); transform: skewX(var(--penche)); }

/* Texte courant des pages de fond */
.prose { max-width: 760px; }
/* Signature d'un guide : auteur et date, au-dessus du texte */
.prose .signature { font-size: .92rem; color: var(--doux); margin: 0 0 .4em; }
.prose .signature + h2 { margin-top: .9em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 1.5em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { display: grid; gap: 9px; margin: 0 0 1.2em; }
.prose ul li { padding-left: 22px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 11px; height: 5px; background: var(--or); transform: skewX(var(--penche)); }
.prose a:not(.btn) { color: var(--bleu); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.prose th { font: 700 1.02rem/1.2 var(--titres); letter-spacing: .05em; text-transform: uppercase; color: var(--marine); border-bottom: 2px solid var(--marine); }
.tableau { overflow-x: auto; }

/* --- Deux prestations mises en avant (accueil) ---------------------------------------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vedette { display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--trait); border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--ombre); transition: transform .15s; }
.vedette:hover { transform: translateY(-3px); }
.vedette-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--marine); }
.vedette-photo picture, .vedette-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vedette-badge { position: absolute; left: 0; top: 20px; background: var(--or-vif); color: var(--marine); font: 700 1.05rem/1 var(--titres); letter-spacing: .1em; text-transform: uppercase; padding: 10px 26px 10px 20px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.vedette-texte { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 28px 30px; border-top: 4px solid var(--or); }
.vedette-texte h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.vedette-texte p:not(.surtitre) { color: var(--doux); }
.vedette-texte .lien-or { margin-top: auto; }

/* --- Plans d'évacuation et d'intervention : les deux exemples côte à côte ---------------- */
.plans-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.plan-carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: 6px; padding: 18px 20px 26px; box-shadow: var(--ombre); }
.plan-carte figure { margin: 0 0 20px; border: 1px solid var(--trait); border-radius: 4px; overflow: hidden; }
.plan-exemple { display: block; width: 100%; height: auto; }
.plan-pour { font: 600 .98rem/1.2 var(--titres); letter-spacing: .14em; text-transform: uppercase; color: var(--or-texte); margin: 0 0 6px; }
.plan-carte h3 { font-size: 1.7rem; margin-bottom: .6em; }
.plan-carte .coches { margin-bottom: 0; }

/* --- Défibrillateurs : visuels du fabricant ------------------------------------------------- */
.galerie { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 3 / 2; }
.galerie figure { margin: 0; overflow: hidden; border-radius: 6px; min-height: 0; background: var(--creme); }
.galerie picture, .galerie img { display: block; width: 100%; height: 100%; object-fit: cover; }
.galerie .galerie-haute { grid-row: span 2; }
.legende a { color: var(--bleu); }

/* --- En-tête des pages intérieures --------------------------------------------------- */
.tete { background: var(--marine); color: var(--blanc); position: relative; overflow: hidden; }
.tete::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 420px at 85% 20%, rgba(47, 95, 208, .38), transparent 70%); }
.tete::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -46px; height: 72px; background: var(--papier); transform: rotate(-1.4deg); transform-origin: left; box-shadow: 0 -10px 0 var(--or); }
.tete .contenu { position: relative; z-index: 1; padding-block: clamp(26px, 4vw, 46px) clamp(84px, 9vw, 120px); }
.tete-visuel .contenu { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.tete h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.tete-photo { position: relative; }
.tete-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .8); }
.tete-photo::before { content: ""; position: absolute; left: -12px; top: -12px; width: 64px; height: 64px; border: 5px solid var(--or); border-right: 0; border-bottom: 0; z-index: 1; }
.fil { margin: 0 0 22px; font-size: .86rem; }
.fil ol { display: flex; flex-wrap: wrap; gap: 4px 0; color: #aab6d6; }
.fil li + li::before { content: "/"; margin: 0 9px; color: var(--or); }
.fil a { color: #d6def2; text-decoration: none; }
.fil a:hover { color: var(--or-vif); text-decoration: underline; }

/* --- Carte de la zone ------------------------------------------------------------------ */
.carte { width: 100%; height: auto; border-radius: 6px; background: #dfe8f3; font-family: var(--texte); }
.carte-mer { fill: #d3e0ef; }
.carte-dep { fill: #ece6d6; stroke: #fff; stroke-width: .9; stroke-linejoin: round; }
.carte-dep-zone { fill: #f8f3e6; }
.carte-nom-dep { font: 600 6.200px var(--titres); letter-spacing: 1.6px; fill: #b3a57f; }
.carte-rayon { fill: rgba(219, 164, 44, .08); stroke: var(--or); stroke-width: 1; stroke-dasharray: 4 3; }
.carte-rayon-50 { fill: none; stroke-width: .6; stroke-dasharray: 2 3; opacity: .7; }
.carte-km { font: 600 4.400px var(--titres); letter-spacing: .6px; fill: var(--or-texte); paint-order: stroke; stroke: #f8f3e6; stroke-width: 2px; }
.carte-ville circle { fill: var(--marine); stroke: #fff; stroke-width: .7; transition: r .15s, fill .15s; }
.carte-ville text { font-size: 4.600px; font-weight: 600; fill: var(--marine); paint-order: stroke; stroke: #f8f3e6; stroke-width: 2.200px; stroke-linejoin: round; }
.carte-hameau circle { fill: #7d8aa8; stroke-width: .5; }
a.carte-ville:hover circle { fill: var(--rouge); r: 3.200px; }
a.carte-ville:hover text { fill: var(--rouge); }
.carte-autre { opacity: .45; }
.carte-accent circle { fill: var(--rouge); stroke-width: 1.100px; }
.carte-accent text { font-size: 6px; font-weight: 700; fill: var(--rouge); }
.carte-trajet { stroke: var(--rouge); stroke-width: 1; stroke-dasharray: 1.5 2.500; }
.carte-siege circle { fill: var(--marine); stroke: #fff; stroke-width: 1; }
.carte-siege path { fill: var(--or-vif); }
.carte-reperes .carte-secondaire text { display: none; }
.carte-cadre { position: relative; box-shadow: var(--ombre); border-radius: 6px; }

.villes-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px 18px; }
.villes-liste a { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; text-decoration: none; padding: 9px 0; border-bottom: 1px solid var(--trait); font-weight: 600; color: var(--marine); }
.villes-liste a span { font-weight: 400; font-size: .86rem; color: var(--doux); white-space: nowrap; }
.villes-liste a:hover { color: var(--rouge); border-bottom-color: var(--or); }
.sombre .villes-liste a { color: var(--blanc); border-bottom-color: rgba(255, 255, 255, .16); }
.sombre .villes-liste a span { color: #aab6d6; }
.sombre .villes-liste a:hover { color: var(--or-vif); }
.fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--trait); border-radius: 4px; background: var(--blanc); margin: 0 0 26px; }
.fiche div { padding: 16px 18px; border-right: 1px solid var(--trait); }
.fiche div:last-child { border-right: 0; }
.fiche dt { font: 600 .82rem/1.2 var(--titres); letter-spacing: .12em; text-transform: uppercase; color: var(--doux); }
.fiche dd { margin: 4px 0 0; font: 700 1.7rem/1 var(--titres); color: var(--marine); }

/* --- FAQ ---------------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--blanc); border: 1px solid var(--trait); border-radius: 4px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; display: grid; place-items: center; font: 700 1.5rem/1 var(--titres); background: var(--creme); color: var(--marine); border-radius: 3px; transform: skewX(var(--penche)); }
.faq details[open] summary::after { content: "–"; background: var(--or-vif); }
.faq details > div { padding: 0 22px 20px; color: var(--doux); }
.faq details > div > :last-child { margin-bottom: 0; }

/* --- Bandeau d'appel ------------------------------------------------------------------------ */
.appel { position: relative; isolation: isolate; color: var(--blanc); padding: clamp(60px, 8vw, 110px) 0; overflow: hidden; }
.appel picture, .appel > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--cadrage, 50% 50%); z-index: -2; }
.appel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 18, 48, .95) 0%, rgba(7, 18, 48, .86) 45%, rgba(7, 18, 48, .55) 100%); }
.appel .contenu { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 30px 60px; align-items: center; }
.appel h2 { margin-bottom: .3em; }
.appel p { color: #d6def2; max-width: 56ch; margin: 0; font-size: 1.08rem; }
.appel-actions { display: grid; gap: 18px; justify-items: start; }
.appel-tel { display: inline-flex; align-items: center; gap: 14px; font: 700 clamp(2.4rem, 4.6vw, 3.6rem)/1 var(--titres); color: var(--or-vif); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.appel-tel svg { width: 38px; height: 38px; }
.appel-tel:hover { color: var(--blanc); }

/* --- Formulaire ------------------------------------------------------------------------------- */
.formulaire { background: var(--blanc); border: 1px solid var(--trait); border-top: 5px solid var(--or); border-radius: 4px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--ombre); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.champ { display: grid; gap: 6px; }
.champ.large { grid-column: 1 / -1; }
.champ label, .champ legend { font-weight: 650; font-size: .95rem; }
.champ small { color: var(--doux); font-weight: 400; }
.champ input, .champ textarea, .champ select { font: inherit; color: inherit; width: 100%; padding: 12px 13px; border: 1.5px solid #c9c0aa; border-radius: 4px; background: var(--papier); }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: 0; border-color: var(--marine); box-shadow: 0 0 0 3px rgba(242, 185, 48, .5); background: var(--blanc); }
.champ textarea { min-height: 128px; resize: vertical; }
fieldset.champ { border: 0; padding: 0; margin: 0; }
.cases { display: flex; flex-wrap: wrap; gap: 8px; }
.cases label { position: relative; font-weight: 600; font-size: .92rem; cursor: pointer; }
.cases input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cases span { display: block; padding: 8px 14px; border: 1.5px solid #c9c0aa; border-radius: 4px; background: var(--papier); }
.cases input:checked + span { background: var(--marine); border-color: var(--marine); color: var(--blanc); }
.cases input:focus-visible + span { outline: 3px solid var(--or-vif); outline-offset: 2px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.retour { min-height: 1.6em; margin: 14px 0 0; font-weight: 600; }
.contact-direct { display: grid; gap: 16px; }
.contact-direct a, .contact-direct div { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; text-decoration: none; }
.contact-direct .rond { width: 46px; height: 46px; display: grid; place-items: center; background: var(--or-vif); color: var(--marine); transform: skewX(var(--penche)); border-radius: 3px; }
.contact-direct .rond svg { transform: skewX(12deg); width: 20px; height: 20px; }
.contact-direct strong { display: block; font: 700 1.5rem/1.1 var(--titres); letter-spacing: .02em; color: var(--blanc); }
.contact-direct small { color: #b9c4e0; font-size: .9rem; }

/* --- Pied de page -------------------------------------------------------------------------------- */
.pied { background: var(--marine-fonce); color: #b9c4e0; padding: clamp(48px, 6vw, 76px) 0 26px; font-size: .95rem; }
.pied-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 36px; }
.pied-marque img { height: 84px; width: auto; margin-bottom: 18px; }
.pied-marque p { max-width: 36ch; }
.pied-contact { display: grid; gap: 9px; margin-top: 18px; }
.pied-contact a, .pied-contact span { display: inline-flex; gap: 9px; align-items: flex-start; color: var(--blanc); text-decoration: none; }
.pied-contact svg { color: var(--or-vif); flex: none; margin-top: 3px; }
.pied-contact a:hover { color: var(--or-vif); }
.pied-titre { font: 700 1.12rem/1 var(--titres); letter-spacing: .1em; text-transform: uppercase; color: var(--blanc); margin: 0 0 14px; }
.pied ul { display: grid; gap: 8px; }
.pied ul a { color: #b9c4e0; text-decoration: none; }
.pied ul a:hover { color: var(--or-vif); }
.pied-villes { grid-template-columns: 1fr 1fr; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 40px; padding-top: 20px; font-size: .86rem; }
.pied-bas a { color: #b9c4e0; }
.barre-mobile { display: none; }

/* Apparition douce au défilement (posée par le script : sans lui, tout reste visible). */
.anim .reveler { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
.anim .reveler.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .reveler { opacity: 1; transform: none; transition: none; }
  .tuile img, .btn::before, .btn svg { transition: none; }
}

/* --- Écrans moyens et petits ----------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .marque-texte { display: none; }
  .entete-devis { display: none; }
  .tuiles.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuiles.quatre .tuile-texte { left: 22px; right: 62px; }
  .tuiles.quatre .tuile-texte strong { font-size: 1.75rem; }
  .tuiles.quatre .tuile-texte span { font-size: .95rem; }
}
@media (max-width: 1020px) {
  .nav-bouton { display: grid; place-items: center; margin-left: 4px; }
  .entete-tel { margin-left: auto; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); flex-direction: column; align-items: stretch; gap: 0; padding: 8px clamp(18px, 4vw, 40px) 18px; border-bottom: 4px solid var(--or); box-shadow: 0 24px 40px -20px rgba(11, 27, 63, .5); display: none; margin: 0; }
  .nav.ouvert { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--trait); font-size: 1.25rem; }
  .nav a::after { display: none; }
  .nav-espace { display: block; color: var(--or-texte) !important; border-bottom: 0 !important; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuiles .tuile.grande { grid-row: auto; min-height: 290px; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pictos li { flex-basis: 25%; }
}
@media (max-width: 820px) {
  body { font-size: 16.500px; padding-bottom: 62px; }
  .bandeau-haut span { font-size: .78rem; }
  .bandeau-haut a { display: none; }
  .entete .contenu { min-height: 66px; }
  .marque img { height: 44px; }
  .entete-tel span { display: none; }
  .entete-tel { background: var(--or-vif); padding: 10px; border-radius: 4px; }
  .entete-tel svg { color: var(--marine); width: 20px; height: 20px; }
  .hero-grille { grid-template-columns: 1fr; }
  .hero-texte { padding-bottom: 26px; }
  .hero-portrait { max-width: min(340px, 78vw); }
  .hero-nom { left: auto; right: -9%; bottom: 10%; padding: 8px 12px; font-size: 1.05rem; }
  .hero-courbe { height: 150px; }
  .deux, .deux.large-gauche, .deux.avec-marge, .tete-visuel .contenu { grid-template-columns: 1fr; }
  .deux.inverse > :first-child { order: 0; }
  .deux.photo-apres > :first-child { order: 2; }
  .tete-photo { max-width: 520px; }
  .appel .contenu { grid-template-columns: 1fr; }
  .champs { grid-template-columns: 1fr; }
  .duo, .plans-duo { grid-template-columns: 1fr; }
  .tuiles.cinq { grid-template-columns: 1fr 1fr; }
  .tuiles.cinq .tuile, .tuiles.cinq .tuile:nth-child(-n+2) { grid-column: auto; }
  .tuiles.cinq .tuile:first-child { grid-column: 1 / -1; }
  .chiffres { grid-template-columns: 1fr 1fr; }
  .photo::before, .photo::after { width: 44px; height: 44px; border-width: 4px; }
  .photo::before { left: -7px; top: -7px; }
  .photo::after { right: -7px; bottom: -7px; }
  .barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; background: var(--marine); box-shadow: 0 -8px 24px -10px rgba(0, 0, 0, .5); }
  .barre-mobile a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 58px; font: 700 1.2rem/1 var(--titres); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: var(--blanc); }
  .barre-mobile .barre-devis { background: var(--or-vif); color: var(--marine); }
  .pied { padding-bottom: 40px; }
}
@media (max-width: 600px) {
  .tuiles, .tuiles.quatre, .cartes, .cartes.deux-col, .etapes, .etapes.trois, .tuiles.cinq { grid-template-columns: 1fr; }
  .tuiles.cinq .tuile:first-child { grid-column: auto; }
  .tuile { min-height: 240px; }
  .pied-grille { grid-template-columns: 1fr; gap: 28px; }
  .btn { padding: 14px 22px; }
  .btn-groupe .btn { flex: 1 1 100%; justify-content: center; }
  .pictos li { flex-basis: 33.333%; }
  .pictos .picto, .pictos .picto-dessin { width: 60px; height: 60px; }
  .pictos span { font-size: .95rem; }
  .fiche div { border-right: 0; border-bottom: 1px solid var(--trait); }
  .carte-ville text { font-size: 5.400px; }
}
