/* Plan santé Québec : feuille de style */
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bleu: #003da5;
  --bleu-vif: #0a52c9;
  --marine: #0a2a66;
  --nuit: #071c45;
  --encre: #0f1b33;
  --texte: #2b3a55;
  --gris: #5a6782;
  --ligne: #dce4f2;
  --pale: #f3f6fc;
  --pale-2: #e7eefa;
  --blanc: #ffffff;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(10, 42, 102, .06), 0 8px 24px rgba(10, 42, 102, .08);
  --ombre-forte: 0 2px 6px rgba(7, 28, 69, .18), 0 24px 48px rgba(7, 28, 69, .28);
  --large: 1160px;
  --texte-max: 720px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; font-family: var(--sans); font-size: 1.125rem; line-height: 1.65;
  color: var(--texte); background: var(--blanc);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bleu); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--marine); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bleu-vif); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--encre); line-height: 1.15; font-weight: 650; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
strong { color: var(--encre); font-weight: 650; }

.saut { position: absolute; left: -9999px; top: 0; background: var(--bleu); color: #fff; padding: .6rem 1rem; z-index: 100; }
.saut:focus { left: 1rem; top: 1rem; }
.conteneur { width: min(100% - 2.5rem, var(--large)); margin-inline: auto; }
.etroit { max-width: var(--texte-max); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--ligne); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--encre); }
.logo:hover { color: var(--encre); }
.logo-marque { width: 40px; height: 40px; border-radius: 10px; background: var(--bleu); display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.logo-marque svg { width: 26px; height: 26px; }
.logo-texte { display: flex; flex-direction: column; line-height: 1.1; }
.logo-nom { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.logo-tag { font-size: .78rem; color: var(--gris); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a { text-decoration: none; color: var(--texte); font-weight: 600; font-size: .98rem; padding: .5rem .7rem; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--pale); color: var(--bleu); }
.nav a[aria-current="page"] { color: var(--bleu); background: var(--pale-2); }
.nav .num { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--pale-2); color: var(--bleu); font-size: .78rem; margin-right: .35rem; font-weight: 700; }
.nav a[aria-current="page"] .num { background: var(--bleu); color: #fff; }
.nav .nav-contact { background: var(--bleu); color: #fff; margin-left: .4rem; }
.nav .nav-contact:hover, .nav .nav-contact[aria-current="page"] { background: var(--marine); color: #fff; }
.menu-btn { display: none; align-items: center; gap: .45rem; background: none; border: 1px solid var(--ligne); border-radius: 10px; padding: .5rem .8rem; font: 600 1rem var(--sans); color: var(--encre); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--ligne); flex-direction: column; align-items: stretch; padding: .6rem 1.25rem 1.1rem; gap: .1rem; box-shadow: 0 16px 32px rgba(10,42,102,.12); display: none; }
  .nav.ouvert { display: flex; }
  .nav a { padding: .75rem .8rem; font-size: 1.05rem; }
  .nav .nav-contact { margin: .4rem 0 0; text-align: center; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 650 1.05rem var(--sans); padding: .85rem 1.35rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-blanc { background: #fff; color: var(--bleu); }
.btn-blanc:hover { background: var(--pale-2); color: var(--marine); }
.btn-contour { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-contour:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-bleu { background: var(--bleu); color: #fff; }
.btn-bleu:hover { background: var(--marine); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* Héros d'accueil */
.heros { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #1a5fd1 0%, rgba(26,95,209,0) 60%), linear-gradient(140deg, var(--bleu) 0%, var(--marine) 62%, var(--nuit) 100%); }
.heros::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(255,255,255,.12); }
.heros .filigrane { position: absolute; right: -6%; bottom: -22%; width: 46%; opacity: .06; pointer-events: none; }
.heros .conteneur { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: 5.5rem 0 6rem; }
.heros h1 { color: #fff; margin-bottom: .35em; }
.surtitre { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .85rem; letter-spacing: .09em; text-transform: uppercase; color: #cfe0ff; margin-bottom: 1.2rem; }
.surtitre::before { content: ""; width: 28px; height: 2px; background: #9fc0ff; }
.heros .accroche { font-size: clamp(1.2rem, 2vw, 1.45rem); color: #e6efff; font-weight: 600; margin-bottom: 1rem; }
.heros p { color: #d8e5ff; max-width: 38rem; }
.heros .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.drapeau-carte { justify-self: center; width: min(100%, 420px); }
.drapeau-carte .drapeau { border-radius: 6px; box-shadow: var(--ombre-forte); transform: perspective(900px) rotateY(-12deg) rotateX(4deg); }
.drapeau-carte figcaption { margin-top: 1.4rem; text-align: center; font-size: .9rem; color: #b9cdf3; letter-spacing: .02em; }
@media (max-width: 900px) {
  .heros .conteneur { grid-template-columns: 1fr; padding: 3.5rem 0 4rem; gap: 2.5rem; }
  .drapeau-carte { width: min(70%, 300px); justify-self: start; }
  .drapeau-carte .drapeau { transform: none; }
  .drapeau-carte figcaption { text-align: left; }
}

/* Sections */
.section { padding: 5rem 0; }
.section-pale { background: var(--pale); border-block: 1px solid var(--ligne); }
.entete-section { max-width: 760px; margin-bottom: 2.6rem; }
.entete-section .etiquette, .etiquette { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--bleu); margin-bottom: .7rem; }
.entete-section p { color: var(--gris); font-size: 1.15rem; }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.5rem 1.4rem 1.3rem; box-shadow: var(--ombre); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bleu); }
.stat .chiffre { font-family: var(--serif); font-weight: 700; color: var(--bleu); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.05; margin-bottom: .55rem; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.stat p { margin: 0; font-size: 1rem; color: var(--texte); line-height: 1.5; }
@media (max-width: 1000px) { .stats, .stats-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats, .stats-3 { grid-template-columns: 1fr; } }

/* Cartes des mesures */
.mesures { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.mesure { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ligne); border-radius: 18px; padding: 1.8rem 1.7rem 1.6rem; text-decoration: none; color: var(--texte); box-shadow: var(--ombre); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mesure:nth-child(4), .mesure:nth-child(5) { grid-column: span 3; }
.mesure:hover { transform: translateY(-3px); border-color: #b8c9ea; box-shadow: 0 2px 4px rgba(10,42,102,.08), 0 18px 40px rgba(10,42,102,.14); color: var(--texte); text-decoration: none; }
.mesure .pastille { width: 48px; height: 48px; border-radius: 50%; background: var(--bleu); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; display: grid; place-items: center; margin-bottom: 1.1rem; }
.mesure h3 { font-size: 1.45rem; margin-bottom: .45rem; }
.mesure p { font-size: 1.02rem; margin-bottom: 1.1rem; }
.mesure .cible { margin-top: auto; font-size: .95rem; background: var(--pale); border-radius: 10px; padding: .7rem .85rem; color: var(--marine); }
.mesure .cible b { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); margin-bottom: .1rem; }
.mesure .lire { margin-top: 1rem; font-weight: 700; color: var(--bleu); display: inline-flex; align-items: center; gap: .4rem; }
.mesure .lire svg { width: 18px; height: 18px; transition: transform .18s ease; }
.mesure:hover .lire svg { transform: translateX(4px); }
@media (max-width: 1000px) { .mesures { grid-template-columns: 1fr 1fr; } .mesure, .mesure:nth-child(4), .mesure:nth-child(5) { grid-column: span 1; } .mesure:nth-child(5) { grid-column: span 2; } }
@media (max-width: 640px) { .mesures { grid-template-columns: 1fr; } .mesure:nth-child(5) { grid-column: span 1; } }

/* Principes */
.principes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.principe .icone { width: 46px; height: 46px; border-radius: 12px; background: var(--pale-2); color: var(--bleu); display: grid; place-items: center; margin-bottom: 1rem; }
.principe .icone svg { width: 24px; height: 24px; }
.principe h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.principe p { font-size: 1.02rem; color: var(--gris); margin: 0; }
@media (max-width: 1000px) { .principes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principes { grid-template-columns: 1fr; } }

.gros-plan { display: grid; gap: 2rem; }
.gros-plan-liste { background: var(--pale); border: 1px solid var(--ligne); border-radius: 18px; padding: 1.8rem 2rem; }
.gros-plan-liste h3 { margin-bottom: .2rem; }
.gros-plan-liste .liste-check { margin-top: 1rem; }
.gros-plan-liste .liste-check a { font-weight: 650; white-space: nowrap; }

/* Bandeau qui sommes-nous */
.bandeau { background: var(--marine); color: #e3ecff; border-radius: 22px; padding: 3rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; position: relative; overflow: hidden; }
.bandeau h2 { color: #fff; }
.bandeau p { color: #cfdcf7; }
.bandeau .filigrane { position: absolute; right: -40px; top: -40px; width: 260px; opacity: .07; }
.bandeau .actions { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; position: relative; }
@media (max-width: 860px) { .bandeau { grid-template-columns: 1fr; padding: 2.2rem 1.6rem; } }

/* Pages de mesure */
.heros-mesure { background: linear-gradient(140deg, var(--bleu) 0%, var(--marine) 70%, var(--nuit) 100%); color: #fff; position: relative; overflow: hidden; }
.heros-mesure .filigrane { position: absolute; right: -3%; top: -30%; width: 34%; opacity: .07; pointer-events: none; }
.heros-mesure .conteneur { position: relative; padding: 3.2rem 0 3.6rem; }
.fil { font-size: .95rem; color: #bcd0f5; margin-bottom: 1.6rem; }
.fil a { color: #dfe9ff; }
.heros-mesure .numero { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: #cfe0ff; margin-bottom: 1rem; }
.heros-mesure .numero span { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--bleu); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0; }
.heros-mesure h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; }
.heros-mesure .intro { font-size: 1.22rem; color: #dbe6ff; max-width: 46rem; margin: 0; }

.bloc { padding: 4rem 0; }
.bloc + .bloc { padding-top: 0; }
.bloc h2 { display: flex; align-items: center; gap: .8rem; }
.bloc h2 .trait { width: 30px; height: 3px; background: var(--bleu); border-radius: 2px; flex: none; }
.texte { max-width: var(--texte-max); }
.encadre { background: var(--pale); border: 1px solid var(--ligne); border-left: 4px solid var(--bleu); border-radius: 12px; padding: 1.3rem 1.5rem; margin: 1.8rem 0 0; max-width: var(--texte-max); }
.encadre p:last-child { margin-bottom: 0; }
.encadre .etiquette { margin-bottom: .3rem; }

.propositions { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: prop; }
.propositions li { counter-increment: prop; display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.5rem 1.6rem 1.4rem 1.3rem; box-shadow: var(--ombre); }
.propositions li::before { content: counter(prop); width: 42px; height: 42px; border-radius: 12px; background: var(--pale-2); color: var(--bleu); font-family: var(--serif); font-weight: 700; font-size: 1.25rem; display: grid; place-items: center; }
.propositions h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.propositions p { margin: 0 0 .6em; font-size: 1.05rem; }
.propositions p:last-child { margin-bottom: 0; }

.cibles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.cible-carte { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.3rem 1.3rem 1.2rem; background: #fff; }
.cible-carte .quand { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--bleu); color: #fff; border-radius: 999px; padding: .25rem .7rem; margin-bottom: .75rem; }
.cible-carte p { margin: 0; font-weight: 600; color: var(--encre); font-size: 1.05rem; line-height: 1.45; }

.objections { max-width: var(--texte-max); display: grid; gap: .8rem; }
.objections details { border: 1px solid var(--ligne); border-radius: 12px; background: #fff; }
.objections summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 650; color: var(--encre); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.objections summary::-webkit-details-marker { display: none; }
.objections summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--bleu); font-weight: 400; }
.objections details[open] summary::after { content: "\2212"; }
.objections details > div { padding: 0 1.3rem 1.2rem; }
.objections details p:last-child { margin: 0; }

.sources { max-width: var(--texte-max); font-size: .95rem; color: var(--gris); padding-left: 1.4rem; margin: 0; }
.sources li { margin-bottom: .45rem; padding-left: .2rem; }
.sources li:target { background: #fff6d6; border-radius: 4px; }
sup.ref { font-size: .68em; line-height: 0; margin-left: .1em; }
sup.ref a { text-decoration: none; font-weight: 700; padding: 0 .12em; }

.suite { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.suite a { display: block; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.2rem 1.4rem; text-decoration: none; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.suite a:hover { border-color: #b8c9ea; box-shadow: var(--ombre); }
.suite small { display: block; color: var(--gris); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.suite strong { font-family: var(--serif); font-size: 1.2rem; color: var(--bleu); }
.suite .droite { text-align: right; }
@media (max-width: 640px) { .suite { grid-template-columns: 1fr; } .suite .droite { text-align: left; } }

/* Formulaire */
.contact-grille { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact-grille { grid-template-columns: 1fr; gap: 2rem; } }
.formulaire { background: #fff; border: 1px solid var(--ligne); border-radius: 18px; padding: 2rem; box-shadow: var(--ombre); display: grid; gap: 1.15rem; }
.champ { display: grid; gap: .4rem; }
.champ label { font-weight: 650; color: var(--encre); font-size: 1rem; }
.champ .aide { font-weight: 400; color: var(--gris); font-size: .9rem; }
.champ input, .champ select, .champ textarea { font: 400 1.05rem var(--sans); color: var(--encre); background: var(--pale); border: 1px solid var(--ligne); border-radius: 10px; padding: .75rem .9rem; width: 100%; }
.champ select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003da5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.5rem; }
.champ textarea { min-height: 180px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bleu); background: #fff; box-shadow: 0 0 0 3px rgba(0,61,165,.15); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .deux { grid-template-columns: 1fr; } .formulaire { padding: 1.4rem; } }
.piege { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.statut { border-radius: 10px; padding: .9rem 1rem; font-weight: 600; display: none; }
.statut.ok { display: block; background: #e8f5ee; color: #135b33; border: 1px solid #b9e2c8; }
.statut.erreur { display: block; background: #fdecec; color: #8a1c1c; border: 1px solid #f3c1c1; }
.formulaire button[disabled] { opacity: .6; cursor: wait; transform: none; }
.confidentialite { font-size: .92rem; color: var(--gris); margin: 0; }
.liste-check { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.liste-check li { display: grid; grid-template-columns: 26px 1fr; gap: .6rem; }
.liste-check svg { width: 22px; height: 22px; color: var(--bleu); margin-top: .2rem; }

/* Pied de page */
.pied { background: var(--nuit); color: #b8c7e6; padding: 3.5rem 0 2.5rem; font-size: .98rem; margin-top: 0; }
.pied a { color: #e1eaff; }
.pied-haut { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.pied .marque { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.pied .marque .drapeau { width: 66px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.pied .marque span { font-family: var(--serif); color: #fff; font-size: 1.3rem; font-weight: 700; }
.pied h3 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pied ul a { text-decoration: none; }
.pied ul a:hover { text-decoration: underline; }
.pied-bas { padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .9rem; color: #8fa3cc; }
.avis { max-width: 40rem; }
@media (max-width: 860px) { .pied-haut { grid-template-columns: 1fr; gap: 2rem; } }

.introuvable { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 5rem 0; }
.introuvable .grand { font-family: var(--serif); font-size: 6rem; color: var(--bleu); line-height: 1; margin-bottom: .5rem; }
