/* mymarches – site de présentation. Charte : bleu nuit du logo (#082251) et bleu vif (#2d89fe). */
/*@polices*/
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("/fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("/fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
/*@fin-polices*/

:root {
  --nuit: #082251; --bleu: #2d89fe; --lien: #1660cf;
  --fond: #ffffff; --fond-2: #f2f6fc; --surface: #ffffff; --surface-2: #f7f9fd;
  --texte: #10203f; --texte-2: #485877; --texte-3: #6e7c95; --bord: #dde4ef; --bord-2: #eaeff6;
  --bande: #082251; --bande-texte: #d9e3f3; --bande-titre: #ffffff; --bande-bord: rgba(255,255,255,.14);
  --barre: rgba(255,255,255,.92); --ombre: 0 1px 2px rgba(8,34,81,.06), 0 12px 32px -12px rgba(8,34,81,.18);
  --ok: #1e7b45; --ok-f: #e4f4ea; --att: #8a5a00; --att-f: #fdf1d6; --info-f: #e6f0ff; --violet: #5b3fb0; --violet-f: #eeeafb;
  --titres: "Outfit", "Segoe UI", system-ui, sans-serif;
  --corps: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lien: #7cb4ff; --fond: #081430; --fond-2: #0c1b3d; --surface: #102249; --surface-2: #0d1d40;
    --texte: #e9eff9; --texte-2: #aebcd4; --texte-3: #8595b2; --bord: #223a68; --bord-2: #1a2f57;
    --bande: #0f2654; --barre: rgba(8,20,48,.9); --ombre: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    --ok: #6fd39a; --ok-f: #133a2a; --att: #f2c565; --att-f: #3b2f12; --info-f: #16305e; --violet: #b8a6f5; --violet-f: #2a2350;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --lien: #7cb4ff; --fond: #081430; --fond-2: #0c1b3d; --surface: #102249; --surface-2: #0d1d40;
  --texte: #e9eff9; --texte-2: #aebcd4; --texte-3: #8595b2; --bord: #223a68; --bord-2: #1a2f57;
  --bande: #0f2654; --barre: rgba(8,20,48,.9); --ombre: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  --ok: #6fd39a; --ok-f: #133a2a; --att: #f2c565; --att-f: #3b2f12; --info-f: #16305e; --violet: #b8a6f5; --violet-f: #2a2350;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 17px/1.6 var(--corps); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--lien); }
h1, h2, h3 { font-family: var(--titres); color: var(--texte); margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.06; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cadre { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sur-titre { font: 600 .8rem/1 var(--titres); text-transform: uppercase; letter-spacing: .14em; color: var(--bleu); display: inline-flex; align-items: center; gap: 10px; }
.sur-titre::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.mymarches { font-family: var(--titres); font-weight: 700; color: var(--texte); white-space: nowrap; }
.mymarches b { color: var(--bleu); font-weight: 700; }

/* Logo : version claire / sombre */
.logo-sombre { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-clair { display: none; } :root:not([data-theme="light"]) .logo-sombre { display: block; } }
:root[data-theme="dark"] .logo-clair { display: none; }
:root[data-theme="dark"] .logo-sombre { display: block; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--corps); text-decoration: none; border-radius: 10px; padding: 15px 22px; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn-plein { background: var(--bleu); color: #fff; }
.btn-plein:hover { background: #1874ea; transform: translateY(-1px); }
.btn-ligne { color: var(--texte); border-color: var(--bord); background: var(--surface); }
.btn-ligne:hover { border-color: var(--bleu); }
.btn .fleche { transition: transform .15s; }
.btn:hover .fleche { transform: translateX(3px); }

/* En-tête */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--barre); z-index: 50; }
.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--barre); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--bord-2); }
.entete .cadre { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.entete .marque { display: block; flex: none; line-height: 0; }
.entete .marque img { height: 34px; width: auto; }
.menu { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.menu a { color: var(--texte-2); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 12px; border-radius: 8px; }
.menu a:hover { color: var(--texte); background: var(--fond-2); }
.menu .connexion { color: var(--texte); display: inline-flex; align-items: center; gap: 7px; }
.menu .sep { width: 1px; height: 22px; background: var(--bord); margin: 0 6px; }
.menu .btn { padding: 11px 16px; font-size: .95rem; margin-left: 4px; }
.menu .btn:hover { background: #1874ea; color: #fff; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--bord); color: var(--texte); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }

/* Ouverture */
.ouverture { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); background:
  radial-gradient(900px 420px at 92% -10%, color-mix(in srgb, var(--bleu) 16%, transparent), transparent 70%),
  linear-gradient(var(--fond), var(--fond-2)); }
.ouverture .cadre { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ouverture h1 .accent { color: var(--bleu); }
.ouverture .chapo { font-size: 1.28rem; line-height: 1.5; color: var(--texte); margin-top: 24px; max-width: 34ch; font-weight: 600; }
.ouverture .complement { color: var(--texte-2); margin-top: 16px; max-width: 52ch; }
.ouverture .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Illustration : planning consolidé */
.planning { background: var(--surface); border: 1px solid var(--bord); border-radius: 16px; box-shadow: var(--ombre); padding: 20px 20px 16px; min-width: 0; font-size: .86rem; }
.planning .tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.planning .tete strong { font-family: var(--titres); font-size: 1.02rem; color: var(--texte); }
.planning .tete span { color: var(--texte-3); font-size: .8rem; }
.grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); row-gap: 8px; column-gap: 14px; align-items: center; }
.mois { display: grid; grid-template-columns: repeat(12, 1fr); color: var(--texte-3); font-size: .7rem; font-weight: 600; text-align: center; letter-spacing: .04em; }
.ligne-marche { min-width: 0; }
.ligne-marche .objet { font-weight: 600; color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ligne-marche .meta { display: flex; gap: 6px; align-items: center; margin-top: 2px; flex-wrap: wrap; }
.pastille { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; letter-spacing: .01em; }
.p-reno { background: var(--info-f); color: var(--lien); }
.p-recon { background: var(--ok-f); color: var(--ok); }
.p-nouv { background: var(--violet-f); color: var(--violet); }
.p-proc { color: var(--texte-3); font-size: .7rem; }
.piste { position: relative; height: 26px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--surface-2) 0 calc(100%/12 - 1px), var(--bord-2) calc(100%/12 - 1px) calc(100%/12)); }
.barre-g { position: absolute; top: 5px; bottom: 5px; border-radius: 5px; background: var(--bleu); }
.barre-g.recon { background: color-mix(in srgb, var(--ok) 80%, var(--surface)); }
.barre-g.nouv { background: color-mix(in srgb, var(--violet) 85%, var(--surface)); }
.barre-g.attente { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--violet) 70%, var(--surface)) 0 6px, color-mix(in srgb, var(--violet) 40%, var(--surface)) 6px 12px); }
.planning .pied { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--bord-2); color: var(--texte-2); font-size: .8rem; }
.planning .pied b { color: var(--texte); font-family: var(--titres); }
.legende { display: flex; gap: 12px; flex-wrap: wrap; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.teinte { background: var(--fond-2); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.intro h2 { margin-top: 14px; }
.intro p { color: var(--texte-2); font-size: 1.1rem; max-width: 58ch; }
.intro p strong, .approche strong { color: var(--texte); }

.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; padding: 28px 26px; min-width: 0; }
.carte .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--info-f); color: var(--lien); display: grid; place-items: center; margin-bottom: 20px; }
.carte h3 { margin-bottom: 10px; }
.carte p { color: var(--texte-2); }

/* Fonctionnalités */
.fonctions { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.fonctions .gauche { position: sticky; top: 112px; }
.fonctions .gauche h2 { margin-top: 14px; }
.fonctions .gauche .btn { margin-top: 28px; }
.liste-f { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bord); }
.liste-f li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 20px; padding: 26px 0; border-bottom: 1px solid var(--bord); }
.liste-f .num { font: 600 .95rem/1.5 var(--titres); color: var(--bleu); padding-top: 2px; letter-spacing: .04em; }
.liste-f h3 { font-size: 1.3rem; margin-bottom: 8px; }
.liste-f p { color: var(--texte-2); max-width: 60ch; }
.choix { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Parcours */
.parcours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: etape; position: relative; }
.parcours li { position: relative; padding-top: 64px; min-width: 0; }
.parcours li::before { counter-increment: etape; content: counter(etape); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--nuit); color: #fff; font: 700 1.1rem/44px var(--titres); text-align: center; box-shadow: 0 0 0 6px var(--fond); z-index: 1; }
.parcours li::after { content: ""; position: absolute; top: 21px; left: 44px; right: -20px; height: 2px; background: repeating-linear-gradient(90deg, var(--bleu) 0 8px, transparent 8px 14px); opacity: .55; }
.parcours li:last-child::after { display: none; }
.parcours li:last-child::before { background: var(--bleu); }
.parcours h3 { margin-bottom: 10px; }
.parcours p { color: var(--texte-2); }

/* Acteurs */
.acteurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.acteur { background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; padding: 24px 22px 26px; min-width: 0; border-top: 4px solid var(--bleu); }
.acteur:nth-child(2) { border-top-color: var(--nuit); }
.acteur:nth-child(3) { border-top-color: var(--ok); }
.acteur:nth-child(4) { border-top-color: var(--violet); }
:root[data-theme="dark"] .acteur:nth-child(2) { border-top-color: #7cb4ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .acteur:nth-child(2) { border-top-color: #7cb4ff; } }
.acteur .role { font: 600 .74rem/1 var(--titres); text-transform: uppercase; letter-spacing: .12em; color: var(--texte-3); }
.acteur h3 { margin: 12px 0 10px; }
.acteur p { color: var(--texte-2); }

/* Approche (bande bleu nuit) */
.approche { background: var(--bande); color: var(--bande-texte); position: relative; overflow: hidden; }
.approche::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgba(45,137,254,.12); pointer-events: none; }
.approche .cadre { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; position: relative; z-index: 1; }
.approche h2 { color: var(--bande-titre); margin-top: 14px; }
.approche p { font-size: 1.12rem; margin-top: 20px; max-width: 54ch; }
.approche p strong { color: #fff; }
.approche .sur-titre { color: #7cb4ff; }
.conviction { margin: 0; border-left: 3px solid var(--bleu); padding: 8px 0 8px 28px; font: 500 clamp(1.3rem, 2.4vw, 1.7rem)/1.4 var(--titres); color: #fff; text-wrap: pretty; }
.conviction span { display: block; font: 600 .8rem/1 var(--titres); text-transform: uppercase; letter-spacing: .14em; color: #7cb4ff; margin-bottom: 16px; }

.lien-aptilis { color: inherit; text-decoration: underline; text-decoration-color: var(--bleu); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lien-aptilis:hover { color: var(--bleu); }
.approche .lien-aptilis:hover { color: #7cb4ff; }
.btn-bande { margin-top: 28px; color: #fff; border-color: rgba(255,255,255,.35); background: transparent; white-space: normal; text-align: left; }
.btn-bande:hover { border-color: #7cb4ff; background: rgba(255,255,255,.06); }

/* Démonstration */
.demo .cadre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.demo h2 { margin-top: 14px; }
.demo .texte p { color: var(--texte-2); font-size: 1.12rem; margin-top: 18px; max-width: 46ch; }
.demo .texte p.fort { color: var(--texte); font-weight: 600; }
.formulaire { background: var(--surface); border: 1px solid var(--bord); border-radius: 16px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--ombre); display: grid; gap: 16px; min-width: 0; }
.formulaire .deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.formulaire label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--texte); min-width: 0; }
.formulaire label small { font-weight: 400; color: var(--texte-3); }
.formulaire input, .formulaire textarea, .formulaire select { font: inherit; font-size: 1rem; color: var(--texte); background: var(--fond); border: 1.5px solid var(--bord); border-radius: 9px; padding: 11px 13px; width: 100%; min-width: 0; }
.formulaire textarea { min-height: 104px; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus { border-color: var(--bleu); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bleu) 25%, transparent); }
.formulaire .accord { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--texte-2); font-size: .88rem; }
.formulaire .accord input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--bleu); }
.formulaire .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .btn { justify-self: start; }
.message { border-radius: 10px; padding: 14px 16px; font-size: .95rem; }
.message.ok { background: var(--ok-f); color: var(--ok); }
.message.err { background: #fdecea; color: #a1281d; }

/* Pied de page */
.pied-page { background: var(--fond-2); border-top: 1px solid var(--bord); padding-block: 36px; color: var(--texte-2); font-size: .95rem; }
.pied-page .cadre { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pied-page .signature { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pied-page .signature img { height: 26px; width: auto; }
.pied-page nav { display: flex; gap: 22px; flex-wrap: wrap; }
.pied-page nav a { color: var(--texte-2); text-decoration: none; }
.pied-page nav a:hover { color: var(--texte); text-decoration: underline; }

/* Pages légales */
.legal { padding-block: 56px 88px; }
.legal .cadre { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--texte-2); }
.legal p + p { margin-top: 10px; }
.legal .a-completer { background: var(--att-f); color: var(--att); padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* Petits écrans */
@media (max-width: 1020px) {
  .acteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parcours { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .parcours li:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
  .burger { display: grid; place-items: center; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--fond); border-bottom: 1px solid var(--bord); padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); box-shadow: var(--ombre); }
  .menu.ouvert { display: flex; }
  .menu a { padding: 12px; }
  .menu .sep { display: none; }
  .menu .btn { margin: 8px 0 0; }
  .ouverture .cadre, .intro, .fonctions, .approche .cadre, .demo .cadre { grid-template-columns: minmax(0, 1fr); }
  .fonctions .gauche { position: static; }
  .trois { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .entete .marque img { height: 28px; }
  .acteurs, .parcours, .formulaire .deux { grid-template-columns: minmax(0, 1fr); }
  .parcours li::after { display: none; }
  .liste-f li { grid-template-columns: minmax(0, 1fr); }
  .grille { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .grille .mois-vide { display: none; }
  .grille .piste { margin-bottom: 8px; }
  .ouverture .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .btn .fleche { transition: none; } }

/* Liens vers les autres solutions Aptilis (Stellys, Carto-achats) */
.autres-solutions { margin-top: 18px; font-size: .95rem; color: var(--texte-2); }
.approche .autres-solutions { color: rgba(255,255,255,.8); }
.pied-page nav.solutions { flex-basis: 100%; border-top: 1px solid var(--bord); padding-top: 14px; font-size: .88rem; }
