/* Quatre Clés Serrurerie : archétype « serrure-cylindre ». Noir graphite, acier froid, vert voyant #2ecc71 réservé aux états « ouvert / OK »
   et aux actions (texte sombre dessus). Polices : --police-titre (Syne) et --police-texte (Albert Sans) viennent de donnees.json. */
:root {
  --fond: #08090a;
  --fond-2: #0d0f11;
  --panneau: #12151a;
  --panneau-2: #181c21;
  --ligne: rgba(159, 180, 199, .16);
  --ligne-forte: rgba(159, 180, 199, .38);
  --acier: #9fb4c7;
  --texte: #ecebe6;
  --doux: #a7b2bc;
  --rouge: #e5484d;
  --encre: #04120a;
  --etiquette: 2rem;
  --rayon: 3px;
  --rayon-carte: 4px;
  --halo: rgba(46, 204, 113, .45);
}
html { background: var(--fond); }
body { background: var(--fond); color: var(--texte); font-family: var(--police-texte); font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--police-titre); margin: 0 0 .6em; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--encre); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.etiquette-demo { height: var(--etiquette); line-height: var(--etiquette); padding-block: 0; background: #040506; color: #c4cad3; border-bottom: 1px solid var(--ligne); }

/* ---------- en-tête flottant ---------- */
.entete { position: fixed; top: var(--etiquette); left: 0; right: 0; z-index: 70; color: var(--texte); background: rgba(8, 9, 10, .9); transition: background-color .25s, box-shadow .25s; }
html.defile .entete { top: 0; background: var(--fond); box-shadow: 0 1px 0 var(--ligne), 0 12px 30px -18px rgba(0, 0, 0, .9); }
.entete-interieur { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.marque { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-family: var(--police-titre); font-weight: 800; font-size: 1.1rem; text-decoration: none; letter-spacing: -0.02em; }
.marque-signe { color: var(--acier); flex: none; }
.menu ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; }
.menu li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.menu li a:hover { color: var(--accent); }
.menu-telephone { font-weight: 700; color: var(--accent); }
.menu-bouton { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .9rem; background: transparent; color: inherit; border: 1.5px solid var(--ligne-forte); border-radius: var(--rayon); font: inherit; font-weight: 600; }
.menu-bouton-barres { width: 1.1rem; height: 2px; background: currentColor; position: relative; }
.menu-bouton-barres::before, .menu-bouton-barres::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.menu-bouton-barres::before { top: -6px; }
.menu-bouton-barres::after { top: 6px; }
@media (min-width: 900px) { .menu { display: flex; align-items: center; gap: 2rem; } }
@media (max-width: 899px) {
  .menu { position: absolute; top: 100%; left: 0; right: 0; padding: 1rem var(--gouttiere) 1.5rem; background: var(--fond); border-bottom: 1px solid var(--ligne-forte); }
  .menu ul { flex-direction: column; gap: 0; }
  .menu li a, .menu-telephone { display: flex; align-items: center; min-height: 2.9rem; }
  .menu-telephone { border-top: 1px solid var(--ligne); margin-top: .5rem; padding-top: .5rem; }
}

/* ---------- boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.5rem; background: var(--accent); color: var(--encre); border: 1.5px solid var(--accent); border-radius: var(--rayon); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s, box-shadow .2s, transform .2s; }
.bouton:hover { background: #5fe092; border-color: #5fe092; box-shadow: 0 0 0 4px rgba(46, 204, 113, .16), 0 10px 30px -8px var(--halo); }
.bouton:active { transform: translateY(1px); }
.bouton-clair { background: transparent; border-color: var(--ligne-forte); color: var(--texte); font-weight: 600; }
.bouton-clair:hover { background: var(--texte); color: var(--fond); border-color: var(--texte); box-shadow: none; }
.lien-tel { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.lien-tel:hover { color: var(--accent); }

/* ---------- ouverture : cylindre ---------- */
.ouverture { position: relative; background: var(--fond); color: var(--texte); }
.ouverture-interieur { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(.9rem, 2.6vh, 1.8rem); min-height: 100svh; padding-block: 5.25rem 2rem; }
.ouv-tete { align-self: start; }
.surtitre { display: flex; align-items: center; gap: .7rem; font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--doux); margin-bottom: .9rem; }
.voyant { width: .6rem; height: .6rem; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 4px rgba(229, 72, 77, .18); flex: none; }
.ouverture[data-voyant="vert"] .voyant { background: var(--accent); box-shadow: 0 0 0 4px rgba(46, 204, 113, .2), 0 0 16px 2px var(--halo); }
h1 { font-size: clamp(2.25rem, 4.7vw + .3rem, 4.6rem); line-height: 1.0; letter-spacing: -0.035em; margin: 0; }
.h1-ligne { display: block; }
.h1-ouvre { color: var(--texte); }
.ouverture[data-voyant="vert"] .h1-ouvre { color: var(--accent); }

.cyl { display: grid; grid-template-columns: minmax(0, 1fr) clamp(170px, 13.5vw, 195px) clamp(180px, 15vw, 215px); gap: clamp(1rem, 1.8vw, 1.6rem); align-items: center; min-height: 0; }
.coupe, .face { margin: 0; min-width: 0; }
.coupe-svg, .face-svg { display: block; width: 100%; height: auto; overflow: hidden; }
.coupe-svg { max-height: 44vh; }
.face-svg { max-height: 42vh; }
.pin-corps { transition: none; }
.pin[data-aligne="false"] .marqueur { fill: #2a3139; }
.cyl[data-voyant="rouge"] .voyant-led { fill: var(--rouge); }
.cyl[data-voyant="rouge"] .voyant-halo { fill: var(--rouge); }

.panneau { border: 1.5px solid var(--ligne-forte); border-radius: var(--rayon-carte); background: #0b0d0f; padding: 1.1rem 1.25rem 1rem; }
.panneau-titre { font-family: var(--police-titre); font-weight: 800; font-size: clamp(1.15rem, 1.5vw, 1.45rem); letter-spacing: .02em; white-space: nowrap; text-transform: uppercase; line-height: 1; color: var(--accent); margin: 0 0 .7rem; }
.titre-ferme { display: none; color: var(--rouge); }
.ouverture[data-voyant="rouge"] .titre-ferme { display: inline; }
.ouverture[data-voyant="rouge"] .titre-ouvre { display: none; }
.panneau-horaires { margin: 0 0 .7rem; font-size: .95rem; color: var(--doux); }
.panneau-horaires dt { font-weight: 600; color: var(--texte); }
.panneau-horaires dd { margin: 0 0 .45rem; }
.panneau-note { margin: 0; font-size: .9rem; color: var(--doux); }

.ouv-pied { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.chapo { font-size: clamp(1rem, 1.25vw, 1.2rem); color: var(--doux); max-width: 62ch; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }

@media (min-width: 900px) and (max-height: 760px) {
  .ouverture-interieur { padding-block: 4.9rem 1.2rem; gap: .8rem; }
  .coupe-svg { max-height: 38vh; }
  .chapo { font-size: .98rem; }
}
@media (max-width: 899px) {
  .ouverture-interieur { min-height: 0; padding-block: 6.6rem 2.5rem; gap: 1.5rem; }
  .cyl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
    .coupe { grid-column: 1 / -1; }
  .coupe-svg { max-height: none; }
  .face { grid-column: 1; }
  .face-svg { max-height: none; }
  .panneau { grid-column: 2; padding: .9rem 1rem; }
  .panneau-titre { font-size: clamp(.95rem, 4.2vw, 1.3rem); }
  .ouv-pied { grid-template-columns: 1fr; }
  .etiquettes { display: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .cyl { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); align-items: center; }
  .panneau { grid-column: 2; }
}

/* ---------- sections ---------- */
.prestations, .methode, .zone, .contact { background: var(--fond); }
.methode, .contact { background: var(--fond-2); }
.section-contenu { padding-block: clamp(4rem, 9vw, 7rem); }
.rubrique { display: flex; align-items: center; gap: .8rem; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acier); margin-bottom: 1.1rem; }
.rubrique-num { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; padding: .15rem .45rem; border: 1px solid var(--ligne-forte); border-radius: var(--rayon); color: var(--texte); letter-spacing: .06em; }
.titre-section { font-size: clamp(1.9rem, 3vw + .5rem, 3.4rem); max-width: 21ch; letter-spacing: -0.035em; }
.chapeau { font-size: 1.125rem; color: var(--doux); margin: 0; }
.section-tete { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

/* ---------- prestations : mosaïque cartes et photos ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(15.5rem, auto); gap: 1rem;
  grid-template-areas: "c1 c2 p1" "c3 p3 p1" "p4 c4 c5" "p4 c6 p2"; }
.carte-1 { grid-area: c1; } .carte-2 { grid-area: c2; } .carte-3 { grid-area: c3; } .carte-4 { grid-area: c4; } .carte-5 { grid-area: c5; } .carte-6 { grid-area: c6; }
.vue-poignee { grid-area: p1; } .vue-cadenas { grid-area: p3; } .vue-boites { grid-area: p4; } .vue-casiers { grid-area: p2; }
.carte { display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.2rem; background: var(--panneau); border: 1px solid var(--ligne); border-radius: var(--rayon-carte); transition: border-color .2s, background-color .2s; }
.carte:hover { border-color: var(--ligne-forte); background: var(--panneau-2); }
.carte-tete { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; color: var(--acier); }
.carte-num { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--doux); }
.carte h3 { margin-bottom: .45em; }
.carte p { color: var(--doux); font-size: .975rem; line-height: 1.5; margin-bottom: 1rem; }
.denture { display: flex; align-items: flex-end; gap: 5px; height: 22px; margin-top: auto; }
.denture i { display: block; width: 12px; height: calc(var(--h) * 2.2px); background: var(--ligne-forte); border-radius: 1px; }
.carte:hover .denture i { background: var(--acier); }

.vue { position: relative; margin: 0; overflow: hidden; background: var(--panneau); border: 1px solid var(--ligne); border-radius: var(--rayon-carte); }
.vue img { width: 100%; height: 100%; object-fit: cover; }
.vue figcaption { position: absolute; left: 0; bottom: 0; padding: .45rem .8rem; background: var(--fond); color: var(--texte); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-top-right-radius: var(--rayon); }

/* ---------- méthode ---------- */
.methode-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.vue-trou { align-self: start; position: sticky; top: 6rem; aspect-ratio: 4 / 5; max-height: 600px; }
.methode-texte .section-tete { margin-bottom: 1.5rem; }
.etapes { list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: etape; }
.etape { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1.1rem; padding: 1rem 0; border-top: 1px solid var(--ligne); }
.etape:last-child { border-bottom: 1px solid var(--ligne); }
.etape-num { display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border: 1.5px solid var(--ligne-forte); border-radius: var(--rayon); font-family: var(--police-titre); font-weight: 800; font-size: 1.1rem; color: var(--acier); }
.etape h3 { margin-bottom: .25em; }
.etape p { margin: 0; color: var(--doux); font-size: .975rem; line-height: 1.5; }
.methode-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin: 0; }

/* ---------- zone ---------- */
.zone-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.zone-texte { align-self: start; }
.zone-texte .titre-section { max-width: 26ch; }
.communes { list-style: none; margin: 0; padding: 0; }
.communes li { display: flex; align-items: baseline; gap: 1.2rem; padding: .6rem 0; border-top: 1px solid var(--ligne); }
.communes li:last-child { border-bottom: 1px solid var(--ligne); }
.commune-num { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--acier); min-width: 1.6rem; }
.commune-nom { font-family: var(--police-titre); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; }
.vue-escalier { align-self: start; position: sticky; top: 6rem; aspect-ratio: 5 / 6; width: 100%; max-height: 600px; }

/* ---------- contact ---------- */
.contact-interieur { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: stretch; }
.vue-cles { max-height: 600px; min-height: 360px; }
.vue-cles img { filter: brightness(.62) contrast(1.05); }
.contact-texte .titre-section { font-size: clamp(1.8rem, 2.6vw + .4rem, 2.7rem); }
.contact-tel { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--police-titre); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; text-decoration: none; color: var(--accent); }
address { font-style: normal; color: var(--doux); margin-bottom: 1.25rem; }
address a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: underline; text-underline-offset: 4px; }
.horaires { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.25rem; margin: 0; color: var(--doux); }
.horaires dt { font-weight: 600; color: var(--texte); }
.horaires dd { margin: 0; }
.formulaire { padding: 1.5rem; background: var(--panneau); border: 1px solid var(--ligne); border-radius: var(--rayon-carte); }
.champ { margin-bottom: 1rem; }
.champ label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .95rem; }
.champ-requis { color: var(--acier); }
.champ input, .champ textarea { width: 100%; min-height: 3rem; padding: .7rem .85rem; background: var(--fond); color: var(--texte); border: 1.5px solid var(--ligne-forte); border-radius: var(--rayon); font: inherit; }
.champ textarea { resize: vertical; min-height: 7rem; }
.champ input:focus, .champ textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.formulaire .bouton { width: 100%; }
.formulaire-statut { margin: 1rem 0 0; padding: .8rem 1rem; border: 1px solid var(--accent); border-radius: var(--rayon); color: var(--texte); font-size: .95rem; }
.avis { margin: 2rem 0 0; padding: 1rem 1.25rem; border: 1px dashed var(--ligne-forte); border-radius: var(--rayon); color: var(--doux); text-align: center; }

/* ---------- pied et barre d'appel ---------- */
.pied { background: #040506; border-top: 1px solid var(--ligne); color: var(--doux); }
.pied-interieur { padding-block: 2.5rem 1rem; }
.pied-interieur p { margin-bottom: .35rem; }
.pied-nom { font-family: var(--police-titre); font-weight: 800; font-size: 1.25rem; color: var(--texte); }
.pied a { text-underline-offset: 4px; }
.mention-pied { color: var(--doux); border-top: 1px solid var(--ligne); }
.barre-appel { background: var(--accent); color: var(--encre); font-weight: 700; }
.barre-appel a { text-decoration: none; }

/* ---------- tablette et téléphone : une colonne ---------- */
@media (max-width: 899px) {
  .section-contenu { padding-block: 3.5rem; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto;
    grid-template-areas: "c1 c2" "c3 c4" "c5 c6" "p1 p4" "p3 p3" "p2 p2"; }
  .vue-poignee, .vue-boites { aspect-ratio: 4 / 5; }
  .vue-cadenas, .vue-casiers { aspect-ratio: 3 / 2; }
  .methode-grille, .zone-grille, .contact-interieur { grid-template-columns: 1fr; }
  .vue-trou { position: static; max-height: none; }
  .vue-escalier { position: static; max-width: 560px; aspect-ratio: 1 / 1; }
  .vue-cles { aspect-ratio: 3 / 2; min-height: 0; }
  .titre-section { max-width: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "c1" "c2" "c3" "c4" "c5" "c6" "p1" "p4" "p3" "p2"; }
  .etape { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .9rem; }
  .etape-num { width: 2.75rem; height: 2.75rem; }
  .contact-tel { font-size: 1.45rem; }
}
