/* Aperçu B, style Apple : police de l'appareil (SF sur iPhone), fond gris clair, barre en verre dépoli,
   grandes cartes arrondies, liste « Réglages » avec tuiles d'icônes et chevrons. Le corail TYX reste la seule couleur d'action. */
:root {
  --fond: #f5f5f7;
  --carte: #ffffff;
  --texte: #1d1d1f;
  --texte-2: #6e6e73;
  --trait: rgba(0, 0, 0, .08);
  --ombre: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .07);
  --rayon: 1.375rem;
  --appui: #e8e8ed;
  --corail: #cc3f1b;
  --corail-clair: #f5633a;
  --corail-texte: #b93d14;
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --affiche: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --marge: 16px;
  --sortie: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(130% 42% at 50% -8%, rgba(255, 106, 61, .14), transparent 62%) var(--fond) no-repeat; color: var(--texte); font: 400 17px/1.47 var(--police); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; border-radius: 10px; }
.evitement { position: absolute; left: -999px; top: 0; z-index: 50; padding: 12px 16px; background: var(--texte); color: #fff; border-radius: 10px; }
.evitement:focus { left: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); }
.colonne { width: 100%; max-width: calc(600px + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }

/* Barre en verre : le contenu passe dessous, flouté. */
.barre-verre { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: rgba(245, 245, 247, .6); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.barre-verre-dedans { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.marque { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 19px/1 var(--affiche); letter-spacing: -0.02em; }
.marque img { width: 30px; height: 30px; border-radius: 7px; }
.pastille { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; background: var(--corail); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; transition: transform .1s ease-out, background-color .2s ease; }
.pastille:active { transform: scale(.96); background: #b5341a; }

/* La photo de Menton en grande carte arrondie, le titre posé dessus. */
main { padding-top: 6px; }
.photo-carte { position: relative; overflow: hidden; border-radius: 28px; background: #d9d4cc; }
.photo-carte img { width: 100%; height: clamp(320px, 46svh, 440px); object-fit: cover; object-position: 62% 40%; }
.photo-carte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .62) 100%); }
.photo-carte-texte { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 22px 24px; color: #fff; }
.sur-titre { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; opacity: .92; }
.photo-carte h1 { margin-top: 6px; font: 700 clamp(30px, 7.6vw, 44px)/1.08 var(--affiche); letter-spacing: -0.035em; text-wrap: balance; }

/* L'offre : une carte façon Apple Card (dégradé profond, étoile en filigrane), puis un seul bouton plein. */
.offre { margin-top: 16px; padding: 14px 14px 20px; border-radius: var(--rayon); background: var(--carte); text-align: center; box-shadow: var(--ombre); }
.carte-premium { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1.586; padding: 20px 22px; border-radius: 20px; color: #fff; text-align: left;
  background: radial-gradient(120% 90% at 100% 0%, #ff8a5c 0%, rgba(255, 138, 92, 0) 55%), radial-gradient(90% 80% at 0% 100%, #7a1f08 0%, rgba(122, 31, 8, 0) 60%), linear-gradient(140deg, #e0532c 0%, #b5341a 55%, #8f2811 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 18px 36px -16px rgba(143, 40, 17, .7); }
.carte-premium::after { content: ""; position: absolute; right: -14%; bottom: -30%; width: 70%; aspect-ratio: 1; background: url("/assets/etoile-blanche.svg") center / contain no-repeat; opacity: .12; }
.carte-premium-haut { display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--affiche); letter-spacing: -0.01em; }
.carte-premium-haut img { width: 22px; height: 22px; }
.carte-premium h2 { position: relative; z-index: 1; font: 600 22px/1.05 var(--affiche); letter-spacing: -0.02em; }
.carte-premium .gros { display: block; font-size: clamp(44px, 13vw, 60px); font-weight: 700; letter-spacing: -0.045em; }
.carte-premium-bas { position: relative; z-index: 1; font-size: 14px; font-weight: 500; opacity: .9; letter-spacing: -0.005em; }
.offre-texte { margin-top: 18px; color: var(--texte-2); padding-inline: 8px; }
.bouton { display: flex; align-items: center; justify-content: center; min-height: 50px; margin: 18px 8px 0; border-radius: 999px; background: var(--corail); color: #fff; font-size: 17px; font-weight: 600; transition: transform .1s ease-out, background-color .2s ease; }
.bouton:active { transform: scale(.97); background: #b5341a; }
.offre-note { margin-top: 14px; padding-inline: 8px; font-size: 13px; color: var(--texte-2); letter-spacing: -0.005em; }
@media (hover: hover) { .bouton:hover, .pastille:hover { background: #b5341a; } }

/* La fiche de l'appli, comme sur l'App Store : icône, nom, bouton « Obtenir », écrans à faire glisser. */
.fiche-app { margin-top: 16px; padding: 18px 0 18px; border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre); }
.fiche-app-tete { display: flex; align-items: center; gap: 14px; padding-inline: 18px; }
.icone-app { flex: none; width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1); }
.fiche-app-nom { flex: 1; min-width: 0; }
.fiche-app-nom h2 { font: 600 17px/1.25 var(--affiche); letter-spacing: -0.02em; }
.fiche-app-nom p { margin-top: 2px; font-size: 13px; color: var(--texte-2); letter-spacing: -0.005em; }
.obtenir { flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 20px; border-radius: 999px; background: rgba(255, 106, 61, .12); color: var(--corail-texte); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; transition: transform .1s ease-out, background-color .2s ease; }
.obtenir:active { transform: scale(.95); background: rgba(255, 106, 61, .2); }
.captures { display: flex; gap: 10px; margin-top: 18px; padding: 0 18px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.captures::-webkit-scrollbar { display: none; }
.captures img { flex: none; width: 44%; max-width: 210px; scroll-snap-align: start; }

/* Les liens en liste « Réglages » : tuile d'icône, titre, sous-titre, chevron, trait fin entre les lignes. */
.groupe { margin-top: 32px; }
.groupe + .groupe { margin-top: 20px; }
.groupe-titre { margin: 0 0 12px 4px; font: 700 22px/1.2 var(--affiche); color: var(--texte); letter-spacing: -0.025em; }
.liste-reglages { overflow: hidden; border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre); }
.liste-reglages a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; transition: background-color .15s ease; }
.liste-reglages li + li a::before { content: ""; position: absolute; top: 0; right: 0; left: 64px; height: 1px; background: var(--trait); }
.liste-reglages a:active { background: var(--appui); transition: none; }
@media (hover: hover) { .liste-reglages a:hover { background: #fafafc; } }
.tuile { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(160deg, #FF8A5C, #E8502A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px -4px rgba(232, 80, 42, .55); }
.tuile svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ligne { flex: 1; min-width: 0; }
.ligne strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.ligne small { display: block; margin-top: 1px; font-size: 14px; color: var(--texte-2); letter-spacing: -0.01em; }
.chevron { flex: none; width: 8px; height: 8px; margin-right: 4px; border-top: 2px solid #c4c4c7; border-right: 2px solid #c4c4c7; transform: rotate(45deg); }

.signature { margin-top: 32px; text-align: center; font-weight: 600; }
.pied { padding-block: 16px calc(32px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 12px; color: var(--texte-2); letter-spacing: 0; }
.pied a { text-decoration: underline; text-underline-offset: .16em; }

/* Entrée douce, une fois, au chargement. */
@keyframes arrive { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
[data-enter] { animation: arrive .6s var(--sortie) both; }
.offre[data-enter] { animation-delay: .08s; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (prefers-reduced-transparency: reduce) { .barre-verre { background: var(--fond); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- Pages Particulier et Pro ---------- */
.retour { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--corail-texte); font-size: 17px; font-weight: 400; }
.retour::before { content: ""; width: 9px; height: 9px; margin-right: 2px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); }
.grand-titre { padding-top: 12px; }
.grand-titre .pour { text-align: left; }
.grand-titre h1 { margin-top: 6px; font: 700 clamp(32px, 8.6vw, 48px)/1.07 var(--affiche); letter-spacing: -0.035em; text-wrap: balance; }
.grand-titre .chapo { margin-top: 12px; font-size: 19px; line-height: 1.42; color: var(--texte-2); letter-spacing: -0.02em; text-wrap: pretty; }
.bloc { margin-top: 16px; border-radius: var(--rayon); background: var(--carte); overflow: hidden; box-shadow: var(--ombre); }
.bloc-texte { padding: 26px 22px 0; }
.bloc-texte .pour { text-align: left; }
.bloc-texte h2 { margin-top: 6px; font: 700 clamp(24px, 6.4vw, 32px)/1.12 var(--affiche); letter-spacing: -0.03em; text-wrap: balance; }
.bloc-texte p:not(.pour) { margin-top: 10px; color: var(--texte-2); text-wrap: pretty; }
.bloc-ecran { display: flex; justify-content: center; margin-top: 22px; padding: 0 22px; height: 300px; overflow: hidden; background: linear-gradient(180deg, var(--carte) 0%, #f2f2f4 100%); }
.bloc-ecran img { width: 70%; max-width: 280px; height: auto; align-self: flex-start; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .14)); }
.bloc-seul { padding-bottom: 26px; }
.liste-info li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; position: relative; }
.liste-info li + li::before { content: ""; position: absolute; top: 0; right: 0; left: 62px; height: 1px; background: var(--trait); transform: scaleY(.5); transform-origin: top; }
.liste-info .ligne small { white-space: normal; }
.liste-info .tuile { margin-top: 2px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.badges a { display: block; border-radius: 10px; transition: transform .1s ease-out; }
.badges a:active { transform: scale(.96); }
.badges img { height: 46px; width: auto; }
.prix-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; position: relative; }
.prix-ligne + .prix-ligne::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--trait); transform: scaleY(.5); transform-origin: top; }
.prix-ligne strong { font-weight: 600; }
.note-liste { margin: 8px 16px 0; font-size: 13px; color: var(--texte-2); letter-spacing: -0.005em; }
.boutons-pile { display: grid; gap: 10px; margin: 18px 8px 0; }
.boutons-pile .bouton { margin: 0; }
.bouton-gris { background: rgba(255, 106, 61, .12); color: var(--corail-texte); box-shadow: none; }
.bouton-gris:active { background: rgba(255, 106, 61, .2); }
@media (hover: hover) { .bouton-gris:hover { background: rgba(255, 106, 61, .18); } }
@media (min-width: 720px) { .bloc-ecran { height: 360px; } }
.prix-ligne { align-items: flex-start; }
.prix-nom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.remise { padding: 2px 8px; border-radius: 999px; background: rgba(255, 106, 61, .12); color: var(--corail-texte); font-size: 13px; font-weight: 700; font-style: normal; }
.prix-montant { display: grid; justify-items: end; text-align: right; }
.prix-montant b { font-size: 17px; font-weight: 700; }
.prix-montant small { font-size: 13px; color: var(--texte-2); letter-spacing: -0.005em; }
.prix-montant .par-mois { margin-top: 2px; color: var(--corail-texte); font-weight: 600; }

/* ---------- Finition haut de gamme ---------- */
/* Un liseré presque invisible sur chaque carte : les bords restent nets sur fond clair. */
.offre, .fiche-app, .liste-reglages, .bloc { outline: .5px solid rgba(0, 0, 0, .05); outline-offset: -.5px; }
.photo-carte { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45); }
.photo-carte::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25); pointer-events: none; }
/* Boutons pleins : reflet en haut, ombre corail douce, comme un bouton d'appli. */
.bouton:not(.bouton-gris), .pastille { background: linear-gradient(180deg, #d4471f 0%, var(--corail) 55%, #b5341a 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(124, 38, 12, .35), 0 10px 22px -10px rgba(204, 63, 27, .7); }
.bouton:not(.bouton-gris):active, .pastille:active { background: #b5341a; box-shadow: inset 0 2px 5px rgba(90, 24, 6, .28); }
@media (hover: hover) { .bouton:not(.bouton-gris):hover, .pastille:hover { background: linear-gradient(180deg, #c9411c 0%, #bd3819 55%, #a82f16 100%); } }
.icone-app { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 8px 18px -8px rgba(232, 80, 42, .55); }
.carte-premium-haut span { letter-spacing: .01em; }
.groupe-titre { margin-bottom: 14px; }
.signature { margin-top: 40px; font: 600 17px/1.3 var(--affiche); letter-spacing: -0.02em; }
.fiche-app-nom h2 { font-size: 20px; } .fiche-app-nom .fiche-app-sous { margin-top: 0; color: var(--texte); font-size: 15px; }

/* ---------- Ordinateur et tablette en largeur : deux colonnes ---------- */
@media (min-width: 960px) {
  .colonne { max-width: calc(1080px + 2 * var(--marge)); --marge: 32px; }
  .barre-verre-dedans { min-height: 60px; }
  main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 24px; align-items: start; padding-top: 12px; }
  main > * { grid-column: 1 / -1; }
  .signature { margin-top: 48px; }

  /* Accueil : la photo à gauche, l'offre et l'appli à droite, les liens côte à côte dessous. */
  .page-accueil .photo-carte { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; }
  .page-accueil .photo-carte img { height: 100%; min-height: 560px; }
  .page-accueil .photo-carte-texte { padding: 36px; }
  .page-accueil .photo-carte h1 { font-size: 52px; }
  .page-accueil .offre { grid-column: 2; grid-row: 1; margin-top: 0; }
  .page-accueil .fiche-app { grid-column: 2; grid-row: 2; }
  .page-accueil .groupe { grid-column: auto; }
  .page-accueil .groupe + .groupe { margin-top: 32px; padding-top: 41px; }

  /* Pages Particulier et Pro : le titre à gauche, l'offre ou l'appli à droite ; listes côte à côte. */
  .grand-titre { padding-top: 40px; padding-right: 24px; }
  .grand-titre h1 { font-size: 56px; }
  .page-pro .grand-titre { grid-column: 1; }
  .page-pro .offre:not(.bloc) { grid-column: 2; margin-top: 24px; }
  .page-pro .groupe { grid-column: auto; }
  .page-pro .groupe + .groupe { margin-top: 32px; }
  .page-pro nav.groupe, .page-particulier nav.groupe { grid-column: 1 / -1; max-width: 640px; justify-self: center; width: 100%; }
  .page-particulier .grand-titre { grid-column: 1; }
  .page-particulier .fiche-app { grid-column: 2; align-self: end; }

  /* Les blocs texte + écran passent en deux colonnes. */
  .bloc:not(.bloc-seul) { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 24px; }
  .bloc:not(.bloc-seul) .bloc-texte { padding: 48px; }
  .bloc:not(.bloc-seul) .bloc-texte h2 { font-size: 36px; }
  .bloc:not(.bloc-seul) .bloc-texte p:not(.pour) { font-size: 18px; }
  .bloc-ecran { height: 420px; margin-top: 0; padding-top: 40px; }
  .page-particulier .bloc:nth-of-type(odd):not(.bloc-seul) .bloc-ecran { order: -1; }
  .bloc-seul { padding: 40px; }
  .page-pro .bloc-seul { grid-column: 2; align-self: start; margin-top: 32px; }
  .page-pro section.groupe[aria-labelledby="t-prix"] { grid-column: 1; }
}

/* Vidéo côté pro : cadre de téléphone, lecture au toucher avec le son. */
.bloc-video { padding-bottom: 24px; }
.video-cadre { display: flex; justify-content: center; margin-top: 20px; padding: 0 22px; }
.video-cadre video { display: block; width: min(78%, 320px); aspect-ratio: 9 / 16; height: auto; border-radius: 28px; background: #fff; object-fit: cover; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 24px 44px -20px rgba(0, 0, 0, .35); }
@media (min-width: 960px) {
  .bloc-video { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 32px 0; }
  .bloc-video .bloc-texte { padding: 48px; }
  .bloc-video .bloc-texte h2 { font-size: 36px; }
  .bloc-video .bloc-texte p { font-size: 18px; }
  .video-cadre { margin-top: 0; }
}
