/* La page d'accueil de Cerfix. Les polices sont rangées avec le site : aucun appel à Google Fonts. */
@font-face { font-family: "Barlow"; src: url("polices/barlow-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("polices/barlow-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+2020-20CF; }
@font-face { font-family: "Barlow"; src: url("polices/barlow-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("polices/barlow-condensed-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bleu: #1f4e8c; --nuit: #14304f; --texte: #1b2126; --gris: #56616b; --fond: #ffffff; --doux: #f3f5f7; --ligne: #dfe3e7; --clair: #cddcf0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 17px/1.6 "Barlow", system-ui, sans-serif; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--bleu); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2, .marque { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; }
h1 { font-size: clamp(38px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
.largeur { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.etroit { max-width: 760px; }

.entete { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--ligne); }
.entete-dedans { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marque { font-size: 28px; color: var(--bleu); text-decoration: none; letter-spacing: .3px; }
.entete nav { display: flex; align-items: center; gap: 22px; }
.entete nav a:not(.bouton) { color: var(--texte); text-decoration: none; font-weight: 600; font-size: 15px; }
.entete nav a:not(.bouton):hover { color: var(--bleu); }

.bouton { display: inline-block; padding: 13px 22px; border-radius: 6px; border: 2px solid var(--bleu); background: var(--bleu); color: #fff; font-weight: 600; text-decoration: none; text-align: center; }
.bouton:hover { background: var(--nuit); border-color: var(--nuit); }
.bouton.clair { background: transparent; color: var(--bleu); }
.bouton.clair:hover { background: var(--doux); color: var(--nuit); }
.bouton.petit { padding: 8px 14px; font-size: 15px; color: #fff; }
a:focus-visible { outline: 3px solid #e0a100; outline-offset: 2px; }

.accroche { padding: 64px 0 72px; background: var(--doux); border-bottom: 1px solid var(--ligne); }
.accroche-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.surtitre { color: var(--bleu); font-weight: 600; margin-bottom: 10px; }
.chapo { margin-top: 18px; font-size: 19px; color: var(--gris); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.note { margin-top: 12px; font-size: 14.5px; color: var(--gris); }
.ecran { margin: 0; border: 1px solid var(--ligne); border-radius: 8px; overflow: hidden; box-shadow: 0 14px 34px rgba(20, 48, 79, .16); background: #fff; }

.bande { padding: 64px 0; border-bottom: 1px solid var(--ligne); text-align: center; }
.bande h2 { margin-bottom: 22px; }
.bande video { width: 100%; border-radius: 8px; border: 1px solid var(--ligne); }

.section { padding: 72px 0; }
.section > .largeur > h2 { margin-bottom: 30px; }
.grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 32px; }
.grille article { border-top: 3px solid var(--bleu); padding-top: 14px; }
.grille p, .etapes p { margin-top: 6px; color: var(--gris); }

.fonce { background: var(--nuit); color: #fff; }
.fonce h2 { margin-bottom: 16px; }
.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.liste { margin: 0; padding-left: 20px; color: var(--clair); }
.liste li { margin-bottom: 8px; }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: etape; }
.etapes li { counter-increment: etape; }
.etapes li::before { content: counter(etape); display: block; margin-bottom: 10px; font: 700 34px "Barlow Condensed", "Arial Narrow", sans-serif; color: var(--bleu); }

.fin { background: var(--doux); text-align: center; border-top: 1px solid var(--ligne); }
.fin p { margin: -16px 0 20px; color: var(--gris); }

.pied { padding: 26px 0; font-size: 15px; color: var(--gris); }
.pied-dedans { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.texte h1 { margin-bottom: 18px; }
.texte h2 { font-size: 24px; margin: 26px 0 6px; }

@media (max-width: 900px) {
  .accroche { padding: 42px 0 48px; }
  .accroche-grille, .deux { grid-template-columns: minmax(0, 1fr); }
  .grille, .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 54px 0; }
}
@media (max-width: 640px) {
  .largeur { padding: 0 16px; }
  .entete nav a:not(.bouton) { display: none; }
  .bouton.petit { padding: 7px 10px; font-size: 13.5px; }
  .grille, .etapes { grid-template-columns: minmax(0, 1fr); }
  .actions .bouton { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
