/* ═══════════════════════════════════════════════════════════════════
   ECOPERFORMANCE — SYSTÈME DE DESIGN
   Atelier spécialiste diagnostic électronique & reprogrammation moteur
   Identité : "M-Sport" — bleu profond, acier argenté, pointe de rouge.
   Géométrie sobre (peu d'arrondi), palette technique et précise — pensée
   pour un artisan expérimenté, pas pour une appli grand public.
   Polices : Oswald (titres) / Space Mono (data, labels) / Inter (texte courant)
═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Surfaces sombres (sections "atelier") */
  --carbon:       #0E1420;
  --carbon-soft:  #161D2C;
  --graphite:     #232B3D;
  --line-dark:    rgba(237, 238, 240, 0.12);
  --line-dark-2:  rgba(237, 238, 240, 0.06);

  /* Surfaces claires (sections "contenu") */
  --paper:        #EDEEF0;
  --paper-dim:    #DFE2E6;
  --paper-line:   rgba(14, 20, 32, 0.12);

  /* Texte */
  --ink:          #12161F;
  --ink-soft:     #4A5568;
  --ink-mute:     #767F8C;
  --bone:         #EDEEF0;
  --bone-soft:    rgba(237, 238, 240, 0.72);
  --bone-mute:    rgba(237, 238, 240, 0.5);

  /* Accents signature — bleu M-Sport, acier argenté, rouge (usage ponctuel) */
  --copper:       #1E4FA0;
  --copper-bright:#4F87DE;
  --teal:         #5C6B80;
  --teal-bright:  #94A1B3;
  --signal:       #D1352E; /* rouge "diode active" — usage très ponctuel */
  --warn:         #B23B2F;

  /* Rythme — géométrie plus sobre, moins arrondie */
  --container: 1240px;
  --container-narrow: 820px;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-pill: 6px; /* remplace les anciennes pastilles 999px */
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Typo */
  --font-display: 'Oswald', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.no-scroll, body.no-scroll { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }

::selection { background: var(--copper); color: var(--bone); }

/* Focus visible sobre, accessible */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ── Texture "grain carbone" (sections sombres) ────────────────── */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Typo échelle ───────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.1; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  color: var(--copper);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 3px rgba(148, 161, 179, 0.18);
}
section.on-dark .eyebrow { color: var(--teal-bright); }

.h-xl { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 600; }
.h-l  { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 600; }
.h-m  { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
.h-s  { font-size: 1.15rem; font-weight: 600; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }
section.on-dark .lede { color: var(--bone-soft); }
.mono { font-family: var(--font-mono); }

/* ── Layout ─────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.on-dark { background: var(--carbon); color: var(--bone); }
section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Fil de trace (séparateur signature oscilloscope) ───────────── */
.trace-divider { width: 100%; height: 46px; overflow: hidden; }
.trace-divider svg { width: 100%; height: 100%; }
.trace-divider path {
  fill: none;
  stroke: var(--teal-bright);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  opacity: 0.55;
}

/* ── Boutons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  padding: 0.95em 1.7em;
  border-radius: var(--radius-pill);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn-primary { background: var(--copper); color: var(--bone); box-shadow: 0 8px 20px -10px rgba(30, 79, 160, 0.5); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(30, 79, 160, 0.6); }
.btn-outline { border: 1.5px solid currentColor; }
.btn-outline:hover { background: var(--ink); color: var(--bone); }
section.on-dark .btn-outline:hover { background: var(--bone); color: var(--carbon); }
.btn-ghost { color: var(--teal); }
.btn-ghost::after { content: "→"; transition: transform 0.3s var(--ease); }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.15rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(14, 20, 32, 0.86); backdrop-filter: blur(14px); padding: 0.75rem 0; border-color: var(--line-dark); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--bone); min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--teal-bright); font-weight: 400; margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--bone-soft); position: relative; padding: 0.3rem 0;
}
.nav-links a span.idx { color: var(--teal-bright); margin-right: 0.4em; }
.nav-links a.active, .nav-links a:hover { color: var(--bone); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--copper-bright); transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-cta .btn { padding: 0.72em 1.4em; font-size: 0.78rem; }
.nav-cta .btn-outline { color: var(--bone); }

.nav-burger { display: none; width: 40px; height: 40px; position: relative; z-index: 210; flex-shrink: 0; }
.nav-burger span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--bone); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 26px; }
.nav.is-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-inner { flex-wrap: nowrap; }
  .brand { min-width: 0; }
  .brand > span { min-width: 0; overflow: hidden; }
  .nav-links { position: fixed; inset: 0; background: var(--carbon); flex-direction: column; justify-content: center; gap: 2.2rem;
    opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
  .nav-links a { font-size: 1.1rem; }
  .nav.is-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-cta .btn-outline { display: none; }
  .nav-burger { display: block; }
}

@media (max-width: 480px) {
  .brand small { display: none; }
  .brand span { font-size: 1rem; }
  .nav-cta .btn-primary { padding: 0.62em 1.1em; font-size: 0.72rem; }
}

/* ── Cartes ─────────────────────────────────────────────────────── */
.card {
  background: var(--bone);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-l);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -26px rgba(14,20,32,0.32); border-color: rgba(30,79,160,0.35); }
.card .card-index { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal); letter-spacing: 0.08em; margin-bottom: 1.1rem; display: block; }
.card-icon { width: 46px; height: 46px; margin-bottom: 1.3rem; color: var(--copper); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

.card-dark { background: var(--carbon-soft); border: 1px solid var(--line-dark); color: var(--bone); }
.card-dark p { color: var(--bone-soft); }

/* ── Bandeau de confiance (stats / marquee) ────────────────────── */
.stat-strip { display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 5vw, 3.5rem); }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--copper-bright); }
.stat .label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em; color: var(--bone-mute); text-transform: uppercase; }
section:not(.on-dark) .stat .label { color: var(--ink-mute); }

/* ── Étoiles / avis ─────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; color: var(--copper-bright); }
.stars svg { width: 16px; height: 16px; }
.review-card { display: flex; flex-direction: column; gap: 0.9rem; }
.review-card .rq { font-family: var(--font-display); font-size: 2.2rem; color: var(--paper-line); line-height: 0.6; }
.review-card .quote {
  font-size: 0.98rem; color: var(--ink-soft);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5;
  overflow: hidden;
}
.review-card.is-expanded .quote { -webkit-line-clamp: unset; overflow: visible; }
.review-card .read-more {
  align-self: flex-start; color: var(--copper); font-size: 0.78rem; letter-spacing: 0.03em;
  text-decoration: underline; text-underline-offset: 2px; margin-top: -0.3rem;
}
.review-card .who { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-mute); margin-top: 0.4rem; }
.review-source { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.72rem; }

.rating-badge { display: inline-flex; align-items: center; gap: 0.9rem; background: var(--bone); border: 1px solid var(--paper-line); border-radius: var(--radius-m); padding: 0.6rem 1.2rem 0.6rem 0.7rem; }
.rating-badge .score { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; background: var(--carbon); color: var(--bone); width: 2.4rem; height: 2.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.rating-badge .meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-mute); }

/* ── Formulaires ────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-mute); }
section.on-dark .field label { color: var(--bone-mute); }
.field input, .field select, .field textarea {
  background: transparent; border: none; border-bottom: 1.5px solid var(--paper-line);
  padding: 0.7rem 0.1rem; font-size: 1rem; transition: border-color 0.3s;
}
section.on-dark .field input, section.on-dark .field select, section.on-dark .field textarea { border-color: var(--line-dark); color: var(--bone); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); outline: none; }
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.84rem; color: var(--ink-mute); }
section.on-dark .consent { color: var(--bone-mute); }
.consent input { margin-top: 0.25rem; accent-color: var(--copper); }
.consent a { text-decoration: underline; }
.form-note { font-family: var(--font-mono); font-size: 0.78rem; margin-top: 1rem; min-height: 1.2em; }
.form-note.ok { color: var(--teal); }
.form-note.err { color: var(--warn); }

/* select natif : flèche discrète */
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7E85' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.2rem center; }

/* ── Tags / badges ──────────────────────────────────────────────── */
.tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid currentColor; color: var(--teal); border-radius: var(--radius-pill); padding: 0.32em 0.8em; display: inline-block; }

/* ── Tableau tarifs ─────────────────────────────────────────────── */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th { text-align: left; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-mute); padding: 0.9rem 1rem; border-bottom: 1px solid var(--paper-line); }
.price-table td { padding: 1.15rem 1rem; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: none; }
.price-table .svc { font-weight: 600; }
.price-table .desc { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.25rem; }
.price-table .amount { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; text-align: right; color: var(--copper); }
@media (max-width: 700px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { border-bottom: 1px solid var(--paper-line); padding: 1.1rem 0; }
  .price-table td { border: none; padding: 0.2rem 0; }
  .price-table .amount { text-align: left; margin-top: 0.4rem; }
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--carbon); color: var(--bone-soft); padding: 4rem 0 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; } }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 1.1rem; }
.footer-grid li { margin-bottom: 0.6rem; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--bone); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--bone-mute); }
.footer-bottom nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ── Bandeau cookies ────────────────────────────────────────────── */
.cookie-bar {
  position: fixed; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; z-index: 300;
  max-width: 560px; margin: 0 auto;
  background: var(--carbon); color: var(--bone); border-radius: var(--radius-m);
  border: 1px solid var(--line-dark);
  padding: 1.3rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
  transform: translateY(140%); transition: transform 0.5s var(--ease);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { font-size: 0.85rem; color: var(--bone-soft); flex: 1 1 260px; }
.cookie-bar .actions { display: flex; gap: 0.6rem; }
.cookie-bar .btn { padding: 0.6em 1.1em; font-size: 0.75rem; }

/* ── Reveal on scroll ───────────────────────────────────────────────
   Scopé à .js (classe ajoutée par un script inline dans <head>) :
   si JavaScript est indisponible, tout le contenu reste visible par
   défaut plutôt que caché en opacity:0. Voir main.js pour l'ajout de .in. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { padding-top: clamp(8rem, 16vw, 11rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-l); overflow: hidden; background: var(--carbon-soft); border: 1px solid var(--line-dark); }
.hero-badges { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }

/* Onde de fond animée (oscilloscope) */
.wave-anim { position: absolute; inset: 0; opacity: 0.9; }
.wave-anim path { fill: none; stroke: var(--teal-bright); stroke-width: 1.4; }
.wave-anim .w2 { stroke: var(--copper-bright); opacity: 0.55; }

/* ── Breadcrumb / page hero secondaire ──────────────────────────── */
.page-hero { padding: clamp(8rem, 14vw, 10rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero .h-l { max-width: 16ch; }

/* ── Accordéon FAQ ──────────────────────────────────────────────── */
.acc-item { border-bottom: 1px solid var(--paper-line); }
.acc-item summary { list-style: none; cursor: pointer; padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .plus { font-family: var(--font-mono); font-size: 1.2rem; color: var(--copper); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.acc-item[open] summary .plus { transform: rotate(45deg); }
.acc-item .acc-body { padding-bottom: 1.4rem; color: var(--ink-soft); font-size: 0.95rem; max-width: 62ch; }

/* ── Grille section contact (coordonnées + formulaire) ──────────── */
.contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ── Calendrier de réservation ──────────────────────────────────── */
.booking-cal { background: var(--bone); border: 1px solid var(--paper-line); border-radius: var(--radius-l); padding: clamp(1.4rem, 2.6vw, 2rem); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.cal-head strong { font-family: var(--font-display); font-size: 1.05rem; text-transform: capitalize; }
.cal-nav-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--paper-line); display: flex; align-items: center; justify-content: center; transition: background 0.25s, color 0.25s; }
.cal-nav-btn:hover:not(:disabled) { background: var(--ink); color: var(--bone); }
.cal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35rem; }
.cal-dow { text-align: center; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-mute); padding-bottom: 0.4rem; }
.cal-day { aspect-ratio: 1; border-radius: 8px; font-size: 0.86rem; display: flex; align-items: center; justify-content: center; transition: background 0.25s, color 0.25s; }
.cal-day:not(:disabled):hover { background: var(--paper-dim); }
.cal-day.is-off { color: var(--ink-mute); opacity: 0.35; }
.cal-day.is-selected { background: var(--copper); color: var(--bone); font-weight: 700; }
.cal-slots { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px dashed var(--paper-line); }
.slot { border: 1px solid var(--paper-line); border-radius: var(--radius-pill); padding: 0.5em 1.1em; font-size: 0.82rem; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.slot:hover:not(:disabled) { border-color: var(--copper); }
.slot.is-selected { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.slot.is-busy, .slot:disabled { text-decoration: line-through; opacity: 0.35; cursor: not-allowed; }
.cal-summary { font-family: var(--font-mono); font-size: 0.82rem; color: var(--teal); margin-top: 1rem; text-transform: capitalize; }

/* ── Utilitaires ────────────────────────────────────────────────── */
.flex { display: flex; align-items: center; }
.gap-s { gap: 0.6rem; } .gap-m { gap: 1.2rem; } .gap-l { gap: 2rem; }
.mt-l { margin-top: 2.5rem; } .mt-m { margin-top: 1.5rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--copper); color: var(--bone); padding: 0.8rem 1.2rem; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
