/* Site de Sine Nomine : palette du logo, bleu marine #16394d et jaune #edca0c.
   Contrastes : marine sur blanc 11,9 ; jaune sur marine 7,5. Le jaune ne sert jamais de texte sur fond clair. */
:root {
  --bleu: #16394d; --bleu-fonce: #0e2735; --jaune: #edca0c; --jaune-doux: #fff6cc; --jaune-texte: #7a5f00;
  --fond: #f2f5f7; --carte: #ffffff; --texte: #12212b; --discret: #4b6070; --bordure: #d3dde4; --ok: #1e7a46;
  --ombre: 0 1px 2px rgba(14, 39, 53, .06), 0 8px 24px rgba(14, 39, 53, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--texte); background: var(--fond); }
a { color: var(--bleu); text-underline-offset: .2em; }
a:hover { color: var(--bleu-fonce); }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
.aller-contenu { position: absolute; left: -999px; top: 0; background: var(--jaune); color: var(--bleu-fonce); padding: .6rem 1rem; z-index: 10; }
.aller-contenu:focus { left: 1rem; top: 1rem; }

/* En-tête */
.entete { background: var(--bleu); border-bottom: 4px solid var(--jaune); }
.entete-interieur { max-width: 1080px; margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.marque img { height: 44px; width: auto; }
.menu { display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; margin-left: auto; align-items: center; }
.menu a { color: #fff; text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--jaune); color: #fff; }
.langue { display: inline-flex; gap: .4rem; }
.langue a { display: inline-block; border: 2px solid transparent; border-radius: 4px; line-height: 0; padding: 2px; }
.langue a[aria-current="true"] { border-color: var(--jaune); }
.langue svg { width: 32px; height: 22px; display: block; border-radius: 2px; }

/* Mise en page */
main { max-width: 1080px; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; }
h1, h2, h3 { color: var(--bleu); line-height: 1.25; }
h1 { font-size: 2.2rem; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--jaune); margin-top: .5rem; border-radius: 2px; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.heros { background: var(--bleu); color: #fff; border-radius: 16px; padding: 3rem 2rem; margin-bottom: 2rem; box-shadow: var(--ombre); }
.heros h1 { color: #fff; font-size: 2.5rem; max-width: 22ch; }
.heros p { max-width: 62ch; font-size: 1.15rem; color: #e3edf3; }
.heros .discret { color: #b9cdd9; font-size: .95rem; }
.bouton { display: inline-block; background: var(--jaune); color: var(--bleu-fonce); font-weight: 700; padding: .8rem 1.6rem; border-radius: 10px; text-decoration: none; border: 0; font-size: 1.05rem; cursor: pointer; }
.bouton:hover { background: #f6d73a; color: var(--bleu-fonce); }
.bouton[aria-disabled="true"], .bouton:disabled { background: #cfd8de; color: #5d707e; cursor: not-allowed; }
.bouton-secondaire { background: transparent; color: #fff; border: 2px solid #fff; margin-left: .75rem; }
.bouton-secondaire:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.grille { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.carte { background: var(--carte); border: 1px solid var(--bordure); border-radius: 14px; padding: 1.4rem 1.5rem; box-shadow: var(--ombre); }
.carte h3 { margin-top: 0; }
.carte p:last-child { margin-bottom: 0; }
.etapes { counter-reset: etape; list-style: none; padding: 0; display: grid; gap: 1rem; }
.etapes li { counter-increment: etape; background: var(--carte); border: 1px solid var(--bordure); border-radius: 14px; padding: 1rem 1.25rem 1rem 4rem; position: relative; }
.etapes li::before { content: counter(etape); position: absolute; left: 1.1rem; top: 1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--bleu); color: #fff; font-weight: 700; display: grid; place-items: center; }
.etapes code, code { background: #e6eef3; padding: .1em .4em; border-radius: 4px; font-size: .92em; }
pre { background: var(--bleu-fonce); color: #e8eef2; padding: 1rem; border-radius: 10px; overflow-x: auto; }
pre code { background: none; padding: 0; }
.alerte { background: var(--jaune-doux); border-left: 5px solid #b99a00; color: #3d3000; padding: 1rem 1.25rem; border-radius: 8px; margin: 1.5rem 0; }
.a-completer { background: #fbe98a; color: var(--jaune-texte); font-weight: 700; padding: 0 .3em; border-radius: 3px; }
.discret { color: var(--discret); }
table { border-collapse: collapse; width: 100%; background: var(--carte); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--bordure); vertical-align: top; }
th { background: #e6eef3; color: var(--bleu); }
.telechargement { background: var(--carte); border: 2px solid var(--bleu); border-radius: 16px; padding: 1.75rem; box-shadow: var(--ombre); }
.telechargement label { display: flex; gap: .7rem; align-items: flex-start; margin: 1rem 0 1.25rem; cursor: pointer; }
.telechargement input[type=checkbox] { width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--bleu); flex-shrink: 0; }
.empreinte { word-break: break-all; font-family: Consolas, monospace; font-size: .88rem; }
.texte-long { max-width: 74ch; }

/* Pied de page */
.pied { background: var(--bleu-fonce); color: #c9d8e1; border-top: 4px solid var(--jaune); }
.pied-interieur { max-width: 1080px; margin: 0 auto; padding: 1.75rem 1.25rem; display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; font-size: .92rem; }
.pied a { color: #fff; }
.pied img { height: 44px; width: auto; border-radius: 6px; }
.pied nav { display: flex; gap: .4rem 1.25rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .heros { padding: 2rem 1.25rem; }
  .heros h1 { font-size: 1.9rem; }
  .bouton-secondaire { margin: .75rem 0 0; }
  .menu { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* === Ajouts site commercial === */
/* Ajouts pour le site de vente : même palette, mêmes contrastes que ci-dessus. */
.sr-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.chapeau { font-size: 1.2rem; color: var(--discret); }
.precision { max-width: 74ch; margin-top: 1rem; }
section { margin-bottom: .5rem; }
.heros h1 { font-size: 2.3rem; max-width: 26ch; }
.mention-france { display: flex; align-items: center; gap: .7rem; color: #fff !important; font-weight: 600; }
.pastille-france { flex: 0 0 auto; width: 30px; height: 20px; border-radius: 3px; background: linear-gradient(90deg, #0055a4 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.actions .bouton-secondaire { margin-left: 0; }
.lien-fort { font-weight: 700; }
.heros .lien-fort { color: #fff; }
.bouton-contour { background: transparent; border: 2px solid var(--bleu); color: var(--bleu); }
.bouton-contour:hover { background: var(--bleu); color: #fff; }
.menu .menu-achat { background: var(--jaune); color: var(--bleu-fonce); font-weight: 700; padding: .3rem .9rem; border-radius: 8px; border-bottom: 0; }
.menu .menu-achat:hover, .menu .menu-achat[aria-current="page"] { background: #f6d73a; color: var(--bleu-fonce); border-bottom: 0; }
.mise-en-avant { font-size: 1.3rem; font-weight: 700; color: var(--bleu); background: var(--carte); border-left: 6px solid var(--jaune); border-radius: 8px; padding: 1rem 1.4rem; box-shadow: var(--ombre); max-width: 60ch; }
.bande { background: #e6eef3; border-radius: 16px; padding: 1.5rem 2rem 2rem; margin: 2.5rem 0 1rem; }
.bande h2 { margin-top: 0; }
.coches { list-style: none; padding-left: 0; }
.coches li { position: relative; padding-left: 2rem; margin: .5rem 0; }
.coches li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ok); color: #fff; font-size: .85rem; line-height: 1.4rem; text-align: center; font-weight: 700; }
.a-completer { display: inline-block; }

/* Schéma de fonctionnement */
.schema { margin: 2rem 0 1rem; background: var(--carte); border: 1px solid var(--bordure); border-radius: 16px; padding: 1.25rem; box-shadow: var(--ombre); }
.schema-entete { display: flex; flex-direction: column; margin-bottom: 1rem; color: var(--bleu); }
.schema-entete strong { font-size: 1.15rem; }
.schema-entete span { color: var(--discret); font-size: .95rem; }
.schema-grille { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr; grid-template-rows: 2.6rem auto auto auto; row-gap: .6rem; align-items: stretch; }
.zone { border-radius: 14px; padding: .6rem .9rem; z-index: 0; margin: -.2rem -.3rem; }
.zone-titre { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.zone-local { grid-column: 1 / 6; grid-row: 1 / 5; background: #f0f8f7; border: 2px solid #8cc9c4; }
.zone-local .zone-titre { color: #075a63; }
.zone-ligne { grid-column: 7; grid-row: 1 / 5; background: #f4f2fd; border: 2px solid #b6aef0; }
.zone-ligne .zone-titre { color: #3f33a0; }
.bloc, .note-table { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; border-radius: 12px; padding: .8rem .6rem; background: #fff; border: 2px solid #8da3b0; color: var(--texte); font-weight: 600; min-height: 4.6rem; }
.bloc b { font-size: 1.05rem; }
.bloc span:not(.etiq) { font-weight: 500; font-size: .92rem; }
.b-sn1 { background: #087f8c; border-color: #087f8c; color: #fff; }
.b-sn2 { background: #18775c; border-color: #18775c; color: #fff; }
.b-lisible { background: #e1f3eb; border-color: #18775c; }
.b-ia { background: #fff; border-color: #6b5bd2; }
.note-table { background: transparent; border: 0; min-height: 0; font-size: .92rem; font-weight: 700; color: #075a63; padding: .2rem; }
.note-table::before { content: "🔒 "; }
.etiq { display: none; }
.fleche { position: relative; z-index: 1; display: grid; place-items: center; font-size: 1.9rem; font-weight: 700; color: var(--bleu); line-height: 1; }
.b-docs { grid-column: 1; grid-row: 2; } .f-a1 { grid-column: 2; grid-row: 2; } .b-sn1 { grid-column: 3; grid-row: 2; }
.f-a2 { grid-column: 4; grid-row: 2; } .b-fich { grid-column: 5; grid-row: 2; } .f-a3 { grid-column: 6; grid-row: 2; }
.b-ia { grid-column: 7; grid-row: 2 / 5; } .note-table { grid-column: 3; grid-row: 3; }
.b-lisible { grid-column: 1; grid-row: 4; } .f-r3 { grid-column: 2; grid-row: 4; } .b-sn2 { grid-column: 3; grid-row: 4; }
.f-r2 { grid-column: 4; grid-row: 4; } .b-res { grid-column: 5; grid-row: 4; } .f-r1 { grid-column: 6; grid-row: 4; }
.f-a1::before, .f-a2::before, .f-a3::before { content: "→"; }
.f-r1::before, .f-r2::before, .f-r3::before { content: "←"; }
.schema-legende { text-align: center; font-weight: 700; color: var(--bleu); margin: 1rem 0 0; }

/* Achat */
.parcours { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; counter-reset: p; margin: 1.5rem 0; }
.parcours li { counter-increment: p; background: var(--carte); border: 1px solid var(--bordure); border-radius: 999px; padding: .35rem .9rem .35rem .4rem; }
.parcours li::before { content: counter(p); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--bleu); color: #fff; font-size: .85rem; font-weight: 700; margin-right: .5rem; }
.offre { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 1.5rem; background: var(--carte); border: 2px solid var(--bleu); border-radius: 16px; padding: 1.75rem; box-shadow: var(--ombre); }
.offre-titre { font-weight: 700; color: var(--bleu); margin: 0; }
.offre-montant { font-size: 2.2rem; font-weight: 800; color: var(--bleu); margin: .3rem 0; line-height: 1.2; }
.offre-detail p:first-child { margin-top: 0; }
.formulaire { background: var(--carte); border: 1px solid var(--bordure); border-radius: 14px; padding: 1.5rem; max-width: 46rem; }
.case { display: flex; gap: .7rem; align-items: flex-start; margin: 1rem 0; cursor: pointer; }
.case input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--bleu); flex-shrink: 0; }
.champ { margin: 1.1rem 0; }
.champ label { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--bleu); }
.oblig { font-weight: 400; color: var(--discret); font-size: .92rem; }
.champ input, .champ select, .champ textarea { width: 100%; font: inherit; padding: .6rem .75rem; border: 2px solid #8da3b0; border-radius: 8px; background: #fff; color: var(--texte); }
.champ [aria-invalid="true"] { border-color: #b3261e; }
.erreur { color: #8c1d18; font-weight: 600; }
.confirmation { background: #e3f4ea; border-left: 5px solid var(--ok); color: #0f3d24; padding: .8rem 1rem; border-radius: 8px; font-weight: 600; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.bouton:disabled { background: #cfd8de; color: #5d707e; cursor: not-allowed; }

/* FAQ et versions */
.faq-item { background: var(--carte); border: 1px solid var(--bordure); border-radius: 12px; margin: .7rem 0; padding: 0 1.2rem; }
.faq-item summary { cursor: pointer; padding: .9rem 0; list-style-position: outside; }
.faq-item summary h2 { display: inline; font-size: 1.1rem; margin: 0; }
.faq-item summary h2::after { display: none; }
.faq-reponse { padding-bottom: .8rem; }
.versions { display: grid; gap: 1rem; }
.version { background: var(--carte); border: 1px solid var(--bordure); border-radius: 12px; padding: 1rem 1.4rem; }
.version h3 { margin: 0 0 .3rem; }
.version time { color: var(--discret); font-weight: 400; font-size: .95rem; margin-left: .5rem; }
.version h4 { margin: .8rem 0 .2rem; color: var(--bleu); }
.version ul { margin: .2rem 0; }

@media (max-width: 760px) {
  .heros h1 { font-size: 1.75rem; }
  .offre { grid-template-columns: 1fr; padding: 1.25rem; }
  .bande { padding: 1.25rem; }
  /* Schéma : une seule colonne, même ordre des étapes, sans défilement horizontal */
  .schema-grille { grid-template-columns: 1fr; grid-template-rows: none; row-gap: .3rem; }
  .schema-grille > * { grid-column: auto !important; grid-row: auto !important; }
  .zone { display: none; }
  .etiq { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin-bottom: .2rem; }
  .fleche { font-size: 1.6rem; min-height: 1.6rem; }
  .f-a1::before, .f-a2::before, .f-a3::before, .f-r1::before, .f-r2::before, .f-r3::before { content: "↓"; }
  .note-table { background: #f0f8f7; border-radius: 8px; }
}
@media (max-width: 960px) and (min-width: 761px) {
  .schema-grille { grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr; font-size: .88rem; }
  .bloc { padding: .6rem .3rem; }
}

.offre-sous { margin: 0 0 .5rem; }
.offre-montant small { font-size: 1rem; font-weight: 600; }
.profil { border: 1px solid var(--bordure); border-radius: 10px; padding: .5rem 1rem; margin: 0 0 1rem; }
.profil legend { font-weight: 700; color: var(--bleu); padding: 0 .4rem; }

/* Bloc d'accueil compact : schéma sous le titre */
.heros-compact { padding: 1.5rem 1.5rem 1.25rem; margin-bottom: 1.5rem; }
.heros-compact h1 { font-size: 1.9rem; max-width: none; margin: 0 0 .25rem; }
.heros-compact .schema { margin: 1rem 0; padding: 1rem; }
.heros-compact .schema p, .heros-compact .schema span { max-width: none; font-size: inherit; }
.heros-compact .schema .schema-legende { color: var(--bleu); font-size: 1rem; }
.heros-compact h1 { max-width: none !important; }
.heros-compact > p { font-size: 1.05rem; margin: .5rem 0; }
.heros-compact .actions { margin: .75rem 0 .5rem; }
@media (max-width: 760px) { .heros-compact { padding: 1.25rem 1rem; } .heros-compact h1 { font-size: 1.5rem; } }

/* Logo de l'en-tête : bandeau recadré sur le mot-symbole (sans le coin blanc), plus grand ; le texte redondant est masqué (l'image porte l'intitulé) */
.marque img { width: 120px; height: 56px; object-fit: cover; object-position: 50% 49%; border-radius: 4px; }
.marque span { display: none; }
@media (max-width: 760px) { .marque img { width: 100px; height: 47px; } }
