/* ==========================================================
   Azur-Tronic — feuille de style du site vitrine
   Mobile d'abord : les règles de base visent le smartphone,
   les @media (min-width) enrichissent pour tablette / PC.
   ========================================================== */

/* Polices manuscrites hébergées sur le site (pas d'appel à Google = conforme RGPD).
   Pour changer de style, modifier uniquement --az-script plus bas :
   "AzPacifico" (Pacifico, retenu) · "AzCaveat" (naturelle) · "AzMarker" (feutre) · "AzKalam" (stylo) */
@font-face { font-family: "AzPacifico"; src: url("/fonts/pacifico-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "AzCaveat"; src: url("/fonts/caveat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "AzMarker"; src: url("/fonts/permanent-marker-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "AzKalam";  src: url("/fonts/kalam-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --az-script: "AzPacifico", "Segoe Script", cursive;
  --az-bg:        #0a0e17;   /* noir bleuté, fond principal  */
  --az-bg-2:      #111827;   /* sections alternées           */
  --az-surface:   #161f33;   /* cartes                       */
  --az-line:      #24304a;   /* bordures discrètes           */
  --az-text:      #e6ebf5;
  --az-muted:     #9aa6bd;
  --az-blue:      #2a1aff;   /* bleu du logo rond            */
  --az-azure:     #1fb6ff;   /* azur, accent principal       */
  --az-azure-dim: rgba(31, 182, 255, .14);
  --az-radius:    14px;
  --az-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --az-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --az-header-h: 64px;
}

/* ---------- Base (pages publiques uniquement) ---------- */
body.az-public {
  margin: 0;
  padding: 0;
  background: var(--az-bg);
  color: var(--az-text);
  font-family: var(--az-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body.az-public img { max-width: 100%; height: auto; }
body.az-public a { color: var(--az-azure); }
body.az-public h1, body.az-public h2, body.az-public h3 { color: #fff; line-height: 1.2; margin: 0; }
html { scroll-padding-top: calc(var(--az-header-h) + 12px); }

.az-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* Petite étiquette façon sérigraphie de PCB */
.az-label {
  display: inline-block;
  font-family: var(--az-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--az-azure);
  margin-bottom: .6rem;
}

/* ---------- En-tête ---------- */
.az-header {
  position: sticky; top: 0; z-index: 1030;
  height: var(--az-header-h);
  background: rgba(10, 14, 23, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--az-line);
}
.az-header .az-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.az-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff !important; font-weight: 700; letter-spacing: .02em; }
.az-brand img { width: 40px; height: 40px; }
.az-brand span { font-size: 1.05rem; }

.az-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid var(--az-line); border-radius: 10px; cursor: pointer;
}
.az-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.az-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.az-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.az-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.az-nav {
  position: absolute; top: var(--az-header-h); left: 0; right: 0;
  display: none; flex-direction: column;
  background: var(--az-bg); border-bottom: 1px solid var(--az-line);
  padding: .5rem 18px 1rem;
}
.az-nav.is-open { display: flex; }
.az-nav a {
  color: var(--az-text) !important; text-decoration: none;
  padding: .9rem .25rem; border-bottom: 1px solid var(--az-line); font-size: 1.05rem;
}
.az-nav a:last-child { border-bottom: 0; }
.az-nav a.az-nav-cta { color: var(--az-azure) !important; font-weight: 600; }

@media (min-width: 860px) {
  .az-burger { display: none; }
  .az-nav {
    position: static; display: flex; flex-direction: row; gap: 1.75rem;
    background: none; border: 0; padding: 0;
  }
  .az-nav a { padding: .25rem 0; border: 0; font-size: .95rem; color: var(--az-muted) !important; }
  .az-nav a:hover { color: #fff !important; }
  .az-nav a.az-nav-cta {
    color: #fff !important; background: var(--az-blue);
    padding: .45rem 1rem; border-radius: 999px;
  }
}

/* ---------- Boutons ---------- */
.az-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s;
}
.az-btn:active { transform: scale(.98); }
.az-btn-primary { background: var(--az-blue); color: #fff !important; box-shadow: 0 6px 24px rgba(42, 26, 255, .35); }
.az-btn-primary:hover { background: #3b2dff; }
.az-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35); }
.az-btn-ghost:hover { border-color: var(--az-azure); }

/* ---------- Hero ---------- */
.az-hero {
  position: relative; overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(42, 26, 255, .45), transparent 60%),
    linear-gradient(180deg, rgba(10,14,23,.72), var(--az-bg) 92%),
    var(--hero-img, url('/img/bg-pcb-sm.webp')) center / cover no-repeat;
  text-align: center;
}
.az-hero-logo { width: 96px; height: 96px; margin: 0 auto 1.25rem; display: block; }
.az-hero h1 { font-size: clamp(3.5rem, 9vw, 4.5rem); font-weight: 700; letter-spacing: -.02em; }
.az-tagline {
  font-family: var(--az-mono); color: var(--az-azure);
  font-size: clamp(.95rem, 3.6vw, 1.2rem); letter-spacing: .18em; text-transform: uppercase;
  margin: .6rem 0 1.4rem;
}
.az-punch {
  font-size: clamp(1.25rem, 5vw, 1.9rem); font-weight: 600; color: #fff;
  max-width: 30ch; margin: 0 auto 1rem; line-height: 1.3;
}
.az-hero-sub { color: var(--az-muted); margin: 0 auto 2rem; }
.az-hero-actions { display: flex; flex-direction: column; gap: .75rem; max-width: 340px; margin: 0 auto; }
.az-badge { display: block; width: 170px; margin: 2.25rem auto 0; background: #fff; border-radius: 12px; padding: 8px 12px; }

.az-hero--compact { padding: 44px 0 40px; }

@media (min-width: 640px) {
  .az-hero-actions { flex-direction: row; justify-content: center; max-width: none; }
}
@media (min-width: 860px) {
  .az-hero { padding: 96px 0 104px; }
  .az-hero-logo { width: 120px; height: 120px; }
  .az-hero--compact { padding: 72px 0 56px; }
}

/* ---------- Sections ---------- */
.az-section { padding: 56px 0; }
.az-section--alt { background: var(--az-bg-2); }
.az-section-head { margin-bottom: 1.75rem; }
.az-section-head h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 700; }
.az-section-head p { color: var(--az-muted); margin: .75rem 0 0; max-width: 60ch; }
@media (min-width: 860px) { .az-section { padding: 88px 0; } }

/* Cartes des services (accueil) */
.az-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .az-cards { grid-template-columns: 1fr 1fr; gap: 22px; } }
.az-card {
  background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.az-card-img { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.az-card-body { padding: 1.25rem 1.25rem 1.5rem; }
.az-card-body h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.az-card-body p { color: var(--az-muted); margin: 0; }
.az-num { font-family: var(--az-mono); color: var(--az-azure); font-size: .8rem; display: block; margin-bottom: .35rem; }

/* Grille matériel (page services) */
.az-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .az-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.az-tile {
  background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius);
  overflow: hidden; margin: 0;
}
.az-tile img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.az-tile figcaption { padding: .7rem .8rem; font-weight: 600; color: #fff; font-size: .95rem; text-align: center; }
@media (min-width: 700px) { .az-tile figcaption { font-size: 1.05rem; padding: .9rem 1rem; } }

/* Horaires */
.az-hours { list-style: none; padding: 0; margin: 0 0 1.5rem; border: 1px solid var(--az-line); border-radius: var(--az-radius); overflow: hidden; }
.az-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--az-line); background: var(--az-surface); }
.az-hours li:last-child { border-bottom: 0; }
.az-hours span:last-child { font-family: var(--az-mono); color: #fff; white-space: nowrap; }
.az-note {
  border-left: 3px solid #ffb41f; background: #ffa60024;
  padding: 1rem 1.1rem; border-radius: 0 10px 10px 0; color: var(--az-text); margin: 0;
}
.az-two { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 860px) { .az-two { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }

/* Contact */
.az-contact { display: grid; gap: 12px; }
.az-contact-row {
  display: flex; align-items: center; gap: 14px; min-height: 64px;
  background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius);
  padding: .9rem 1.1rem; color: var(--az-text) !important; text-decoration: none; text-align: left;
  font: inherit; width: 100%; cursor: pointer;
}
.az-contact-row:hover { border-color: var(--az-azure); }
.az-contact-ico {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: var(--az-azure-dim); color: var(--az-azure);
}
.az-contact-ico svg { width: 20px; height: 20px; }
.az-contact-row small { display: block; color: var(--az-muted); font-size: .8rem; }
.az-contact-row strong { color: #fff; font-weight: 600; word-break: break-all; }

/* ---------- Pied de page ---------- */
.az-footer { background: #070a11; border-top: 1px solid var(--az-line); padding: 44px 0 28px; color: var(--az-muted); font-size: .92rem; }
.az-footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .az-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.az-footer h5 { color: #fff; font-size: .8rem; font-family: var(--az-mono); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .9rem; }
.az-footer ul { list-style: none; padding: 0; margin: 0; }
.az-footer li { margin-bottom: .5rem; }
.az-footer a { color: var(--az-muted) !important; text-decoration: none; }
.az-footer a:hover { color: #fff !important; }
.az-footer-brand img { width: 44px; margin-bottom: .75rem; }
.az-footer-slogan { font-family: var(--az-mono); color: var(--az-azure); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.az-footer-bottom { border-top: 1px solid var(--az-line); margin-top: 32px; padding-top: 18px; font-size: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* Accessibilité : focus visible */
body.az-public a:focus-visible, body.az-public button:focus-visible { outline: 2px solid var(--az-azure); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Slogan manuscrit "Reviving Technology" */
.az-script {
  font-family: var(--az-script) !important;
  font-weight: 400;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.1;
  display: inline-block;
  transform: rotate(-3deg);
}
.az-tagline.az-script { font-size: clamp(2.1rem, 9vw, 3rem); margin: .35rem 0 1.4rem; }
.az-footer-slogan.az-script { font-size: 1.7rem; margin-top: .2rem; }

/* ==========================================================
   v3 — Prestations, spécialités, réalisations
   ========================================================== */
.az-hero--left { text-align: left; }
.az-hero--left .az-hero-sub { margin-left: 0; margin-top: 1rem; }
.az-hero--left .az-hero-actions { margin: 0; justify-content: flex-start; }
.az-hero--left h1 { font-size: clamp(2rem, 7.5vw, 3.4rem); max-width: 18ch; }
.az-crumbs { font-size: .85rem; color: var(--az-muted); margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.az-crumbs a { color: var(--az-muted) !important; text-decoration: none; }
.az-crumbs a:hover { color: #fff !important; }
.az-section--tight { padding: 36px 0; }

.az-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1.5rem; }
.az-link-more { color: var(--az-azure) !important; text-decoration: none; font-weight: 600; white-space: nowrap; }

/* Pôles (page prestations) */
.az-poles { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .az-poles { grid-template-columns: repeat(3, 1fr); } }
.az-pole {
  display: flex; flex-direction: column; text-decoration: none; color: var(--az-text) !important;
  background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius); overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.az-pole:hover { border-color: var(--az-azure); transform: translateY(-2px); }
.az-pole-img { aspect-ratio: 16 / 8; background-size: cover; background-position: center; }
.az-pole-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.az-pole-body h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.az-pole-body p { color: var(--az-muted); font-size: .95rem; margin: 0 0 1rem; }
.az-pole-body ul { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .35rem; font-size: .92rem; }
.az-pole-body li::before { content: "›"; color: var(--az-azure); margin-right: .5rem; font-weight: 700; }
.az-pole-body .az-link-more { margin-top: auto; }

/* Équipements (pages spécialités) */
.az-feats { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .az-feats { grid-template-columns: 1fr 1fr; gap: 18px; } }
.az-feat {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius); padding: 1rem;
}
.az-feat img, .az-feat-num { flex: none; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.az-feat-num {
  display: grid; place-items: center; background: var(--az-azure-dim); color: var(--az-azure);
  font-family: var(--az-mono); font-size: 1.2rem; font-weight: 700;
}
.az-feat h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.az-feat p { color: var(--az-muted); margin: 0; font-size: .94rem; }

/* Listes à puces "check" */
.az-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.az-checks li {
  position: relative; padding: .85rem 1rem .85rem 2.6rem;
  background: var(--az-surface); border: 1px solid var(--az-line); border-radius: 10px;
}
.az-checks li::before {
  content: ""; position: absolute; left: 1rem; top: 1.15rem; width: 10px; height: 10px; border-radius: 2px;
  background: var(--az-azure); box-shadow: 0 0 0 4px var(--az-azure-dim);
}
.az-checks strong { color: #fff; }

/* Étapes */
.az-steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .az-steps { grid-template-columns: repeat(5, 1fr); } }
.az-steps li {
  counter-increment: st; position: relative;
  background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius);
  padding: 1rem 1rem 1.1rem 3.6rem;
}
.az-steps li::before {
  content: counter(st, decimal-leading-zero); position: absolute; left: 1rem; top: 1rem;
  font-family: var(--az-mono); color: var(--az-azure); font-weight: 700;
}
@media (min-width: 900px) {
  .az-steps li { padding: 3rem 1rem 1.1rem; }
  .az-steps li::before { top: 1rem; }
}
.az-steps strong { display: block; color: #fff; margin-bottom: .3rem; }
.az-steps span { color: var(--az-muted); font-size: .92rem; }

/* FAQ */
.az-faq-wrap .az-faq { max-width: 820px; }
.az-faq { display: grid; gap: 10px; }
.az-faq details { background: var(--az-surface); border: 1px solid var(--az-line); border-radius: 12px; }
.az-faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.1rem; position: relative; font-weight: 600; color: #fff;
}
.az-faq summary::-webkit-details-marker { display: none; }
.az-faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: .85rem; font-size: 1.3rem; color: var(--az-azure); }
.az-faq details[open] summary::after { content: "–"; }
.az-faq details p { margin: 0; padding: 0 1.1rem 1.1rem; color: var(--az-muted); }

/* Liens "pilules" */
.az-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.az-pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--az-line); background: var(--az-surface); color: var(--az-text) !important; text-decoration: none; font-size: .95rem;
}
.az-pill:hover { border-color: var(--az-azure); }

/* Réalisations */
.az-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.az-filters::-webkit-scrollbar { display: none; }
.az-chip {
  flex: none; min-height: 42px; padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--az-line); background: var(--az-surface); color: var(--az-text); font: inherit; font-size: .92rem;
}
.az-chip span { color: var(--az-muted); font-family: var(--az-mono); font-size: .8rem; margin-left: .25rem; }
.az-chip.is-active { background: var(--az-blue); border-color: var(--az-blue); color: #fff; }
.az-chip.is-active span { color: rgba(255,255,255,.75); }

.az-reals { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .az-reals { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .az-reals { grid-template-columns: repeat(3, 1fr); } }
.az-real { background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius); overflow: hidden; display: flex; flex-direction: column; }
.az-real[hidden] { display: none; }
.az-real-img { position: relative; }
.az-real-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.az-real-flag {
  position: absolute; top: 10px; left: 10px; background: rgba(10,14,23,.85); color: #ffcf5a;
  border: 1px solid rgba(255,207,90,.5); border-radius: 6px; padding: 2px 8px;
  font-family: var(--az-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.az-real-body { padding: 1rem 1.1rem 1.2rem; }
.az-real-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: var(--az-muted); font-size: .82rem; margin-bottom: .6rem; }
.az-chip-static { color: var(--az-azure); font-family: var(--az-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.az-real h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.az-real dl { margin: 0; display: grid; gap: .2rem; font-size: .92rem; }
.az-real dt { color: #fff; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-top: .4rem; }
.az-real dd { color: var(--az-muted); margin: 0; }

/* ==========================================================
   v4 — Formulaire de demande de réparation
   ========================================================== */
.az-form-wrap { max-width: 820px; }
.az-form { display: grid; gap: 22px; }
.az-fs {
  border: 1px solid var(--az-line); border-radius: var(--az-radius); background: var(--az-bg-2);
  padding: 1.25rem 1rem 1.1rem; margin: 0; min-width: 0;
}
@media (min-width: 700px) { .az-fs { padding: 1.6rem 1.6rem 1.4rem; } }
.az-fs legend {
  float: left; width: 100%; display: flex; align-items: center; gap: .7rem;
  font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 1rem; padding: 0;
}
.az-fs legend + * { clear: both; }
.az-fs legend span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--az-blue); color: #fff; font-family: var(--az-mono); font-size: .95rem;
}
.az-fs legend small { font-weight: 400; color: var(--az-muted); font-size: .85rem; }
.az-field { margin-bottom: 1rem; min-width: 0; }
.az-fs > .az-field:last-child, .az-site > .az-row2:last-child > .az-field:last-child { margin-bottom: 0; }
@media (min-width: 640px) { .az-site > .az-row2:last-child > .az-field { margin-bottom: 0; } }
.az-lbl { display: block; font-weight: 600; color: #fff; margin: 0 0 .45rem; font-size: .95rem; }
.az-lbl em, .az-rgpd em { color: var(--az-azure); font-style: normal; }
.az-lbl small { color: var(--az-muted); font-weight: 400; }
.az-help { color: var(--az-muted); font-size: .9rem; margin: -.25rem 0 1rem; }

.az-input {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 10px;
  background: var(--az-surface); border: 1px solid var(--az-line); color: #fff;
  font: inherit; font-size: 16px; /* 16px : pas de zoom auto sur iPhone */
  transition: border-color .15s, box-shadow .15s;
}
.az-input::placeholder { color: #6b7790; }
.az-input:focus { outline: none; border-color: var(--az-azure); box-shadow: 0 0 0 3px var(--az-azure-dim); }
textarea.az-input { resize: vertical; line-height: 1.5; }
select.az-input {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fb6ff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}
select.az-input option { background: var(--az-surface); color: #fff; }
.az-input.is-invalid, .az-choices.is-invalid .az-choice span, .az-drop.is-invalid { border-color: #ff6b6b; }
.az-field-err { color: #ff8a8a; font-size: .85rem; margin: .35rem 0 0; }

.az-row2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .az-row2 { grid-template-columns: 1fr 1fr; } .az-row2--cp { grid-template-columns: 140px 1fr; } }

/* Choix sous forme de tuiles */
.az-choices { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 1rem; }
.az-choices:last-child { margin-bottom: 0; }
@media (min-width: 560px) { .az-choices--2, .az-choices--4 { grid-template-columns: 1fr 1fr; } }
.az-choice { position: relative; margin: 0; cursor: pointer; }
.az-choice input { position: absolute; opacity: 0; pointer-events: none; }
.az-choice span {
  display: flex; align-items: center; min-height: 52px; padding: .7rem 1rem .7rem 2.75rem; border-radius: 10px;
  background: var(--az-surface); border: 1px solid var(--az-line); color: var(--az-text); position: relative; line-height: 1.3;
}
.az-choice span::before {
  content: ""; position: absolute; left: 1rem; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; border: 2px solid #4a5878;
}
.az-choice input:checked + span { border-color: var(--az-azure); background: rgba(31,182,255,.08); color: #fff; }
.az-choice input:checked + span::before { border-color: var(--az-azure); background: radial-gradient(var(--az-azure) 45%, transparent 50%); }
.az-choice input:focus-visible + span { outline: 2px solid var(--az-azure); outline-offset: 2px; }

/* Cases à cocher */
.az-checklist { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .az-checklist { grid-template-columns: 1fr 1fr; } }
.az-check { display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; margin: 0; padding: .7rem .85rem; border-radius: 10px; background: var(--az-surface); border: 1px solid var(--az-line); }
.az-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--az-azure); }
.az-check span { line-height: 1.4; font-size: .95rem; }
.az-check:has(input:checked) { border-color: var(--az-azure); }
.az-rgpd { background: transparent; border: 0; padding: 0; color: var(--az-muted); }
.az-rgpd span { font-size: .88rem; }
.az-rgpd.is-invalid span { color: #ff8a8a; }

/* Zones conditionnelles */
.az-site, .az-pro { display: none; }
.az-site.is-on, .az-pro.is-on { display: block; }
.az-site { margin-top: 1rem; }

/* Photos */
.az-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  min-height: 140px; padding: 1.25rem; border: 2px dashed #34456a; border-radius: var(--az-radius);
  background: var(--az-surface); text-align: center; cursor: pointer; transition: border-color .15s;
}
.az-drop:hover { border-color: var(--az-azure); }
.az-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.az-drop-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--az-azure-dim); color: var(--az-azure); margin-bottom: .35rem; }
.az-drop-ico svg { width: 22px; height: 22px; }
.az-drop strong { color: #fff; }
.az-drop small { color: var(--az-muted); }
.az-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 640px) { .az-thumbs { grid-template-columns: repeat(6, 1fr); } }
.az-thumbs .az-help { grid-column: 1 / -1; margin: 0; }
.az-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--az-surface); border: 1px solid var(--az-line); }
.az-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.az-thumb.is-noprev img { display: none; }
.az-thumb.is-noprev::after { content: "Photo"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--az-muted); font-size: .8rem; }
.az-thumb button {
  position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(10,14,23,.85); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer;
}

.az-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.az-submit { width: 100%; min-height: 56px; font-size: 1.05rem; }
.az-submit:disabled { opacity: .6; cursor: wait; }

.az-alert { border: 1px solid #ff6b6b; background: rgba(255,107,107,.1); color: #ffd0d0; border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 18px; }
.az-success { text-align: center; padding: 2rem 1rem; border: 1px solid var(--az-line); border-radius: var(--az-radius); background: var(--az-bg-2); }
.az-success h2 { font-size: 1.8rem; margin-bottom: .75rem; }
.az-success p { color: var(--az-muted); max-width: 46ch; margin: 0 auto .5rem; }
.az-success-ico { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: rgba(46,204,113,.15); color: #2ecc71; font-size: 2rem; font-weight: 700; }
.az-ref { color: #fff; font-family: var(--az-mono); font-size: 1.15rem; letter-spacing: .04em; }

.az-contact-row--cta { border-color: rgba(42,26,255,.6); background: linear-gradient(135deg, rgba(42,26,255,.25), var(--az-surface)); }

/* Menu : le bouton "Demande de réparation" rallonge la barre -> burger jusqu'à 1020 px */
@media (min-width: 860px) and (max-width: 1019px) {
  .az-burger { display: inline-flex; }
  .az-nav {
    position: absolute; top: var(--az-header-h); left: 0; right: 0; display: none; flex-direction: column; gap: 0;
    background: var(--az-bg); border-bottom: 1px solid var(--az-line); padding: .5rem 18px 1rem;
  }
  .az-nav.is-open { display: flex; }
  .az-nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--az-line); font-size: 1.05rem; color: var(--az-text) !important; }
  .az-nav a.az-nav-cta { background: none; padding: .9rem .25rem; border-radius: 0; color: var(--az-azure) !important; }
}

/* ==========================================================
   v5 — Page de suivi client
   ========================================================== */
.az-ref-h1 { font-family: var(--az-mono); letter-spacing: .02em; }
.az-hero-sub small { color: var(--az-muted); font-size: .88rem; }
.az-suivi { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .az-suivi { grid-template-columns: 1.6fr 1fr; gap: 24px; } }
.az-suivi-main, .az-suivi-side { display: grid; gap: 18px; min-width: 0; }
.az-h2s { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0 0 1rem; }

.az-timeline { list-style: none; margin: 0; padding: 0; }
.az-timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.az-timeline li:last-child { padding-bottom: 0; }
.az-timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--az-line);
}
.az-timeline li.is-done:not(:last-child)::before { background: var(--az-azure); }
.az-tl-dot {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--az-line); background: var(--az-bg-2); font-size: .8rem; font-weight: 700; color: #fff; position: relative; z-index: 1;
}
.az-timeline .is-done .az-tl-dot { background: var(--az-azure); border-color: var(--az-azure); color: #04121c; }
.az-timeline .is-current .az-tl-dot { border-color: var(--az-azure); box-shadow: 0 0 0 5px var(--az-azure-dim); }
.az-timeline .is-current .az-tl-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--az-azure); }
.az-timeline .is-stop .az-tl-dot { background: #ffcf5a; border-color: #ffcf5a; color: #1a1300; }
.az-tl-txt { padding-top: 3px; line-height: 1.35; }
.az-tl-txt strong { color: var(--az-muted); font-weight: 600; }
.az-timeline .is-done strong { color: var(--az-text); }
.az-timeline .is-current strong, .az-timeline .is-stop strong { color: #fff; }
.az-tl-now { font-style: normal; font-family: var(--az-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--az-azure); margin-left: .35rem; }
.az-tl-txt small { display: block; color: var(--az-azure); font-size: .88rem; margin-top: .2rem; }

.az-thread { display: grid; gap: 10px; margin-bottom: 1.1rem; }
.az-msg { max-width: 88%; border-radius: 12px; padding: .7rem .9rem; border: 1px solid var(--az-line); }
.az-msg--atelier { background: var(--az-surface); justify-self: start; border-top-left-radius: 4px; }
.az-msg--client { background: rgba(42,26,255,.22); border-color: rgba(42,26,255,.5); justify-self: end; border-top-right-radius: 4px; }
.az-msg-head { font-size: .75rem; color: var(--az-muted); margin-bottom: .25rem; font-family: var(--az-mono); }
.az-msg-body { font-size: .95rem; word-break: break-word; }
.az-reply { display: grid; gap: .6rem; }
.az-reply .az-lbl { margin: 0; }
.az-reply-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.az-reply-actions .az-btn { flex: 1 1 160px; }
.az-btn-file { position: relative; overflow: hidden; }
.az-btn-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.az-ok-msg { border: 1px solid rgba(46,204,113,.5); background: rgba(46,204,113,.1); color: #c9f7dc; border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1rem; }

.az-dl { display: grid; grid-template-columns: 1fr; gap: .1rem; margin: 0 0 1rem; font-size: .93rem; }
.az-dl dt { color: var(--az-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-top: .55rem; }
.az-dl dt:first-child { margin-top: 0; }
.az-dl dd { margin: 0; color: var(--az-text); }
.az-desc-details summary { cursor: pointer; color: var(--az-azure); font-weight: 600; }
.az-desc-details p { color: var(--az-muted); margin: .6rem 0 0; font-size: .93rem; }
.az-suivi-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.az-suivi-photos a { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--az-surface); }
.az-suivi-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.az-public .az-h2s { margin: 0 0 1.1rem; font-size: 1.1rem; }
.az-suivi-photos a { display: block; }

/* v6 — Rendez-vous (page de suivi) */
.az-rdv.is-action { border-color: var(--az-azure); box-shadow: 0 0 0 3px var(--az-azure-dim); }
.az-rdv-ok { border: 1px solid rgba(46,204,113,.5); background: rgba(46,204,113,.08); border-radius: 12px; padding: 1rem 1.1rem; }
.az-rdv-ok .az-label { color: #2ecc71; }
.az-rdv-date { color: #fff; font-size: 1.15rem; font-weight: 700; margin: .3rem 0 .2rem; }
.az-rdv-lieu { color: var(--az-text); margin: 0; }
.az-rdv-form .az-choices { grid-template-columns: 1fr !important; }

/* v7 — Professionnels & autre matériel */
.az-pro { display: none; }
.az-pro.is-on { display: block; }
.az-inline { display: flex; gap: 8px; }
.az-inline .az-input { flex: 1; min-width: 0; }
.az-btn-sm { min-height: 48px; padding: .5rem 1rem; font-size: .9rem; border-radius: 10px; }
.az-fact { border-top: 1px dashed var(--az-line); margin-top: .5rem; padding-top: .5rem; }
.az-suite { margin: 1.75rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--az-line); max-width: 46ch; }
.az-suite p { margin: 0 0 1rem; }
.az-envoi { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- v8 : pages légales ---------- */
.az-legal { max-width: 860px; }
.az-legal h2 { font-size: 1.25rem; margin: 2.2rem 0 .8rem; }
.az-legal h2:first-child { margin-top: 0; }
.az-legal p, .az-legal li { line-height: 1.65; }
.az-legal ul { padding-left: 1.2rem; }
.az-legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: .5rem 0 1rem; display: block; overflow-x: auto; }
.az-legal-table th, .az-legal-table td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid rgba(127,127,127,.25); min-width: 9rem; }
.az-legal-table th { font-weight: 700; }

/* v9 — bandeau d'annonce (congés…) et bouton « afficher l'email » dans le texte */
.az-annonce { margin-top: 2rem; text-align: left; }
.az-annonce--alerte { border-color: rgba(255, 176, 32, .55); background: rgba(255, 176, 32, .1); }
.az-email-lien { background: none; border: 0; padding: 0; color: var(--az-azure); text-decoration: underline; font: inherit; cursor: pointer; }
