/* Site vitrine — Fosea
   Direction : éditorial épuré. Figtree gras pour les titres et Figtree pour le texte,
   fond lavande très clair, encre bleu nuit, trois couleurs = trois dominantes (vert formation,
   jaune qualité/certification, rouge gestion commerciale). Le motif : le cube à trois faces. */

:root {
  --ink: #15171C;
  --ink-soft: #555A66;
  --ivory: #F7F6F3;
  --paper: #FFFFFF;
  --line: rgba(21, 23, 28, .11);
  /* Les trois dominantes du logiciel, une couleur chacune (cf. CHARTE.md) */
  --green: #00A86B;    /* Formation */
  --green-deep: #007A52;
  --yellow: #FFB300;   /* Qualité et certification */
  --yellow-deep: #8F6A00;
  --red: #E5282E;    /* Gestion commerciale et facturation */
  --red-deep: #B81F24;
  --night: #0E1014;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(21,23,28,.05), 0 18px 48px -18px rgba(21,23,28,.22);
  --serif: 'Figtree', 'Helvetica Neue', Arial, sans-serif;   /* polices des titres : Figtree gras */
  --wordmark: 'Figtree', 'Helvetica Neue', Arial, sans-serif;   /* nom « Fosea » du logo : Figtree extra-gras */
  --sans: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-deep); margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.12; }
h2 em, h1 em { font-style: normal; color: var(--green-deep); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 36em; margin: 20px 0 0; }
section { padding: 112px 0; position: relative; }

/* ——— Boutons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 26px -10px rgba(21,23,28,.55); }
.btn-primary:hover { transform: translateY(-2px); background: #2B2E36; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(21,23,28,.22); }
.btn-ghost:hover { background: rgba(21,23,28,.05); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green); outline-offset: 3px; border-radius: 12px;
}

/* ——— En-tête ——— */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,246,243,.82); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--wordmark); font-size: 29px; line-height: 1; }
.brand svg { width: 38px; height: 38px; flex: none; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { font-size: 15.5px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; position: relative; content: ''; }
.burger span::before { position: absolute; top: -6px; left: 0; }
.burger span::after { position: absolute; top: 6px; left: 0; }

/* ——— Hero ——— */
.hero { padding: 72px 0 64px; overflow: clip; }
#fonctions { padding-top: 64px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.04fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.04; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.refs { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14.5px; }
.refs b { color: var(--ink); font-weight: 600; letter-spacing: .04em; }
.ring-bg { position: absolute; z-index: -1; right: -220px; top: -80px; width: 760px; height: 760px; opacity: .9; pointer-events: none; }

.visual { position: relative; padding: 8px 0 34px 24px; }
.app {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); overflow: hidden;
}
.app-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #FBFAF8; }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #DEDCD6; }
.app-bar span { margin-left: 10px; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.app-body { display: block; }
.main { padding: 20px 22px 26px; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: #8A8E99; text-transform: uppercase; margin-bottom: 10px; }
.grid5 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: 232px; }
.col { position: relative; border-radius: 12px; background: repeating-linear-gradient(to bottom, transparent 0 49px, rgba(21,23,28,.05) 49px 50px); }
.blk { position: absolute; left: 0; right: 0; border-radius: 11px; padding: 8px 9px; font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.b1 { background: rgba(0,168,107,.16); color: var(--green-deep); }
.b2 { background: rgba(21,23,28,.9); color: #fff; }
.b3 { background: rgba(255,179,0,.3); color: var(--yellow-deep); }
.float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 12px 14px;
  box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.3; font-weight: 600;
}
.float small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 12.5px; }
.float .dot { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; }
.float .dot svg { width: 18px; height: 18px; }
.f1 { right: -10px; top: -22px; }
.f1 .dot { background: rgba(255,179,0,.3); color: var(--yellow-deep); }
.f2 { left: -4px; bottom: 0; }
.f2 .dot { background: rgba(0,168,107,.16); color: var(--green-deep); }
.caption { position: absolute; right: 4px; bottom: 6px; font-size: 12px; color: #8A8E99; }

/* ——— Fonctionnalités ——— */
.head { max-width: 760px; margin-bottom: 56px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px 34px; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(0,168,107,.12); color: var(--green-deep); margin-bottom: 26px; }
.ico.y { background: rgba(255,179,0,.26); color: var(--yellow-deep); }
.ico.r { background: rgba(229,40,46,.14); color: var(--red-deep); }
.ico svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.7rem; line-height: 1.12; margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ——— Qualité (section sombre) ——— */
.dark { background: var(--night); color: #ECEEF1; overflow: hidden; }
.dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 520px at 85% 8%, rgba(255,179,0,.17), transparent 62%),
              radial-gradient(700px 420px at 0% 100%, rgba(0,168,107,.16), transparent 60%);
}
.dark .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.dark .eyebrow { color: #FFD43B; }
.dark h2 em { color: #FFD43B; }
.dark .lead { color: #AEB3BF; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.audit { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 8px; backdrop-filter: blur(6px); }
.audit-in { background: rgba(255,255,255,.96); color: var(--ink); border-radius: 18px; padding: 8px 22px; }
.audit-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 16px; }
.row:last-child { border-bottom: 0; }
.tag { flex: none; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.ok { background: rgba(255,179,0,.3); color: var(--yellow-deep); }
.todo { background: rgba(21,23,28,.08); color: var(--ink); }
.bar { height: 6px; border-radius: 6px; background: var(--line); margin: 6px 0 16px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 72%; border-radius: 6px; background: linear-gradient(90deg, #E69500, var(--yellow)); }
.note { margin-top: 14px; font-size: 12.5px; color: #8F94A0; text-align: right; }

/* ——— Pour qui + mobile ——— */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.who { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 44px 40px 46px; }
.who h3 { font-size: 2.1rem; line-height: 1.1; margin-bottom: 14px; }
.who p { margin: 0 0 24px; color: var(--ink-soft); }
.who ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.who li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.who li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: rgba(0,168,107,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.5 2.5L14 7.4' fill='none' stroke='%2300875A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.mobile { overflow: clip; }
.mobile .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.phones { position: relative; height: 520px; display: grid; place-items: center; }
.phone { width: 258px; height: 520px; background: var(--ink); border-radius: 44px; padding: 10px; box-shadow: var(--shadow); position: relative; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 76px; height: 22px; background: var(--ink); border-radius: 14px; z-index: 2; }
.screen { background: #fff; border-radius: 35px; height: 100%; overflow: hidden; padding: 56px 18px 18px; }
.screen h4 { margin: 0 0 4px; font: 700 20px/1.2 var(--serif); }
.screen .sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 18px; }
.scan { border-radius: 20px; background: rgba(0,168,107,.1); display: grid; place-items: center; padding: 18px; margin-bottom: 16px; }
.scan svg { width: 96px; height: 96px; fill: none; stroke: var(--green-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.li span { width: 24px; height: 24px; border-radius: 50%; background: rgba(0,168,107,.16); color: var(--green-deep); display: grid; place-items: center; font-size: 13px; flex: none; }
.li.wait span { background: #EDEBE6; color: #8A8E99; }
.phones::before, .phones::after { content: ''; position: absolute; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1; }
.phones::before { width: 400px; height: 400px; background: rgba(0,168,107,.09); }
.phones::after { width: 470px; height: 470px; border: 1px solid rgba(21,23,28,.12); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 15px; }

/* ——— Formules ——— */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 40px 34px 38px; display: flex; flex-direction: column; }
.plan h3 { font-size: 2.2rem; margin-bottom: 6px; }
.plan .for { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 24px; min-height: 3.2em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; font-size: 15.5px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; }
.plan li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: 10px; border-radius: 50%; background: var(--green); }
.plan .price { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; color: var(--ink-soft); }
.plan .price b { font-family: var(--serif); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--ink); }
.plan .price span { font-weight: 600; font-size: 15px; }
.plan.best .price b { color: #fff; }
.plan.best { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow); }
.plan.best .for, .plan.best .price { color: #B0B5C0; }
.plan.best .price { border-top-color: rgba(255,255,255,.16); }
.plan.best li::before { background: var(--red); }
.badge { position: absolute; top: -13px; left: 34px; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.setup { margin-top: 26px; padding: 22px 28px; border: 1px dashed rgba(21,23,28,.28); border-radius: 20px; color: var(--ink-soft); display: flex; gap: 16px; align-items: center; }
.setup b { color: var(--ink); }
.extras { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.extras .setup { margin-top: 0; display: block; padding: 20px 24px; }
.extras .setup b { display: block; margin-bottom: 4px; }
@media (max-width: 767px) { .extras { grid-template-columns: 1fr; gap: 14px; } }

/* ——— Étapes ——— */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 8px 8px 0 0; border-top: 1px solid var(--ink); counter-increment: s; padding-top: 26px; }
.step::before { content: '0' counter(s); display: block; font-family: var(--serif); font-weight: 700; font-size: 2.8rem; line-height: 1; color: var(--green-deep); margin-bottom: 16px; }
.step h3 { font-size: 1.8rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-soft); max-width: 22em; }

/* ——— Contact ——— */
.cta { padding: 0 0 112px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 36px; background: var(--ink); color: #fff;
  padding: 72px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.cta-box::before { content: ''; position: absolute; width: 560px; height: 560px; left: -230px; bottom: -330px; border-radius: 50%; border: 48px solid rgba(0,168,107,.18); }
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-box h2 em { color: #FFC933; }
.cta-box p { color: #B0B5C0; margin: 18px 0 0; max-width: 28em; }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
label { font-size: 14px; font-weight: 600; color: #CDD0D8; }
input, textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07); color: #fff; font: 500 16px/1.4 var(--sans);
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8C919D; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.msg { font-size: 14px; color: #F2C779; min-height: 1.4em; margin: 0; }
form .btn { justify-self: start; }

footer { padding: 0 0 48px; color: var(--ink-soft); font-size: 14.5px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
footer .brand { font-size: 22px; }
footer .brand svg { width: 28px; height: 28px; }

/* ——— Apparition douce (si JS actif) ——— */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .d1 { transition-delay: .08s; } .js .d2 { transition-delay: .16s; } .js .d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .btn .arr { transition: none; }
}

/* ——— Menu compact (tablette et mobile) ——— */
.brand span { white-space: nowrap; }
@media (max-width: 920px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 24px 22px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; min-height: 48px; }
}

/* ——— Tablette ——— */
@media (max-width: 1023px) {
  section { padding: 88px 0; }
  .hero { padding: 48px 0 88px; }
  .hero .wrap, .dark .wrap, .mobile .wrap, .cta-box { grid-template-columns: 1fr; }
  .hero .wrap { gap: 48px; }
  .visual { max-width: 640px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; gap: 28px; }
  .plan .for { min-height: 0; }
  .duo { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step p { max-width: 34em; }
  .dark .wrap { gap: 48px; }
  .mobile .wrap { gap: 40px; }
  .phones { order: 2; }
  .cta-box { padding: 56px 40px; gap: 36px; }
  .ring-bg { right: -340px; width: 640px; height: 640px; }
}

/* ——— Smartphone ——— */
@media (max-width: 767px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  section { padding: 68px 0; }
  .top .wrap { height: 68px; }
  .brand { font-size: 25px; }
  .brand svg { width: 34px; height: 34px; }
  .burger { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 18px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; min-height: 48px; }
  .hero { padding: 28px 0 64px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .refs { gap: 8px 18px; }
  .visual { padding: 0 0 52px; }
  .main { padding: 14px 14px 18px; }
  .grid5 { height: 220px; gap: 6px; }
  .days { gap: 6px; font-size: 11px; }
  .blk { font-size: 11px; padding: 6px 7px; }
  .f1 { right: 4px; top: 0; }
  .f2 { left: 4px; }
  .visual { padding-top: 52px; }
  .caption { display: none; }
  .head { margin-bottom: 36px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 26px 24px 28px; }
  .who { padding: 32px 26px 34px; border-radius: 24px; }
  .audit-in { padding: 4px 16px; }
  .phones { height: 470px; }
  .phone { width: 232px; height: 470px; border-radius: 40px; }
  .phones::before { width: 340px; height: 340px; }
  .phones::after { width: 400px; height: 400px; }
  .plan { padding: 34px 26px 32px; }
  .setup { flex-direction: column; align-items: flex-start; }
  .cta { padding-bottom: 72px; }
  .cta-box { padding: 44px 24px; border-radius: 28px; }
  .two { grid-template-columns: 1fr; }
  form .btn { justify-self: stretch; }
  footer .wrap { flex-direction: column; }
  .ring-bg { right: -300px; top: -40px; width: 520px; height: 520px; }
}

/* Décor du haut de page : le grand cube pâle est masqué sur mobile (seuls des morceaux de faces dépassaient) */
@media (max-width: 767px) { .ring-bg { display: none; } }


/* =====================================================================
   REFONTE du 10/11/2026 — « ça claque » : hero sombre avec cube animé,
   trois grandes fonctions en panneaux de couleur, section application
   verte, prix en grand. Ces règles complètent / remplacent celles du haut.
   ===================================================================== */

/* ——— En-tête sombre ——— */
.top { background: var(--night); }
.top.scrolled { border-bottom-color: rgba(255,255,255,.1); }
.top .brand { color: #fff; }
.top .nav a:not(.btn) { color: #C5C9D2; }
.top .nav a:not(.btn):hover { color: #fff; }
.top .nav .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.top .nav .btn-primary:hover { background: #F0EFEA; }
.top .burger { border-color: rgba(255,255,255,.22); }
.top .burger span, .top .burger span::before, .top .burger span::after { background: #fff; }

/* ——— Hero sombre ——— */
.hero { background: var(--night); color: #fff; padding: 64px 0 112px; position: relative; isolation: isolate; overflow: clip; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 420px at 78% 26%, rgba(255,179,0,.22), transparent 62%),
    radial-gradient(520px 420px at 98% 62%, rgba(0,168,107,.30), transparent 62%),
    radial-gradient(560px 420px at 58% 92%, rgba(229,40,46,.26), transparent 62%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.4px); background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.06); font-size: 13.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #E8EAF0; margin: 0 0 26px; }
.trio { display: inline-flex; gap: 4px; }
.trio i { width: 9px; height: 9px; border-radius: 50%; }
.trio i:nth-child(1) { background: #00A86B; } .trio i:nth-child(2) { background: #FFB300; } .trio i:nth-child(3) { background: #E5282E; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.8rem); line-height: 1.02; letter-spacing: -.03em; color: #fff; }
.hero h1 em {
  font-style: normal; display: inline-block; padding-right: .06em;
  background: linear-gradient(95deg, #19D18A 0%, #FFC21A 52%, #FF5058 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero .lead { color: #B9BEC9; font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 31em; }
.hero .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 14px 34px -12px rgba(255,255,255,.35); }
.hero .btn-primary:hover { background: #F4F3EE; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero .refs { border-top-color: rgba(255,255,255,.14); color: #9AA0AD; }
.hero .refs b { color: #fff; }

/* scène : cube + aperçu du planning */
.stage { position: relative; min-height: 600px; }
.cubebox { position: absolute; right: 5%; top: 0; width: min(86%, 380px); }
.hero-cube { width: 100%; height: auto; overflow: visible; animation: floaty 7s ease-in-out 1.6s infinite; filter: drop-shadow(0 40px 60px rgba(0,0,0,.45)); }
.hero-cube polygon { stroke-linejoin: miter; }
.hero-cube .ft { animation: asm-top 1.1s cubic-bezier(.2,.8,.2,1) .15s both; }
.hero-cube .fl { animation: asm-left 1.1s cubic-bezier(.2,.8,.2,1) .35s both; }
.hero-cube .fr { animation: asm-right 1.1s cubic-bezier(.2,.8,.2,1) .55s both; }
@keyframes asm-top { from { opacity: 0; transform: translate(0,-16px); } to { opacity: 1; transform: none; } }
@keyframes asm-left { from { opacity: 0; transform: translate(-16px,8px); } to { opacity: 1; transform: none; } }
@keyframes asm-right { from { opacity: 0; transform: translate(16px,8px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.tags { position: absolute; inset: 0; pointer-events: none; }
.tg { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(255,255,255,.96); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 26px -10px rgba(0,0,0,.5); }
.tg i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.t-top { left: 58%; top: 0; }
.t-left { left: -30%; top: 26%; }
.t-right { right: -2%; top: 60%; }
.stage .app { position: absolute; left: 3%; bottom: -10px; width: 420px; max-width: none; transform: rotate(-2.5deg) scale(.8); transform-origin: left bottom; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.stage .app .blk { font-size: 11px; padding: 6px 8px; }
.stage .float { box-shadow: 0 16px 36px -14px rgba(0,0,0,.55); }
.stage .caption { right: 0; bottom: -22px; color: #7C8290; }

/* ——— Trois grandes fonctions : panneaux de couleur ——— */
#fonctions { background: var(--ivory); }
.fn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.panel { position: relative; overflow: hidden; border-radius: 32px; padding: 38px 34px 40px; color: #fff; display: flex; flex-direction: column; }
.panel::after { content: ''; position: absolute; right: -90px; bottom: -110px; width: 320px; height: 320px; border-radius: 50%; border: 44px solid rgba(255,255,255,.1); pointer-events: none; }
.p-f { background: linear-gradient(158deg, #00A06A 0%, #00704A 100%); }
.p-g { background: linear-gradient(158deg, #EA2D33 0%, #A91A20 100%); }
.p-q { background: linear-gradient(158deg, #FFC21A 0%, #FFA800 100%); color: var(--ink); }
.p-q::after { border-color: rgba(21,23,28,.08); }
.pico { width: 76px; height: 76px; margin: -6px 0 18px -8px; flex: none; }
.panel h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; min-height: 2.2em; }
.tagline { margin: 10px 0 26px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; z-index: 1; }
.panel li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.22); }
.p-q li { border-top-color: rgba(21,23,28,.16); }
.panel li b { display: block; font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.panel li span { display: block; font-size: 15px; line-height: 1.5; opacity: .9; }

/* ——— Section qualité : un peu plus de relief ——— */
.dark { background: var(--night); }
.dark h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.dark::before { background: radial-gradient(900px 520px at 85% 8%, rgba(255,179,0,.22), transparent 62%), radial-gradient(700px 420px at 0% 100%, rgba(0,168,107,.16), transparent 60%); }

/* ——— Pour qui ——— */
.who { transition: transform .3s ease; }
.who:hover { transform: translateY(-4px); }
.who h3 { font-size: 2.4rem; }
.who:first-child { background: linear-gradient(155deg, #1B1E26 0%, #0E1014 100%); border-color: transparent; color: #fff; position: relative; overflow: hidden; }
.who:first-child p { color: #B9BEC9; }
.who:first-child li::before { background-color: rgba(0,168,107,.28); }
.who:first-child::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,168,107,.45), transparent); pointer-events: none; }

/* ——— Application mobile : bloc vert plein ——— */
.mobile { background: linear-gradient(135deg, #006B45 0%, #00A468 100%); color: #fff; }
.mobile .eyebrow { color: #C6F5E0; }
.mobile h2 em { color: #fff; }
.mobile .lead { color: #D5F6E7; }
.mobile h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.phones::before { background: rgba(255,255,255,.12); }
.phones::after { border-color: rgba(255,255,255,.28); }
.phone { box-shadow: 0 40px 70px -24px rgba(0,0,0,.55); }
.store { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }

/* écran du téléphone : texte sombre (le bloc vert met le texte en blanc) */
.phone .screen { color: var(--ink); }

/* ——— Formules ——— */
.plan { transition: transform .3s ease; }
.plan:hover { transform: translateY(-4px); }
.plan.best { background: linear-gradient(160deg, #1A1D24 0%, #0E1014 100%); }
.plan .price b { font-size: 3.2rem; }
.plan h3 { font-size: 2.6rem; }

/* ——— Étapes : grands chiffres ——— */
.step::before { font-size: 5rem; color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-bottom: 14px; }
.step { border-top-width: 2px; }

/* ——— Contact ——— */
.cta-box { background: linear-gradient(150deg, #181B22 0%, #0E1014 100%); }
.cta-box::before { width: 640px; height: 640px; left: -260px; bottom: -380px; border: 0; background: radial-gradient(closest-side, rgba(0,168,107,.35), transparent); }
.cta-box::after { content: ''; position: absolute; width: 560px; height: 560px; right: -220px; top: -300px; background: radial-gradient(closest-side, rgba(255,179,0,.28), transparent); pointer-events: none; }
.cta-box h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }

/* ——— Responsive de la refonte ——— */
.brand span { white-space: nowrap; }
@media (max-width: 920px) {
  .top .nav { background: var(--night); border-bottom-color: rgba(255,255,255,.1); }
  .top .nav a:not(.btn) { border-bottom-color: rgba(255,255,255,.1); }
}
@media (max-width: 1023px) {
  .panel h3 { min-height: 0; }
  .hero { padding: 48px 0 88px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .stage { min-height: 520px; max-width: 640px; margin: 0 auto; width: 100%; }
  .cubebox { right: 6%; width: min(60%, 360px); }
  .fn { grid-template-columns: 1fr; gap: 16px; }
  .panel { padding: 32px 28px 34px; }
}
@media (max-width: 767px) {
  .hero { padding: 28px 0 64px; }
  .pill { font-size: 12px; letter-spacing: .06em; }
  .stage { min-height: 0; }
  .cubebox { position: relative; right: auto; width: min(78%, 300px); margin: 8px auto 0; }
  .tags { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
  .tg { position: static; font-size: 13px; padding: 8px 14px 8px 11px; }
  .stage .app, .stage .float, .stage .caption { display: none; }
  .panel { border-radius: 26px; }
  .pico { width: 64px; height: 64px; }
  .step::before { font-size: 4rem; }
  .plan .price b { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cube, .hero-cube .ft, .hero-cube .fl, .hero-cube .fr { animation: none; }
}


/* =====================================================================
   VERSION CLAIRE (10/11/2026) — plus de fond noir : tout est blanc ou
   très clair. Cette partie remplace les règles « sombres » ci-dessus.
   ===================================================================== */

/* ——— En-tête clair ——— */
.top { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
.top.scrolled { border-bottom-color: var(--line); }
.top .brand { color: var(--ink); }
.top .nav a:not(.btn) { color: var(--ink-soft); }
.top .nav a:not(.btn):hover { color: var(--ink); }
.top .nav .btn-primary { background: var(--ink); color: #fff; }
.top .nav .btn-primary:hover { background: #2B2E36; }
.top .burger { border-color: var(--line); }
.top .burger span, .top .burger span::before, .top .burger span::after { background: var(--ink); }

/* ——— Hero clair ——— */
.hero { background: #FDFCFA; color: var(--ink); padding-bottom: 88px; }
.hero::before {
  background:
    radial-gradient(620px 420px at 80% 22%, rgba(255,179,0,.16), transparent 62%),
    radial-gradient(520px 420px at 100% 64%, rgba(0,168,107,.14), transparent 62%),
    radial-gradient(560px 420px at 60% 96%, rgba(229,40,46,.09), transparent 62%);
}
.hero::after { background-image: radial-gradient(rgba(21,23,28,.10) 1px, transparent 1.4px); opacity: .5; }
.pill { border-color: var(--line); background: #fff; color: var(--ink-soft); }
.hero h1 { color: var(--ink); }
.hero h1 em { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: var(--green-deep); color: var(--green-deep); }
.hero .lead { color: var(--ink-soft); }
.hero .btn-primary { background: var(--ink); color: #fff; box-shadow: 0 12px 28px -12px rgba(21,23,28,.5); }
.hero .btn-primary:hover { background: #2B2E36; }
.hero .btn-ghost { color: var(--ink); border-color: rgba(21,23,28,.22); }
.hero .btn-ghost:hover { background: rgba(21,23,28,.05); }
.hero .refs { border-top-color: var(--line); color: var(--ink-soft); }
.hero .refs b { color: var(--ink); }
.hero-cube { filter: drop-shadow(0 30px 40px rgba(21,23,28,.16)); }
.tg { border: 1px solid var(--line); box-shadow: 0 10px 24px -12px rgba(21,23,28,.25); }
.stage .app { border: 1px solid var(--line); box-shadow: 0 28px 50px -22px rgba(21,23,28,.30); }
.stage .caption { color: #8A8E99; }
.b2 { background: rgba(21,23,28,.08); color: var(--ink); }

/* ——— Qualité : section claire ——— */
.dark { background: #fff; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark::before { background: radial-gradient(900px 520px at 88% 6%, rgba(255,179,0,.14), transparent 62%), radial-gradient(700px 420px at 0% 100%, rgba(0,168,107,.08), transparent 60%); }
.dark .eyebrow { color: var(--yellow-deep); }
.dark h2 em { color: var(--yellow-deep); }
.dark .lead { color: var(--ink-soft); }
.chip { border-color: rgba(21,23,28,.2); color: var(--ink); background: #fff; }
.audit { background: #F5F4F0; border-color: var(--line); }
.audit-in { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 40px -26px rgba(21,23,28,.25); }
.note { color: #8A8E99; }

/* ——— Pour qui ——— */
.who:first-child { background: linear-gradient(155deg, #EAF7F1 0%, #fff 62%); border: 1px solid rgba(0,168,107,.25); color: var(--ink); }
.who:first-child p { color: var(--ink-soft); }
.who:first-child li::before { background-color: rgba(0,168,107,.16); }
.who:first-child::after { display: none; }

/* ——— Formules : la Pro se distingue par son cadre vert, pas par le noir ——— */
.plan.best { background: linear-gradient(160deg, #EAF7F1 0%, #fff 55%); color: var(--ink); border: 2px solid var(--green); box-shadow: 0 24px 44px -26px rgba(0,168,107,.45); }
.plan.best .for, .plan.best .price { color: var(--ink-soft); }
.plan.best .price { border-top-color: var(--line); }
.plan.best .price b { color: var(--ink); }
.plan.best li::before { background: var(--green); }

/* ——— Contact clair ——— */
.cta-box { background: linear-gradient(150deg, #FFFFFF 0%, #F4FAF7 100%); color: var(--ink); border: 1px solid var(--line); }
.cta-box::before { background: radial-gradient(closest-side, rgba(0,168,107,.16), transparent); }
.cta-box::after { background: radial-gradient(closest-side, rgba(255,179,0,.18), transparent); }
.cta-box h2 em { color: var(--green-deep); }
.cta-box p { color: var(--ink-soft); }
label { color: var(--ink); }
input, textarea { background: #fff; border-color: rgba(21,23,28,.22); color: var(--ink); }
input::placeholder, textarea::placeholder { color: #8A8E99; }
input:focus, textarea:focus { outline: 3px solid rgba(0,168,107,.35); outline-offset: 1px; }
.msg { color: var(--red-deep, #B81F24); }
.cta-box .btn-light { background: var(--ink); color: #fff; }
.cta-box .btn-light:hover { background: #2B2E36; }

@media (max-width: 920px) {
  .top .nav { background: #fff; border-bottom-color: var(--line); }
  .top .nav a:not(.btn) { border-bottom-color: var(--line); }
}


/* =====================================================================
   ANIMATIONS ET VISUELS (10/11/2026) — bannière défilante d'aperçus,
   motif de cubes transparent, cartes flottantes, apparitions animées.
   ===================================================================== */
:root { --cubepat: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='45' height='78' viewBox='0 0 45 78'><g transform='translate(22.5 26) scale(.84)'><polygon points='0,-26 22.5,-13 0,0 -22.5,-13' fill='%23FFB300' fill-opacity='.055'/><polygon points='-22.5,-13 0,0 0,26 -22.5,13' fill='%23E5282E' fill-opacity='.055'/><polygon points='22.5,-13 22.5,13 0,26 0,0' fill='%2300A86B' fill-opacity='.055'/></g><g transform='translate(0 65) scale(.84)'><polygon points='0,-26 22.5,-13 0,0 -22.5,-13' fill='%23FFB300' fill-opacity='.055'/><polygon points='-22.5,-13 0,0 0,26 -22.5,13' fill='%23E5282E' fill-opacity='.055'/><polygon points='22.5,-13 22.5,13 0,26 0,0' fill='%2300A86B' fill-opacity='.055'/></g><g transform='translate(45 65) scale(.84)'><polygon points='0,-26 22.5,-13 0,0 -22.5,-13' fill='%23FFB300' fill-opacity='.055'/><polygon points='-22.5,-13 0,0 0,26 -22.5,13' fill='%23E5282E' fill-opacity='.055'/><polygon points='22.5,-13 22.5,13 0,26 0,0' fill='%2300A86B' fill-opacity='.055'/></g></svg>"); --cubepat-w: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='45' height='78' viewBox='0 0 45 78'><g transform='translate(22.5 26) scale(.84)'><polygon points='0,-26 22.5,-13 0,0 -22.5,-13' fill='%23FFFFFF' fill-opacity='.10'/><polygon points='-22.5,-13 0,0 0,26 -22.5,13' fill='%23FFFFFF' fill-opacity='.10'/><polygon points='22.5,-13 22.5,13 0,26 0,0' fill='%23FFFFFF' fill-opacity='.10'/></g><g transform='translate(0 65) scale(.84)'><polygon points='0,-26 22.5,-13 0,0 -22.5,-13' fill='%23FFFFFF' fill-opacity='.10'/><polygon points='-22.5,-13 0,0 0,26 -22.5,13' fill='%23FFFFFF' fill-opacity='.10'/><polygon points='22.5,-13 22.5,13 0,26 0,0' fill='%23FFFFFF' fill-opacity='.10'/></g><g transform='translate(45 65) scale(.84)'><polygon points='0,-26 22.5,-13 0,0 -22.5,-13' fill='%23FFFFFF' fill-opacity='.10'/><polygon points='-22.5,-13 0,0 0,26 -22.5,13' fill='%23FFFFFF' fill-opacity='.10'/><polygon points='22.5,-13 22.5,13 0,26 0,0' fill='%23FFFFFF' fill-opacity='.10'/></g></svg>"); }

/* motif de cubes transparent dans le hero (dérive lentement) */
.hero::after { display: none; }
.bgcubes { position: absolute; left: 0; right: 0; top: -80px; bottom: 0; z-index: -1; pointer-events: none; background-image: var(--cubepat); background-size: 112px 194px; animation: drift 70s linear infinite; -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.45) 50%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.45) 50%, transparent 85%); will-change: transform; }
@keyframes drift { to { background-position: 112px 194px; } }
.dark::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: var(--cubepat); background-size: 112px 194px; opacity: .55; animation: drift 90s linear infinite reverse; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 100%); }
.dark .wrap { z-index: 1; }
.mobile { position: relative; isolation: isolate; }
.mobile::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--cubepat-w); background-size: 112px 194px; animation: drift 80s linear infinite; -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 70%); mask-image: linear-gradient(to left, #000 0%, transparent 70%); }

/* cartes d'aperçu (bannière + hero) */
.mc { flex: none; width: 252px; padding: 14px 16px 15px; border-radius: 18px; background: rgba(255,255,255,.80); border: 1px solid rgba(21,23,28,.08); display: grid; gap: 11px; box-shadow: 0 14px 30px -20px rgba(21,23,28,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mc-h b { display: block; font-size: 14.5px; line-height: 1.25; }
.mc-h small { display: block; font-size: 12px; color: var(--ink-soft); }
.mc-row { display: flex; align-items: center; gap: 12px; }
.mc-row small { display: block; font-size: 12px; color: var(--ink-soft); }
.mc-qr { width: 46px; height: 46px; border-radius: 11px; background: rgba(21,23,28,.06); display: grid; place-items: center; flex: none; }
.mc-qr svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mc-big { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.mc-ring { width: 46px; height: 46px; flex: none; }
.mc-grid { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.mc-grid i { flex: 1; height: var(--h); border-radius: 6px; background: var(--c); opacity: var(--o, .9); }
.mc-lines { display: block; }
.mc-l { display: block; height: 7px; border-radius: 4px; background: rgba(21,23,28,.10); margin-bottom: 6px; }
.mc-l.s { width: 58%; }
.mc-bar { display: block; height: 9px; border-radius: 6px; background: rgba(21,23,28,.08); overflow: hidden; }
.mc-bar i { display: block; height: 100%; border-radius: 6px; background: var(--c); }
.mc-tag { justify-self: start; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: #EEEDE8; color: var(--ink); background: color-mix(in srgb, var(--k) 20%, #fff); color: color-mix(in srgb, var(--k) 50%, #000); }

/* bannière défilante */
.banner { padding: 34px 0 40px; overflow: hidden; background: linear-gradient(180deg, #FDFCFA 0%, #F4F3EE 100%); display: grid; gap: 16px; }
.mrow { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.mtrack { display: flex; gap: 16px; width: max-content; animation: marq 60s linear infinite; }
.mrow.rev .mtrack { animation-direction: reverse; animation-duration: 70s; }
@keyframes marq { to { transform: translateX(calc(-50% - 8px)); } }

/* cartes flottantes du hero */
.fc { position: absolute; z-index: 3; width: 214px; }
.fc .mc { width: 100%; animation: bob 6.5s ease-in-out infinite; }
.fc-a { left: 2%; top: -9%; }
.fc-b { right: -3%; bottom: -62px; }
.fc-b .mc { animation-delay: 1.4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* aperçu du planning : les blocs apparaissent un à un */
.stage .col .blk { animation: pop .7s cubic-bezier(.2,.9,.3,1.2) both; }
.stage .col:nth-child(1) .blk { animation-delay: 1.0s; }
.stage .col:nth-child(2) .blk { animation-delay: 1.2s; }
.stage .col:nth-child(3) .blk { animation-delay: 1.4s; }
.stage .col:nth-child(4) .blk { animation-delay: 1.6s; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.cubebox { transition: transform .25s ease-out; will-change: transform; }

/* panneaux : apparition en zoom, icône qui réagit */
.js .panel.reveal { transform: translateY(46px) scale(.96); }
.js .panel.reveal.in { transform: none; }
.pico { transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.panel:hover .pico { transform: rotate(-8deg) scale(1.1); }
.panel::after { animation: ringmove 9s ease-in-out infinite; }
@keyframes ringmove { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-14px,-10px); } }

/* audit : la barre se remplit, les lignes arrivent */
.js .audit .bar i { width: 0; transition: width 1.8s cubic-bezier(.2,.7,.2,1) .5s; }
.js .audit.in .bar i { width: 72%; }
.js .audit .row { opacity: 0; transform: translateX(14px); transition: opacity .6s ease, transform .6s ease; }
.js .audit.in .row { opacity: 1; transform: none; }
.js .audit.in .row:nth-of-type(1) { transition-delay: .4s; }
.js .audit.in .row:nth-of-type(2) { transition-delay: .6s; }
.js .audit.in .row:nth-of-type(3) { transition-delay: .8s; }
.js .audit.in .row:nth-of-type(4) { transition-delay: 1.0s; }

/* téléphone : le QR bat, les stagiaires se cochent un à un */
.scan { animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.js .phones .li { opacity: 0; transform: translateX(-12px); transition: opacity .5s ease, transform .5s ease; }
.js .phones.in .li { opacity: 1; transform: none; }
.js .phones.in .li:nth-child(4) { transition-delay: .7s; }
.js .phones.in .li:nth-child(5) { transition-delay: 1.0s; }
.js .phones.in .li:nth-child(6) { transition-delay: 1.3s; }

/* cartes et boutons : petit relief au survol */
.btn-primary:hover { transform: translateY(-3px); }
.mc { transition: transform .3s ease; }
.banner .mc:hover { transform: translateY(-4px); }

@media (max-width: 1023px) { .fc { display: none; } }
@media (max-width: 767px) {
  .mc { width: 220px; }
  .banner { padding: 24px 0 28px; gap: 12px; }
  .bgcubes { background-size: 84px 146px; opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  .bgcubes, .dark::after, .mobile::after, .mtrack, .fc .mc, .stage .col .blk, .scan, .panel::after { animation: none !important; }
  .js .audit .bar i { width: 72%; transition: none; }
  .js .audit .row, .js .phones .li, .js .panel.reveal { opacity: 1; transform: none; transition: none; }
}


/* ——— Trois grandes fonctions : panneaux clairs (10/11/2026) ——— */
.panel { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.p-f { background: linear-gradient(165deg, #E8F6EF 0%, #FFFFFF 62%); border-color: rgba(0,168,107,.28); }
.p-g { background: linear-gradient(165deg, #FDEBEC 0%, #FFFFFF 62%); border-color: rgba(229,40,46,.26); }
.p-q { background: linear-gradient(165deg, #FFF4D6 0%, #FFFFFF 62%); border-color: rgba(255,179,0,.38); color: var(--ink); }
.panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--pc); }
.p-f { --pc: #00A86B; } .p-g { --pc: #E5282E; } .p-q { --pc: #FFB300; }
.panel::after { border-color: color-mix(in srgb, var(--pc) 12%, transparent); }
.p-q::after { border-color: color-mix(in srgb, var(--pc) 16%, transparent); }
.p-f .tagline { color: var(--green-deep); } .p-g .tagline { color: #B81F24; } .p-q .tagline { color: var(--yellow-deep); }
.tagline { opacity: 1; }
.panel li, .p-q li { border-top-color: rgba(21,23,28,.10); }
.panel li span { opacity: 1; color: var(--ink-soft); }
.panel li b { color: var(--ink); }

/* titre + accroche des panneaux : bloc de hauteur fixe pour aligner les listes */
.panel h3 { min-height: 0; }
.phead { min-height: 9.2rem; }
@media (max-width: 1023px) { .phead { min-height: 0; } }

/* ——— Le nom : Fosea décliné (Fo = Formation, Sé = Sécurité, A = Agrément) ——— */
.name-sec { padding: 96px 0 40px; }
.name-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.nm { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px 28px; position: relative; overflow: hidden; }
.nm::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--c); }
.nm-fo { --c: var(--green); --cd: var(--green-deep); }
.nm-se { --c: var(--yellow); --cd: var(--yellow-deep); }
.nm-ag { --c: var(--yellow); --cd: var(--yellow-deep); }
.nm-word { margin: 0 0 14px; font-family: var(--wordmark); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.05; color: var(--ink); }
.nm-word b { font-weight: 400; color: var(--cd); border-bottom: 3px solid var(--c); padding-bottom: 1px; }
.nm-line { margin: 0 0 10px; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.nm p:last-child { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 860px) { .name-grid { grid-template-columns: 1fr; } .name-sec { padding: 72px 0 24px; } }


/* ——— Bannières photo (pleine largeur, apparaissent seulement si la photo est présente) ——— */
.pband { padding: 0; display: none; }
.pband.on { display: block; }
.pband figure { position: relative; margin: 0; height: clamp(240px, 34vw, 470px); overflow: hidden; background: #E9E8E4; }
.pband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.pband figcaption {
  position: absolute; left: max(24px, calc((100% - 1160px) / 2 + 24px)); bottom: 28px; max-width: min(440px, calc(100% - 48px));
  background: rgba(255,255,255,.95); border-radius: 18px; padding: 18px 22px 18px 24px; border-left: 5px solid var(--c, var(--green));
}
.pband figcaption span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.pband figcaption p { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.25; }
@media (max-width: 640px) { .pband figcaption { left: 16px; right: 16px; bottom: 16px; max-width: none; padding: 14px 16px 14px 18px; } .pband figure { height: clamp(260px, 62vw, 340px); } .pband img { object-position: 60% 50%; } }


/* ——— Boutons « App Store » et « Google Play » (logos en une couleur ; à remplacer par les badges officiels à la publication de l'application) ——— */
.store { gap: 12px; padding: 8px 22px 8px 16px; min-height: 56px; border-radius: 14px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store > span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.store b { font-size: 18px; font-weight: 700; letter-spacing: -.005em; }
.store em { font-style: normal; font-size: 11px; font-weight: 500; opacity: .8; }
@media (max-width: 420px) { .stores { gap: 10px; } .store { flex: 1 1 100%; } }




/* ——— En un coup d'œil : huit tuiles ——— */
.glance { padding: 96px 0; }
.glance .head { max-width: 720px; margin-bottom: 40px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow); }
.tile .ti { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px; color: #fff; background: var(--c, var(--green)); }
.tile .ti svg { width: 26px; height: 26px; }
.tile h3 { font-size: 1.5rem; line-height: 1.1; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; }
@media (max-width: 1023px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } .glance { padding: 72px 0; } }

/* ——— Vos données : France et RGPD ——— */
.donnees { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.donnees .head { max-width: 720px; margin-bottom: 40px; }
.dgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dcard { background: var(--ivory); border-radius: var(--radius); padding: 24px 22px 26px; border-top: 5px solid var(--c, var(--green)); }
.dico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--c, var(--green)); margin-bottom: 14px; }
.dico svg { width: 24px; height: 24px; }
.dcard h3 { font-size: 1.5rem; line-height: 1.1; margin-bottom: 8px; }
.dcard p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; }
@media (max-width: 1023px) { .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dgrid { grid-template-columns: 1fr; } }


/* ——— Formulaire de contact : champs obligatoires, erreurs, piège anti-robots ——— */
input, textarea { min-height: 48px; }
.req { color: var(--red-deep, #B81F24); font-style: normal; font-weight: 700; }
.err { color: var(--red-deep, #B81F24); font-size: 13px; font-weight: 600; min-height: 0; line-height: 1.3; }
.err:empty { display: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red, #E5282E); box-shadow: 0 0 0 1px var(--red, #E5282E); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legende { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.msg.ok { color: var(--green-deep, #007A52); font-weight: 600; }


/* Légende sous la photo (jamais par-dessus : elle cacherait l'écran de la tablette) */
.pband figure { height: auto; overflow: visible; background: transparent; }
.pband .pimg { position: relative; height: clamp(240px, 34vw, 470px); overflow: hidden; background: #E9E8E4; }
.pband figcaption { position: static; max-width: 1112px; width: calc(100% - 48px); margin: 18px auto 0; background: transparent; border-radius: 0; padding: 4px 0 4px 18px; border-left: 5px solid var(--c, var(--green)); display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.pband figcaption span { margin: 0; white-space: nowrap; }
.pband figcaption p { font-size: clamp(1rem, 1.8vw, 1.25rem); }
@media (max-width: 640px) { .pband .pimg { height: clamp(220px, 58vw, 320px); } .pband figcaption { width: calc(100% - 32px); flex-direction: column; gap: 4px; } }

.pband .pimg { height: clamp(260px, 39vw, 560px); }
.pband img { object-position: center 62%; }
@media (max-width: 640px) { .pband .pimg { height: clamp(230px, 62vw, 330px); } .pband img { object-position: 58% 60%; } }


/* ——— Bandeau d'accueil : texte plus large, mieux réparti sur la largeur de la page ——— */
.hero .cta { padding: 0; }
.hero h1 { font-size: clamp(2.2rem, 3.9vw, 3.9rem); line-height: 1.08; letter-spacing: -.025em; }
.hero .lead { max-width: 36em; }
@media (min-width: 921px) {
  .hero .wrap { max-width: 1320px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 48px; }
  .hero h1 { max-width: 13.5em; }
}
@media (max-width: 920px) { .hero h1 { font-size: clamp(2.3rem, 9vw, 3.4rem); } }

/* ——— Sociétés derrière Fosea, sous les boutons du bandeau ——— */
.by { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.by img { width: auto; max-width: 160px; object-fit: contain; }
.by-x { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1; color: var(--ink-soft); }
@media (max-width: 520px) { .by { gap: 8px 10px; } .by img { max-width: 130px; } }

/* La zone de contact ne doit jamais défiler toute seule (cela masquait son titre) */
.cta-box { overflow: clip; }

.by .by-cofac { height: 72px; margin: -14px -8px; max-width: 200px; }
.by img[alt="Groupe SAFECO"] { height: 40px; max-width: 170px; }
@media (max-width: 520px) { .by .by-cofac { height: 62px; max-width: 160px; margin: -12px -6px; } }


/* ——— Collaboration COFAC Performance × groupe SAFECO : un seul panneau sobre ——— */
.collab { padding: 72px 0; }
.collab-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.collab-txt h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
.collab-txt .lead { margin: 16px 0 0; max-width: 24em; }
.collab-duo { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.duo-item { padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.duo-item + .duo-item { border-left: 1px solid var(--line); }
.duo-item img { height: 54px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.duo-item p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.duo-item p b { display: block; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 920px) { .collab-in { grid-template-columns: 1fr; gap: 28px; } .collab { padding: 56px 0; } }
@media (max-width: 520px) { .collab-duo { grid-template-columns: 1fr; } .duo-item + .duo-item { border-left: 0; border-top: 1px solid var(--line); } }

/* Logo COFAC rogné : plus besoin de marges négatives */
.by .by-cofac { height: 46px; margin: 0; max-width: 200px; }
.by img[alt="Groupe SAFECO"] { height: 38px; }
@media (max-width: 520px) { .by .by-cofac { height: 42px; margin: 0; } }
.duo-item img { height: 50px; }


/* Données : six garanties (3 colonnes) et phrase de synthèse */
.dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dnote { margin: 28px 0 0; padding: 16px 20px; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
@media (max-width: 1023px) { .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .dgrid { grid-template-columns: 1fr; } }


/* ═════════ STYLE « ÉDITORIAL » (choisi par David le 11/11/2026) : filet gris fin, angles presque droits, couleur réduite à un point, à une barre ou à une icône.
   Remplace les cartes à liseré coloré en haut (héritées de SAFECO 360). ═════════ */
:root { --filet: rgba(21, 23, 28, .16); --angle: 6px; }

/* Cartes du bandeau animé et du hero */
.mc { border-radius: var(--angle); background: #fff; border: 1px solid var(--filet); border-top: 1px solid var(--filet); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 15px 17px 16px; }
.mc-h b { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.mc-h b::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.mc-h small { font-size: 14px; font-weight: 600; color: var(--ink); }
.mc-qr { border-radius: 4px; } .mc-l { border-radius: 2px; } .mc-grid i { border-radius: 2px; }
.mc-bar { height: 5px; border-radius: 0; } .mc-bar i { border-radius: 0; }
.mc-tag { background: none !important; border-radius: 0; padding: 0 0 2px; border-bottom: 2px solid var(--k); color: var(--ink); font-size: 13px; }

/* Les trois grandes fonctions */
.panel { border-radius: 8px; background: #fff !important; border: 1px solid var(--filet) !important; box-shadow: none; }
.panel::before, .panel::after { display: none !important; }
.panel li { border-top-color: rgba(21, 23, 28, .12); }
.panel h3 { padding-bottom: 14px; border-bottom: 2px solid var(--pc); display: inline-block; min-height: 0; }
.phead { align-self: flex-start; }

/* Huit tuiles */
.tile { border-radius: var(--angle); border: 1px solid var(--filet); }
.tile:hover { transform: translateY(-3px); box-shadow: none; border-color: var(--ink); }
.tile .ti { width: auto; height: auto; border-radius: 0; background: none; color: var(--c, var(--green)); margin-bottom: 14px; }
.tile .ti svg { width: 30px; height: 30px; }
.tile h3 { font-size: 1.55rem; }
.tile::before { content: ''; display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--green)); margin-bottom: 14px; }
.tile .ti { display: none; }

/* Garanties sur les données */
.dcard { background: #fff; border: 1px solid var(--filet); border-top: 1px solid var(--filet); border-radius: var(--angle); }
.dico { border-radius: 0; border: 0; background: none; width: auto; height: auto; margin-bottom: 14px; }
.dico svg { width: 30px; height: 30px; }

/* Formules */
.plan { border-radius: 8px; border: 1px solid var(--filet); }
.plan:hover { transform: translateY(-3px); }
.plan.best { background: #fff; border: 2px solid var(--ink); box-shadow: none; }
.plan .badge { border-radius: 0; background: var(--ink); }
.plan.best li::before { background: var(--ink); }

/* Section « Le nom » : Fo vert, Sé rouge, A jaune (couleurs du cube) */
.nm { border-radius: 8px; border: 1px solid var(--filet); }
.nm::before { display: none; }
.nm-se { --c: var(--red); --cd: var(--red-deep); }
.nm-word b { border-bottom-width: 2px; }

/* Partenaires, légendes, zone de contact */
.collab-duo { border-radius: 8px; border-color: var(--filet); }
.cta-box { border-radius: 12px; }
.pband figcaption { border-left-width: 3px; }


/* Bandeau animé : le décalage est calculé par le script (largeur exacte d'un jeu de cartes) ; sans script, l'ancien réglage (moitié de la piste) reste valable */
@keyframes marq2 { to { transform: translateX(calc(var(--decalage) * -1)); } }
.js .mtrack { animation-name: marq2; animation-timing-function: linear; animation-iteration-count: infinite; }


/* Mobile et tablette : textes plus lisibles dans les boutons des boutiques, zones de toucher de 44 px pour le logo */
.store small, .store em { font-size: 12.5px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; }


/* Bouton flottant « Revenir en haut » */
.haut { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--filet, rgba(21,23,28,.16)); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px -10px rgba(21,23,28,.35); opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.haut[hidden] { display: none; }
.haut.on { opacity: 1; transform: none; }
.haut:hover { background: var(--green); border-color: var(--green); color: #fff; }
.haut svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .haut { right: 14px; bottom: 14px; width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .haut { transition: none; } }

/* Fond du hero (11/11/2026, demande de David : « pas fan des cubes ») : photo haute définition d'un testeur avec sa tablette devant un chariot,
   très estompée et fondue vers la gauche pour que le titre reste lisible. Les sections « dark » et « mobile » gardent leur propre fond. */
.bgcubes {
  background-image: url(photos/terrain.jpg); background-size: cover; background-position: 62% 40%; background-repeat: no-repeat;
  animation: none; opacity: .13; top: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0,0,0,.6) 58%, #000 78%), linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0,0,0,.6) 58%, #000 78%), linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
@media (max-width: 1023px) { .bgcubes { opacity: .12; background-position: 70% 30%; -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); } }
