/* Torsor Fluxon : page de vente, servie sur https://torsor.fr/fluxon/. CSS natif, aucune ressource externe.
   Fonds et textes repris des couleurs de l'application ; accent mandarine propre au site.
   Formes : boutons 10 px, cartes et images 16 px, téléphone 28 px. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --bg: #0A0E16;
  --bg-elev: #0E131C;
  --surface: #141A24;
  --surface-2: #1A212E;
  --border: #232B3A;
  --text: #E7EBF2;
  --text-2: #A3ACBC;
  --accent: #FF8A4C;
  --accent-text: #FF9F6B;
  --accent-soft: rgba(255, 138, 76, .10);
  --bouton: #FF8A4C;
  --bouton-survol: #FF7733;
  --bouton-texte: #1A0B03;
  --ombre-image: 0 30px 80px -24px rgba(3, 6, 12, .75);
  --rayon-bouton: 10px;
  --rayon: 16px;
  --largeur: 1200px;
  --gouttiere: 24px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F3F5FB;
    --bg-elev: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #EEF1F8;
    --border: #DCE2ED;
    --text: #1B2333;
    --text-2: #4A5468;
    --accent: #C2410C;
    --accent-text: #B13A0A;
    --accent-soft: rgba(194, 65, 12, .08);
    --bouton: #C2410C;
    --bouton-survol: #A8380A;
    --bouton-texte: #FFFFFF;
    --ombre-image: 0 30px 70px -28px rgba(27, 35, 51, .35);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 680; letter-spacing: -0.025em; line-height: 1.12; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }

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

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.conteneur--etroit { max-width: 820px; }

.evitement {
  position: absolute; left: 16px; top: -48px; z-index: 30;
  padding: 8px 14px; border-radius: var(--rayon-bouton);
  background: var(--bouton); color: var(--bouton-texte); text-decoration: none;
}
.evitement:focus { top: 12px; }

.accent { color: var(--accent-text); }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--rayon-bouton);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.bouton:active { transform: translateY(1px); }
.bouton--principal { background: var(--bouton); color: var(--bouton-texte); }
.bouton--principal:hover { background: var(--bouton-survol); }
.bouton--secondaire { border: 1px solid var(--border); color: var(--text); background: transparent; }
.bouton--secondaire:hover { border-color: var(--accent); }
.bouton--compact { min-height: 40px; padding: 0 16px; font-size: 15px; }
.bouton--large { width: 100%; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
@media (prefers-reduced-transparency: reduce) { .entete { background: var(--bg); backdrop-filter: none; } }
.entete__ligne { display: flex; align-items: center; gap: 32px; height: 64px; }
/* Fil « Torsor / Fluxon » : retour à l'accueil de la suite */
.entete__fil { display: flex; align-items: center; gap: 10px; min-width: 0; }
.suite { color: var(--text-2); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; padding: 10px 0; }
.suite:hover { color: var(--text); text-decoration: underline; }
.entete__separateur { color: var(--text-2); opacity: .6; font-size: 20px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.marque img { border-radius: 8px; }
.marque__nom { font-weight: 680; letter-spacing: -0.01em; }
.navigation { display: flex; gap: 28px; margin-left: auto; }
.navigation a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.navigation a:hover { color: var(--text); }

/* Ouverture */
/* Texte aligné à gauche en haut, capture en grand dessous : titre sur deux lignes, bouton visible sans défiler. */
.ouverture { padding: 72px 0 96px; overflow: hidden; }
.ouverture__grille { display: grid; grid-template-columns: 1fr; gap: 48px; }
.ouverture__texte { max-width: 920px; }
.ouverture h1 { font-size: clamp(2.25rem, 4.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.032em; }
.ouverture__sous-titre { margin-top: 20px; color: var(--text-2); font-size: 1.2rem; max-width: 52ch; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ouverture__visuel img {
  width: 100%; border-radius: var(--rayon); border: 1px solid var(--border);
  box-shadow: var(--ombre-image);
}

/* Promesse */
.promesse { padding: 96px 0; border-top: 1px solid var(--border); }
.promesse__grille { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
.promesse__principale h2 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 16ch; }
.promesse__principale p { margin-top: 20px; color: var(--text-2); max-width: 54ch; font-size: 1.1rem; }
.promesse__secondaire { display: grid; gap: 32px; padding-top: 8px; }
.promesse__secondaire > div { padding-top: 20px; border-top: 1px solid var(--border); }
.promesse__secondaire p { margin-top: 8px; color: var(--text-2); }

/* Titres de section empilés */
.titre-section { max-width: 64ch; margin-bottom: 40px; }
.titre-section p { margin-top: 14px; color: var(--text-2); font-size: 1.1rem; }
.surtitre {
  margin-bottom: 12px; color: var(--accent-text);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

/* Modules : grille à six cases */
.modules { padding: 96px 0; background: var(--bg-elev); border-block: 1px solid var(--border); }
.bento {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "finances finances taches"
    "sport nutrition taches"
    "sommeil aussi aussi";
}
.bento__case {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--rayon);
}
.bento__texte { padding: 24px 24px 20px; }
.bento__texte p, .bento__case--aussi p { margin-top: 6px; color: var(--text-2); font-size: 15.5px; }
/* La capture occupe toute la hauteur restante de la case (recadrée en haut à gauche), sans vide. */
.bento__case img {
  flex: 1 1 auto; min-height: 220px; margin-top: auto;
  width: calc(100% - 24px); margin-left: 24px;
  border-top-left-radius: 10px; border-top: 1px solid var(--border); border-left: 1px solid var(--border);
  object-fit: cover; object-position: left top;
}
.bento__case--finances { grid-area: finances; }
.bento__case--taches { grid-area: taches; }
.bento__case--sport { grid-area: sport; }
.bento__case--nutrition { grid-area: nutrition; }
.bento__case--sommeil { grid-area: sommeil; }
.bento__case--aussi {
  grid-area: aussi; justify-content: center; padding: 32px;
  background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.bento__case--aussi h3 { font-size: 1.5rem; }
.bento__case--aussi p { font-size: 1.05rem; max-width: 52ch; }
.bento__case--aussi .bento__aussi-fin { margin-top: 14px; color: var(--text); }

/* Téléphone */
.telephone { padding: 96px 0; }
.telephone__grille { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.telephone__visuel { justify-self: center; }
.telephone__visuel img {
  width: 300px; border-radius: 28px; border: 1px solid var(--border);
  box-shadow: var(--ombre-image);
}
.telephone__texte p { margin-top: 16px; color: var(--text-2); font-size: 1.1rem; max-width: 46ch; }

/* Installation */
.installation { padding: 96px 0; border-top: 1px solid var(--border); }
.code {
  margin: 0; padding: 24px 28px; overflow-x: auto;
  background: #070A10; color: #E7EBF2; border: 1px solid #232B3A; border-radius: var(--rayon);
  font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 15.5px; line-height: 1.9;
}
.code__invite { color: #FF9F6B; user-select: none; margin-right: 10px; }
.faits {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.faits li { color: var(--text-2); }
.faits strong { display: block; margin-bottom: 2px; color: var(--text); font-weight: 620; }

/* Prix */
.prix { padding: 96px 0; background: var(--bg-elev); border-block: 1px solid var(--border); }
.carte-prix {
  max-width: 540px; margin: 0 auto; padding: 40px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: var(--rayon);
}
.carte-prix h2 { font-size: 1.5rem; }
.carte-prix__montant { margin-top: 18px; color: var(--text-2); }
.carte-prix__montant span {
  margin-right: 6px; color: var(--text); font-size: 3rem; font-weight: 720; letter-spacing: -0.03em;
}
.carte-prix__liste { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 12px; }
.carte-prix__liste li { position: relative; padding-left: 26px; }
.carte-prix__liste li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 9px; height: 5px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}
.carte-prix__note { margin-top: 14px; color: var(--text-2); font-size: 14.5px; text-align: center; }

/* Questions */
.questions { padding: 96px 0; }
.questions h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 66ch; }

/* Pied de page */
.pied { padding: 56px 0 32px; border-top: 1px solid var(--border); background: var(--bg-elev); }
.pied__grille { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.pied__marque { font-weight: 680; }
.pied__texte { margin-top: 8px; color: var(--text-2); font-size: 15px; max-width: 34ch; }
.pied nav { display: grid; gap: 8px; align-content: start; }
.pied__titre { color: var(--text); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.pied nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.pied nav a:hover { color: var(--text); text-decoration: underline; }
.pied__bas { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 14px; }

/* Mouvement : apparition de l'ouverture, révélation au défilement (sans script) */
@keyframes monte {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Décalage par classe et non par attribut style : la politique de contenu du site refuse les styles en ligne. */
  .apparait { animation: monte .7s cubic-bezier(.16, 1, .3, 1) both; }
  .apparait--1 { animation-delay: 90ms; }
  .apparait--2 { animation-delay: 180ms; }
  @supports (animation-timeline: view()) {
    .revele { animation: monte linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  }
}

/* Tablette */
@media (max-width: 1023px) {
  .navigation { gap: 20px; }
  .ouverture__grille, .promesse__grille, .telephone__grille { gap: 40px; }
}

/* Téléphone : une seule colonne partout */
@media (max-width: 767px) {
  :root { --gouttiere: 16px; }
  body { font-size: 16px; }
  .navigation { display: none; }
  .entete__ligne { justify-content: space-between; }
  .ouverture { padding: 40px 0 64px; }
  .ouverture__grille, .promesse__grille, .telephone__grille { grid-template-columns: 1fr; }
  .ouverture__actions .bouton { flex: 1 1 auto; }
  .promesse, .modules, .telephone, .installation, .prix, .questions { padding: 64px 0; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "finances" "taches" "sport" "nutrition" "sommeil" "aussi"; }
  .bento__case img { min-height: 0; }
  .bento__case--aussi { padding: 24px; }
  .telephone__visuel img { width: 240px; }
  .telephone__texte { text-align: left; }
  .code { font-size: 14px; padding: 18px; }
  .carte-prix { padding: 28px 22px; }
  .pied__grille { grid-template-columns: 1fr; gap: 28px; }
}
