/* Luminisys — site vitrine (www.luminisys.fr)
   Mêmes couleurs et polices que l'application Windows (LuminisysWin/Themes/Theme.xaml). */

@font-face { font-family: "Public Sans"; src: url("../fonts/PublicSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/PublicSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/PublicSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --fond: #F5F2EB;
  --surface: #FFFFFF;
  --bordure: #E6E0D4;
  --encre: #1C2233;
  --secondaire: #5E6472;
  --primaire: #2F4B8C;
  --primaire-survol: #253D73;
  --primaire-leger: #E8EDF7;
  --barre: #1B2540;
  --barre-actif: #2C3A5E;
  --barre-texte: #C3C9D8;
  --or: #C9A24A;
  --or-clair: #E0BD68;
  --or-fonce: #8A6A12;
  --vert: #1F7A4D;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(28, 34, 51, .06), 0 8px 24px rgba(28, 34, 51, .08);
  --largeur: 1160px;
  --police-texte: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --police-titre: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primaire); }
a:hover { color: var(--primaire-survol); }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 4px; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.surtitre { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--or-fonce); margin-bottom: .6rem; }
.chapeau { font-size: 1.15rem; color: var(--secondaire); max-width: 62ch; }
.centre { text-align: center; }
.centre .chapeau { margin-left: auto; margin-right: auto; }
.lien-evitement { position: absolute; left: -9999px; }
.lien-evitement:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 10px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--police-texte); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primaire { background: var(--primaire); color: #fff; }
.btn-primaire:hover { background: var(--primaire-survol); color: #fff; }
.btn-or { background: var(--or-clair); color: var(--barre); }
.btn-or:hover { background: var(--or); color: var(--barre); }
.btn-contour { background: var(--surface); color: var(--encre); border-color: var(--bordure); }
.btn-contour:hover { border-color: var(--primaire); color: var(--primaire); }
.btn-clair { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-clair:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.btn:disabled, .btn:disabled:hover { opacity: .55; cursor: not-allowed; }
.btn-or:disabled:hover { background: var(--or-clair); }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; }

/* « Bientôt disponible » : lien sans href (adresse gardée dans data-lien), donc ni cliquable ni
   atteignable au clavier. Pour réactiver : remettre data-lien en href, retirer bientot et aria-disabled. */
.bientot { position: relative; cursor: not-allowed; }
.btn-primaire.bientot:hover { background: var(--primaire); }
.btn-or.bientot:hover { background: var(--or-clair); }
.btn-clair.bientot:hover { background: transparent; border-color: rgba(255,255,255,.35); }
.btn.bientot::after { content: "Bientôt disponible"; position: absolute; top: -11px; right: -8px; background: var(--barre); color: var(--or-clair); border: 1px solid var(--or); font-size: .68rem; font-weight: 600; line-height: 1; padding: .3rem .55rem; border-radius: 999px; white-space: nowrap; }
.pied a.bientot:hover { color: var(--barre-texte); text-decoration: none; }
.pied a.bientot::after { content: "Bientôt disponible"; display: block; font-size: .78em; color: var(--or-clair); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: var(--barre); color: #fff; }
.entete .conteneur { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.marque { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--police-titre); font-size: 1.35rem; }
.marque img { width: 36px; height: 36px; border-radius: 9px; }
.marque:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 1.2rem; margin-left: auto; }
.nav a { color: var(--barre-texte); text-decoration: none; font-weight: 500; font-size: .97rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav .btn { padding: .55rem 1rem; font-size: .95rem; }
.nav .btn-or, .nav .btn-or:hover { color: var(--barre); }
.menu-bouton { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 6px 10px; font: 500 .95rem var(--police-texte); cursor: pointer; }

@media (max-width: 1220px) {
  .menu-bouton { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--barre); padding: 8px 20px 20px; border-top: 1px solid var(--barre-actif); }
  .nav.ouvert { display: flex; }
  .nav a { padding: .7rem 0; }
  .nav .btn { justify-content: center; margin-top: .6rem; }
}

/* Héros */
.heros { background: var(--barre); color: #fff; padding: 72px 0 0; overflow: hidden; }
.heros .conteneur { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.heros h1 { color: #fff; }
.heros h1 em { font-style: normal; color: var(--or-clair); }
.heros .chapeau { color: var(--barre-texte); }
.heros .surtitre { color: var(--or-clair); }
.heros-visuel { align-self: end; }
.heros-visuel img { border-radius: 12px 12px 0 0; box-shadow: 0 -10px 60px rgba(0,0,0,.35); }
.heros-texte { padding-bottom: 72px; }
.garanties { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; padding: 0; list-style: none; color: var(--barre-texte); font-size: .95rem; }
.garanties li::before { content: "✓"; color: var(--or-clair); font-weight: 600; margin-right: .4rem; }
@media (max-width: 900px) {
  .heros { padding-top: 48px; }
  .heros .conteneur { grid-template-columns: 1fr; gap: 24px; }
  .heros-texte { padding-bottom: 0; }
}

/* Sections */
section { padding: 88px 0; }
section.blanc { background: var(--surface); border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); }
.entete-section { margin-bottom: 48px; }

/* Étapes */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: etape; padding: 0; list-style: none; }
.etapes li { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 28px; position: relative; }
.etapes li::before { counter-increment: etape; content: counter(etape); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #F7EFD9; color: var(--or-fonce); font-weight: 600; margin-bottom: 14px; }
.etapes p { color: var(--secondaire); margin: 0; }
@media (max-width: 800px) { .etapes { grid-template-columns: 1fr; } }

/* Cartes de fonctionnalités */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 26px; }
section.blanc .carte { background: var(--fond); }
.carte h3 { margin-bottom: .35em; }
.carte p { color: var(--secondaire); margin: 0; font-size: .98rem; }
.icone { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--primaire-leger); color: var(--primaire); margin-bottom: 16px; }
.icone svg { width: 22px; height: 22px; }
.icone.or { background: #F7EFD9; color: var(--or-fonce); }
@media (max-width: 960px) { .grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grille { grid-template-columns: 1fr; } }

/* Blocs texte + image alternés */
.bloc { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.bloc + .bloc { margin-top: 96px; }
.bloc.inverse > :first-child { order: 2; }
.bloc ul { padding-left: 1.1rem; color: var(--secondaire); }
.bloc li { margin-bottom: .4rem; }
.bloc li strong { color: var(--encre); font-weight: 600; }
.capture { margin: 0; }
.capture button { all: unset; cursor: zoom-in; display: block; border-radius: 12px; }
.capture img { border-radius: 12px; border: 1px solid var(--bordure); box-shadow: var(--ombre); }
.capture figcaption { font-size: .88rem; color: var(--secondaire); margin-top: .6rem; text-align: center; }
@media (max-width: 900px) {
  .bloc { grid-template-columns: 1fr; gap: 28px; }
  .bloc.inverse > :first-child { order: 0; }
  .bloc + .bloc { margin-top: 64px; }
}

/* Section sombre (présentation) */
.sombre { background: var(--barre); color: #fff; }
.sombre h2, .sombre h3 { color: #fff; }
.sombre .chapeau, .sombre .bloc ul, .sombre p { color: var(--barre-texte); }
.sombre .bloc li strong { color: #fff; }
.sombre .surtitre { color: var(--or-clair); }
.sombre .capture img { border-color: var(--barre-actif); }
.sombre .capture figcaption { color: var(--barre-texte); }
.touches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.touche { background: var(--barre-actif); border-radius: var(--rayon); padding: 20px; }
.touche strong { display: block; color: #fff; margin-bottom: .2rem; }
.touche span { color: var(--barre-texte); font-size: .93rem; }
@media (max-width: 900px) { .touches { grid-template-columns: repeat(2, 1fr); } }

/* Comparatif Web / Windows */
.offres { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offre { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 32px; display: flex; flex-direction: column; }
.offre.vedette { border: 2px solid var(--primaire); }
.offre .prix { font-family: var(--police-titre); font-size: 2rem; margin: .2rem 0 .1rem; }
.offre .note-prix { color: var(--secondaire); font-size: .92rem; margin-bottom: 1.2rem; }
.offre ul { list-style: none; padding: 0; margin: 0 0 1.6rem; flex: 1; }
.offre li { padding: .45rem 0 .45rem 1.7rem; position: relative; border-top: 1px solid var(--fond); }
.offre li::before { content: "✓"; position: absolute; left: 0; color: var(--vert); font-weight: 600; }
.offre li.moins::before { content: "–"; color: var(--secondaire); }
.pastille { display: inline-block; font-size: .78rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: var(--primaire-leger); color: var(--primaire); margin-bottom: .8rem; align-self: flex-start; }
.pastille.or { background: #F7EFD9; color: var(--or-fonce); }
@media (max-width: 800px) { .offres { grid-template-columns: 1fr; } }

/* Schéma de synchronisation */
.schema { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; }
.schema svg { width: 100%; height: auto; }
.schema text { font-family: var(--police-texte); }

/* Galerie */
.onglets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: #EAE5DA; border-radius: 12px; padding: 5px; width: fit-content; margin: 0 auto 32px; }
.onglets button { border: 0; background: transparent; padding: .55rem 1.1rem; border-radius: 8px; font: 500 .95rem var(--police-texte); color: var(--secondaire); cursor: pointer; }
.onglets button[aria-selected="true"] { background: var(--surface); color: var(--encre); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.galerie[hidden] { display: none; }
.galerie figcaption { text-align: left; }
@media (max-width: 900px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .galerie { grid-template-columns: 1fr; } }

/* Visionneuse */
.visionneuse { border: 0; padding: 0; background: transparent; max-width: min(1400px, 96vw); max-height: 94vh; }
.visionneuse::backdrop { background: rgba(15, 20, 35, .88); }
.visionneuse img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 10px; }
.visionneuse p { color: #fff; text-align: center; margin: .8rem 0 0; }
.visionneuse button { position: fixed; top: 16px; right: 20px; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.5rem; cursor: pointer; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primaire); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--secondaire); }
.faq details > div p:last-child { margin: 0; }

/* Appel à l'action final */
.appel { background: linear-gradient(135deg, var(--primaire), var(--barre)); color: #fff; border-radius: 20px; padding: 56px 40px; text-align: center; }
.appel h2 { color: #fff; }
.appel p { color: var(--barre-texte); max-width: 60ch; margin: 0 auto 1.6rem; }
.appel .boutons { justify-content: center; }

/* Pages intérieures */
.page-titre { background: var(--barre); color: #fff; padding: 64px 0 56px; }
.page-titre h1 { color: #fff; }
.page-titre .chapeau { color: var(--barre-texte); }
.page-titre .surtitre { color: var(--or-clair); }
.fil { font-size: .9rem; margin-bottom: 1rem; color: var(--barre-texte); }
.fil a { color: var(--barre-texte); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.encart { background: var(--surface); border: 1px solid var(--bordure); border-left: 4px solid var(--or); border-radius: 10px; padding: 18px 22px; margin: 1.5em 0; }
/* Encarts côte à côte (fin de la page À propos), empilés sur mobile */
.encarts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 1.5em 0; }
.encarts .encart { margin: 0; }
.tech { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tech li { background: var(--primaire-leger); color: var(--primaire); font-weight: 500; font-size: .9rem; padding: .3rem .8rem; border-radius: 999px; margin: 0; }
.auteur { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 28px; }
.auteur .avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--barre); color: var(--or-clair); display: grid; place-items: center; font-family: var(--police-titre); font-size: 1.6rem; }
img.avatar { display: block; object-fit: cover; flex-shrink: 0; }
.auteur p { margin: 0 0 .6rem; color: var(--secondaire); }
@media (max-width: 560px) { .auteur { grid-template-columns: 1fr; } }

/* Frise chronologique (page À propos) */
.frise { list-style: none; margin: 0; padding: 0; max-width: 780px; position: relative; }
.frise li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 23px; bottom: -40px; width: 2px; background: var(--bordure); }
.frise li { position: relative; padding-left: 48px; margin-bottom: 40px; }
.frise li:last-child { margin-bottom: 0; }
.frise li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--fond); border: 4px solid var(--or); }
.frise li.a-venir::before { border: 3px dashed var(--primaire); background: var(--primaire-leger); }
.frise .quand { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--or-fonce); margin-bottom: .25rem; }
.frise h3 { margin-bottom: .35em; }
.frise p { color: var(--secondaire); margin: 0 0 .6em; }
.frise p:last-child { margin: 0; }

/* Page Soutenir le projet : une carte par façon d'aider */
.soutiens { display: grid; gap: 20px; max-width: 780px; }
.soutiens .carte h2 { font-size: 1.4rem; margin-bottom: .4em; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.soutiens .carte h2 .pastille { margin: 0; font-family: var(--police-texte); }
.soutiens .carte p { font-size: 1rem; margin-bottom: 1em; }
.soutiens .carte p:last-child { margin-bottom: 0; }
.merci { max-width: 780px; margin-top: 32px; font-size: 1.1rem; }

/* Cartes dépliables (architecture) */
.grille.architecture { align-items: start; }
.carte details { margin-top: .8rem; }
.carte summary { cursor: pointer; list-style: none; color: var(--primaire); font-weight: 500; font-size: .92rem; width: fit-content; }
.carte summary::-webkit-details-marker { display: none; }
.carte summary::after { content: " +"; }
.carte details[open] summary::after { content: " –"; }
.carte details p { margin-top: .6rem; font-size: .95rem; }

/* Pied de page */
.pied { background: var(--barre); color: var(--barre-texte); padding: 56px 0 32px; font-size: .95rem; }
.pied .colonnes { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.pied h2 { font-family: var(--police-texte); font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .45rem; }
.pied a { color: var(--barre-texte); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied .marque { margin-bottom: .8rem; }
.pied .bas { border-top: 1px solid var(--barre-actif); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
@media (max-width: 800px) { .pied .colonnes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pied .colonnes { grid-template-columns: 1fr; } }


/* Bandeau de consentement (js/mesure-audience.js) : Accepter et Refuser ont le même poids visuel */
.bandeau-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: .95rem; }
.bandeau-cookies p { margin: 0; flex: 1 1 320px; color: var(--secondaire); }
.bandeau-cookies[hidden] { display: none; }
.lien-cookies { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.lien-cookies[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

section.blanc .faq details { background: var(--fond); }
section.blanc .onglets { background: #EAE5DA; }
