/* ============================================================
   Sérénidom — identité visuelle (étape 47)
   Nuit (textes, sections sombres), Bleu (logo, repères),
   Soleil (boutons et offre), Ciel et Brume (fonds doux).
   Police : Plus Jakarta Sans ; nom « Sérénidom » en Nunito.
   ============================================================ */

:root {
  color-scheme: light;

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-brand: 'Nunito', 'Plus Jakarta Sans', system-ui, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --text-xl: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);
  --text-2xl: clamp(2.125rem, 1.3rem + 3.4vw, 3.625rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Couleurs de la marque */
  --color-night: #0d2b59;
  --color-night-2: #163a73;
  --color-night-line: #2a4c84;
  --color-blue: #1d6fe0;
  --color-sun: #ffc93c;
  --color-sky: #eaf3ff;
  --color-mist: #f3f5f8;

  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #ffffff;
  --color-surface-offset: #f3f5f8;
  --color-surface-offset-2: #e9eef5;
  --color-surface-dynamic: #e9eef5;
  --color-divider: #e2e7ee;
  --color-border: #c9d3e0;

  --color-text: #0b1b2e;
  --color-text-muted: #3a4a5e;
  --color-text-soft: #55616f;
  --color-text-faint: #7a8696;
  --color-text-inverse: #ffffff;

  --color-on-night: #ffffff;
  --color-on-night-muted: #c9d3e0;
  --color-on-night-faint: #a9b6c6;

  /* Bleu lisible sur fond blanc ou Ciel (contraste AA) */
  --color-primary: #1a5fcf;
  --color-primary-hover: #154fae;
  --color-primary-active: #103f8c;
  --color-primary-highlight: #eaf3ff;
  --color-on-primary: #ffffff;

  --color-accent: #ffc93c;
  --color-accent-hover: #ffbc14;
  --color-accent-active: #f0ae00;
  --color-accent-highlight: #fff4d6;
  --color-on-accent: #0b1b2e;

  --color-success: #14633f;
  --color-success-icon: #1f8a5b;
  --color-success-highlight: #e6f4ec;
  --color-error: #b42318;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.125rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(11, 27, 46, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 27, 46, 0.1);
  --shadow-lg: 0 20px 44px rgba(11, 27, 46, 0.14);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F8A5B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
  --icon-euro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A6A00' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 7a7 7 0 1 0 0 10M4 10h10M4 14h10'/%3E%3C/svg%3E");
  --icon-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355616F' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

body {
  line-height: 1.55;
}

a {
  color: var(--color-primary);
}

sup {
  font-size: 0.6em;
  line-height: 0;
}

/* ------------------------------------------------------------
   Mise en page
   ------------------------------------------------------------ */

.container {
  width: min(var(--content-wide), 100% - var(--space-10));
  margin-inline: auto;
}

.container-narrow {
  width: min(var(--content-default), 100% - var(--space-10));
  margin-inline: auto;
}

.section {
  padding-block: clamp(var(--space-12), 6vw, 4.5rem);
}

.section-tight {
  padding-block: clamp(var(--space-8), 4vw, var(--space-12));
}

.section-sky {
  background: var(--color-sky);
}

.section-mist {
  background: var(--color-mist);
}

.kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--space-8);
}

.section-head h1,
.section-head h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.section-head p {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.section-more {
  margin-top: var(--space-6);
  font-weight: 700;
}

.section-more.is-centered {
  text-align: center;
  max-width: none;
}

.fine-print {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-text-soft);
}

/* ------------------------------------------------------------
   En-tête et menu
   ------------------------------------------------------------ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-text);
}

.brand-mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-brand);
  font-size: 1.625rem;
  font-weight: 900;
  line-height: 1.1;
}

.brand-name small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.625rem;
}

.nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current='page'] {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  text-decoration: none;
  color: var(--color-text);
}

.header-phone strong {
  font-size: 1.25rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-phone span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-soft);
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-sky);
  color: var(--color-text);
  text-decoration: none;
}

.icon-btn:hover {
  background: #d8e8ff;
}

.nav-toggle {
  display: none;
  background: var(--color-mist);
}

.header-call {
  display: none;
}

/* ------------------------------------------------------------
   Boutons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-size: var(--text-base);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn svg {
  flex-shrink: 0;
}

.btn-lg {
  min-height: 56px;
  padding: 0 1.75rem;
  font-size: 1.0625rem;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-primary:active {
  background: var(--color-accent-active);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-night {
  background: var(--color-night);
  color: var(--color-on-night);
}

.btn-night:hover {
  background: var(--color-night-2);
}

.btn-outline {
  border-color: var(--color-night);
  color: var(--color-night);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-night);
  color: var(--color-on-night);
}

.btn-outline-light {
  border-color: var(--color-on-night);
  color: var(--color-on-night);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--color-on-night);
  color: var(--color-night);
}

.btn-quiet {
  min-height: 44px;
  padding-inline: var(--space-2);
  color: var(--color-primary);
}

.btn-quiet:hover {
  text-decoration: underline;
}

.phone-link {
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Accueil : premier écran
   ------------------------------------------------------------ */

.hero {
  padding-block: clamp(var(--space-5), 3vw, var(--space-10)) 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    'text offer'
    'cta offer';
  gap: var(--space-6) 2.75rem;
  align-items: start;
}

.hero-text {
  grid-area: text;
  align-self: end;
}

.hero h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
}

.hero .lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 34em;
  margin-bottom: var(--space-5);
}

.hero-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
}

.hero-price span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-soft);
}

.hero-price strong {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-grid > .hero-cta {
  grid-area: cta;
}

/* L'offre de bienvenue : l'image et le texte dans le même cadre */
.hero-offer {
  grid-area: offer;
  align-self: center;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--color-sun);
  border-radius: 26px;
  background: var(--color-accent-highlight);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-interactive);
}

.hero-offer:hover {
  transform: translateY(-2px);
}

.hero-offer-media {
  position: relative;
  display: block;
}

.hero-offer img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px 24px 0 0;
  background: #f4f1ea;
}

/* Pastille ronde collée sur le coin du cadre (texte réel, détails dans la phrase dessous) */
.hero-offer-badge {
  position: absolute;
  top: -16px;
  left: -12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: clamp(84px, 21%, 112px);
  aspect-ratio: 1;
  padding: 8px;
  border-radius: var(--radius-full);
  background: var(--color-sun);
  color: var(--color-night);
  text-align: center;
  line-height: 1.05;
  box-shadow: 0 6px 16px rgba(13, 43, 89, 0.18);
  transform: rotate(-8deg);
}

.hero-offer-badge strong {
  font-size: clamp(0.8125rem, 0.7rem + 0.45vw, 1.0625rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-offer-badge sup {
  font-size: 0.6em;
}

.hero-offer-badge span {
  font-size: clamp(0.625rem, 0.56rem + 0.25vw, 0.75rem);
  font-weight: 700;
}

.hero-offer-text {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 16px;
  line-height: 1.35;
}

.hero-offer:hover .hero-offer-text > span:last-child {
  text-decoration: underline;
}

.hero-offer-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--color-sun);
  color: var(--color-night);
}

/* Carte d'abonné dessinée */
.member-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  padding: 18px;
  background: var(--color-surface-offset-2);
  color: #33445a;
}

.member-visual-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}

.member-visual-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-brand);
  font-size: 1.0625rem;
  font-weight: 900;
  color: var(--color-night);
}

.member-visual-level {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-visual-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--text-xs);
  font-weight: 700;
}

.member-visual-label strong {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--color-on-night);
}

.member-visual.is-premium {
  background: var(--color-night);
  color: #b8c3d1;
}

.member-visual.is-premium .member-visual-brand {
  color: var(--color-on-night);
}

.member-visual.is-premium .member-visual-level {
  color: var(--color-sun);
}

/* ------------------------------------------------------------
   Bande des preuves (fond bleu marine)
   ------------------------------------------------------------ */

.proof-bar {
  display: flow-root;
  background: var(--color-night);
  color: var(--color-on-night);
}

.proof-photo {
  margin-top: 1.75rem;
  aspect-ratio: 21 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-night-2);
}

.proof-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.proof-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-5) var(--space-8);
  padding-block: 1.75rem;
}

.proof-photo + .proof-list {
  padding-top: var(--space-6);
}

.proof-list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.proof-list strong {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-sun);
}

.proof-list span {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-on-night-muted);
}

/* ------------------------------------------------------------
   Étapes « Comment ça marche »
   ------------------------------------------------------------ */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: var(--space-6);
  border-radius: 22px;
  background: var(--color-mist);
}

.section-mist .step {
  background: var(--color-surface);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-blue);
  color: #ffffff;
  font-size: 1.1875rem;
  font-weight: 800;
}

.step:last-child::before {
  background: var(--color-sun);
  color: var(--color-night);
}

.step h3 {
  font-size: 1.1875rem;
  font-weight: 800;
}

.step p {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   Cartes d'abonné (formules)
   ------------------------------------------------------------ */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 1.875rem;
  border: 3px solid transparent;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.section-mist .plan,
.plans.is-bordered .plan:not(.featured) {
  border-color: var(--color-divider);
}

.plan.featured {
  border-color: var(--color-sun);
}

.plan .tag {
  position: absolute;
  top: -15px;
  left: 26px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--color-sun);
  color: var(--color-night);
  font-size: var(--text-xs);
  font-weight: 800;
}

.plan .member-visual {
  height: 150px;
  max-width: 260px;
}

.plan h3 {
  font-size: 1.625rem;
  font-weight: 800;
}

.plan h3 small {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  vertical-align: middle;
}

.plan .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan .price strong {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan .price span {
  color: var(--color-text-soft);
}

.plan .price-offer {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-highlight);
}

.plan .price-offer .price {
  gap: 10px;
}

.plan .price-offer .price strong {
  font-size: 3.25rem;
  line-height: 1;
}

.plan .price-offer .price span {
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--color-text);
}

.plan .price-then {
  font-weight: 600;
  color: var(--color-text-muted);
}

.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  line-height: 1.4;
}

.plan li,
.check-list li {
  display: flex;
  gap: 10px;
}

.plan li::before,
.check-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: var(--icon-check) center / contain no-repeat;
}

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

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.check-list li::before {
  width: 22px;
  height: 22px;
}

/* ------------------------------------------------------------
   Deux colonnes (texte + visuel)
   ------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-10);
  align-items: center;
}

.split-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.split-text h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.split-text p {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.split-text .kicker {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   Exemple d'économie
   ------------------------------------------------------------ */

.example-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 2px solid var(--color-divider);
  border-radius: 24px;
  background: var(--color-surface);
}

table.example th,
table.example td {
  padding: var(--space-3) var(--space-2);
  text-align: right;
  vertical-align: top;
}

table.example thead th {
  font-weight: 700;
  color: var(--color-text-soft);
}

table.example thead th:first-child,
table.example tbody th {
  text-align: left;
}

table.example thead th:last-child {
  font-weight: 800;
  color: var(--color-text);
}

table.example tbody th {
  font-weight: 600;
}

table.example tbody tr {
  border-top: 1px solid var(--color-divider);
}

table.example tbody tr.total {
  border-top: 2px solid var(--color-night);
}

table.example tbody tr.total th {
  font-weight: 800;
}

table.example td {
  color: var(--color-text-soft);
}

table.example td:last-child {
  color: var(--color-text);
  font-weight: 800;
}

table.example tr.total td:last-child {
  font-size: 1.25rem;
}

.pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--color-mist);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.saving-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--color-success-highlight);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.saving-note strong,
.saving {
  color: var(--color-success);
}

/* ------------------------------------------------------------
   Offre de bienvenue (fond Nuit)
   ------------------------------------------------------------ */

.offer {
  background: var(--color-night);
  color: var(--color-on-night);
}

.offer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-10);
  align-items: center;
}

.offer-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.125rem;
}

.offer-badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--color-sun);
  color: var(--color-night);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.offer h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.offer p {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  line-height: 1.5;
  color: var(--color-on-night-muted);
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.offer-actions .offer-terms {
  color: var(--color-on-night);
  font-size: var(--text-sm);
  font-weight: 600;
}

.offer-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.offer-figure svg {
  width: 100%;
  max-width: 440px;
}

.offer-figure img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}


/* ------------------------------------------------------------
   Ce que comprend la carte (inclus, payé à l'artisan, pas concerné)
   ------------------------------------------------------------ */

.included-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.included-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: 22px;
  background: var(--color-success-highlight);
}

.included-card h3 {
  font-size: 1.1875rem;
  font-weight: 800;
}

.included-card .check-list {
  font-size: 1rem;
}

.included-card > ul:not(.check-list) {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  line-height: 1.45;
}

.included-card > ul:not(.check-list) li {
  display: flex;
  gap: 10px;
}

.included-card > ul:not(.check-list) li::before {
  content: '';
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.included-card.is-paid {
  background: var(--color-accent-highlight);
}

.included-card.is-paid li::before {
  background: var(--icon-euro) center / contain no-repeat;
}

.included-card.is-excluded {
  background: var(--color-mist);
}

.included-card.is-excluded li::before {
  background: var(--icon-cross) center / contain no-repeat;
}

.included-card p {
  margin-top: auto;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Avis de nos abonnés (étape 49) */
.reviews-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-5);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: 22px;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.review-card h3 {
  font-size: 1.0625rem;
  font-weight: 800;
}

.review-stars {
  display: inline-flex;
  gap: 2px;
}

.review-stars .is-on {
  fill: #e0a400;
}

.review-stars .is-off {
  fill: none;
  stroke: #b8860b;
  stroke-width: 1.5;
}

.review-text p {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.review-author {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--text-sm);
}

.review-author span {
  color: var(--color-text-soft);
}

.reviews-hint {
  display: none;
}

/* Sur téléphone : une bande d'avis à faire glisser au doigt (on voit le bord
   de l'avis suivant), sans défilement automatique. */
@media (max-width: 760px) {
  .reviews-grid {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    /* Marges intérieures pour ne pas couper l'ombre des cartes */
    margin: -16px -1rem 0;
    padding: 16px 1rem 28px;
    scroll-padding-inline: 1rem;
    scrollbar-width: none;
  }

  .reviews-grid::-webkit-scrollbar {
    display: none;
  }

  .review-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .review-card:only-child {
    flex-basis: 100%;
  }

  .reviews-hint:not([hidden]) {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-soft);
    text-align: center;
  }
}

/* Comment s'abonner, sous les deux cartes */
.plans-note {
  max-width: 46em;
  margin: var(--space-6) auto 0;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.plans-note + .section-more,
.plans-note + .plans-terms {
  margin-top: var(--space-3);
}

.plans-terms {
  max-width: none;
  text-align: center;
  font-size: var(--text-sm);
}

.plans-terms + .section-more {
  margin-top: var(--space-2);
}

/* ------------------------------------------------------------
   Au téléphone : conseillers et demande de rappel
   ------------------------------------------------------------ */

.advisor-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: start;
}

.advisor-photo {
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--color-surface);
}

.advisor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.info-cards.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.info-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--color-surface);
}

.section-sky .info-card,
.section-mist .info-card {
  background: var(--color-surface);
}

.info-card h3 {
  margin-bottom: 6px;
  font-size: 1.0625rem;
  font-weight: 800;
}

.info-card p {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.callback-card {
  padding: 26px;
  border-radius: 26px;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.callback-card > h2,
.callback-card > h3 {
  margin-bottom: var(--space-2);
  font-size: 1.375rem;
  font-weight: 800;
}

.callback-intro {
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.callback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 700;
}

.field input,
.field select {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: 1rem;
}

.field input:focus,
.field select:focus {
  border-color: var(--color-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 111, 224, 0.22);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--color-text-muted);
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--color-night);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.form-message:empty {
  display: none;
}

.form-message.is-error {
  color: var(--color-error);
  font-weight: 600;
}

.form-message.is-success {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-success-highlight);
  color: var(--color-success);
  font-weight: 700;
}

.callback-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.callback-phone:hover {
  color: var(--color-primary);
}

/* Fenêtre « Être rappelé » */
.callback-dialog {
  width: min(480px, 100% - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}

.callback-dialog::backdrop {
  background: rgba(11, 27, 46, 0.6);
}

.callback-dialog .callback-card {
  position: relative;
  box-shadow: none;
}

.callback-dialog .callback-card > h2 {
  padding-right: var(--space-12);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-mist);
  color: var(--color-text);
}

.dialog-close:hover {
  background: var(--color-surface-offset-2);
}

/* ------------------------------------------------------------
   Questions (accordéons)
   ------------------------------------------------------------ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
}

.faq-item {
  border-radius: 18px;
  background: var(--color-mist);
}

.section-mist .faq-item,
.section-sky .faq-item {
  background: var(--color-surface);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 700;
}

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

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .faq-body {
  display: grid;
  gap: var(--space-3);
  padding: 0 22px 18px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   Dernier appel à l'action (fond Soleil)
   ------------------------------------------------------------ */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 44px 30px;
  border-radius: 32px;
  background: var(--color-sun);
  color: var(--color-night);
}

.cta-band > div:first-child {
  flex: 1 1 420px;
  min-width: 0;
}

.cta-band h2 {
  margin-bottom: var(--space-2);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta-band p {
  font-size: 1.0625rem;
  font-weight: 600;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ------------------------------------------------------------
   Tableau comparatif (Nos cartes)
   ------------------------------------------------------------ */

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--color-divider);
  border-radius: 24px;
  background: var(--color-surface);
}

table.compare {
  min-width: 640px;
}

table.compare th,
table.compare td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-divider);
}

table.compare thead th {
  font-size: 1.0625rem;
  font-weight: 800;
  background: var(--color-mist);
  vertical-align: bottom;
}

table.compare tbody th {
  font-weight: 700;
}

table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td {
  border-bottom: none;
}

table.compare td.yes {
  color: var(--color-success);
  font-weight: 800;
}

table.compare td.no {
  color: var(--color-text-faint);
}

/* Sur téléphone, les trois colonnes tiennent dans l'écran */
@media (max-width: 640px) {
  table.compare:has(.compare-group) {
    min-width: 0;
  }

  table.compare:has(.compare-group) th,
  table.compare:has(.compare-group) td {
    padding: var(--space-3);
  }

  table.compare:has(.compare-group) thead th:not(:first-child),
  table.compare:has(.compare-group) td {
    width: 24%;
  }

  table.compare:has(.compare-group) thead th {
    font-size: 0.9375rem;
  }

  table.compare:has(.compare-group) .price-cell {
    font-size: 1.0625rem;
    white-space: normal;
  }
}

table.compare .compare-group th {
  padding-block: var(--space-3);
  background: var(--color-sky);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

table.compare .price-cell {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
}

table.compare .price-cell span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-soft);
}

table.compare .small,
table.compare thead th .small {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-soft);
}

/* ------------------------------------------------------------
   Cartes simples et encadré « À savoir »
   ------------------------------------------------------------ */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.card {
  padding: var(--space-6);
  border-radius: 22px;
  background: var(--color-mist);
}

.section-mist .card,
.section-sky .card {
  background: var(--color-surface);
}

.card h3 {
  margin-bottom: var(--space-2);
  font-size: 1.1875rem;
  font-weight: 800;
}

.card p {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.notcovered {
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  border-radius: var(--radius-xl);
  background: var(--color-sky);
}

.notcovered h2 {
  font-size: var(--text-lg);
  font-weight: 800;
}

.notcovered p {
  color: var(--color-text-muted);
}

.notcovered ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.notcovered li {
  display: flex;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.notcovered li::before {
  content: '—';
  color: var(--color-text-faint);
  font-weight: 700;
}

/* ------------------------------------------------------------
   Pages intérieures
   ------------------------------------------------------------ */

.page-hero {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16)) clamp(var(--space-6), 3vw, var(--space-10));
}

.page-hero h1 {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.page-hero p {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* Urgence : deux cas, abonné ou pas encore */
.urgence-hero {
  background: var(--color-night);
  color: var(--color-on-night);
}

.urgence-hero .kicker {
  color: var(--color-sun);
}

.urgence-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.urgence-hero .lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-on-night-muted);
  max-width: 46em;
}

.urgence-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.urgence-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: 22px;
  background: var(--color-night-2);
}

.urgence-choice h2 {
  font-size: 1.375rem;
  font-weight: 800;
}

.urgence-choice p {
  color: var(--color-on-night-muted);
}

.urgence-choice .urgence-number {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-sun);
}

.urgence-choice .urgence-number small {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-on-night-muted);
}

/* ------------------------------------------------------------
   Formulaires des pages intérieures (résiliation)
   ------------------------------------------------------------ */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  max-width: 520px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}

.form-row label {
  font-size: 0.875rem;
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-size: 1rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--color-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 111, 224, 0.22);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-soft);
}

/* ------------------------------------------------------------
   Résiliation en ligne
   ------------------------------------------------------------ */

.steps-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: 0 0 var(--space-8);
  padding: 0;
  list-style: none;
}

.steps-indicator li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}

.steps-indicator li::before {
  content: attr(data-step-label);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: var(--color-mist);
  font-weight: 800;
  font-size: var(--text-xs);
}

.steps-indicator li.is-current {
  color: var(--color-text);
  font-weight: 700;
}

.steps-indicator li.is-current::before {
  background: var(--color-blue);
  color: #ffffff;
}

.steps-indicator li.is-done::before {
  content: '✓';
  background: var(--color-success-highlight);
  color: var(--color-success);
}

.resiliation-panel {
  display: grid;
  gap: var(--space-4);
  max-width: 640px;
  padding: var(--space-6);
  border: 2px solid var(--color-divider);
  border-radius: 24px;
  background: var(--color-surface);
}

.resiliation-panel[hidden] {
  display: none;
}

.resiliation-panel h2 {
  font-size: var(--text-lg);
  font-weight: 800;
}

.resiliation-panel h2:focus {
  outline: none;
}

.resiliation-panel p {
  font-size: var(--text-sm);
}

.resiliation-body {
  display: grid;
  gap: var(--space-3);
}

.resiliation-summary {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  font-size: var(--text-sm);
}

.resiliation-summary dt {
  color: var(--color-text-soft);
}

.resiliation-summary dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.resiliation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

#resiliation-form[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .resiliation-summary {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .resiliation-summary dd {
    margin-bottom: var(--space-3);
  }

  .resiliation-actions .btn {
    width: 100%;
  }
}

@media print {
  .header,
  .footer,
  .mobile-bar,
  .skip-link,
  .steps-indicator,
  .resiliation-actions,
  .terms-actions {
    display: none !important;
  }

  .terms-body .table-wrap {
    overflow: visible;
  }

  .resiliation-panel {
    border: 0;
    padding: 0;
  }
}

/* ------------------------------------------------------------
   Mentions légales
   ------------------------------------------------------------ */

.legal-body {
  max-width: 760px;
  display: grid;
  gap: var(--space-8);
}

.legal-body h2 {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.legal-body h3 {
  margin: var(--space-4) 0 var(--space-1);
  font-size: 1rem;
  font-weight: 800;
}

.legal-body p + p,
.legal-body ul + p {
  margin-top: var(--space-2);
}

.legal-body p,
.legal-body li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.legal-body ul {
  padding-left: var(--space-6);
  list-style: disc;
  display: grid;
  gap: var(--space-2);
}

/* Conditions générales (texte lu dans la base) */
.terms {
  max-width: 760px;
}

.terms-status {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-soft);
}

.terms-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.terms-body h2 {
  margin-top: var(--space-8);
  font-size: var(--text-lg);
  font-weight: 800;
}

.terms-body h3 {
  margin-top: var(--space-5);
  font-size: 1.0625rem;
  font-weight: 800;
}

.terms-body h4 {
  margin-top: var(--space-2);
  font-size: var(--text-base);
  font-weight: 700;
}

.terms-body p,
.terms-body li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.terms-body ul {
  padding-left: var(--space-6);
  list-style: disc;
  display: grid;
  gap: var(--space-2);
}

.terms-body li.is-sub {
  margin-left: var(--space-5);
  list-style: circle;
}

.terms-body .table-wrap {
  border-radius: 18px;
}

table.terms-table {
  width: 100%;
}

table.terms-table th,
table.terms-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-divider);
}

table.terms-table thead th {
  font-weight: 800;
  background: var(--color-mist);
}

table.terms-table tbody th {
  font-weight: 600;
}

table.terms-table tbody tr:last-child > * {
  border-bottom: none;
}

.terms-actions {
  margin-top: var(--space-8);
}

.placeholder {
  display: inline-block;
  background: var(--color-accent-highlight);
  color: var(--color-text);
  border: 1px dashed #b98400;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0 var(--space-2);
  font-size: 0.9em;
}

/* ------------------------------------------------------------
   Pied de page (fond Nuit)
   ------------------------------------------------------------ */

.footer {
  background: var(--color-night);
  color: var(--color-on-night-muted);
  padding-block: 44px var(--space-8);
}

main + .footer {
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px 56px;
}

.footer .brand,
.footer .brand-name {
  color: var(--color-on-night);
}

.footer .brand-mark {
  width: 36px;
  height: 36px;
}

.footer .brand-name {
  font-size: 1.5rem;
}

.footer .brand-name small {
  color: var(--color-on-night-muted);
}

.footer h2 {
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-on-night);
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer a {
  color: var(--color-on-night-muted);
  font-size: var(--text-sm);
}

.footer a:hover {
  color: var(--color-on-night);
}

.footer .about {
  max-width: 420px;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.footer .about .phone-link {
  color: var(--color-on-night);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--color-night-line);
  font-size: var(--text-xs);
  color: var(--color-on-night-faint);
}

.footer-bottom p {
  max-width: none;
}

/* Barre d'appel collée en bas, sur téléphone */
.mobile-bar {
  display: none;
}

/* ------------------------------------------------------------
   Tablette et téléphone
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
  .header-phone span {
    display: none;
  }
}

@media (max-width: 1024px) {
  .proof-list,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: var(--space-3) var(--space-5);
    font-size: 1.0625rem;
  }

  .nav-toggle,
  .header-call {
    display: inline-flex;
  }

  .header-actions {
    gap: var(--space-2);
  }

  .header-phone,
  .header-cta {
    display: none;
  }

  .hero-grid,
  .split,
  .offer-grid,
  .advisor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Sur téléphone comme sur ordinateur : les boutons juste sous le prix */
  .hero-grid {
    grid-template-areas:
      'text'
      'cta'
      'offer';
    gap: var(--space-5);
  }

  .offer-figure svg {
    max-width: 320px;
  }

  .plans,
  .cards-3,
  .urgence-choices,
  .included-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.4375rem;
  }

  .brand-name small {
    font-size: 0.6875rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .hero-price strong {
    font-size: 1.875rem;
  }

  .container,
  .container-narrow {
    width: min(var(--content-wide), 100% - 2rem);
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 10px;
    gap: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .hero-cta .btn svg {
    width: 16px;
    height: 16px;
  }

  .hero-cta .btn:first-child {
    flex-grow: 1.2;
  }

  .hero-offer {
    border-radius: 22px;
  }

  .hero-offer img {
    border-radius: 20px 20px 0 0;
  }

  .hero-offer-badge {
    top: -14px;
    left: -8px;
  }

  .hero-offer-text {
    font-size: var(--text-sm);
  }

  .proof-photo {
    aspect-ratio: 3 / 2;
    border-radius: 20px;
  }

  .plan {
    padding: var(--space-6);
  }

  .plan .price strong {
    font-size: 2.375rem;
  }

  .plan .price-offer .price strong {
    font-size: 2.75rem;
  }

  table.terms-table th,
  table.terms-table td {
    padding: var(--space-2) var(--space-3);
  }

  table.example th,
  table.example td {
    padding-inline: var(--space-1);
    font-size: var(--text-sm);
  }

  .info-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .callback-card {
    padding: 22px 18px;
  }

  .cta-band {
    padding: 32px 22px;
    border-radius: 26px;
  }

  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--color-surface);
    border-top: 1px solid var(--color-divider);
    box-shadow: 0 -8px 24px rgba(11, 27, 46, 0.08);
  }

  .mobile-bar .btn {
    flex: 1 1 0;
    min-height: 50px;
    padding-inline: var(--space-3);
    font-size: var(--text-sm);
  }

  body.has-mobile-bar {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .proof-list,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================
   Admin
   ============================================================ */

[hidden] {
  display: none !important;
}

/* Lien discret vers l'admin dans le pied de page */
.admin-link {
  opacity: 0.65;
  font-size: var(--text-xs);
}

/* Backoffice */
.admin-toolbar {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.admin-tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.admin-tab {
  flex: 0 0 auto;
  padding: var(--space-2) var(--space-4);
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  cursor: pointer;
}

.admin-tab.is-active {
  background: var(--color-surface-offset);
  color: var(--color-text);
  font-weight: 700;
}

.admin-module[hidden] {
  display: none;
}

.admin-filters,
.admin-detail-head,
.admin-activity-form {
  display: grid;
  gap: var(--space-4);
}

.admin-filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: var(--space-6);
}

.admin-filters input,
.admin-filters select,
.admin-activity-form input,
.admin-activity-form select,
.admin-activity-form textarea {
  width: 100%;
  font: inherit;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-text);
}

.admin-detail {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.admin-convert-form {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.admin-convert-form h3 {
  margin-bottom: var(--space-2);
}

.admin-convert-form p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

.admin-archived-filter label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.admin-archived-filter input {
  width: auto;
}

.admin-detail-head {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: var(--space-6);
}

.admin-detail-head h2 {
  margin: var(--space-1) 0;
}

.admin-activity-list {
  display: grid;
  gap: var(--space-3);
  padding-left: var(--space-5);
  margin: var(--space-4) 0 var(--space-6);
}

.admin-activity-list li {
  padding: var(--space-3);
  border-left: 2px solid var(--color-border);
}

.admin-activity-list p {
  margin: var(--space-2) 0 0;
  white-space: pre-wrap;
}

.admin-activity-form {
  grid-template-columns: minmax(150px, 1fr) 3fr auto;
  align-items: end;
}

.admin-activity-form textarea {
  resize: vertical;
}

.admin-lead-form {
  margin-bottom: var(--space-8);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.admin-lead-form h2 {
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
}

.admin-lead-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.admin-lead-form input,
.admin-lead-form select {
  width: 100%;
  font: inherit;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-text);
}

.admin-message-error {
  color: #b3261e;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.admin-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.admin-stat .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
}

.admin-stat .l {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.admin-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.admin-table input[type='text'],
.admin-table select {
  font: inherit;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-text);
  max-width: 220px;
}

.admin-note-input {
  width: 200px;
}

.admin-date-input {
  min-width: 190px;
}

.admin-delete {
  font: inherit;
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.admin-delete:hover {
  color: #b3261e;
  border-color: #b3261e;
}

.admin-empty {
  padding: var(--space-8);
  text-align: center;
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-lead-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-activity-form {
    grid-template-columns: 1fr 2fr;
  }

  .admin-activity-form button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-lead-fields {
    grid-template-columns: 1fr;
  }

  .admin-filters,
  .admin-activity-form {
    grid-template-columns: 1fr;
  }

  .admin-activity-form button {
    grid-column: auto;
  }
}

.admin-signing-templates,
.admin-signing-preview,
.signing-page .admin-detail {
  margin: var(--space-6) 0;
}

.admin-template-warning {
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid #b97716;
  background: color-mix(in srgb, #b97716 9%, var(--color-surface));
  color: var(--color-text);
}

.admin-template-approval,
.signing-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.admin-template-approval input,
.signing-consent input {
  width: auto;
  min-width: 1rem;
  margin-top: 0.25rem;
}

.admin-template-list {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.admin-document-preview {
  max-height: 32rem;
  overflow: auto;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-signing-send-form {
  margin-top: var(--space-5);
}

.signing-body {
  background: var(--color-bg);
}

.signing-page {
  min-height: 100vh;
}

.signing-status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}

.signing-canvas-wrap {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

#signature-canvas {
  display: block;
  width: 100%;
  height: 180px;
  touch-action: none;
  cursor: crosshair;
}

.signing-form {
  margin-top: var(--space-6);
}

/* Page de signature : lien vers le document mis en page (PDF). */
.signing-pdf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 18px;
}
