/* ==========================================================================
   Fred Artisan Mécanicien
   Feuille de style principale
   ========================================================================== */

/* ---------- Variables de design ---------- */
:root {
  --ink: #000000;          /* noir (boutons foncés, filtres) */
  --steel: #22262b;        /* surfaces sombres (visionneuse photo) */
  --steel-2: #2d3238;
  --paper: #eef1f5;        /* fond de page (gris clair) */
  --white: #ffffff;
  --soft: #e2e7ee;         /* fond des sections alternées, un ton plus foncé */
  --text: #000000;         /* texte principal */
  --muted: #4a4f57;        /* texte secondaire */
  --line: #e1e5eb;
  --line-strong: #cfd5dd;

  --bar: #16181b;          /* barres noires du haut (en-tête) et du bas (pied de page) */
  --on-bar: #d9dde1;       /* texte sur les barres noires */
  --on-bar-muted: #a9b0b8;
  --bar-line: #363b42;

  --accent: #1165d9;       /* bleu du logo */
  --accent-strong: #0b4fb0;
  --accent-soft: #e8f0fc;
  --orange: #db4910;       /* orange du nom sur le logo */
  --orange-strong: #c13f0c; /* même orange, un peu plus foncé pour les boutons (texte blanc lisible) */
  --orange-dark: #a03309;

  --ok: #3fb950;
  --closed: #e5534b;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(22, 24, 27, .06), 0 8px 24px rgba(22, 24, 27, .07);
  --container: 1160px;
  --header-h: 72px;
  --header-accueil: 116px;
  --logo-decalage: 22px;     /* logo de l'accueil descendu un peu sous le haut de l'écran */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2, .page-title { font-size: clamp(2rem, 4vw, 2.75rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .container { padding: 0 28px; } }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 1.4em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 1em; font-size: .95rem; }

.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-strong); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: var(--soft); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--accent-strong); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(22, 24, 27, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--white);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,.12);
}
.brand-banner {
  height: 56px;
  width: auto;
  border-radius: 8px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: "Lobster", cursive;
  font-weight: 400;
  font-size: 1.55rem;
  color: #db4910;          /* orange du nom sur la bannière du logo */
}
.brand-text small {
  font-size: .78rem;
  color: var(--on-bar-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  position: relative;
  font-weight: 500;
  font-size: .98rem;
  text-decoration: none;
  color: var(--on-bar);
  padding: 6px 0;
  transition: color .2s;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav ul a:hover, .nav ul a.is-active { color: var(--white); }
.nav ul a:hover::after, .nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1120px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 16px 24px;
    background: var(--bar);
    border-bottom: 1px solid var(--bar-line);
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a {
    display: block;
    padding: 14px 4px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--bar-line);
  }
  .nav ul a::after { display: none; }
  .nav .btn { width: 100%; min-height: 48px; }
}

/* Téléphone : barre du haut du même bleu que le logo, pour qu'il s'y fonde */
@media (max-width: 640px) {
  .site-header {
    background: var(--accent);
    border-bottom-color: rgba(0,0,0,.12);
  }
  /* logo sur toute la hauteur : le pneu, coupé sur l'image, a l'air de déborder de la barre */
  .brand-banner { height: calc(var(--header-h) - 1px); border-radius: 0; }
  .nav-toggle { border-color: rgba(255,255,255,.45); }
}

/* ---------- Accueil : barre du haut transparente, posée sur le bleu du héro ----------
   Elle reste en haut de la page et part avec le héro quand on descend (elle ne suit pas).
   Une fois la chaîne passée, elle revient fixée en haut, pleine comme sur les autres pages
   (classe is-fixed posée par main.js). Elle est aussi pleine quand le menu mobile est
   ouvert (classe is-solid). */
.site-header--overlay {
  position: absolute;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color .25s, border-color .25s;
}
.site-header--overlay.is-fixed {
  position: fixed;
  animation: entete-descend .3s ease-out;
}
@keyframes entete-descend {
  from { transform: translateY(-100%); }
  to { transform: none; }
}
/* barre plus haute sur l'accueil : logo plus gros, calé tout à gauche de l'écran */
.site-header--overlay:not(.is-fixed) { --header-h: var(--header-accueil); }
.site-header--overlay:not(.is-fixed) .header-inner { max-width: none; padding: 0 clamp(16px, 5.5vw, 96px); }
@media (max-width: 640px) { .site-header--overlay:not(.is-fixed) .header-inner { padding: 0 24px; } }
.site-header--overlay:not(.is-fixed) .brand-banner { height: calc(var(--header-accueil) - 24px); border-radius: 10px; }
.site-header--overlay:not(.is-fixed) .brand { transform: translateY(var(--logo-decalage)); }
.site-header--overlay + main .hero-inner { padding-top: calc(clamp(40px, 6vw, 80px) + var(--header-accueil) + var(--logo-decalage)); }
.site-header--overlay .nav ul a { color: var(--white); }
.site-header--overlay .nav ul a::after { background: var(--white); }
/* bouton téléphone du menu : transparent à contour blanc tant que la barre est transparente */
.site-header--overlay:not(.is-solid) .nav .btn-accent {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}
.site-header--overlay:not(.is-solid) .nav .btn-accent:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.site-header--overlay:not(.is-solid) .nav-toggle { border-color: rgba(255,255,255,.55); }
.site-header--overlay.is-solid { background: rgba(22, 24, 27, .96); border-bottom-color: rgba(255,255,255,.06); }
.site-header--overlay.is-solid .nav ul a { color: var(--on-bar); }
.site-header--overlay.is-solid .nav ul a:hover,
.site-header--overlay.is-solid .nav ul a.is-active { color: var(--white); }
.site-header--overlay.is-solid .nav ul a::after { background: var(--accent); }
@media (max-width: 1120px) {
  /* menu déroulant : toujours sur fond sombre, liens et bouton normaux */
  .site-header--overlay .nav ul a { color: var(--on-bar); }
  .site-header--overlay:not(.is-solid) .nav .btn-accent { background: var(--accent); border-color: transparent; }
}
@media (max-width: 640px) {
  :root { --header-accueil: 86px; --logo-decalage: 12px; }
  .site-header--overlay:not(.is-fixed) .brand-banner { height: auto; width: min(248px, calc(100vw - 104px)); border-radius: 0; }
  .site-header--overlay.is-solid { background: var(--accent); border-bottom-color: rgba(0,0,0,.12); }
}

/* ---------- Héro (dans l'esprit de la bannière du logo : bleu, orange, chaîne, pneu) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: var(--accent);
  /* pneu et soudeur du logo, en filigrane */
  background-image: url("../img/hero-embleme.png");
  background-repeat: no-repeat;
  background-position: right -60px center;
  background-size: auto 118%;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(64px, 10vw, 124px);
}
.hero :focus-visible { outline-color: var(--white); }

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--accent-strong);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  text-transform: uppercase;
  margin-bottom: 24px;
}
/* seconde moitié du titre en écriture « Lobster », comme le nom sur le logo */
.hero h1 .hl {
  display: block;
  margin-top: .08em;
  font-family: "Lobster", cursive;
  font-weight: 400;
  font-size: .92em;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: 0;
}
.hero .lead { color: rgba(255,255,255,.9); }
.hero .btn-accent { background: var(--orange-strong); }
.hero .btn-accent:hover { background: var(--orange-dark); }
.lead {
  max-width: 36em;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--white);
  font-size: .98rem;
}
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points .icon { stroke-width: 3; }

.status-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,.25);
  color: var(--text);
}
.status-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}
.status-dot.is-open { background: var(--ok); box-shadow: 0 0 0 5px rgba(63, 185, 80, .2); }
.status-dot.is-closed { background: var(--closed); box-shadow: 0 0 0 5px rgba(229, 83, 75, .18); }
.status-detail { margin: 10px 0 0; color: var(--muted); font-size: .98rem; }
.status-card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.status-address { display: flex; gap: 10px; color: var(--text); margin-bottom: 12px; }
.status-address .icon { color: var(--accent); margin-top: 4px; }
.status-link { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.status-link:hover { text-decoration: underline; }

/* Chaîne de moto (maillons orange et plaques noires), comme sur la bannière */
/* Accueil sur ordinateur : le bloc bleu prend toute la hauteur de l'écran, la chaîne
   tombe tout en bas de l'écran à l'arrivée ; le contenu est centré dans l'espace restant.
   Espacements un peu resserrés sur les écrans peu hauts pour que tout tienne. */
@media (min-width: 861px) {
  .hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .hero-inner { flex: 1 0 auto; }
  .site-header--overlay + main .hero-inner {
    padding-top: calc(var(--header-accueil) + var(--logo-decalage) + clamp(4px, 1.5vh, 24px));
    padding-bottom: clamp(20px, 3vh, 40px);
  }
  .hero h1 { font-size: clamp(2.5rem, min(7vw, 8.5vh), 5rem); margin-bottom: clamp(12px, 2vh, 24px); }
  .hero .eyebrow { margin-bottom: clamp(10px, 1.8vh, 20px); }
  .hero .lead { margin-bottom: clamp(16px, 2.8vh, 32px); }
  .hero-actions { margin-bottom: clamp(16px, 3vh, 36px); }
}
.chaine {
  height: 22px;
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Crect x='0' y='6' width='10' height='10' fill='%23111'/%3E%3Crect x='26' y='6' width='18' height='10' fill='%23111'/%3E%3Ccircle cx='9' cy='11' r='9' fill='%23db4910'/%3E%3Ccircle cx='27' cy='11' r='9' fill='%23db4910'/%3E%3Crect x='9' y='6' width='18' height='10' fill='%23db4910'/%3E%3Ccircle cx='9' cy='11' r='4.4' fill='%23fff'/%3E%3Ccircle cx='27' cy='11' r='4.4' fill='%23fff'/%3E%3Ccircle cx='9' cy='11' r='1.9' fill='%23111'/%3E%3Ccircle cx='27' cy='11' r='1.9' fill='%23111'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: left center;
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { background-position: right -140px top calc(var(--header-accueil) + var(--logo-decalage) + 16px); background-size: 440px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
/* « section-dark » : ancien fond sombre, désormais blanc comme le reste du site */
.section-dark { background: var(--paper); color: var(--text); }
.section-soft { background: var(--soft); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .services-grid { grid-template-columns: 1fr; } }
.service {
  position: relative;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.service-icon .icon { width: 26px; height: 26px; }
.service h3 { text-transform: uppercase; margin-bottom: .4em; }
.service p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- L'atelier ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}
.about-copy p { color: var(--text); font-size: 1.1rem; max-width: 34em; }

.figures {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.figures li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.figures strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 128px;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
}
.figures strong span { font-size: 1.1rem; color: var(--text); text-transform: uppercase; }
.figures p { margin: 0; color: var(--muted); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  padding: 24px 0 0;
  border-top: 2px solid var(--line);
}
.step-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: .1em;
}
.step h3 { text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; gap: 36px; margin-bottom: 56px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .figures strong { min-width: 104px; font-size: 2.5rem; }
}

/* ---------- Tarifs ---------- */
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}
.pricing .section-head { margin-bottom: 0; }
.price-table {
  padding: 12px 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.price-row span:first-child { font-weight: 600; font-size: 1.15rem; }
.price-row small {
  display: block;
  font-weight: 400;
  font-size: .92rem;
  color: var(--muted);
}
.price-row .dots {
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted var(--line-strong);
  transform: translateY(-4px);
}
.price-row strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--accent-strong);
}
.price-row strong em {
  font-style: normal;
  font-size: 1rem;
  color: var(--muted);
}
.price-note { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }

@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; gap: 32px; }
  .price-table { padding: 8px 20px 20px; }
}

/* ---------- Horaires & accès ---------- */
.access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.hours {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.hours th, .hours td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-strong);
}
.hours th { font-weight: 600; width: 38%; }
.hours td { color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td {
  background: var(--white);
  color: var(--text);
}
.hours tr.is-today th { box-shadow: inset 4px 0 0 var(--accent); }
.hours tr.is-today th::after {
  content: "Aujourd'hui";
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.access-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.map {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  background: var(--soft);
}
@media (max-width: 560px) { .map { height: 260px; } }
.access-list { list-style: none; margin: 0; padding: 8px 24px 16px; }
.access-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.access-list li:last-child { border-bottom: 0; }
.access-list .icon { margin-top: 4px; color: var(--accent-strong); }
.access-list a { font-weight: 600; text-decoration: none; }
.access-list a:hover { color: var(--accent-strong); text-decoration: underline; }

@media (max-width: 860px) {
  .access { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: start;
}
.contact-intro h2, .contact-intro h1 { margin-bottom: 28px; }
.contact-intro p:not(.kicker) { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(17, 101, 217, .18);
}
.field.has-error input { border-color: var(--closed); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; font-size: .95rem; color: var(--muted); }
.form-status.is-error { color: #b42318; }
.form-status.is-ok { color: #1a7f37; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; padding: 20px; }
  .form-foot .btn { width: 100%; }
}

/* ---------- Utilitaires ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- Réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -16px 0 32px; }
.filter {
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font: 600 .95rem/1 var(--font-body);
  color: var(--text);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 960px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow .25s, transform .25s;
}
.project:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.project-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: var(--steel);
  overflow: hidden;
  cursor: zoom-in;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-media:hover img { transform: scale(1.04); }
.project-media.is-placeholder {
  cursor: default;
  gap: 10px;
  align-content: center;
  color: #a9b0b8;
  font-size: .9rem;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.project-media.is-placeholder .icon { width: 44px; height: 44px; color: var(--accent); stroke-width: 1.6; }
.project-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22,24,27,.8);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
}
.project-body { padding: 20px 22px 24px; }
.project-body h3 { text-transform: uppercase; margin: 10px 0 6px; }
.project-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tag-example { background: var(--soft); color: var(--muted); }
.projects-empty { margin: 8px 0 0; color: var(--muted); }

/* Visionneuse */
.lightbox {
  width: min(1100px, 100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 11, 13, .88); }
.lightbox figure { margin: 0; }
.lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #000;
}
.lightbox figcaption { padding: 14px 20px; color: #d9dde1; font-weight: 500; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(22,24,27,.8);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { background: var(--accent); color: var(--white); }
.lb-close { top: 12px; right: 12px; }
.lb-close .icon { width: 22px; height: 22px; }
.lb-prev, .lb-next { top: calc(50% - 46px); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ---------- Avis clients ---------- */
.avis-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.avis-top .section-head { margin-bottom: 0; }

.rating-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.summary-note { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--accent-strong); }
.rating-summary a { color: var(--muted); font-size: .92rem; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
/* 4 avis : 2 × 2 plutôt que 3 + 1 orphelin */
@media (min-width: 961px) { .reviews-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }
.reviews-note { margin: 16px 0 0; color: var(--muted); font-size: .85rem; }

.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.review-stars { color: var(--accent); font-size: 1.15rem; letter-spacing: 2px; }
.review-text {
  flex: 1;
  margin: 0;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 12;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.review-foot strong { display: block; }
.review-foot span { color: var(--muted); font-size: .88rem; }
.review-source {
  flex: none;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}
.reviews-empty {
  margin: 0;
  padding: 28px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}
.google-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.review-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: start;
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.review-intro h3 { font-size: clamp(1.8rem, 3vw, 2.2rem); text-transform: uppercase; }
.review-intro p { color: var(--text); font-size: 1.05rem; }
.review-intro .review-note { color: var(--muted); font-size: .95rem; }
.section-dark .form { color: var(--text); }
@media (max-width: 860px) { .review-form-wrap { grid-template-columns: 1fr; gap: 28px; } }

/* Sélecteur d'étoiles (ordre inversé pour colorer les étoiles précédentes au survol) */
.stars-input { margin: 0; padding: 0; border: 0; min-width: 0; }
.stars-input legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label {
  font-size: 2.2rem;
  line-height: 1;
  color: #8a939f;
  cursor: pointer;
  transition: color .15s, transform .15s;
}
.stars label::before { content: "★"; }
.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label { color: var(--accent); }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.stars-input.has-error legend { color: #b42318; }

/* ---------- Carte : chargement après accord ---------- */
.map-consent {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  height: 320px;
  padding: 24px;
  text-align: center;
  background-color: var(--soft);
  background-image:
    linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 24px 24px;
}
.map-consent .icon { width: 40px; height: 40px; color: var(--accent-strong); }
.map-consent p { max-width: 30em; margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 560px) { .map-consent { height: 260px; } }

/* Mention RGPD sous les formulaires */
.form-legal {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}
.form-legal a { color: inherit; }

/* ---------- Page mentions légales ---------- */
.legal { background: var(--paper); }
.legal-inner { max-width: 820px; }
.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.legal-update { color: var(--muted); margin-bottom: 32px; }
.legal section { padding: 32px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: 1.7rem; text-transform: uppercase; }
.legal h3 { margin: 1.4em 0 .5em; font-size: 1.2rem; text-transform: uppercase; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--accent-strong); }
.legal-toc {
  padding: 20px 24px;
  margin-bottom: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 6px; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }
.legal-list {
  display: grid;
  grid-template-columns: minmax(130px, auto) 1fr;
  gap: 10px 24px;
  margin: 0;
}
.legal-list dt { font-weight: 600; }
.legal-list dd { margin: 0; color: var(--text); }
@media (max-width: 560px) {
  .legal-list { grid-template-columns: 1fr; gap: 2px; }
  .legal-list dd { margin-bottom: 10px; }
}
.todo {
  padding: 2px 8px;
  border-radius: 6px;
  background: #fff4cc;
  border: 1px dashed #d4a514;
  color: #6b5200;
  font-weight: 600;
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding: 36px 0;
  background: var(--bar);
  color: var(--on-bar-muted);
  font-size: .95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-inner strong { color: var(--white); font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; }
.footer-inner p { margin: 4px 0 0; }
.footer-legal a { color: var(--white); }

/* ---------- Barre d'appel mobile ---------- */
.call-bar { display: none; }
@media (max-width: 640px) {
  .call-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    border-radius: 14px;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
  }
  .site-footer { padding-bottom: 96px; }

  /* Badge « Powered by Netlify » (bas à droite, environ 181 × 48 px) :
     la barre se range à sa gauche, à la même hauteur, au lieu d'être recouverte. */
  .has-nl-badge .call-bar {
    right: 202px;
    bottom: 13px;
    min-height: 48px;
    font-size: 1rem;
  }
  .has-nl-badge .call-bar-extra { display: none; }
}

/* ---------- Apparition au défilement ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .service, .btn { transition: none; }
  .site-header--overlay.is-fixed { animation: none; }
}
