/* ==========================================================================
   Festimaton — pages intérieures : tarifs, contact, conditions, mentions légales, confidentialité, 404
   ========================================================================== */

.page-hero { position: relative; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 60% at 15% 10%, rgba(209,15,92,.28), transparent 70%),
    radial-gradient(40% 60% at 85% 20%, rgba(30,150,165,.24), transparent 70%);
}
.section { padding: clamp(48px, 8vw, 96px) 0; }
/* une section qu'un lien vise (tarifs.html#faq, depuis le pied de page) arrive sous l'en-tête fixe, pas dessous */
.section[id] { scroll-margin-top: var(--header-h); }
.section--alt { background: var(--bg-2); }

/* --------------------------------------------------------------------------
   Tarifs
   -------------------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; padding-top: 18px; }
.price-card {
  --c: var(--orange);
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 50%), var(--panel);
  transition: translate .45s var(--spring), transform .45s var(--spring), border-color .3s, box-shadow .45s var(--ease-out);
}
.price-card:hover { translate: 0 -6px; border-color: var(--line-strong); box-shadow: var(--shadow); }
.price-card__head { display: grid; gap: 6px; }
.price-card__name { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.price-card__name::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); flex: none; }
.price-card__desc { color: var(--muted); font-size: .93rem; }
.price { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.price__amount { font-size: clamp(2.8rem, 2.2rem + 1.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.price__unit { font-size: 1.4rem; font-weight: 700; color: var(--soft); }
/* En anglais, le symbole avant le montant : « €200 » */
:lang(en) .price { gap: 2px; }
:lang(en) .price__unit { order: -1; }
.price__ask { font-size: clamp(2rem, 1.7rem + 1.2vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.price-card__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.price-card__facts span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.07); font-size: .88rem; font-weight: 600;
}
.price-card__facts svg { width: 16px; height: 16px; color: var(--c); }
.price-card .check-list { --c: var(--green); font-size: .93rem; color: var(--soft); flex: 1; gap: 10px; }
.price-card .btn { width: 100%; white-space: normal; text-align: center; }

.price-card--featured {
  --c: var(--magenta);
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 50%) padding-box,
    linear-gradient(var(--panel-2), var(--panel-2)) padding-box,
    var(--grad-warm) border-box;
  box-shadow: 0 30px 70px -30px rgba(209,15,92,.55);
}
@media (min-width: 1101px) {
  .price-card--featured, .js .price-card--featured.reveal.is-in { transform: translateY(-14px); }
}
.price-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  padding: 6px 14px; border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-size: .76rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.6);
}
.price-card__badge--soft { background: var(--panel-2); color: var(--yellow); box-shadow: inset 0 0 0 1.5px rgba(240,208,15,.6), 0 8px 20px -8px rgba(0,0,0,.6); }
.price-card--custom { --c: var(--green); }

/* Ce qui est compris partout */
.included {
  margin-top: 36px; padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg); border: 1px dashed var(--line-strong);
  background: rgba(255,255,255,.02);
}
.included__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; text-align: center; }
.included__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; }
.included__list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; color: var(--soft); font-size: .95rem; }
.included__list svg { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--panel-2); color: var(--yellow); }

/* Option livraison et installation */
.option-card {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 20px; padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: radial-gradient(70% 120% at 0% 0%, rgba(30,150,165,.22), transparent 70%), var(--panel);
}
.option-card__icon {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px;
  background: var(--grad-cool); color: #fff;
}
.option-card__icon svg { width: 28px; height: 28px; }
.option-card h2 { font-size: 1.2rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.option-card__price { padding: 3px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: .9rem; font-weight: 800; }
.option-card p { color: var(--soft); margin-top: 6px; max-width: 80ch; }

.pricing-note { margin-top: 24px; text-align: center; color: var(--muted); font-size: .9rem; }

@media (max-width: 1100px) {
  .pricing { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; row-gap: 32px; }
  .included__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pricing { grid-template-columns: 1fr; max-width: 460px; }
  .price-card--featured { order: -1; }
  .included__list { grid-template-columns: 1fr; }
  .option-card { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Déroulé (frise)
   -------------------------------------------------------------------------- */
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: tl; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; border-top: 3px dashed rgba(255,255,255,.14); }
.timeline li { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 10px; counter-increment: tl; }
.timeline li::before {
  content: counter(tl); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-2); border: 3px solid var(--c, var(--orange)); font-size: 1.3rem; font-weight: 800;
  position: relative; z-index: 1;
}
.timeline h3 { font-size: 1.04rem; }
.timeline p { color: var(--muted); font-size: .92rem; max-width: 24ch; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline::before { top: 28px; bottom: 28px; left: 27px; right: auto; border-top: 0; border-left: 3px dashed rgba(255,255,255,.14); }
  .timeline li { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: 18px; row-gap: 2px; }
  .timeline li::before { grid-row: span 2; }
  .timeline h3 { align-self: end; }
  .timeline p { max-width: none; }
}

/* --------------------------------------------------------------------------
   Bandeau d'appel
   -------------------------------------------------------------------------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(209,15,92,.4), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(238,125,10,.35), transparent 60%),
    var(--panel);
  border: 1px solid var(--line-strong);
}
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.cta-band p { color: var(--soft); margin-top: 6px; }
@media (max-width: 640px) { .cta-band .btn { width: 100%; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  --c: var(--orange);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg);
  background: radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), var(--panel);
  border: 1px solid var(--line);
  transition: translate .45s var(--spring), border-color .3s;
}
.contact-card:hover { translate: 0 -5px; border-color: var(--line-strong); }
.contact-card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px;
  background: var(--c); color: #fff; box-shadow: 0 12px 26px -12px var(--c);
}
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card h2 { font-size: 1.15rem; font-weight: 600; color: var(--soft); letter-spacing: 0; }
.contact-card__big { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; letter-spacing: -.01em; text-decoration: none; word-break: break-word; }
a.contact-card__big:hover { color: var(--yellow); }
.contact-card__big--mail { font-size: clamp(1.1rem, .9rem + .75vw, 1.4rem); word-break: normal; overflow-wrap: anywhere; }
.contact-card p { color: var(--muted); font-size: .95rem; }
.contact-card .protected { margin-top: auto; padding-top: 6px; }   /* boutons alignés en bas des cartes */
.contact-card .protected__content .contact-card__actions { margin-top: 0; padding-top: 0; }
/* Deux boutons de même largeur, côte à côte seulement si les deux tiennent (« Copier le numéro » fait ~190 px) :
   la décision se prend sur la largeur de la carte, la même pour toutes, et non sur la longueur de chaque texte
   (un retour à la ligne au cas par cas empilait les boutons d'une carte et pas de sa voisine). */
.contact-card { container-type: inline-size; }
.contact-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 6px; }
.contact-card__actions > :only-child { grid-column: 1 / -1; }
.contact-card__actions .btn { min-width: 0; justify-content: center; white-space: nowrap; }
@container (max-width: 389px) { .contact-card__actions { grid-template-columns: 1fr; } }
.btn.is-copied { --btn-bg: var(--green); color: #fff; box-shadow: none; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

.zone { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.zone__text .lead { margin-top: 14px; }
.zone__text .chips { margin-top: 24px; }
.zone__map {
  position: relative; aspect-ratio: 1.25; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 55% 52%, #2a2440, var(--panel) 70%);
  border: 1px solid var(--line);
}
.zone__map svg { width: 100%; height: 100%; }
.zone__map .ring { fill: none; stroke: rgba(255,255,255,.12); stroke-width: .35; stroke-dasharray: 1.2 1.6; }
.zone__map .ring-label { fill: rgba(255,255,255,.35); font-size: 2.4px; font-family: var(--font); }
.zone__map .river { fill: none; stroke: url(#arve); stroke-width: 1.6; stroke-linecap: round; }
.zone__map .river-label { fill: #7fd3e0; font-family: var(--hand); font-size: 4.2px; font-weight: 700; }
.zone__map .town circle { fill: var(--soft); }
.zone__map .town text { fill: var(--soft); font-size: 2.9px; font-family: var(--font); font-weight: 500; }
.zone__map .home circle.dot { fill: var(--yellow); }
.zone__map .home circle.pulse { fill: none; stroke: var(--yellow); stroke-width: .5; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease-out) infinite; }
.zone__map .home text { fill: var(--text); font-size: 3.8px; font-weight: 800; font-family: var(--font); }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
@media (max-width: 960px) { .zone { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */
.legal { padding-bottom: clamp(56px, 9vw, 110px); }
.legal .toc { margin-bottom: 8px; }
.legal__updated { color: var(--muted); font-size: .9rem; margin-top: 10px; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; }
.lost__inner { display: grid; justify-items: center; gap: 16px; }
.lost__print {
  width: 190px; padding: 12px 12px 0; background: var(--paper); border-radius: 3px; transform: rotate(-6deg);
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.8); margin-bottom: 18px;
  animation: lost-swing 4s ease-in-out infinite;
}
/* la photo : la page d'accueil « tout cassée », prise en mouvement (le flou est dans l'image, page-cassee.webp) */
.lost__print img { aspect-ratio: 1; object-fit: cover; background: #15121d; filter: saturate(1.15); }
.lost__print figcaption { color: #22306e; font-size: 1.5rem; padding: 6px 0 10px; }
@keyframes lost-swing { 50% { transform: rotate(-2deg) translateY(-6px); } }
.lost h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); }
.lost p { color: var(--soft); max-width: 46ch; }
.lost .view__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
