/* Site public Foxward : accueil et pages légales. Palette : violet du logo, orange du renard, lavande, bleu nuit. */
@font-face { font-family: "Sora"; src: url("/polices/Sora.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --violet: #5b12d6; --violet-clair: #8b2bf0; --orange: #ff8a00; --orange-fonce: #ff6a00; --lavande: #b9a4f5; --nuit: #1e2150;
  --fond: #ffffff; --fond-doux: #f6f3fe; --texte: #1e2150; --doux: #5d6185; --ligne: #e7e2f6;
  --degrade: linear-gradient(135deg, #5b12d6 0%, #8b2bf0 100%);
  --degrade-orange: linear-gradient(135deg, #ffa31a 0%, #ff6a00 100%);
  --ombre: 0 1px 2px rgba(30,33,80,.05), 0 10px 30px rgba(91,18,214,.08);
  --rayon: 18px;
  --titres: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texte); background: var(--fond); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
h1, h2, h3 { font-family: var(--titres); letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 650; margin-bottom: 14px; }
h3 { font-size: 18px; font-weight: 620; margin-bottom: 6px; }
.cadre { width: min(1160px, 100% - 40px); margin: 0 auto; }
.cadre-etroit { width: min(820px, 100% - 40px); }
.evitement { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.evitement:focus { left: 8px; }
.centre { text-align: center; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 14px; font: 600 16px/1 system-ui, -apple-system, sans-serif; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-principal { background: var(--degrade); color: #fff; box-shadow: 0 8px 22px rgba(91,18,214,.32); }
.btn-principal:hover { box-shadow: 0 12px 28px rgba(91,18,214,.4); }
.btn-orange { background: var(--degrade-orange); color: #fff; box-shadow: 0 8px 22px rgba(255,106,0,.35); }
.btn-clair { background: #fff; color: var(--texte); border: 1px solid var(--ligne); }
.btn-petit { padding: 10px 16px; font-size: 15px; border-radius: 12px; }
.btn-large { width: 100%; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; padding-top: env(safe-area-inset-top); }
.entete.defile { border-bottom-color: transparent; box-shadow: none; }
/* Bord inférieur du header découpé en triangles (dents de scie) */
.entete::before { content: ""; position: absolute; left: 0; right: 0; top: calc(100% + 2px); height: 17px; pointer-events: none; background: rgba(91,18,214,.16);
  -webkit-mask: conic-gradient(from -45deg at 50% 100%, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / 34px 17px repeat-x;
          mask: conic-gradient(from -45deg at 50% 100%, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / 34px 17px repeat-x; }
.entete::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 17px; pointer-events: none;
  background: inherit; -webkit-backdrop-filter: inherit; backdrop-filter: inherit;
  -webkit-mask: conic-gradient(from -45deg at 50% 100%, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / 34px 17px repeat-x;
          mask: conic-gradient(from -45deg at 50% 100%, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / 34px 17px repeat-x; }
.entete-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.marque { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--texte); font: 650 22px/1 var(--titres); letter-spacing: -.6px; }
.menu { display: flex; gap: 4px; }
.menu a { color: var(--doux); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 99px; }
.menu a:hover { color: var(--violet); background: var(--fond-doux); }
.menu-mobile-seul { display: none; }
.entete-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lien-discret { color: var(--texte); text-decoration: none; font-weight: 600; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.burger i { display: block; height: 2px; background: var(--texte); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Accroche */
.heros { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 20%, #efe7ff 0%, rgba(239,231,255,0) 60%), radial-gradient(800px 500px at 0% 100%, #fff1e2 0%, rgba(255,241,226,0) 60%); }
.heros-in { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 56px 0 70px; }
.etiquette { display: inline-block; background: #fff; border: 1px solid var(--ligne); border-radius: 99px; padding: 7px 14px; font-size: 14px; color: var(--doux); margin: 0 0 22px; box-shadow: var(--ombre); }
.heros h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 20px; }
.heros h1 em, .final h2 em { font-style: normal; background: var(--degrade-orange); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapo { font-size: clamp(17px, 2vw, 19px); color: var(--doux); max-width: 560px; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.garanties { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--doux); font-size: 15px; }
.garanties span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e7f6ec; color: #1a7f37; font-size: 12px; font-weight: 700; margin-right: 6px; }
.heros-visuel { position: relative; display: grid; place-items: center; min-height: 420px; }
.heros-visuel img { position: relative; width: min(520px, 100%); filter: drop-shadow(0 30px 40px rgba(91,18,214,.22)); animation: flotte 6s ease-in-out infinite; }
.halo { position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #c9b6ff 0%, #e6dcff 45%, rgba(255,255,255,0) 70%); }
.vignette { position: absolute; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; padding: 10px 14px; box-shadow: 0 14px 30px rgba(30,33,80,.12); font-size: 13px; display: grid; gap: 2px; max-width: 250px; animation: flotte 7s ease-in-out infinite; }
.vignette b { font-size: 14px; }
.vignette span { color: var(--doux); }
.v1 { top: 8%; left: -2%; animation-delay: -2s; }
.v2 { bottom: 16%; left: -6%; animation-delay: -4s; }
.v3 { top: 30%; right: -4%; border-color: #ffd7a8; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.bandeau-canaux { border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); background: #fff; }
.canaux { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 36px; padding: 20px 0; color: var(--doux); }
.canaux span { font-size: 14px; }
.canaux b { font: 650 18px/1 var(--titres); color: #8a8db0; letter-spacing: -.3px; }

/* Blocs */
.bloc { padding: clamp(64px, 9vw, 110px) 0; }
.bloc-lavande { background: var(--fond-doux); }
.bloc-nuit { background: radial-gradient(900px 500px at 100% 0%, #3a1a8f 0%, rgba(58,26,143,0) 60%), var(--nuit); color: #fff; }
.surtitre { font: 650 13px/1 var(--titres); text-transform: uppercase; letter-spacing: .12em; color: var(--orange-fonce); margin: 0 0 14px; }
.surtitre.clair { color: #ffb45c; }
.intro { font-size: 18px; color: var(--doux); max-width: 720px; margin: 0 0 40px; }
.intro.clair { color: #c9cbe6; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.carte-pb { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 26px; box-shadow: var(--ombre); }
.carte-pb p { color: var(--doux); margin: 0; }
.ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--fond-doux); font-size: 22px; margin-bottom: 14px; }
.bloc-lavande .ico { background: #fff; }

.etapes { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: e; }
.etapes li { background: #fff; border-radius: var(--rayon); padding: 26px; box-shadow: var(--ombre); position: relative; }
.etapes p { color: var(--doux); margin: 0; font-size: 15px; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--degrade); color: #fff; font: 700 18px/1 var(--titres); margin-bottom: 16px; box-shadow: 0 6px 16px rgba(91,18,214,.3); }
.etapes li:nth-child(even) .num { background: var(--degrade-orange); box-shadow: 0 6px 16px rgba(255,106,0,.3); }

.grille-fonctions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grille-fonctions article { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.grille-fonctions article:hover { border-color: var(--lavande); transform: translateY(-3px); box-shadow: var(--ombre); }
.grille-fonctions p { color: var(--doux); margin: 0; font-size: 15px; }

.grille-secteurs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.secteur { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--rayon); padding: 14px 14px 22px; transition: transform .2s, background .2s; }
.secteur:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.secteur-img { aspect-ratio: 4 / 3.4; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 60%, #8f6bff 0%, #4b2aa8 70%); display: grid; place-items: end center; margin-bottom: 16px; }
.secteur-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.secteur h3 { padding: 0 6px; }
.secteur p { color: #c9cbe6; margin: 0; padding: 0 6px; font-size: 15px; }

.comparaison { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.message { border-radius: var(--rayon); padding: 24px; border: 1px solid var(--ligne); }
.message.avant { background: #fbfbfd; }
.message.apres { background: linear-gradient(180deg, #faf7ff, #fff); border-color: #d9ccfb; box-shadow: var(--ombre); }
.msg-titre { font-weight: 650; margin: 0 0 12px; }
.bulle-msg { background: #fff; border: 1px solid var(--ligne); border-radius: 14px 14px 14px 4px; padding: 14px 16px; font-size: 15px; }
.avant .bulle-msg { color: var(--doux); }
.msg-note { color: var(--doux); font-size: 14px; margin: 12px 0 0; }
.mail-exemple { border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.mail-tete { display: grid; gap: 4px; padding: 16px 20px; background: var(--fond-doux); font-size: 14px; color: var(--doux); border-bottom: 1px solid var(--ligne); }
.mail-tete .pj { color: var(--violet); font-weight: 600; }
.mail-corps { padding: 8px 20px 4px; font-size: 15.5px; }
.legende { font-size: 13px; color: var(--doux); margin: 0; padding: 0 20px 16px; font-style: italic; }

.apercu-in, .ecole-in { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.liste-coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.liste-coches li { position: relative; padding-left: 30px; }
.liste-coches li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--violet); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.tableau-faux { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px rgba(91,18,214,.15); border: 1px solid var(--ligne); }
.tableau-faux .legende { padding: 10px 0 0; text-align: right; }
.tf-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 15px; }
.pastille-ok { margin-left: auto; font-size: 12px; font-weight: 600; background: #e7f6ec; color: #1a7f37; padding: 3px 10px; border-radius: 99px; }
.tf-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.tf-chiffres div { background: var(--fond-doux); border-radius: 12px; padding: 12px; display: grid; }
.tf-chiffres b { font: 700 24px/1.1 var(--titres); }
.tf-chiffres span { font-size: 12.5px; color: var(--doux); }
.tf-ligne { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-top: 1px solid var(--ligne); font-size: 14px; }
.tf-ligne em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--doux); white-space: nowrap; }
.pt { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pt.violet { background: var(--violet); } .pt.orange { background: var(--orange); } .pt.vert { background: #1fa34a; } .pt.gris { background: #b6b8cf; }

.ecole-visuel { background: radial-gradient(circle at 50% 50%, #e2d6ff 0%, #f3eeff 55%, #fff 75%); border-radius: 30px; display: grid; place-items: center; padding: 20px; }
.ecole-visuel img { width: min(420px, 100%); mix-blend-mode: multiply; }

.essai { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(90deg, #fff4e6, #fff); border: 1px solid #ffd9ad; border-radius: 18px; padding: 16px 20px; margin: 0 0 26px; }
.essai div { display: grid; gap: 2px; }
.essai span { color: var(--doux); font-size: 15px; }
.offres { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 18px; align-items: center; }
.offre { position: relative; border: 1px solid var(--ligne); border-radius: 22px; padding: 28px; background: #fff; }
.offre .liste-coches { margin: 22px 0 0; font-size: 15px; }
.offre .liste-coches li.non { color: #a3a6c2; }
.offre .liste-coches li.non::before { content: "–"; background: #eceaf5; color: #a3a6c2; }
.offre-phare { padding: 38px 30px; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--degrade) border-box; box-shadow: 0 30px 60px rgba(91,18,214,.2); z-index: 1; }
.ruban { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); margin: 0; background: var(--degrade-orange); color: #fff; font: 650 13px/1 var(--titres); padding: 8px 16px; border-radius: 99px; white-space: nowrap; box-shadow: 0 6px 16px rgba(255,106,0,.35); }
.offre-nom { font: 650 14px/1 var(--titres); text-transform: uppercase; letter-spacing: .1em; color: var(--violet); margin: 0 0 12px; }
.offre-prix { font: 700 46px/1 var(--titres); margin: 0 0 8px; letter-spacing: -.03em; }
.offre-phare .offre-prix { font-size: 54px; }
.offre-prix span { font: 500 16px/1 system-ui, sans-serif; color: var(--doux); letter-spacing: 0; margin-left: 4px; }
.offre-sous { color: var(--doux); margin: 0 0 16px; font-size: 15px; min-height: 48px; }
.credits { background: var(--fond-doux); border-radius: 12px; padding: 10px 14px; margin: 0 0 18px; font-size: 15px; display: grid; }
.credits em { font-style: normal; font-size: 13px; color: var(--doux); }
.offre-phare .credits em { color: #1a7f37; font-weight: 600; }
.note-tarifs { color: var(--doux); font-size: 14px; max-width: 900px; margin: 30px auto 0; text-align: center; }

.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--ligne); border-radius: 16px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--ombre); }
.faq summary { cursor: pointer; list-style: none; font-weight: 620; padding: 18px 30px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 26px/1 system-ui; color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--doux); }

.final { padding-top: 40px; }
.final-in { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center; background: var(--degrade); color: #fff; border-radius: 30px; padding: 30px 50px 30px 30px; box-shadow: 0 30px 60px rgba(91,18,214,.28); overflow: hidden; }
.final-in img { width: 100%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); }
.final h2 { color: #fff; }
.final p { color: #e7defe; font-size: 18px; margin: 0 0 24px; }

/* Pied de page */
.pied { background: var(--nuit); color: #c9cbe6; padding: 60px 0 calc(30px + env(safe-area-inset-bottom)); margin-top: clamp(64px, 9vw, 110px); }
.pied-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.pied .marque { color: #fff; }
.pied-marque p { margin: 12px 0 0; font-size: 15px; }
.pied nav { display: grid; gap: 9px; align-content: start; }
.pied nav b { color: #fff; font-family: var(--titres); font-weight: 620; margin-bottom: 4px; }
.pied a { color: #c9cbe6; text-decoration: none; font-size: 15px; }
.pied a:hover { color: #fff; }
.pied-bas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 13px; color: #9a9cc0; }

/* Apparition au défilement */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apparait { opacity: 1; transform: none; transition: none; } .heros-visuel img, .vignette { animation: none; } html { scroll-behavior: auto; } }

/* Pages légales */
.legal { padding: 50px 0 20px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.legal .maj { color: var(--doux); margin: 0 0 30px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal h3 { font-size: 17px; margin: 20px 0 6px; }
.legal p, .legal li { color: #34385e; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 15px; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--ligne); padding: 10px 8px; vertical-align: top; }
.legal th { color: var(--doux); font-weight: 600; }
.legal .encadre { background: var(--fond-doux); border-radius: 14px; padding: 16px 20px; margin: 20px 0; }
.legal-tableau { overflow-x: auto; }

/* Responsive */
@media (max-width: 1060px) {
  .menu { position: fixed; inset: calc(70px + env(safe-area-inset-top)) 0 auto 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--ligne); padding: 10px 20px 20px; box-shadow: 0 20px 30px rgba(30,33,80,.1); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .menu.ouvert { opacity: 1; transform: none; pointer-events: auto; }
  .menu a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--ligne); font-size: 17px; color: var(--texte); }
  .menu-mobile-seul { display: block; }
  .burger { display: flex; }
  .lien-discret { display: none; }
  .grille-fonctions, .grille-secteurs { grid-template-columns: repeat(2, 1fr); }
  .etapes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .heros-in, .apercu-in, .ecole-in, .offres, .comparaison { grid-template-columns: 1fr; }
  .offre-phare { order: -1; }
  .offre-sous { min-height: 0; }
  .heros-in { padding: 30px 0 50px; gap: 10px; }
  .heros-visuel { min-height: 0; margin-top: 10px; }
  .heros-visuel img { width: min(340px, 80%); }
  .v1 { top: 4%; left: 0; } .v2 { bottom: 6%; left: 0; } .v3 { top: 40%; right: 0; }
  .grille-3 { grid-template-columns: 1fr; }
  .final-in { grid-template-columns: 1fr; text-align: center; padding: 30px 24px 40px; }
  .final-in img { width: 220px; margin: 0 auto; }
  .pied-in { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
  .ecole-visuel { order: -1; }
}
@media (max-width: 560px) {
  .entete-actions .btn-petit { padding: 9px 13px; font-size: 14px; }
  .grille-fonctions, .grille-secteurs, .etapes { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .vignette { font-size: 12px; padding: 8px 10px; max-width: 190px; }
  .v1, .v2 { display: none; }
  .v3 { top: auto; bottom: 8%; right: 0; }
  .vignette b { font-size: 13px; }
  .tf-chiffres { grid-template-columns: repeat(2, 1fr); }
  .tf-ligne { font-size: 13px; }
  .heros h1 br { display: none; }
}

/* iPhone : pas de zoom (double toucher, pincement) et pas de zoom auto sur les champs */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
input, select, textarea { font-size: max(16px, 1em); }
