/* ==========================================================================
   Liam Martineau — Sites web pour petits commerces de la région de Québec
   Feuille de style unique. Pensée d'abord pour le cellulaire.
   ========================================================================== */

/* ---------- Police des titres (hébergée sur le site, aucun appel externe) */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Couleurs et mesures ------------------------------------------ */
:root {
  --creme: #fbf6ee;
  --creme-2: #f3eadc;
  --blanc: #ffffff;
  --encre: #1c2140;
  --encre-2: #4b5170;
  --ligne: #e6dccb;
  --accent: #b4410f;
  --accent-fonce: #93340b;
  --accent-pale: #fbe2d3;
  --accent-clair: #f2a47e;
  --sapin: #2d6a4f;
  --sapin-pale: #dcefe4;
  --nuit: #1c2140;

  --titres: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --rayon: 1rem;
  --rayon-petit: 0.625rem;
  --ombre: 0 1px 2px rgb(28 33 64 / 0.06), 0 10px 30px -8px rgb(28 33 64 / 0.16);
  --ombre-forte: 0 2px 4px rgb(28 33 64 / 0.06), 0 24px 48px -12px rgb(28 33 64 / 0.28);
  --largeur: 72rem;
  --gouttiere: clamp(1rem, 4vw, 2rem);
  --hauteur-barre: 4.5rem;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

/* La barre « Appelez-moi » fixée en bas ne doit pas cacher l'élément qui a le focus */
@media (max-width: 71.99em) {
  html {
    scroll-padding-bottom: calc(var(--hauteur-barre) + env(safe-area-inset-bottom) + 1rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--titres);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 1.5rem + 4vw, 3.9rem);
}

h2 {
  font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.85rem);
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.25;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

a {
  color: var(--accent-fonce);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.icone {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Lien « Aller au contenu » pour la navigation au clavier */
.lien-evitement {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  background: var(--nuit);
  color: var(--creme);
  padding: 0.75rem 1.25rem;
  border-radius: var(--rayon-petit);
  font-weight: 600;
  text-decoration: none;
}

.lien-evitement:focus {
  top: 1rem;
  color: var(--creme);
}

/* Les textes qui restent à compléter sont surlignés pour être faciles à repérer */
.a-completer {
  background: #fff3b0;
  color: #5c4500;
  outline: 2px dashed #c9a200;
  outline-offset: 1px;
  border-radius: 3px;
  padding: 0 0.25em;
  font-family: var(--texte);
  font-weight: 600;
  font-size: 0.9em;
  letter-spacing: 0;
}

/* ---------- Conteneurs et sections -------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.conteneur--etroit {
  max-width: 46rem;
}

.section {
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
}

/* Page longue : le navigateur attend qu'on approche d'une section pour la dessiner (plus rapide au chargement) */
main > section:not(.heros):not(.page-entete),
.pied {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.section--alt {
  background: var(--creme-2);
}

.section--blanche {
  background: var(--blanc);
}

.section__entete {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.section__entete p {
  color: var(--encre-2);
  font-size: 1.125rem;
}

.surtitre {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-fonce);
  margin-bottom: 0.75rem;
}

.section__suite {
  margin-top: 2.25rem;
}

/* ---------- Boutons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn--primaire {
  background: var(--accent);
  color: var(--blanc);
  box-shadow: 0 6px 16px -6px rgb(180 65 15 / 0.6);
}

.btn--primaire:hover {
  background: var(--accent-fonce);
  color: var(--blanc);
}

.btn--secondaire {
  background: transparent;
  color: var(--encre);
  border-color: var(--encre);
}

.btn--secondaire:hover {
  background: var(--encre);
  color: var(--creme);
}

.btn--contour-clair {
  background: transparent;
  color: var(--creme);
  border-color: rgb(251 246 238 / 0.55);
}

.btn--contour-clair:hover {
  border-color: var(--creme);
  color: var(--creme);
  background: rgb(251 246 238 / 0.08);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  min-height: 2.75rem;
}

.lien-fleche .icone {
  transition: transform 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .lien-fleche:hover .icone {
    transform: translateX(4px);
  }
}

/* ---------- En-tête ------------------------------------------------------ */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 246 238 / 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@supports (backdrop-filter: blur(1px)) {
  .entete {
    background: rgb(251 246 238 / 0.9);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}

.entete.est-defilee {
  border-bottom-color: var(--ligne);
  box-shadow: 0 6px 20px -16px rgb(28 33 64 / 0.4);
}

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--encre);
  text-decoration: none;
  line-height: 1.1;
}

.marque:hover {
  color: var(--encre);
}

.marque__logo {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.marque__nom {
  display: block;
  font-family: var(--titres);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.marque__sous-titre {
  display: block;
  font-size: 0.8125rem;
  color: var(--encre-2);
}

.marque__nom,
.marque__sous-titre,
.nav__lien,
.btn {
  white-space: nowrap;
}

/* Très petits écrans : on garde seulement le nom, en plus compact */
@media (max-width: 23em) {
  .entete .marque__sous-titre {
    display: none;
  }

  .marque {
    gap: 0.5rem;
  }

  .marque__nom {
    font-size: 1.05rem;
  }

  .entete .marque__logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  .menu-bouton {
    padding-inline: 0.75rem;
  }

  .barre-appel {
    gap: 0.5rem;
  }

  .barre-appel .btn {
    padding-inline: 0.75rem;
    font-size: 1rem;
    gap: 0.45rem;
  }
}

.menu-bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--encre);
  border-radius: 999px;
  background: transparent;
  color: var(--encre);
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
}

.menu-bouton .icone-fermer {
  display: none;
}

.menu-bouton[aria-expanded="true"] .icone-ouvrir {
  display: none;
}

.menu-bouton[aria-expanded="true"] .icone-fermer {
  display: block;
}

.nav__liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__lien {
  display: block;
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
}

.entete__appel {
  display: none;
}

/* Menu sur cellulaire : panneau qui s'ouvre sous l'en-tête.
   Sans JavaScript, le fichier sans-js.css affiche plutôt les liens. */
.nav {
  display: none;
}

.nav.est-ouverte {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--creme);
  border-bottom: 1px solid var(--ligne);
  box-shadow: 0 24px 40px -24px rgb(28 33 64 / 0.45);
  padding: 0.5rem var(--gouttiere) 1.5rem;
  max-height: calc(100dvh - 4.25rem);
  overflow-y: auto;
}

.nav.est-ouverte .nav__lien {
  padding: 0.9rem 0;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--ligne);
}

@media (min-width: 72em) {
  .menu-bouton {
    display: none;
  }

  .nav,
  .nav.est-ouverte {
    display: block;
    position: static;
    padding: 0;
    width: auto;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav.est-ouverte .nav__lien {
    border-bottom: 0;
  }

  .nav__liste {
    display: flex;
    gap: 0.25rem;
  }

  .nav__lien,
  .nav.est-ouverte .nav__lien {
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    font-size: 0.9688rem;
  }

  .nav__lien:hover {
    background: var(--creme-2);
    color: var(--encre);
  }

  .entete__appel {
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.9688rem;
  }
}

/* ---------- Barre « Appelez-moi » fixée en bas (cellulaire) -------------- */
.barre-appel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem var(--gouttiere) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgb(28 33 64 / 0.96);
  box-shadow: 0 -8px 24px -12px rgb(28 33 64 / 0.5);
}

.barre-appel .btn {
  flex: 1;
  min-height: 3.25rem;
  padding-inline: 1rem;
}

.barre-appel .btn--contour-clair {
  flex: 0 0 auto;
}

/* Sur l'accueil, la barre se cache tant que le gros bouton du haut est visible */
.barre-appel {
  transition: transform 0.3s ease, visibility 0.3s;
}

.barre-appel.est-cachee {
  transform: translateY(110%);
  visibility: hidden;
}

@media (min-width: 72em) {
  .barre-appel {
    display: none;
  }
}

/* ---------- Accueil : héros ---------------------------------------------- */
.heros {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(3rem, 2rem + 5vw, 6rem);
}

.heros::before {
  content: "";
  position: absolute;
  top: 0;
  right: -25%;
  width: min(90vw, 44rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(242 164 126 / 0.35), rgb(242 164 126 / 0));
  pointer-events: none;
}

.heros__grille {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}

@media (min-width: 60em) {
  .heros__grille {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.heros__surtitre {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.5rem;
  border-radius: 999px;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--encre-2);
  margin-bottom: 1.25rem;
}

.heros__surtitre .icone {
  color: var(--accent);
}

.heros h1 {
  margin-bottom: 0.45em;
  text-wrap: pretty;
}

.surligne {
  white-space: nowrap;
  background: linear-gradient(transparent 60%, var(--accent-pale) 60%, var(--accent-pale) 92%, transparent 92%);
  padding-inline: 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.heros__texte {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  color: var(--encre-2);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.heros__prix {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--rayon-petit);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-left: 4px solid var(--accent);
  font-size: 1rem;
}

.heros__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.heros__actions .btn {
  flex: 1 1 13rem;
}

@media (min-width: 36em) {
  .heros__actions .btn {
    flex: 0 0 auto;
  }
}

.heros__note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--encre-2);
}

/* Les trois écrans de téléphone décoratifs */
.heros__visuel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.heros__visuel .telephone {
  width: 34%;
  max-width: 12.5rem;
}

@media (min-width: 60em) {
  .heros__visuel .telephone {
    width: 40%;
  }
}

.heros__visuel .telephone:nth-child(1) {
  transform: translateX(18%) rotate(-7deg);
  z-index: 1;
}

.heros__visuel .telephone:nth-child(2) {
  z-index: 2;
  margin-bottom: 1.5rem;
}

.heros__visuel .telephone:nth-child(3) {
  transform: translateX(-18%) rotate(7deg);
  z-index: 1;
}

.heros__etiquette {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--nuit);
  color: var(--creme);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--ombre);
}

/* ---------- Cadre de téléphone (démos) ----------------------------------- */
.telephone {
  position: relative;
  aspect-ratio: 9 / 19;
  padding: 6%;
  border-radius: 14% / 6.6%;
  background: linear-gradient(160deg, #2a3058, var(--nuit));
  box-shadow: var(--ombre-forte);
}

.telephone::before {
  /* encoche */
  content: "";
  position: absolute;
  top: 3.2%;
  left: 50%;
  width: 26%;
  height: 2.2%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0d1026;
  z-index: 2;
}

.telephone__ecran {
  position: relative;
  height: 100%;
  border-radius: 9% / 4.3%;
  overflow: hidden;
  background: var(--blanc);
}

.telephone__ecran img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ---------- Pour qui ---------------------------------------------------- */
.pour-qui {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--ligne);
}

.pour-qui__titre {
  font-family: var(--texte);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre-2);
  margin-bottom: 0.85rem;
}

.pour-qui__liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pour-qui__liste li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---------- Avis « démos fictives » -------------------------------------- */
.avis {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--rayon-petit);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-left: 4px solid var(--accent);
  font-size: 0.9688rem;
  color: var(--encre-2);
  max-width: 46rem;
}

.avis strong {
  color: var(--encre);
}

.avis .icone {
  color: var(--accent);
  margin-top: 0.15rem;
}

/* ---------- Cartes de démos --------------------------------------------- */
.demos {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

/* Sur cellulaire, les démos défilent à l'horizontale (on glisse du doigt) */
@media (max-width: 59.99em) {
  .demos {
    grid-auto-flow: column;
    grid-auto-columns: min(74%, 16rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0.5rem var(--gouttiere) 1.25rem;
    margin-inline: calc(-1 * var(--gouttiere));
    scroll-padding-inline: var(--gouttiere);
    scrollbar-width: thin;
  }

  .demos > li {
    scroll-snap-align: start;
  }
}

@media (min-width: 60em) {
  .demos {
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  }

  .demos__aide {
    display: none;
  }
}

.demos__aide {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--encre-2);
  text-align: center;
}

.demo {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--rayon);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  box-shadow: var(--ombre);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .demo:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombre-forte);
  }
}

.demo__vitrine {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.5rem 1.5rem 0;
  background: linear-gradient(180deg, var(--creme-2), var(--accent-pale));
  height: 15rem;
  overflow: hidden;
}

.demo__vitrine .telephone {
  width: 9.5rem;
  flex: none;
  height: auto;
  box-shadow: 0 18px 30px -12px rgb(28 33 64 / 0.45);
}

.demo__etiquette {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--nuit);
  color: var(--creme);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.demo__corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.25rem 1.25rem;
}

.demo__type {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-fonce);
}

.demo h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.demo__lien {
  margin-top: auto;
  text-decoration: none;
}

/* Toute la carte est cliquable, mais un seul lien est lu au clavier */
.demo__lien::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}

.demo__lien:focus-visible {
  outline: none;
}

.demo__lien:focus-visible::after {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
  border-radius: var(--rayon);
}

/* ---------- Formules et tarifs ------------------------------------------ */
.formules {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48em) {
  .formules {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.formule {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  border-radius: calc(var(--rayon) * 1.25);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  box-shadow: var(--ombre);
}

.formule__badge {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent-fonce);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.formule h3 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  margin-bottom: 0.3rem;
}

.formule__sous-titre {
  color: var(--encre-2);
  margin-bottom: 1.25rem;
}

.formule__prix {
  font-family: var(--titres);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.formule__prix span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--texte);
  font-size: 1rem;
  font-weight: 600;
  color: var(--encre-2);
}

.formule__note {
  font-size: 0.9375rem;
  color: var(--encre-2);
  margin-bottom: 1.25rem;
}

.formule .btn {
  margin-top: auto;
}

.liste-crochets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.7rem;
}

.liste-crochets li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.liste-crochets .icone {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.28rem;
  border-radius: 50%;
  background: var(--sapin-pale);
  color: var(--sapin);
  margin-top: 0.1rem;
}

.inclus {
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  border-radius: calc(var(--rayon) * 1.25);
  background: var(--creme-2);
}

.inclus h3 {
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.inclus .liste-crochets {
  margin: 0;
}

@media (min-width: 48em) {
  .liste-crochets--colonnes {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

.comparatif__titre {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 1rem;
}

.tarifs__note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--encre-2);
}

/* Tableau comparatif */
.tableau-defilant {
  overflow-x: auto;
  border-radius: var(--rayon);
  border: 1px solid var(--ligne);
  background: var(--blanc);
  box-shadow: var(--ombre);
}

.comparatif {
  width: 100%;
  min-width: 20rem;
  border-collapse: collapse;
  font-size: 0.9688rem;
}

.comparatif th,
.comparatif td {
  padding: 0.85rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ligne);
}

.comparatif thead th {
  font-family: var(--titres);
  font-size: 1.05rem;
  border-bottom: 2px solid var(--encre);
}

.comparatif tbody th {
  font-weight: 600;
  width: 34%;
}

@media (min-width: 36em) {
  .comparatif th,
  .comparatif td {
    padding: 0.9rem 1.25rem;
  }

  .comparatif thead th {
    font-size: 1.15rem;
  }

  .comparatif tbody th {
    width: 40%;
  }
}

.comparatif tbody tr:last-child > * {
  border-bottom: 0;
}

/* Sur cellulaire : le titre de la ligne au-dessus, les deux formules côte à côte */
@media (max-width: 47.99em) {
  .comparatif {
    min-width: 0;
  }

  .comparatif thead,
  .comparatif tbody {
    display: block;
  }

  .comparatif tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  /* Cellule vide gardée pour les lecteurs d'écran (sinon les titres de colonnes se décalent), mais invisible */
  .comparatif thead td {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
  }

  .comparatif tbody th {
    grid-column: 1 / -1;
    width: auto;
    padding-bottom: 0.2rem;
    border-bottom: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--encre-2);
  }

  .comparatif tbody td {
    padding-top: 0.2rem;
  }

  .comparatif tbody td + td {
    border-left: 1px solid var(--ligne);
  }
}

.comparatif tbody tr:nth-child(even) {
  background: rgb(243 234 220 / 0.45);
}

/* ---------- Étapes ------------------------------------------------------- */
.etapes {
  list-style: none;
  counter-reset: etape;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 72em) {
  .etapes {
    grid-template-columns: repeat(5, 1fr);
  }

  .etapes .etape {
    padding: 4.5rem 1.25rem 1.35rem;
  }
}

.etape {
  counter-increment: etape;
  position: relative;
  padding: 1.5rem 1.5rem 1.35rem 4.75rem;
  border-radius: var(--rayon);
  background: var(--blanc);
  border: 1px solid var(--ligne);
}

.etape::before {
  content: counter(etape);
  position: absolute;
  left: 1.4rem;
  top: 1.35rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--blanc);
  font-family: var(--titres);
  font-size: 1.25rem;
}

.etape h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.etape p {
  margin: 0;
  color: var(--encre-2);
}

/* ---------- FAQ ---------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border-radius: var(--rayon);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  transition: box-shadow 0.2s ease;
}

.faq details[open] {
  box-shadow: var(--ombre);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  min-height: 3.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.0625rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg) translate(-25%, -25%);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-10%, -10%);
}

.faq__reponse {
  padding: 0 1.25rem 1.25rem;
  color: var(--encre-2);
}

.faq__reponse > :last-child {
  margin-bottom: 0;
}

/* ---------- Bande d'appel finale ---------------------------------------- */
.appel {
  position: relative;
  overflow: hidden;
  background: var(--nuit);
  color: var(--creme);
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6rem);
}

.appel::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: min(80vw, 36rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(242 164 126 / 0.28), rgb(242 164 126 / 0));
  pointer-events: none;
}

.appel .conteneur {
  position: relative;
}

.appel h2 {
  max-width: 20ch;
}

.surtitre--clair {
  color: var(--accent-clair);
}

.appel p {
  color: rgb(251 246 238 / 0.85);
  max-width: 36rem;
  font-size: 1.125rem;
}

.appel a:not(.btn) {
  color: var(--accent-clair);
}

/* Sur fond foncé, le contour du focus doit rester bien visible */
.appel :focus-visible,
.barre-appel :focus-visible {
  outline-color: var(--accent-clair);
}

/* ---------- Contact (sur fond foncé) ----------------------------------- */
.coordonnees {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 48rem;
}

@media (min-width: 48em) {
  .coordonnees {
    grid-template-columns: 1fr 1fr;
  }
}

.appel a.coordonnee {
  display: flex;
  gap: 1rem;
  align-items: center;
  height: 100%;
  padding: 1.2rem 1.3rem;
  border-radius: var(--rayon);
  background: rgb(251 246 238 / 0.07);
  border: 1px solid rgb(251 246 238 / 0.22);
  color: var(--creme);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.appel a.coordonnee:hover {
  background: rgb(251 246 238 / 0.12);
  border-color: rgb(251 246 238 / 0.45);
  color: var(--creme);
}

.coordonnee > .icone {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem;
  border-radius: 50%;
  background: var(--accent-clair);
  color: var(--nuit);
}

.coordonnee__titre {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(251 246 238 / 0.78);
}

.coordonnee__valeur {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  word-break: break-word;
}

.appel .appel__territoire {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 2rem 0 0;
  font-size: 1rem;
  max-width: 48rem;
}

.appel__territoire .icone {
  color: var(--accent-clair);
  margin-top: 0.2rem;
}

.appel__territoire strong {
  color: var(--creme);
}

.appel .appel__vie-privee {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  max-width: 48rem;
}

/* ---------- À propos ---------------------------------------------------- */
.a-propos p {
  font-size: 1.125rem;
}

.a-propos h2 + p::first-line {
  font-weight: 600;
}

/* ---------- Texte long (À propos, confidentialité) ---------------------- */
.texte-long h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
  margin-top: 2.25em;
}

.texte-long h2:first-child {
  margin-top: 0;
}

.texte-long h3 {
  font-size: 1.2rem;
  margin-top: 1.75em;
}

.texte-long ul {
  padding-left: 1.25rem;
}

.texte-long li {
  margin-bottom: 0.4em;
}

.texte-long .encadre {
  padding: 1.25rem 1.4rem;
  border-radius: var(--rayon);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  margin-bottom: 1.5rem;
}

.encadre > :last-child {
  margin-bottom: 0;
}

/* ---------- En-tête des pages intérieures ------------------------------- */
.page-entete {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.page-entete p {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  color: var(--encre-2);
  max-width: 40rem;
}

/* ---------- Pied de page ------------------------------------------------- */
.pied {
  background: var(--creme-2);
  border-top: 1px solid var(--ligne);
  padding-block: 3rem 2rem;
  /* Place pour la barre « Appelez-moi » fixée en bas sur cellulaire */
  padding-bottom: calc(2rem + var(--hauteur-barre) + env(safe-area-inset-bottom));
  font-size: 0.9688rem;
}

@media (min-width: 72em) {
  .pied {
    padding-bottom: 2rem;
  }
}

.pied__grille {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48em) {
  .pied__grille {
    grid-template-columns: 1.6fr 1fr;
  }
}

.pied__titre {
  font-family: var(--texte);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre-2);
  margin-bottom: 0.75rem;
}

.pied ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pied li a {
  display: inline-block;
  padding: 0.6rem 0;
  color: var(--encre);
  text-decoration: none;
}

.pied li a:hover {
  text-decoration: underline;
}

.pied__vie-privee {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--encre-2);
  margin-top: 1rem;
}

.pied__vie-privee .icone {
  color: var(--sapin);
  margin-top: 0.15rem;
}

.pied__bas {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ligne);
  color: var(--encre-2);
  font-size: 0.875rem;
}

.pied__bas p {
  margin: 0;
}

/* ---------- Animations discrètes (désactivées si mouvement réduit) ------ */
@media (prefers-reduced-motion: no-preference) {
  .apparition {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .apparition.est-visible {
    opacity: 1;
    transform: none;
  }
}

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

/* ---------- Impression -------------------------------------------------- */
@media print {
  .entete,
  .barre-appel,
  .appel,
  .lien-evitement {
    display: none !important;
  }

  body {
    background: #fff;
    padding: 0;
  }

  .apparition {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
