/* ===========================================================================
   OpusScreen — le site

   Disposition claire et aeree : barre flottante en pilule, heros plein cadre
   en degrade, puis des cartes blanches tres arrondies sur un fond gris-bleu.

   La touche du produit tient dans le degrade : ce n'est pas un ciel, c'est le
   spectre du corps noir, de la lumiere du jour a la bougie - exactement la
   plage que l'application regle. Les couleurs ne decorent pas, elles disent.
   =========================================================================== */

:root {
  /* Le spectre, de 6500 K a 1200 K. Ce sont des mesures, pas des gouts. */
  --k6500: #cfe4f7;
  --k4200: #ffe6c2;
  --k2700: #ffc98d;
  --k2000: #ff9e4a;
  --k1200: #f26a2a;

  --encre:   #0d1b24;
  --plume:   #46606f;
  --estompe: #6f8794;
  --fond:    #f2f5f9;
  --carte:   #ffffff;
  --trait:   #e2e9f0;
  --accent:  #0e6f68;
  --accent-c:#0a524d;
  --accent-p:#e6f4f2;

  --r-carte: 22px;
  --r-pilule: 999px;
  --ombre: 0 1px 2px rgba(13, 27, 36, .05), 0 14px 38px rgba(13, 27, 36, .07);
  --ombre-forte: 0 2px 6px rgba(13, 27, 36, .07), 0 26px 60px rgba(13, 27, 36, .12);
  --large: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 .5em; letter-spacing: -.025em; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.28rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-c); }

code {
  font-family: "Cascadia Mono", Consolas, monospace; font-size: .88em;
  background: var(--fond); border: 1px solid var(--trait); border-radius: 6px; padding: .1em .4em;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.large { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 100; }

/* ---------------------------------------------------------------- barre flottante */

.barre { position: sticky; top: 16px; z-index: 60; padding: 0 24px; margin-top: 16px; }
.barre-dedans {
  max-width: 980px; margin: 0 auto; background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px); border: 1px solid var(--trait); border-radius: var(--r-pilule);
  box-shadow: var(--ombre); padding: 9px 9px 9px 20px;
  display: flex; align-items: center; gap: 22px;
}
.marque { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--encre); text-decoration: none; }
/* Le logo est un oeil large, pas un carre : l'enfermer dans 30x30 le reduisait a
   une vingtaine de pixels de haut, cernes de vide, et on ne le voyait plus. */
.marque img { display: block; height: 32px; width: auto; }
.barre nav { display: flex; gap: 20px; margin-left: auto; }
.barre nav a { color: var(--plume); text-decoration: none; font-size: .95rem; font-weight: 600; }
.barre nav a:hover { color: var(--encre); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  padding: 11px 20px; border-radius: var(--r-pilule); border: 0; cursor: pointer;
  font-family: inherit; font-size: .96rem;
}
.bouton:hover { background: var(--accent-c); color: #fff; }
.bouton.grand { padding: 18px 34px; font-size: 1.1rem; box-shadow: 0 10px 26px rgba(14, 111, 104, .28); }
.bouton.clair { background: rgba(255, 255, 255, .9); color: var(--encre); border: 1px solid var(--trait); }
.bouton.clair:hover { background: #fff; color: var(--encre); }
.bouton svg { flex: none; }

/* ---------------------------------------------------------------- heros */

.heros {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(150px, 17vw, 210px) 24px clamp(40px, 6vw, 72px);
  margin-top: -96px;
  background:
    radial-gradient(60% 55% at 15% 8%, rgba(207, 228, 247, .95), transparent 70%),
    radial-gradient(55% 50% at 85% 0%, rgba(255, 230, 194, .95), transparent 72%),
    radial-gradient(70% 60% at 50% 100%, rgba(255, 201, 141, .55), transparent 70%),
    linear-gradient(180deg, #eaf2fb 0%, #fbf3e8 58%, var(--fond) 100%);
}
/* Le degrade dit la plage reglee : lumiere du jour en haut, bougie en bas. */
.heros::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px;
  background: linear-gradient(180deg, transparent, var(--fond)); pointer-events: none;
}
.heros > * { position: relative; z-index: 1; }

/* Le logo ouvre la page. Sa hauteur est bornee des deux cotes : assez grand pour
   etre le premier regard, jamais au point de repousser le titre hors de l'ecran
   sur un portable. */
.logo-heros {
  display: block; margin: 0 auto clamp(14px, 2.4vw, 26px);
  width: clamp(168px, 24vw, 299px); height: auto;
}

.heros h1 { max-width: 19ch; margin: 0 auto .4em; text-wrap: balance; }
.accroche { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--plume); max-width: 46ch; margin: 0 auto 2.2em; }
.appels { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.sous-bouton { color: var(--estompe); font-size: .92rem; margin-top: 1.1em; }

.rassurance {
  display: flex; gap: 8px 26px; justify-content: center; flex-wrap: wrap;
  margin: 1.6em 0 0; padding: 0; list-style: none; color: var(--plume); font-size: .93rem;
}
.rassurance li { display: inline-flex; align-items: center; gap: 7px; }
.rassurance svg { color: var(--accent); }

/* ---------------------------------------------------------------- onglets + vitrine */

.onglets {
  display: inline-flex; gap: 4px; padding: 6px; margin: 3rem auto 0;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--trait);
  border-radius: var(--r-pilule); box-shadow: var(--ombre); flex-wrap: wrap; justify-content: center;
}
.onglets button {
  border: 0; background: transparent; color: var(--plume); font: inherit; font-weight: 600;
  font-size: .95rem; padding: 10px 18px; border-radius: var(--r-pilule); cursor: pointer;
}
.onglets button:hover { color: var(--encre); }
.onglets button[aria-selected="true"] { background: var(--encre); color: #fff; }

.vitrine {
  max-width: 1080px; margin: 28px auto 0; background: var(--carte);
  border: 1px solid var(--trait); border-radius: var(--r-carte); box-shadow: var(--ombre-forte); padding: 14px;
}
.vitrine img { display: block; width: 100%; height: auto; border-radius: 14px; }
.vitrine figcaption { color: var(--plume); font-size: .95rem; padding: 14px 10px 6px; text-align: left; }
.vitrine figcaption strong { color: var(--encre); }

/* ---------------------------------------------------------------- sections */

section { padding: clamp(56px, 8vw, 104px) 0; }
.titre-section { max-width: 60ch; margin-bottom: 2.6rem; }
.titre-section p { color: var(--plume); font-size: 1.08rem; margin: 0; }

.cartes { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .cartes.deux { grid-template-columns: 1fr 1fr; }
  .cartes.trois { grid-template-columns: repeat(3, 1fr); }
  .cartes.large-gauche { grid-template-columns: 1.35fr 1fr; }
}

.carte {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-carte);
  box-shadow: var(--ombre); padding: clamp(24px, 3vw, 34px);
}
.carte h3 { margin-bottom: .5em; }
.carte p { color: var(--plume); margin: 0; }
.carte p + p { margin-top: .8em; }
.carte img { display: block; width: 100%; height: auto; border-radius: 14px; margin-top: 20px; border: 1px solid var(--trait); }

.encart { background: var(--fond); border: 1px solid var(--trait); border-radius: 16px; padding: 18px 20px; margin-top: 20px; }
.encart .etiquette { font-size: .78rem; font-weight: 700; color: var(--estompe); letter-spacing: .04em; margin: 0 0 6px; }

/* ---------------------------------------------------------------- l'ecran de demonstration */

.ecran-demo { position: relative; border-radius: 16px; overflow: hidden; margin-top: 20px; border: 1px solid var(--trait); }
.ecran-demo img { margin: 0; border-radius: 0; border: 0; }
/* Le voile : exactement ce que l'application pose sous 35 %, en multiplication,
   mais CONTENU dans la maquette - pas etale sur toute la page. */
.voile { position: absolute; inset: 0; mix-blend-mode: multiply; background: #fff; pointer-events: none; transition: background-color .3s linear; }
@media (prefers-reduced-motion: reduce) { .voile { transition: none; } }

.reglettes { display: grid; gap: 16px; margin-top: 20px; }
.reglette label { display: block; color: var(--plume); font-size: .92rem; font-weight: 600; }
.reglette output { float: right; color: var(--encre); font-weight: 700; font-variant-numeric: tabular-nums; }
.reglette input[type="range"] { width: 100%; accent-color: var(--accent); margin: 8px 0 0; }

/* ---------------------------------------------------------------- comparaison de couleurs */

.comparaison { display: grid; gap: 18px; margin-top: 22px; }
@media (min-width: 760px) { .comparaison { grid-template-columns: 1fr 1fr; } }
.colonne { background: var(--fond); border: 1px solid var(--trait); border-radius: 16px; padding: 20px; }
.colonne.apres { background: var(--accent-p); border-color: #bfe3df; }
.colonne h4 { margin: 0 0 14px; font-size: 1rem; }
.paire { display: grid; grid-template-columns: 1fr 1fr; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.paire div { height: 56px; }
.mesure { font-size: .88rem; color: var(--estompe); font-variant-numeric: tabular-nums; margin: 0; }
.mesure strong { color: var(--encre); }

.choix { display: inline-flex; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-pilule); padding: 5px; gap: 3px; flex-wrap: wrap; }
.choix button {
  border: 0; background: transparent; color: var(--plume); font: inherit; font-size: .92rem;
  font-weight: 600; padding: 9px 16px; border-radius: var(--r-pilule); cursor: pointer;
}
.choix button:hover { color: var(--encre); }
.choix button.actif { background: var(--accent); color: #fff; }
.choix .clinique { display: block; font-size: .72rem; font-weight: 400; opacity: .8; }

/* ---------------------------------------------------------------- garanties */

.garanties { width: 100%; border-collapse: collapse; }
.garanties caption { text-align: left; padding-bottom: 12px; }
.garanties th, .garanties td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.garanties th { font-weight: 400; color: var(--encre); padding-right: 24px; }
.garanties td { color: var(--accent); font-weight: 700; white-space: nowrap; font-size: .92rem; }
.garanties tr:last-child th, .garanties tr:last-child td { border-bottom: 0; }

/* ------------------------------------------- avertissement de telechargement */

/*
   Windows comme macOS refusent d'ouvrir un logiciel qu'aucun certificat
   commercial ne contresigne, et le disent dans des termes qui font peur -
   « logiciel malveillant », « porter atteinte a votre vie privee ». C'est la
   seule chose CERTAINE qui arrive a quiconque telecharge depuis cette page.
   Elle etait rangee dans la foire aux questions, tout en bas : chacun la
   decouvrait donc seul, devant la boite de dialogue, apres avoir telecharge.
   Elle est maintenant sous le bouton, avant le clic.
*/
.note-secu {
  max-width: 680px; margin: 18px auto 0; text-align: left;
  background: #fffaf0; border: 1px solid #f0e0c4; border-radius: 16px;
  padding: 2px 22px; box-shadow: var(--ombre);
}
.note-secu summary {
  cursor: pointer; list-style: none; padding: 15px 0;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  font-weight: 700; font-size: .97rem; color: #6d4c14; line-height: 1.4;
}
.note-secu summary::-webkit-details-marker { display: none; }
.note-secu-plus { font-weight: 600; color: var(--accent); white-space: nowrap; font-size: .88rem; }
.note-secu[open] .note-secu-plus { display: none; }
.note-secu-corps { padding-bottom: 16px; }
.note-secu-corps p { color: var(--plume); margin: 0 0 12px; font-size: .95rem; line-height: 1.6; }
.note-secu-corps h4 { margin: 18px 0 7px; font-size: .95rem; color: var(--encre); }
.note-secu-corps > div:first-child h4 { margin-top: 4px; }
.note-secu-corps code {
  display: block; overflow-x: auto; background: var(--carte); border: 1px solid var(--trait);
  border-radius: 10px; padding: 9px 12px; font-size: .84rem; color: var(--encre);
}

/* ---------------------------------------------------------------- questions */

.questions { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.questions details {
  background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; padding: 4px 24px; box-shadow: var(--ombre);
}
.questions summary {
  cursor: pointer; list-style: none; font-weight: 700; padding: 18px 0;
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; }
.questions details[open] summary::after { content: "\2212"; }
.questions p { color: var(--plume); margin: 0 0 18px; }

/* ---------------------------------------------------------------- fin + pied */

/* ---------------------------------------------------------------- signature */

/* Qui tient l'outil. Posee juste avant l'appel final, la ou la page a fini de
   convaincre : la question « qui est derriere » se pose a ce moment-la, pas au
   premier ecran. Le bloc reste volontairement sobre - c'est une signature, pas
   une reclame. */
.signature { padding-top: 0; }
.signature-carte { display: flex; gap: clamp(18px, 3vw, 30px); align-items: flex-start; }
/* Les images d'une carte sont des captures d'ecran : cadre, coins arrondis et
   marge haute. Un logo n'est pas une capture - il se pose sans encadrement. */
.signature-carte img { flex: none; width: 64px; height: auto; margin: 0; border: 0; border-radius: 0; }
.signature-carte h2 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); margin: 0 0 .5em; }
.signature-carte h2 a { color: var(--accent); text-decoration: none; }
.signature-carte h2 a:hover { text-decoration: underline; }
.signature-carte p { color: var(--plume); margin: 0; max-width: 62ch; }
@media (max-width: 560px) {
  .signature-carte { flex-direction: column; align-items: center; text-align: center; }
}

.final { text-align: center; }
.final .carte { padding: clamp(40px, 6vw, 68px) 28px; }
.final h2 { max-width: 20ch; margin: 0 auto .6em; }
.final p { color: var(--plume); max-width: 52ch; margin: 0 auto 2em; }

footer { border-top: 1px solid var(--trait); padding: 52px 0 32px; background: var(--carte); }
.pied { display: grid; gap: 30px; }
@media (min-width: 760px) { .pied { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
footer nav { display: flex; flex-direction: column; gap: 9px; }
footer nav a { color: var(--plume); text-decoration: none; font-size: .94rem; }
footer nav a:hover { color: var(--encre); }
footer h4 { margin: 0 0 4px; font-size: .82rem; color: var(--estompe); font-weight: 700; }
.pied-note { color: var(--estompe); font-size: .88rem; margin: 34px 0 0; max-width: 62ch; }

/* ---------------------------------------------------------------- petits ecrans */

@media (max-width: 860px) {
  .barre nav { display: none; }
  .barre-dedans { padding-left: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .appels { flex-direction: column; }
  .appels .bouton { width: 100%; }
  .onglets { width: 100%; }
}
