/* Page produit OptiFact+ — fond clair, texte lisible, polices de la charte.
   Aucun style en ligne dans la page (la politique de sécurité du site l'interdit). */

@font-face { font-family: "Montserrat"; font-weight: 300; font-display: swap; src: url("../assets/fonts/Montserrat-Light.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../assets/fonts/Montserrat-Medium.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../assets/fonts/Montserrat-Bold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../assets/fonts/Montserrat-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/OpenSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("../assets/fonts/OpenSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("../assets/fonts/OpenSans-Bold.woff2") format("woff2"); }

.of-page {
  --of-nuit: #0B3C6E;
  --of-bleu: #0072BC;
  --of-cyan: #00A0D6;
  --of-vert: #6FB22C;
  --of-vert-fonce: #4a8f12;
  --of-papier: #FBFAF6;
  --of-brume: #F1F4F8;
  --of-trait: #E1E5EA;
  --of-encre: #1f2a37;
  --of-doux: #586474;
  --of-rouge: #D9363E;
  background: var(--of-papier);
  color: var(--of-encre);
  font-family: "Open Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}
:where(.of-page main) :where(h1, h2, h3) { font-family: "Montserrat", "Segoe UI", system-ui, sans-serif; color: var(--of-nuit); letter-spacing: -.01em; }
:where(.of-page main) a { color: var(--of-bleu); }
:where(.of-page main) p { color: #33404f; }

/* ---------- Boutons ---------- */
.of-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .7em 1.6em; border-radius: 999px;
  font: 700 1rem/1.2 "Montserrat", system-ui, sans-serif; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.of-page a.of-btn-plein { background: var(--of-bleu); color: #fff; }
.of-page a.of-btn-plein:hover { background: var(--of-nuit); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(11,60,110,.55); }
.of-page a.of-btn-contour { color: var(--of-nuit); border-color: var(--of-nuit); background: transparent; }
.of-page a.of-btn-contour:hover { background: var(--of-nuit); color: #fff; }
.of-page .of-btn[aria-disabled="true"] { background: #e7eaee; color: #6b7684; border-color: #d3d8de; cursor: not-allowed; pointer-events: none; }

/* ---------- Logotype OptiFact+ (charte : Opti fin, Fact gras) ---------- */
.of-logo { display: inline-flex; align-items: center; gap: 14px; }
.of-logo img { width: 56px; height: 56px; }
.of-logo-texte { font-family: "Montserrat", system-ui, sans-serif; font-size: 2.1rem; line-height: 1; color: var(--of-bleu); }
.of-logo-texte .o { font-weight: 300; }
.of-logo-texte .f { font-weight: 800; color: var(--of-vert); }
.of-logo-texte small { display: block; margin-top: 6px; font: 600 .72rem/1 "Open Sans", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--of-doux); }

/* ---------- Mise en page générale ---------- */
.of-section { padding: 88px 0; }
.of-section.of-brume { background: var(--of-brume); }
.of-section.of-nuit { background: var(--of-nuit); }
.of-section.of-nuit h2, .of-section.of-nuit h3 { color: #fff; }
.of-section.of-nuit p { color: #d6e3f1; }
.of-eyebrow { font: 700 .8rem/1 "Montserrat", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--of-vert-fonce); margin: 0 0 14px; }
.of-nuit .of-eyebrow { color: #9fe05a; }
.of-titre { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: .5em; }
.of-intro { font-size: 1.15rem; max-width: 62ch; }
.of-centre { text-align: center; }
.of-centre .of-intro { margin-inline: auto; }

/* ---------- En-tête de page ---------- */
.of-hero { padding: 64px 0 80px; background: linear-gradient(180deg, #fff 0%, var(--of-papier) 100%); }
.of-hero-grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.of-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; line-height: 1.12; margin: 28px 0 20px; }
.of-hero h1 em { font-style: normal; color: var(--of-bleu); }
.of-lead { font-size: 1.2rem; max-width: 52ch; }
.of-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.of-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .98rem; }
.of-points li { position: relative; padding-left: 28px; color: #33404f; }
.of-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--of-vert); border-bottom: 3px solid var(--of-vert); transform: rotate(-45deg); }

/* ---------- Cadres d'écran ---------- */
.of-fenetre { background: #fff; border-radius: 14px; border: 1px solid #cfd6de; overflow: hidden; box-shadow: 0 28px 50px -24px rgba(11,60,110,.45); }
.of-fenetre-barre { height: 30px; background: #eef1f5; border-bottom: 1px solid #dde2e8; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.of-fenetre-barre i { width: 10px; height: 10px; border-radius: 50%; background: #c4ccd6; }
.of-fenetre img { width: 100%; height: auto; }
.of-telephone { width: min(100%, 250px); background: #10151c; border-radius: 34px; padding: 9px; box-shadow: 0 28px 50px -22px rgba(0,0,0,.55); }
.of-telephone img { border-radius: 26px; width: 100%; height: auto; }
.of-hero-visuel { position: relative; padding-bottom: 60px; }
.of-hero-visuel .of-telephone { position: absolute; right: -10px; bottom: 0; width: 170px; padding: 7px; border-radius: 26px; }
.of-hero-visuel .of-telephone img { border-radius: 20px; }

/* ---------- La scène ---------- */
.of-scene { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.of-scene blockquote { margin: 0; font: 800 clamp(1.4rem, 2.6vw, 1.9rem)/1.3 "Montserrat", system-ui, sans-serif; color: var(--of-nuit); }
.of-scene blockquote span { color: var(--of-bleu); }

/* ---------- Étapes ---------- */
.of-etapes { counter-reset: etape; list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; }
.of-etapes li { counter-increment: etape; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.of-etapes li::before { content: counter(etape); font: 800 2.6rem/1 "Montserrat", system-ui, sans-serif; color: var(--of-bleu); opacity: .85; }
.of-etapes h3 { font-size: 1.2rem; margin: 0 0 .2em; }
.of-etapes p { margin: 0; }
.of-deux { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }

/* ---------- PC / Android ---------- */
.of-liste { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.of-liste li { position: relative; padding-left: 30px; }
.of-liste li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--of-vert); }
.of-pc-vues { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.of-vue figcaption, .of-doc figcaption, .of-tel-vue figcaption { margin-top: 12px; font-size: .95rem; color: var(--of-doux); line-height: 1.45; }
.of-vue figcaption b, .of-doc figcaption b, .of-tel-vue figcaption b { display: block; font: 700 1rem/1.3 "Montserrat", system-ui, sans-serif; color: var(--of-nuit); margin-bottom: 2px; }
.of-tel-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; justify-items: center; }
.of-tel-vue { text-align: center; max-width: 250px; }
.of-tel-vue .of-telephone { margin: 0 auto; }

/* ---------- Documents ---------- */
.of-docs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; margin-top: 44px; }
.of-doc { grid-column: span 2; }
.of-doc.of-grand { grid-column: span 3; }
.of-doc img { width: 100%; height: auto; border: 1px solid #cfd6de; background: #fff; box-shadow: 0 14px 28px -16px rgba(0,0,0,.35); }
.of-note { margin-top: 28px; font-size: .92rem; color: var(--of-doux); }

/* ---------- Contrôle ---------- */
.of-controle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.of-carte { background: #fff; border: 1px solid var(--of-trait); border-radius: 16px; padding: 26px 26px 22px; }
.of-carte h3 { font-size: 1.1rem; margin-bottom: .4em; }
.of-carte p { margin: 0; font-size: 1rem; }
.of-nuit .of-carte { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.of-nuit .of-carte p { color: #d6e3f1; }

/* ---------- Téléchargements ---------- */
.of-telechargements { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.of-dl { background: #fff; border: 1px solid var(--of-trait); border-radius: 18px; padding: 30px; }
.of-dl h3 { font-size: 1.25rem; margin-bottom: .2em; }
.of-dl .of-version { font-size: .9rem; color: var(--of-doux); margin-bottom: 18px; }
.of-dl .of-btn { margin-top: 8px; }
.of-bientot { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: #fff4d6; color: #8a5a00; font: 700 .75rem/1.4 "Montserrat", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.of-faq { max-width: 820px; margin: 36px auto 0; display: grid; gap: 12px; }
.of-faq details { background: #fff; border: 1px solid var(--of-trait); border-radius: 14px; padding: 0 22px; }
.of-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 700 1.02rem/1.4 "Montserrat", system-ui, sans-serif; color: var(--of-nuit); display: flex; justify-content: space-between; gap: 16px; }
.of-faq summary::-webkit-details-marker { display: none; }
.of-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--of-bleu); }
.of-faq details[open] summary::after { content: "–"; }
.of-faq details p { margin: 0 0 18px; }

/* ---------- Appel final ---------- */
.of-final { text-align: center; }
.of-final h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22ch; margin-inline: auto; }
.of-final .of-actions { justify-content: center; }
.of-page .of-final a.of-btn-contour { color: #fff; border-color: rgba(255,255,255,.7); }
.of-page .of-final a.of-btn-contour:hover { background: #fff; color: var(--of-nuit); }
.of-page .of-final a.of-btn-plein { background: #fff; color: var(--of-nuit); }
.of-page .of-final a.of-btn-plein:hover { background: #9fe05a; color: var(--of-nuit); }

.of-mentions { padding: 26px 0 34px; font-size: .88rem; color: var(--of-doux); background: var(--of-papier); }
.of-mentions p { margin: 0; color: var(--of-doux); max-width: 90ch; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 980px) {
  .of-section { padding: 64px 0; }
  .of-hero-grille, .of-scene, .of-deux, .of-telechargements { grid-template-columns: 1fr; gap: 36px; }
  .of-controle { grid-template-columns: 1fr; }
  .of-tel-grille { grid-template-columns: repeat(2, 1fr); }
  .of-docs { grid-template-columns: 1fr 1fr; }
  .of-doc, .of-doc.of-grand { grid-column: span 1; }
  .of-pc-vues { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .of-tel-grille, .of-docs { grid-template-columns: 1fr; }
  .of-hero-visuel .of-telephone { width: 120px; right: 0; }
  .of-logo-texte { font-size: 1.7rem; }
  .of-etapes li { grid-template-columns: 44px 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .of-btn { transition: none; } }
