/* ============================================================================
   MISE EN PAGE — vitrine de démonstration « VOTRE ARTISAN ».
   ----------------------------------------------------------------------------
   Calquée sur styles.css de site-ping-demo (mêmes classes portées par
   templates.css : hero, intro, schedule, competition, contact…), avec les
   rubriques propres à l'artisan :
     - galerie avant / après (comparateur)        → .gal-*
     - simulateur de devis (section sombre)       → réutilise .competition
     - réservation de rendez-vous                 → .rdv-*
     - zone d'intervention                        → .zone-*
     - SOS dépannage                              → .urgence-*
     - encarts photo des gabarits                 → .photo-slot (templates.css)
   Les couleurs passent toujours par les variables de palette.css : aucune
   valeur de couleur codée en dur ici (hors états sémantiques).
   ============================================================================ */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; }

.skip-link { position: fixed; left: 10px; top: -80px; z-index: 99; background: var(--lime); color: var(--ink); padding: 10px; }
.skip-link:focus { top: 10px; }

/* --- Bandeaux de démonstration --------------------------------------------- */
.demo-banner { background: var(--ink); color: #fff; font: 500 11px/1.5 var(--mono); letter-spacing: .04em; padding: 9px clamp(20px, 5vw, 76px); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.demo-banner .db-line { color: #c9cdd6; }
.demo-banner strong { color: var(--lime); font-weight: 700; }
.demo-banner a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

/* --- Barre de navigation ---------------------------------------------------- */
.topbar { height: 78px; background: var(--ink); color: white; display: flex; align-items: center; padding: 0 clamp(20px, 5vw, 76px); gap: 36px; position: relative; z-index: 5; }
.brand { font: 700 17px var(--display); letter-spacing: .02em; text-decoration: none; color: white; display: flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.brand b { color: var(--lime); font-weight: 700; }
.brand-mark { width: 24px; height: 24px; border: 2px solid var(--lime); border-radius: 4px; position: relative; display: inline-block; margin-right: 10px; align-self: center; }
.brand-mark::before { content: ''; position: absolute; inset: 6px 5px; border-top: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-35deg); }
nav { display: flex; align-items: center; gap: clamp(16px, 2.7vw, 42px); margin: auto; }
nav a, .nav-cta { color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a.is-active { border-bottom-color: var(--lime); }
nav a:hover, nav a:focus-visible, nav a.is-previewed { color: var(--lime); }
.nav-cta { border: 1px solid rgba(255, 255, 255, .4); padding: 10px 15px; }
.nav-cta span { color: var(--lime); font-size: 16px; margin-left: 4px; }
.nav-cta:hover, .nav-cta:focus-visible { border-color: var(--lime); color: var(--lime); }
.nav-toggle { display: none; }

/* --- Boutons, habillages communs --------------------------------------------- */
.button { display: inline-flex; gap: 18px; align-items: center; justify-content: space-between; padding: 15px 18px; text-decoration: none; text-transform: uppercase; letter-spacing: .09em; font: 700 11px var(--mono); cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.button:hover { transform: translateY(-3px); }
.button span { font-size: 16px; }
.button-lime { background: var(--lime); color: var(--ink); border: 1px solid var(--lime); }
.button-dark { background: var(--ink); color: #fff; white-space: nowrap; border: 1px solid var(--ink); }
.button-outline { border: 1px solid currentColor; color: inherit; background: transparent; }
.hero .button-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .button-outline:hover { border-color: var(--lime); color: var(--lime); }
.button-sos { display: inline-flex; align-items: center; gap: 9px; padding: 14px 16px; background: transparent; border: 1px solid var(--danger); color: #ffb4ab; font: 700 11px var(--mono); letter-spacing: .09em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.button-sos i { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: pulse 1.8s infinite; }
.button-sos:hover { background: var(--danger); color: #fff; }
.section-light .button-sos { color: var(--danger); }

.eyebrow, .kicker, .section-label { font: 500 11px var(--mono); letter-spacing: .1em; }
.eyebrow { color: var(--lime); display: flex; gap: 10px; align-items: center; }
.eyebrow span:first-child { width: 21px; height: 1px; background: var(--lime); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-size: clamp(52px, 8vw, 118px); line-height: .9; letter-spacing: -.065em; }
h1 em, h2 em { font-family: Georgia, serif; font-weight: 400; color: var(--lime); }
.sec-title { font-size: clamp(44px, 6vw, 84px); line-height: .95; letter-spacing: -.055em; margin-top: 18px; }
.section-pad { padding: clamp(72px, 10vw, 145px) clamp(20px, 10vw, 154px); }
.kicker { color: var(--coral); margin: 0 0 12px; }

/* --- Icônes (Tabler Icons, webfont embarqué) --------------------------------- */
/* Tailles et alignements contextuels : chaque gabarit reprend la couleur et
   la taille de son texte, seuls les points d'ancrage sont ajustés ici. */
.kicker .ti { margin-right: 7px; }
.section-label .ti { font-size: 13px; margin-right: 7px; }
.hero-proof .ti { font-size: 13px; margin-right: 7px; color: var(--lime); }
.day .ti { font-size: .8em; color: var(--coral); margin-right: 13px; }
.contact-line .ti { font-size: 21px; flex: none; }
.footer-contact .ti { font-size: 15px; flex: none; color: var(--lime); }
.certif-etat .ti { font-size: 12px; margin-right: 5px; }

/* --- Hero -------------------------------------------------------------------- */
.hero { min-height: calc(100vh - 78px); position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: white; padding: clamp(60px, 9vw, 130px) clamp(20px, 8vw, 140px) 96px; display: flex; align-items: center; gap: clamp(30px, 4vw, 70px); flex-wrap: wrap; }
.hero-grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, black, transparent); }
.orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; z-index: -1; }
.orbit-one { width: 84vw; height: 84vw; right: -42vw; }
.orbit-two { width: 47vw; height: 47vw; right: 3vw; top: 12%; }
.hero-content { max-width: 720px; flex: 1 1 520px; }
.hero-copy { font-size: clamp(15px, 1.2vw, 18px); max-width: 520px; line-height: 1.75; margin: 30px 0; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 34px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .25); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #b9bdc9; }
.hero-proof a { color: inherit; }
/* Carte « prochain créneau » — l'argument de vente flottant du hero. */
.hero-rdv { flex: 0 1 330px; min-width: 280px; background: color-mix(in srgb, #fff 7%, transparent); border: 1px solid color-mix(in srgb, var(--lime) 55%, transparent); padding: 26px 26px 22px; backdrop-filter: blur(3px); }
.hero-rdv .kicker { color: var(--lime); font-size: 10px; }
.hero-rdv strong { display: block; font: 700 30px/1.05 var(--display); letter-spacing: -.03em; margin: 8px 0 6px; text-transform: capitalize; }
.hero-rdv p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.6; color: #c9cdd6; }
.hero-rdv .button { width: 100%; }
.hero-rdv-note { margin: 12px 0 0 !important; font: 500 10px var(--mono) !important; letter-spacing: .06em; text-transform: uppercase; color: #8f95a3 !important; }
.scroll-cue { position: absolute; bottom: 24px; left: clamp(20px, 5vw, 76px); color: white; text-decoration: none; font: 10px var(--mono); letter-spacing: .08em; display: flex; gap: 12px; align-items: center; }
.scroll-cue i { font-style: normal; color: var(--lime); font-size: 18px; }

/* --- Scène animée du hero (anime.js — animations.js) ------------------------
   Une illustration SVG par secteur d'activité, accrochée en HAUT à droite,
   dans la zone des orbites : ancrée à 46 % de hauteur, elle chevauchait la
   carte « prochain créneau » (voile flouté). La scène vit désormais tout
   entière dans l'espace libre au-dessus de la carte — taille plafonnée pour
   rester dégagée quelles que soient la police et la hauteur de la carte.
   Sans anime.js ou en mouvement réduit : le dessin reste visible, figé. */
.hero-art { position: absolute; right: clamp(4px, 2vw, 36px); top: 0; width: min(22vw, 320px, max(150px, calc(100vh - 580px))); aspect-ratio: 1; pointer-events: none; z-index: 0; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.hero-art .ha-acc { fill: var(--lime); }
.hero-art .ha-acc2 { fill: color-mix(in srgb, var(--coral) 88%, transparent); }
.hero-art .ha-stem { stroke: var(--lime); stroke-width: 7; fill: none; stroke-linecap: round; }
.hero-art .ha-bolt { stroke: var(--lime); stroke-width: 12; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.hero-art .ha-blade { stroke: var(--lime); stroke-width: 14; fill: none; stroke-dasharray: 16 12; }
.hero-art .ha-hub { fill: color-mix(in srgb, var(--coral) 70%, transparent); }
.hero-art .ha-ring { stroke: var(--lime); stroke-width: 3; fill: none; }
.hero-art .ha-ring-handle { fill: none; stroke: color-mix(in srgb, var(--coral) 88%, transparent); stroke-width: 7; }
.hero-art .ha-steel { fill: color-mix(in srgb, var(--paper) 92%, transparent); }
.hero-art .ha-bubble { fill: none; stroke: color-mix(in srgb, var(--paper) 70%, transparent); stroke-width: 2.5; }
.hero-art .ha-rain { stroke: var(--coral); stroke-width: 4; stroke-linecap: round; }
.hero-art .ha-roof { stroke: var(--paper); stroke-width: 10; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .ha-faint { stroke: color-mix(in srgb, var(--paper) 35%, transparent); stroke-width: 3; fill: none; stroke-linecap: round; }

/* --- Rubrique Services (pattern « intro » du ping) ---------------------------- */
.intro { display: grid; grid-template-columns: 1fr 2.3fr 1.25fr; gap: 38px; position: relative; }
.section-label { display: flex; gap: 13px; align-items: center; align-self: start; }
.section-label span { background: var(--ink); color: var(--lime); padding: 4px 6px; }
.section-label p { margin: 0; }
.intro-main { grid-column: 2; }
.intro h2 { font-size: clamp(44px, 6vw, 84px); line-height: .95; letter-spacing: -.055em; }
.intro-copy { grid-column: 2; align-self: end; line-height: 1.8; font-size: 15px; }
.arrow-link { display: inline-block; margin-top: 17px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; color: inherit; text-decoration: none; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.arrow-link span { color: var(--coral); font-size: 17px; margin-left: 13px; }
.club-values { grid-column: 2/4; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 66px; border-top: 1px solid var(--line); }
.value-card { position: relative; padding: 23px 25px; border-right: 1px solid var(--line); min-height: 180px; }
.value-ico { position: absolute; top: 22px; right: 20px; font-size: 27px; color: var(--coral); }
.value-card.accent .value-ico { color: var(--ink); opacity: .5; }
.value-card:first-child { padding-left: 0; }
.value-card:last-child { border: 0; }
.value-card.accent { background: var(--coral); margin-top: -12px; margin-bottom: -12px; border: 0; }
.value-n { font: 11px var(--mono); color: var(--coral); margin: 0; }
.value-card.accent .value-n { color: var(--ink); }
.value-card h3 { font: 700 25px var(--display); letter-spacing: -.055em; margin: 26px 0 9px; }
.value-card p { font-size: 13px; line-height: 1.6; margin: 0; }

/* --- Horaires (pattern « schedule » du ping) ----------------------------------- */
.schedule { background: #e2e5e9; }
.schedule-heading { display: grid; grid-template-columns: 1fr 2.3fr 1.25fr; gap: 38px; align-items: end; }
.schedule-heading h2 { grid-column: 2; font-size: clamp(44px, 6vw, 84px); line-height: .95; letter-spacing: -.055em; }
.schedule-heading > p { margin: 0; line-height: 1.6; font-size: 14px; }
.schedule-list { margin-top: 63px; border-top: 1px solid var(--ink); }
.schedule-row { display: grid; grid-template-columns: 2.5fr 2fr 20px; align-items: center; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); transition: padding .3s, background .3s; }
.schedule-row:hover { background: var(--lime); padding-left: 14px; padding-right: 14px; }
.day { font: 700 clamp(19px, 2.6vw, 33px) var(--display); letter-spacing: -.06em; margin: 0; }
.day span { font-family: Georgia, serif; font-weight: 400; }
.schedule-type, time { font: 13px var(--mono); }
.dot { width: 9px; height: 9px; background: var(--coral); border-radius: 50%; }
.schedule-note { margin: 27px 0 0; text-align: right; font-size: 13px; }
.schedule-note a { color: inherit; font-weight: 800; }

/* --- Galerie avant / après ------------------------------------------------------ */
.gal-intro { max-width: 560px; line-height: 1.8; font-size: 15px; margin: 18px 0 0; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 34px); margin-top: clamp(38px, 5vw, 64px); }
.gal-card { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--line); }
.gal-card h3 { font: 700 19px/1.2 var(--display); letter-spacing: -.03em; margin: 18px 18px 4px; }
.gal-ville { margin: 0 18px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.gal-card > p:last-child { margin: 10px 18px 18px; font-size: 13px; line-height: 1.65; }
/* Comparateur : la couche « après » glisse par-dessus l'« avant » (teintes CSS
   fournies par la fiche — en production, de vraies photos + PhotoSwipe). */
/* Comparateur : la couche « après » glisse par-dessus l'« avant ». Fonctionne
   avec les aplats de démo (variables --ba-*) et les vraies photos (galerie.js
   pose background-image) grâce au découpage clip-path calé sur --pos. */
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--ba-avant-1, #9aa2ab), var(--ba-avant-2, #6b7280)); background-size: cover; background-position: center; touch-action: none; }
.ba-apres { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); background: linear-gradient(135deg, var(--ba-apres-1, #7fc4e8), var(--ba-apres-2, #3d7fa8)); background-size: cover; background-position: center; }
.ba-apres::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 12vw; min-width: 90px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18)); }
.ba-label { position: absolute; top: 12px; font: 700 10px var(--mono); letter-spacing: .14em; padding: 5px 9px; background: rgba(0, 0, 0, .55); color: #fff; pointer-events: none; }
.ba-label-avant { right: 12px; }
.ba-label-apres { left: 12px; background: var(--lime); color: var(--ink); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.ba-handle::after { content: '⇔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.gal-note { margin: 26px 0 0; font: 500 11px var(--mono); letter-spacing: .05em; color: color-mix(in srgb, var(--ink) 65%, transparent); }

/* --- Simulateur de devis (section sombre, pattern « competition ») ---------------- */
.competition { background: var(--ink); color: white; position: relative; overflow: hidden; }
.competition-noise { position: absolute; inset: 0; opacity: .13; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.competition .section-label { position: relative; }
.competition .section-label span { background: var(--lime); color: var(--ink); }
.competition .kicker { color: var(--lime); }
.competition-wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(30px, 5vw, 80px); margin-top: clamp(40px, 6vw, 76px); position: relative; }
.competition-copy { max-width: 660px; }
.competition-copy h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: .95; letter-spacing: -.055em; }
.competition-copy p { max-width: 520px; line-height: 1.8; font-size: 15px; margin: 26px 0; color: #d4d7de; }
.devis-form { display: grid; gap: 18px; max-width: 520px; }
.devis-resultat { display: grid; gap: 6px; margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .3); }
.devis-resultat .kicker { margin: 0; font-size: 10px; }
.devis-score { color: var(--lime); display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 14px; }
.devis-score strong { font: 700 clamp(38px, 5.4vw, 76px)/1 var(--display); letter-spacing: -.05em; white-space: nowrap; }
.devis-score span { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #b9bdc9; max-width: 180px; }
.devis-note { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: #9da4b3; }
.devis-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

/* --- Formulaires ------------------------------------------------------------------ */
.field { display: grid; gap: 7px; }
.field label { font: 700 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.field label em { color: var(--coral); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 14.5px var(--body); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: var(--lime); }
.competition .field label, .rdv-form-dark .field label { color: #c9cdd6; }
.competition .field select { background: color-mix(in srgb, #fff 8%, var(--ink)); color: #fff; border-color: rgba(255, 255, 255, .35); }
.check { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--lime); flex: none; }
.checks { display: grid; gap: 10px; }

/* --- Réservation de rendez-vous ---------------------------------------------------- */
.rdv-head { display: grid; grid-template-columns: 1fr 2.3fr 1.25fr; gap: 38px; align-items: end; }
.rdv-head h2 { grid-column: 2; font-size: clamp(44px, 6vw, 84px); line-height: .95; letter-spacing: -.055em; }
.rdv-head > p { margin: 0; line-height: 1.6; font-size: 14px; }
.rdv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); margin-top: clamp(40px, 6vw, 64px); }
.rdv-panel { background: #fff; border: 1px solid var(--line); padding: clamp(18px, 2.5vw, 30px); }
.rdv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rdv-toolbar strong { font: 700 19px var(--display); letter-spacing: -.03em; text-transform: capitalize; }
.rdv-nav { display: flex; gap: 8px; }
.rdv-nav button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 16px var(--display); cursor: pointer; }
.rdv-nav button:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
.rdv-nav button:disabled { opacity: .35; cursor: default; }
.rdv-services { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rdv-service-chip { padding: 8px 13px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 11.5px var(--body); cursor: pointer; transition: all .15s ease; }
.rdv-service-chip:hover { border-color: var(--lime); }
.rdv-service-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.rdv-service-chip small { display: block; font: 500 9.5px var(--mono); letter-spacing: .05em; opacity: .75; margin-top: 2px; }
.rdv-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.rdv-weekday { font: 700 9.5px var(--mono); letter-spacing: .1em; text-align: center; color: color-mix(in srgb, var(--ink) 55%, transparent); padding: 4px 0; }
.rdv-cell { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid transparent; font: 600 13.5px var(--body); background: transparent; }
.rdv-cell.is-empty { visibility: hidden; }
.rdv-cell.is-off { color: color-mix(in srgb, var(--ink) 30%, transparent); }
.rdv-cell.is-day { border-color: var(--line); cursor: pointer; transition: all .15s ease; }
.rdv-cell.is-day:hover { border-color: var(--lime); }
.rdv-cell.is-open { background: color-mix(in srgb, var(--lime) 14%, transparent); border-color: color-mix(in srgb, var(--lime) 45%, transparent); }
.rdv-cell.is-full { background: color-mix(in srgb, var(--ink) 6%, transparent); color: color-mix(in srgb, var(--ink) 45%, transparent); cursor: not-allowed; text-decoration: line-through; }
.rdv-cell.is-today::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.rdv-cell.is-selected { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.rdv-day-title { margin: 20px 0 10px; font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rdv-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.rdv-slot { padding: 9px 14px; border: 1px solid var(--line); background: #fff; font: 700 13px var(--mono); cursor: pointer; transition: all .15s ease; }
.rdv-slot:hover:not(:disabled) { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 12%, transparent); }
.rdv-slot.is-active { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.rdv-slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.rdv-empty { font-size: 13px; color: color-mix(in srgb, var(--ink) 60%, transparent); }
.rdv-form h3 { font: 700 22px var(--display); letter-spacing: -.04em; margin-bottom: 6px; }
.rdv-form > p { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.rdv-form form { display: grid; gap: 14px; }
.rdv-recap { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 14px; background: color-mix(in srgb, var(--lime) 14%, transparent); border: 1px solid color-mix(in srgb, var(--lime) 45%, transparent); font: 600 12.5px var(--body); }
.rdv-form-status { min-height: 20px; font: 600 12px var(--mono); letter-spacing: .02em; color: var(--danger); }
.rdv-form-status.is-ok { color: var(--ok); }
.rdv-confirme { display: none; text-align: left; }
.rdv-confirme.is-visible { display: block; }
.rdv-confirme .ref { font: 700 clamp(30px, 4vw, 46px)/1 var(--display); letter-spacing: -.04em; color: var(--lime); margin: 10px 0 14px; }
.rdv-confirme ul { margin: 0 0 18px; padding-left: 18px; font-size: 13.5px; line-height: 1.8; }
.rdv-confirme .button { margin-top: 4px; }
.rdv-note { margin: 18px 0 0; font: 500 11px/1.7 var(--mono); letter-spacing: .03em; color: color-mix(in srgb, var(--ink) 60%, transparent); }

/* --- Zone d'intervention ------------------------------------------------------------ */
.zone-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(26px, 4vw, 60px); margin-top: clamp(38px, 5vw, 60px); align-items: start; }
.zone-frais { font: 700 clamp(20px, 2.4vw, 30px) var(--display); letter-spacing: -.03em; margin: 0 0 6px; }
.zone-rayon { margin: 0 0 20px; font: 500 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 65%, transparent); }
.commune-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.commune-chip { padding: 9px 14px; border: 1px solid var(--ink); font: 700 12px var(--body); }
.zone-note { margin: 22px 0 0; font-size: 13px; line-height: 1.7; color: color-mix(in srgb, var(--ink) 70%, transparent); }
/* Encart carte (Leaflet/OSM en production) : placeholder dessiné en CSS. */
.zone-carte { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: repeating-linear-gradient(0deg, transparent 0 34px, color-mix(in srgb, var(--ink) 8%, transparent) 34px 35px), repeating-linear-gradient(90deg, transparent 0 34px, color-mix(in srgb, var(--ink) 8%, transparent) 34px 35px), color-mix(in srgb, var(--coral) 10%, var(--paper)); }
.zone-carte::before { content: ''; position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px dashed var(--coral); border-radius: 50%; opacity: .8; }
.zone-carte::after { content: '⌖ ' attr(data-ville); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 13px var(--mono); letter-spacing: .06em; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); padding: 8px 14px; }
.zone-carte small { position: absolute; left: 12px; bottom: 10px; font: 500 10px var(--mono); letter-spacing: .05em; color: color-mix(in srgb, var(--ink) 60%, transparent); }

/* --- Certifications (pattern « teams ») ----------------------------------------------- */
.certif-intro { max-width: 560px; line-height: 1.8; font-size: 15px; margin: 18px 0 0; }
.certif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 30px); margin-top: clamp(38px, 5vw, 60px); }
.member-card { background: #fff; border: 1px solid var(--line); padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 8px; align-content: start; }
.member-card h3 { font: 700 21px var(--display); letter-spacing: -.035em; }
.member-card p { margin: 0; font-size: 13px; line-height: 1.6; }
.certif-etat { justify-self: start; padding: 6px 10px; font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.certif-etat.is-bientot { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }


/* --- FAQ --------------------------------------------------------------------------------- */
.faq-intro { max-width: 560px; line-height: 1.8; font-size: 15px; margin: 18px 0 0; }
.faq-list { margin-top: 40px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font: 700 clamp(17px, 2vw, 22px) var(--display); letter-spacing: -.025em; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font: 400 26px/1 var(--display); color: var(--coral); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 22px; max-width: 720px; font-size: 14.5px; line-height: 1.75; }

/* --- Contact ------------------------------------------------------------------------------ */
.contact { background: var(--lime); }
.contact-grid { margin-top: 70px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 9vw; }
.contact-title h2 { font-size: clamp(44px, 6vw, 84px); line-height: .95; letter-spacing: -.055em; }
.contact-title h2 em { color: var(--ink); }
.contact-title p { max-width: 390px; line-height: 1.8; font-size: 14px; margin-top: 25px; }
.contact-details { border-top: 1px solid var(--ink); }
.contact-line { padding: 20px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 42%, transparent); display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: var(--ink); gap: 20px; }
.contact-line span { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; margin-right: auto; }
.contact-line strong { font: 700 16px var(--display); text-align: right; }
.contact-line strong small { display: block; font: 500 11px var(--mono); letter-spacing: .02em; margin-top: 3px; }
.contact-person { margin-top: 16px; font: 700 15px var(--display); letter-spacing: -.02em; }
.contact-quote { line-height: 1.8; font-size: 14px; margin-top: 18px; }
.contact-foot { margin-top: 65px; border-top: 1px solid var(--ink); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.contact-foot p { margin: 0; font-size: 13px; max-width: 500px; line-height: 1.6; }
.contact-foot-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Pied de page -------------------------------------------------------------------------- */
footer { background: var(--ink); color: white; padding: clamp(48px, 7vw, 72px) clamp(20px, 5vw, 76px) 34px; display: grid; grid-template-columns: 1.5fr .9fr .9fr 1.1fr; gap: 0 clamp(30px, 4vw, 56px); align-items: start; }
footer nav { display: block; margin: 0; }
footer p { font-size: 12px; line-height: 1.65; margin: 0; color: #c7cad6; }
.footer-brand { font: 700 28px var(--display); letter-spacing: -.06em; color: #fff; text-decoration: none; display: inline-block; }
.footer-brand span { color: var(--lime); }
.footer-tagline { margin: 12px 0 0; }
.footer-cta { margin-top: 24px; }
.footer-heading { font: 700 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #8b90a0; margin: 4px 0 8px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-links a, .footer-contact a { display: inline-block; font-size: 12.5px; line-height: 1.5; color: #d1d5df; text-decoration: none; padding: 6px 0; transition: color .15s ease, transform .15s ease; }
.footer-links a:hover, .footer-links a:focus-visible, .footer-contact a:hover, .footer-contact a:focus-visible { color: var(--lime); transform: translateX(3px); }
.footer-contact li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; line-height: 1.5; color: #d1d5df; padding: 6px 0; }
.footer-bottom { grid-column: 1/-1; margin-top: clamp(30px, 4vw, 46px); padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; justify-content: space-between; }
.copyright, .footer-credit { font-size: 11px; letter-spacing: .04em; color: #8b90a0; }
.footer-credit a { color: #c7cad6; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--lime); }

/* --- SOS dépannage (pastille + fenêtre) ------------------------------------------------------- */
.urgence-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px; background: var(--danger); color: #fff; border: 0; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.urgence-fab i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.8s infinite; }
.urgence-fab:hover { filter: brightness(1.08); }

/* --- Fenêtres (dialog) génériques ---------------------------------------------------------------- */
dialog { border: 1px solid color-mix(in srgb, var(--lime) 45%, transparent); background: var(--ink); color: var(--paper); padding: 34px 30px 24px; max-width: 560px; width: calc(100vw - 40px); }
dialog::backdrop { background: rgba(10, 15, 28, .72); }
dialog .kicker { color: var(--lime); }
dialog h2 { font: 700 clamp(26px, 4vw, 34px)/1.05 var(--display); letter-spacing: -.04em; margin: 0 0 6px; }
dialog h2 em { font-style: italic; color: var(--lime); }
dialog .nudge-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: color-mix(in srgb, var(--paper) 60%, transparent); font: 700 22px/1 var(--display); cursor: pointer; }
dialog .nudge-close:hover { color: var(--paper); }
dialog .dialog-intro { margin: 0 0 16px; font-size: 13px; line-height: 1.65; color: color-mix(in srgb, var(--paper) 78%, transparent); }
dialog form { display: grid; gap: 14px; margin: 0 0 6px; }
dialog .field label { color: #c9cdd6; }
dialog .field input, dialog .field select, dialog .field textarea { background: color-mix(in srgb, #fff 8%, var(--ink)); color: var(--paper); border-color: rgba(255, 255, 255, .3); }
dialog .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
dialog .status-line { margin: 12px 0 0; min-height: 18px; font: 600 11.5px var(--mono); letter-spacing: .03em; color: #43d17c; }
dialog .help-line { margin: 10px 0 0; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--paper) 30%, transparent); font: 500 10.5px/1.7 var(--mono); letter-spacing: .02em; color: color-mix(in srgb, var(--paper) 65%, transparent); }
dialog .help-line code { font: inherit; font-weight: 700; color: var(--paper); }
#urgence-dialog { max-width: 640px; }
#urgence-dialog h2 { text-wrap: balance; }
#urgence-dialog.is-sent form, #urgence-dialog.is-sent .dialog-intro { display: none; }
#urgence-dialog .urgence-succes { display: none; }
#urgence-dialog.is-sent .urgence-succes { display: block; }
.urgence-succes strong { display: block; font: 700 24px var(--display); letter-spacing: -.03em; margin: 10px 0 8px; }

/* --- Apparitions au défilement ------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* --- Animate.css — pop-ins ponctuels --------------------------------------------------------------
   Le contenu du hero déroule au chargement (classes animate__fadeInUp posées
   dans index.html ; délais échelonnés ci-dessous, fill-mode « both » évitant
   tout flash avant le départ). Les pop-ins interactifs — résultat du
   simulateur, confirmation de rendez-vous, dialog SOS — ajoutent les mêmes
   classes en JS. Le reste des apparitions passe par .reveal ci-dessus. */
.hero-content > :nth-child(1) { animation-delay: .05s; }
.hero-content > :nth-child(2) { animation-delay: .15s; }
.hero-content > :nth-child(3) { animation-delay: .25s; }
.hero-content > :nth-child(4) { animation-delay: .38s; }
.hero-content > :nth-child(5) { animation-delay: .5s; }

@keyframes pulse { 50% { transform: scale(1.6); opacity: .35; } }

/* --- Écrans étroits ------------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .gal-grid, .certif-grid { grid-template-columns: 1fr 1fr; }
  .rdv-layout, .zone-layout { grid-template-columns: 1fr; }
  .competition-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 20px; }
  .hero-art { display: none; }
  .nav-toggle { display: flex; background: none; border: 0; margin-left: auto; flex-direction: column; gap: 4px; padding: 8px; cursor: pointer; }
  .nav-toggle span:not(.sr-only) { width: 22px; height: 2px; background: white; }
  .nav-cta { display: none; }
  nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--ink); padding: 15px 20px 25px; flex-direction: column; align-items: flex-start; }
  nav.open { display: flex; }
  .hero { min-height: 0; padding: 64px 20px 90px; align-items: flex-start; flex-direction: column; }
  .hero-rdv { max-width: 420px; }
  .scroll-cue { left: 20px; }
  .intro, .schedule-heading, .rdv-head { grid-template-columns: 1fr; gap: 25px; }
  .intro-main, .intro-copy, .schedule-heading h2, .rdv-head h2 { grid-column: auto; }
  .club-values { grid-column: auto; margin-top: 28px; grid-template-columns: 1fr; }
  .value-card { padding: 18px 12px; min-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .value-card:last-child { border-bottom: 0; }
  .value-card.accent { margin-top: 0; margin-bottom: 0; }
  .gal-grid, .certif-grid { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 1.4fr 1fr 14px; gap: 9px; }
  .schedule-row .schedule-type { font-size: 11px; }
  .contact-grid { grid-template-columns: 1fr; margin-top: 44px; }
  .contact-foot { margin-top: 45px; flex-direction: column; align-items: flex-start; }
  footer { grid-template-columns: 1fr 1fr; gap: 34px 24px; padding: 48px 20px 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 30px; }
  .day { font-size: 20px; }
}
@media (max-width: 480px) {
  footer { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions .button { width: 100%; justify-content: center; }
  .devis-actions .button, .contact-foot-buttons .button { width: 100%; justify-content: center; }
}

.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); overflow: hidden; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
