/* ============================================================
   3e proposition — moderne, clair, cartes ("tuiles"), un peu de
   transparence (badges verre dépoli sur la photo), animations cohérentes.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* L'attribut hidden doit toujours l'emporter, y compris sur les éléments
   .field (display: flex) : sans ce !important, une règle d'auteur de même
   spécificité que le style hidden par défaut du navigateur le désactive. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--azure-deep); }
p { margin: 0 0 1.2em; max-width: 60ch; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
.container { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 2vw + 1.4rem, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); }
h3 { font-size: 1.1875rem; font-weight: 700; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--azure-deep);
  outline-offset: 2px;
}

.skip-link { position: absolute; left: 0; top: -3em; background: var(--ink); color: #fff; padding: 0.6em 1em; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* -------- En-tête -------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.brand__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--azure); }
.header-phone { display: inline-flex; align-items: center; gap: 0.5em; text-decoration: none; color: var(--ink); font-weight: 700; white-space: nowrap; }
.header-phone span { display: none; }
@media (min-width: 30rem) { .header-phone span { display: inline; } }
.menu-btn { display: inline-flex; align-items: center; gap: 0.5em; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; font-size: 0.875rem; font-weight: 600; padding: 0.55em 1.1em; cursor: pointer; list-style: none; }
.menu-btn::-webkit-details-marker { display: none; }
.nav-toggle { position: relative; }
.nav-toggle__list {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 220px;
  margin: 0;
  padding: 0.75rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.nav-toggle__list a {
  display: block;
  padding: 0.6em 0.8em;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}
.nav-toggle__list a:hover, .nav-toggle__list a[aria-current="page"] { background: var(--bg-soft); color: var(--azure-deep); }

.icon { width: 1.15em; height: 1.15em; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* -------- Boutons -------- */
.btn { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.9em 1.7em; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 0.9375rem; text-decoration: none; cursor: pointer; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease); }
.btn-primary { background: var(--orange-deep); color: #fff; box-shadow: 0 14px 28px -12px rgba(163, 74, 8, 0.5); }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-outline:hover { border-color: var(--azure); color: var(--azure-deep); }
.btn-secondary { background: var(--azure-deep); color: #fff; box-shadow: 0 14px 28px -12px rgba(3, 105, 161, 0.45); }
.btn-secondary:hover { background: var(--azure-mid); transform: translateY(-2px); }
.btn-glass { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.5); color: #fff; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }

/* -------- Hero -------- */
.hero { position: relative; overflow: hidden; }
.hero__photo { position: absolute; inset: 0; z-index: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms ease; }
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }
.hero__pause {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
}
.hero__pause:hover { background: rgba(255, 255, 255, 0.28); }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 30, 50, 0.35) 0%, rgba(6, 20, 38, 0.82) 100%); }
.hero__content { position: relative; z-index: 2; padding-block: 120px 72px; color: #fff; }
.eyebrow-chip { display: inline-flex; align-items: center; gap: 0.6em; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(8px); color: #fff; border-radius: 999px; padding: 0.5em 1.1em; font-size: 0.8125rem; font-weight: 600; margin-bottom: 1.5rem; }
.h1-display { font-weight: 800; font-size: clamp(2.4rem, 3.4vw + 1.4rem, 4rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 16ch; margin: 0 0 1.1rem; color: inherit; }
.h1-display span { color: #a9ddfb; }
.hero__sub { color: rgba(255, 255, 255, 0.92); font-size: 1.09375rem; line-height: 1.55; max-width: 58ch; margin-bottom: 2.25rem; padding-left: 1rem; border-left: 3px solid var(--orange); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.glass-fact { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(8px); border-radius: 999px; padding: 0.6em 1.1em; font-size: 0.8125rem; color: #fff; }
.glass-fact b { font-weight: 700; }

/* -------- Section -------- */
.section-pad { padding-block: 88px; }
.section-soft { background: var(--bg-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6em; color: var(--azure-deep); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.75rem; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.h2-display { font-weight: 800; font-size: clamp(1.9rem, 1.8vw + 1.3rem, 2.75rem); letter-spacing: -0.01em; margin: 0 0 0.75rem; color: inherit; }

/* -------- Cartes ("tuiles") -------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); display: block; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.tile__badge { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: #fff; }
.tile:nth-child(4n+1) .tile__badge { background: var(--azure-deep); }
.tile:nth-child(4n+2) .tile__badge { background: var(--orange-deep); }
.tile:nth-child(4n+3) .tile__badge { background: var(--mint-deep); }
.tile:nth-child(4n+4) .tile__badge { background: var(--indigo-deep); }
.tile h3 { font-size: 1.1875rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--ink); }
.tile p { margin: 0; font-size: 0.9375rem; }

/* -------- Étapes -------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step { text-align: left; }
.step__circle { width: 44px; height: 44px; border-radius: 50%; background: var(--azure-pale); color: var(--azure-deep); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 0.4rem; color: var(--ink); }
.step p { margin: 0; font-size: 0.9375rem; }

/* -------- Conversion -------- */
.conversion-band { background: linear-gradient(120deg, var(--azure-deep), var(--azure-mid)); color: #fff; position: relative; overflow: hidden; }
.conversion-band .eyebrow { color: #d7f0fc; }
.conversion-band .eyebrow::before { background: #fff; }
.conversion-band .h2-display { color: #fff; }
.conversion-band .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: #fff; background: transparent; }
.conversion-band .btn-outline:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }

/* -------- Bouton d'appel flottant (mobile, §7 du brief) -------- */
.call-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px var(--gutter);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.call-bar__row { display: flex; gap: 0.6rem; }
.call-bar .btn { flex: 1; justify-content: center; }
@media (min-width: 64rem) { .call-bar { display: none; } }

/* -------- Champs de formulaire -------- */
.field { display: flex; flex-direction: column; gap: 0.4em; margin-bottom: 1.25em; }
.field label { font-size: 0.9375rem; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit;
  font-family: var(--font);
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--azure-deep);
  outline-offset: 1px;
}
.field-error { color: var(--orange-deep); font-weight: 600; font-size: 0.875rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--orange-deep); border-width: 2px; }
.field-hint { color: var(--ink-soft); font-size: 0.875rem; }
.field-consent { display: flex; align-items: flex-start; gap: 0.6em; }
.field-consent input { margin-top: 0.3em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1.25rem; font-weight: 700; }

/* -------- Assistant de prise de rendez-vous -------- */
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--azure-deep);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.rdv-slots-day + .rdv-slots-day { margin-top: 1.25rem; }
.rdv-slots-day h4 { margin: 0 0 0.6rem; font-size: 0.9375rem; text-transform: capitalize; }
.rdv-slots-day__options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.rdv-slot {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.6em 1.2em;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.rdv-slot:hover { border-color: var(--azure); color: var(--azure-deep); }
.rdv-slot.is-selected { background: var(--azure-deep); border-color: var(--azure-deep); color: #fff; }
.rdv-summary { background: var(--bg-soft); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-size: 0.9375rem; }

/* -------- Mise en avant d'une inclusion (ex. contrat d'entretien) -------- */
.includes-callout { background: var(--azure-pale); border-radius: 14px; padding: 0.9rem 1.1rem; margin: 1rem 0; }
.includes-callout p { color: var(--azure-deep); font-weight: 700; font-size: 0.9375rem; margin: 0; }
.includes-callout .field-hint { margin-top: 0.4rem; }

/* -------- Photo dans une carte -------- */
.photo-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.photo-card img { width: 100%; height: auto; display: block; }

/* -------- FAQ -------- */
.faq-item { padding-block: 1.75rem; border-top: 1px solid var(--line); }
.faq-item:last-child { padding-bottom: 0; }
.faq-item h3 { margin: 0 0 0.5rem; }

/* -------- Pied de page -------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.875rem; color: var(--ink-soft); }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--azure-deep); }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer__links { display: flex; gap: 1.25rem; list-style: none; margin: 0.75rem 0 0; padding: 0; }
