/* Clock Champion — vitrine publique (accueil, guide, pages légales). Même univers que l'appli : encre épaisse,
   ombres pleines, écran de montre numérique, cadrans. */
@font-face { font-family: 'Fredoka'; src: url('/assets/fonts/fredoka.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
:root {
  --fond: #dff1ff; --papier: #fffdf7; --encre: #1d3557; --accent: #ff7a45; --accent2: #ffd166; --ok: #1f9d55;
  --cadran: #fffdf7; --aig-h: #1d3557; --aig-m: #e63946; --encre-cadran: #1d3557;
  --titre: 'Fredoka', 'Nunito', system-ui, sans-serif; --texte: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body { font-family: var(--texte); color: var(--encre); background: var(--fond); font-size: 1.06rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; margin: .4em 0; }
a { color: inherit; }
main > section { max-width: 1080px; margin: 0 auto; padding: 56px 16px; }
.fine { font-size: .88rem; opacity: .8; }
.intro { font-size: 1.12rem; font-weight: 700; max-width: 60ch; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  font-family: var(--titre); font-weight: 600; font-size: 1.05rem; background: #fff; color: var(--encre);
  border: 3px solid var(--encre); border-radius: 14px; box-shadow: 4px 4px 0 var(--encre); padding: 10px 18px; min-height: 48px;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--encre); }
.btn-accent { background: var(--accent); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.btn-gros { font-size: 1.2rem; padding: 14px 22px; }
.btn-petit { min-height: 40px; padding: 6px 14px; box-shadow: 3px 3px 0 var(--encre); }

/* Barre du haut */
.barre {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 10px 16px;
  background: var(--papier); border-bottom: 3px solid var(--encre);
}
.marque { display: flex; align-items: center; gap: 8px; font-family: var(--titre); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.marque-ico {
  width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--encre); background: var(--accent2); position: relative;
}
.marque-ico::before, .marque-ico::after { content: ''; position: absolute; left: 50%; bottom: 50%; width: 3px; background: var(--encre); border-radius: 2px; transform-origin: bottom; }
.marque-ico::before { height: 9px; transform: translateX(-50%) rotate(-60deg); }
.marque-ico::after { height: 11px; background: var(--aig-m); transform: translateX(-50%); }
.barre nav { display: flex; gap: 16px; margin-left: auto; font-weight: 800; }
.barre nav a { text-decoration: none; }
.barre nav a:hover { text-decoration: underline; }
@media (max-width: 720px) { .barre nav { display: none; } .barre .btn { margin-left: auto; } }

/* Héros */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.surtitre { display: inline-block; font-weight: 800; background: var(--accent2); border: 2px solid var(--encre); border-radius: 999px; padding: 2px 12px; margin: 0; transform: rotate(-1.5deg); }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 3.6rem); margin: .35em 0 .3em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.chapo { font-size: 1.15rem; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 10px; }
.hero-montre { margin: 0; text-align: center; }
.horloge-vivante { width: min(80vw, 380px); margin: 0 auto; }
.hero-montre figcaption { margin-top: 14px; font-weight: 800; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.lcd {
  font-family: var(--titre); font-weight: 700; font-size: 1.5rem; background: #1f2a20; color: #b8f5a5; border: 3px solid var(--encre);
  border-radius: 10px; padding: 2px 12px; text-shadow: 0 0 8px rgba(184, 245, 165, .5);
}
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero-montre { order: -1; } .horloge-vivante { width: min(64vw, 280px); } }

/* Bande « pourquoi » : écran de montre numérique géant */
main > .bande {
  max-width: none; background: var(--encre); color: #f4f8ff; padding: 56px max(16px, calc((100% - 1048px) / 2));
}
.bande h2 { color: var(--accent2); }
.bande p { max-width: 70ch; font-size: 1.1rem; }

/* Méthode */
.mondes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 26px 0; }
.monde-carte { text-align: center; }
.mini-horloge { width: min(56vw, 210px); margin: 0 auto; }
.monde-carte h3 span {
  display: inline-block; font-size: .85rem; background: var(--encre); color: #fff; border-radius: 8px; padding: 1px 8px; transform: rotate(-4deg); margin-right: 4px;
}
.monde-carte p { margin: 0; }
@media (max-width: 760px) { .mondes { grid-template-columns: 1fr; } }
/* Les 6 étapes en bracelet de montre */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: e; }
.etapes li {
  counter-increment: e; position: relative; background: var(--papier); border: 3px solid var(--encre); border-left-width: 0; padding: 30px 8px 12px;
  text-align: center; font-size: .92rem;
}
.etapes li:first-child { border-left-width: 3px; border-radius: 16px 0 0 16px; }
.etapes li:last-child { border-radius: 0 16px 16px 0; }
.etapes li::before {
  content: counter(e); position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent2); border: 3px solid var(--encre); font-family: var(--titre); font-weight: 700; display: grid; place-items: center;
}
.etapes b { display: block; font-family: var(--titre); font-size: 1.05rem; }
@media (max-width: 760px) {
  .etapes { grid-template-columns: 1fr 1fr; gap: 26px 10px; }
  .etapes li, .etapes li:first-child, .etapes li:last-child { border-width: 3px; border-radius: 14px; }
}

.deux-exos { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.deux-exos article { border-top: 6px solid var(--accent); padding-top: 14px; }
.deux-exos article + article { border-top-color: var(--aig-m); }
@media (max-width: 760px) { .deux-exos { grid-template-columns: 1fr; } }

.pastilles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; }
.pastilles li { padding: 14px 0; border-bottom: 2px dashed rgba(29, 53, 87, .25); }
.pastilles b { display: block; font-family: var(--titre); font-size: 1.15rem; }
@media (max-width: 900px) { .pastilles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pastilles { grid-template-columns: 1fr; } }

.parents { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.coches { list-style: none; padding: 0; }
.coches li { position: relative; padding-left: 28px; margin: 7px 0; }
.coches li::before { content: '✔'; position: absolute; left: 2px; color: var(--ok); font-weight: 900; }
.faux-mail {
  margin: 0; background: #fff; border: 3px solid var(--encre); border-radius: 16px; box-shadow: 7px 7px 0 var(--encre);
  padding: 16px 20px; transform: rotate(1.5deg);
}
.faux-mail p { margin: 6px 0; }
.fm-titre { font-family: var(--titre); font-size: 1.2rem; font-weight: 700; }
.up { color: var(--ok); }
.fm-barres { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin: 10px 0; }
.fm-barres i { flex: 1; background: #2f6fd6; border-radius: 4px 4px 0 0; }
.h55 { height: 55%; } .h62 { height: 62%; } .h68 { height: 68%; } .h70 { height: 70%; } .h79 { height: 79%; } .h84 { height: 84%; } .h90 { height: 90%; }
.fm-note { background: #fff3c4; border-radius: 8px; padding: 6px 10px; font-weight: 700; }
@media (max-width: 820px) { .parents { grid-template-columns: 1fr; } }

.avis h2 small { font-size: 1rem; font-family: var(--texte); font-weight: 800; }
.avis-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.avis-cite { margin: 0; background: #fff; border: 3px solid var(--encre); border-radius: 16px 16px 16px 4px; padding: 14px 16px; }
.avis-cite p { margin: 6px 0; }
.avis-cite footer { font-weight: 800; font-size: .9rem; opacity: .8; }
.avis-etoiles { color: #f5b301; letter-spacing: 2px; font-size: 1.15rem; }

.offres { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.offre { position: relative; background: #fff; border: 3px solid var(--encre); border-radius: 20px; padding: 20px 22px 24px; box-shadow: 6px 6px 0 var(--encre); }
.offre .btn { width: 100%; }
.offre-top { background: var(--papier); border-width: 4px; }
.prix { font-family: var(--titre); font-size: 2.6rem; font-weight: 700; margin: 0; line-height: 1.1; }
.prix small { display: block; font-size: 1rem; font-family: var(--texte); }
.ruban {
  position: absolute; top: -16px; right: 18px; margin: 0; background: var(--accent2); border: 3px solid var(--encre); border-radius: 999px;
  padding: 2px 12px; font-weight: 800; transform: rotate(3deg);
}
@media (max-width: 760px) { .offres { grid-template-columns: 1fr; } }

.faq details { border-bottom: 2px solid rgba(29, 53, 87, .2); padding: 12px 0; }
.faq summary { font-family: var(--titre); font-weight: 600; font-size: 1.15rem; cursor: pointer; }
.faq details p { margin: 8px 0 0; max-width: 75ch; }
.final { text-align: center; }

.pied { background: var(--encre); color: #dce6f5; text-align: center; padding: 26px 16px; font-size: .92rem; }
.pied a { color: #fff; }

/* Article (guide) et pages légales */
.article { max-width: 760px; margin: 0 auto; padding: 36px 16px 60px; }
.article h1 { font-size: clamp(2rem, 5.6vw, 2.8rem); }
.article h2 { font-size: 1.6rem; margin-top: 1.6em; }
.article .chapo { font-size: 1.18rem; font-weight: 600; }
.article .encadre { background: #fff; border: 3px solid var(--encre); border-radius: 16px; padding: 14px 18px; box-shadow: 5px 5px 0 var(--encre); margin: 20px 0; }
.article .encadre-cta { background: var(--accent2); text-align: center; }
.article .mini-horloge { width: min(60vw, 220px); margin: 16px auto; }
.fil { font-size: .9rem; font-weight: 700; }
.legal { font-size: 1rem; }

/* Cadran (mêmes classes que l'appli) */
.horloge { width: 100%; height: auto; display: block; overflow: visible; }
.h-boitier { fill: var(--encre); }
.h-cadran { fill: var(--cadran); stroke: var(--accent2); stroke-width: 5; }
.h-cran { stroke: var(--encre-cadran); stroke-width: 1.5; opacity: .45; }
.h-cran-fort { stroke: var(--encre-cadran); stroke-width: 4; stroke-linecap: round; }
.h-chiffre { font-family: var(--titre); font-weight: 700; font-size: 27px; fill: var(--encre-cadran); text-anchor: middle; dominant-baseline: central; }
.h-chiffre.gros { font-size: 36px; }
.h-minute { font-family: var(--texte); font-weight: 800; font-size: 11px; fill: var(--aig-m); text-anchor: middle; dominant-baseline: central; }
.h-aig-h { stroke: var(--aig-h); stroke-width: 11; stroke-linecap: round; }
.h-aig-m { stroke: var(--aig-m); stroke-width: 7; stroke-linecap: round; }
.h-poignee { fill: transparent; }
.h-axe { fill: var(--encre-cadran); } .h-axe-centre { fill: var(--accent2); }
.h-fantome { display: none; }
.h-g-h, .h-g-m { transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .h-g-h, .h-g-m { transition: none; } }
