/* Les pages publiques à adresse propre (14/11/2026, référencement, src/pages.js) : le design du site (ui/style.css, verre
   dépoli, accent turquoise, même barre et même pied), en pages de lecture. Préfixe sp- pour ne rien toucher ailleurs. */
.sp { padding-bottom: 20px; }
.sp a { color: inherit; }
.sp h1, .sp h2, .sp h3 { text-wrap: balance; }
.sp em { font-style: normal; background: linear-gradient(100deg, #8ff3e3, var(--accent) 60%, #b6f7ec); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .sp em { background-image: linear-gradient(100deg, #0fb39b, #12a6c4 55%, #5b7cf0); }

/* Le fil d'Ariane */
.sp-fil { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0 0; font-size: 14px; color: var(--tres-doux); }
.sp-fil a { color: var(--doux); text-decoration: none; }
.sp-fil a:hover { color: var(--texte); text-decoration: underline; }
.sp-fil svg { width: 13px; height: 13px; opacity: .6; }

/* Le haut de page : le texte à gauche, un film à droite */
.sp-heros { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding: 36px 0 64px; }
.sp-heros-seul { grid-template-columns: minmax(0, 1fr); max-width: 820px; padding-bottom: 40px; }
.sp-heros .pastille { margin-bottom: 20px; }
.sp-heros h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 760; }
.sp-chapo { margin: 20px 0 0; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.55; color: var(--doux); max-width: 58ch; }
.sp-heros-texte > p:not(.sp-chapo):not(.sp-note):not(.sp-ia):not(.bandeau-promo) { color: var(--doux); }
.sp-heros .bandeau-promo { margin: 24px 0 0; white-space: normal; text-align: left; justify-content: flex-start; }
.sp-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 28px; }
.sp-prix s { color: var(--tres-doux); font-size: 22px; font-weight: 600; }
.sp-prix b { font-size: 46px; line-height: 1; font-weight: 780; letter-spacing: -0.03em; }
.sp-prix span { color: var(--doux); font-size: 16px; }
.sp-prix .sp-remise { align-self: center; padding: 4px 10px; border-radius: 999px; background: #34d399; color: #062b22; font-weight: 800; font-size: 13px; font-style: normal; }
.sp-note { margin: 10px 0 0; color: var(--tres-doux); font-size: 14px; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sp-ia { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; color: var(--tres-doux); font-size: 14px; }
.sp-ia svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.sp-heros-film { display: flex; justify-content: center; }

/* Les sections */
.sp-section { padding: 48px 0; }
.sp-section h2 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 730; }
.sp-intro { margin: 0 0 26px; color: var(--doux); font-size: 17px; max-width: 70ch; }
.sp-intro a, .sp-texte a, .sp-reponse a, .sp-petit a { color: var(--texte); text-underline-offset: 3px; }
.sp-texte { max-width: 74ch; margin-top: 26px; }
.sp-texte p { margin: 0 0 14px; color: var(--doux); font-size: 17px; line-height: 1.65; }
.sp-petit { margin: 14px 0 0; color: var(--tres-doux); font-size: 14px; }

/* Les points forts */
.sp-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.sp-point { padding: 22px 20px; text-decoration: none; display: block; }
.sp-point > svg { width: 26px; height: 26px; color: var(--accent); }
.sp-point h3 { margin: 14px 0 6px; font-size: 17.5px; letter-spacing: -0.01em; }
.sp-point p { margin: 0; color: var(--doux); font-size: 15px; line-height: 1.55; }
a.sp-point:hover { border-color: var(--ligne-forte); }

/* Les trois étapes */
.sp-etapes { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-etapes li { padding: 24px 22px; }
.sp-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(var(--accent-rgb), .16); color: var(--accent-fort); font-weight: 750; }
[data-theme="light"] .sp-num { color: var(--accent-fort); }
.sp-etapes h3 { margin: 14px 0 6px; font-size: 18px; }
.sp-etapes p { margin: 0; color: var(--doux); font-size: 15px; line-height: 1.6; }

/* Les films d'exemple, tous de la même hauteur, chacun à son format, la légende dessous (les films ont leurs sous-titres) */
.sp-films { display: flex; flex-wrap: wrap; gap: 18px 14px; }
.sp-film { margin: 0; flex: none; display: flex; flex-direction: column; gap: 9px; }
.sp-cadre { --h: 340px; height: var(--h); width: calc(var(--h) * var(--k)); max-width: calc(100vw - 32px); align-self: flex-start; border-radius: 18px; overflow: hidden; background: #0b0d12; border: 1px solid var(--ligne); }
.sp-cadre video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-film figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--tres-doux); width: 0; min-width: 100%; }
.sp-film .sp-type { display: inline-flex; align-items: center; gap: 6px; color: var(--texte); font-weight: 600; }
.sp-film .sp-type svg { width: 15px; height: 15px; color: var(--accent); }
.sp-heros-film .sp-film { width: 100%; max-width: 340px; }
.sp-heros-film .sp-film.h { max-width: 100%; }
.sp-heros-film .sp-cadre { height: auto; width: 100%; aspect-ratio: var(--r); max-height: 600px; }

/* Les prix */
.sp-tarif { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.sp-tableau { padding: 22px 22px 18px; }
.sp-tableau h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 18px; }
.sp-tableau h3 svg { width: 20px; height: 20px; color: var(--accent); }
.sp-tableau table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.sp-tableau th, .sp-tableau td { padding: 11px 0; border-top: 1px solid var(--ligne); text-align: left; vertical-align: top; }
.sp-tableau tr:first-child th, .sp-tableau tr:first-child td { border-top: 0; }
.sp-tableau thead + tbody tr:first-child th, .sp-tableau thead + tbody tr:first-child td { border-top: 1px solid var(--ligne); }
.sp-tableau th { font-weight: 600; padding-right: 14px; }
.sp-tableau th small { display: block; color: var(--tres-doux); font-weight: 450; font-size: 13.5px; margin-top: 2px; }
.sp-tableau td { text-align: right; white-space: nowrap; color: var(--doux); }
.sp-tableau td b { color: var(--texte); font-size: 17px; }
.sp-tableau s { color: var(--tres-doux); }
.sp-tableau th a { text-decoration: none; }
.sp-tableau th a:hover { text-decoration: underline; }
.sp-tableau thead th { color: var(--tres-doux); font-weight: 550; font-size: 13.5px; text-transform: none; }
.sp-durees td, .sp-durees thead th:not(:first-child) { text-align: right; }
.sp-vide { color: var(--tres-doux) !important; font-size: 13.5px; }
.sp-defile { overflow-x: auto; }
.sp-defile table { min-width: 620px; }
.sp-compare td { text-align: left; white-space: normal; padding-right: 14px; }
.sp-compare td:last-child { color: var(--texte); }
.sp-compare thead th { padding-top: 0; }
.sp-options-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.sp-options-types td { font-size: 14.5px; }

/* Les cartes des types de vidéo */
.sp-cartes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sp-carte { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; text-decoration: none; transition: border-color 200ms, transform 200ms var(--courbe); overflow: hidden; }
.sp-carte:hover { border-color: var(--ligne-forte); transform: translateY(-2px); }
.sp-carte-film { margin: -22px -20px 6px; }
.sp-carte-film .sp-film { width: 100%; }
.sp-carte-film .sp-cadre { height: auto; width: 100%; aspect-ratio: 16 / 9; border-radius: 0; border: 0; }
.sp-carte-film .sp-film figcaption { display: none; }
.sp-carte-tete { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.sp-carte-tete svg { width: 21px; height: 21px; color: var(--accent); }
.sp-carte-texte { color: var(--doux); font-size: 15px; line-height: 1.5; flex: 1; }
.sp-carte-prix { font-size: 15px; color: var(--doux); }
.sp-carte-prix b { font-size: 24px; color: var(--texte); letter-spacing: -0.02em; }
.sp-carte-prix s { color: var(--tres-doux); }
.sp-carte-lien { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-fort); font-weight: 600; font-size: 14.5px; }
.sp-carte-lien svg { width: 15px; height: 15px; }

/* Les questions fréquentes */
.sp-faq { display: grid; gap: 10px; max-width: 860px; }
.sp-faq details { padding: 0; border-radius: 16px; }
.sp-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary h3 { margin: 0; font-size: 16.5px; font-weight: 620; }
.sp-faq summary svg { width: 18px; height: 18px; flex: none; color: var(--tres-doux); transition: transform 200ms var(--courbe); }
.sp-faq details[open] summary svg { transform: rotate(180deg); }
.sp-reponse { padding: 0 20px 18px; }
.sp-reponse p { margin: 0; color: var(--doux); font-size: 15.5px; line-height: 1.65; }

/* L'appel final */
.sp-appel { margin: 40px 0 8px; padding: 44px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.sp-appel h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.sp-appel > p { margin: 12px 0 24px; color: var(--doux); font-size: 17px; max-width: 52ch; }
.sp-appel .sp-ia { justify-content: center; text-align: left; }

/* Les autres pages */
.sp-autres ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sp-autres a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ligne); background: #ffffff0a; text-decoration: none; font-weight: 550; font-size: 15px; }
.sp-autres a:hover { border-color: var(--ligne-forte); background: #ffffff14; }
.sp-autres svg { width: 17px; height: 17px; color: var(--accent); }
[data-theme="light"] .sp-autres a { background: #fff; }

/* Le contact (À propos) */
.sp-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 860px; }

/* La page introuvable */
.sp-introuvable { min-height: 40vh; }

/* Le contenu de l'accueil écrit par le serveur, montré seulement sans JavaScript */
.pre-rendu ul { color: var(--doux); line-height: 1.7; }

@media (max-width: 1100px) {
  .sp-points, .sp-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-options-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sp-heros { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 24px 0 40px; }
  .sp-heros-film .sp-film:not(.h) { max-width: 300px; }
  .sp-heros-film .sp-film:not(.h) .sp-cadre { max-height: 520px; }
  .sp-etapes, .sp-tarif, .sp-contact { grid-template-columns: minmax(0, 1fr); }
  .sp-section { padding: 36px 0; }
}
@media (max-width: 600px) {
  .sp-points, .sp-cartes, .sp-options-types { grid-template-columns: minmax(0, 1fr); }
  .sp-prix b { font-size: 40px; }
  .sp-heros-film .sp-film:not(.h) { max-width: 250px; }
  .sp-actions .bouton { flex: 1 1 100%; }
  /* les films défilent de côté sur téléphone */
  .sp-films { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .sp-films::-webkit-scrollbar { display: none; }
  .sp-film { scroll-snap-align: start; }
  .sp-cadre { --h: 300px; }
  .sp-film.h .sp-cadre { --h: 190px; }
  .sp-appel { padding: 34px 20px; }
  .sp-tableau { padding: 18px 16px 14px; }
}
