/*
 * Site public i-q.ch, feuille de style commune.
 *
 * Reprise à l'identique du style retenu le 20.11.2026 : la page de
 * démonstration /_admin/etudes/site_public/proposition_connexion.php de BRAIN,
 * état step3c984 (thème de la page de connexion, signin.css). Seuls sont
 * retirés le bandeau de démonstration et le sélecteur de thème : le thème
 * sombre suit le réglage de l'appareil.
 *
 * Ajouts pour les pages intérieures, en fin de fichier : en-tête de page sur
 * une colonne, paragraphes de texte, listes dans les cartes, page en cours
 * dans le menu, lien d'évitement. Polices du système : rien n'est téléchargé.
 */

/* Couleurs reprises de signin.css (clair) et de son thème sombre. */
:root {
  --fond:#f8f9fc; --texte:#30415e; --titre:#253852; --doux:#61759a; --pale:#6f83a4; --trait:#dde2ee;
  --carte:#ffffff; --accent:#5667ad; --accent-h:#465797; --violet:#9c76a7; --puce:rgba(255,255,255,.65); --puce-bord:#ffffff;
  --degrade:linear-gradient(130deg,#d2e6f3,#e6dff0 58%,#f0ddea); --cercle:rgba(255,255,255,.5); --halo1:rgba(255,255,255,.094); --halo2:rgba(255,255,255,.07);
  --barre:#253852; --bande:#253852; --bande-texte:#dce8ff; --wa:#25D366;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond:#172234; --texte:#e4edff; --titre:#e4edff; --doux:#bdcee9; --pale:#a7b4d0; --trait:#425370;
    --carte:#243147; --accent:#536fb3; --accent-h:#607dc1; --violet:#d3acd4; --puce:rgba(255,255,255,.055); --puce-bord:rgba(255,255,255,.145);
    --degrade:linear-gradient(130deg,#293f5c,#38344f,#48314b); --cercle:rgba(255,255,255,.14); --halo1:rgba(255,255,255,.03); --halo2:rgba(255,255,255,.02);
    --barre:#0f1826; --bande:#0f1826; --bande-texte:#dce8ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte);
       font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
       font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--titre); }
h1 em, h2 em { font-style: normal; color: var(--violet); }
.cadre { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.surtitre { margin: 0 0 10px; font-size: 11px; font-weight: 650; letter-spacing: 2px; text-transform: uppercase; color: var(--pale); }
.wa { width: 1.1em; height: 1.1em; fill: var(--wa); vertical-align: -0.18em; }
.point { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #8a94a8; margin-right: 7px; vertical-align: 1px; }
.point.ouvert { background: #3fbf6a; } .point.ferme { background: #e0533f; }

/* Barre d'assistance */
.aide { background: var(--barre); color: #dce8ff; font-size: 14px; }
.aide .cadre { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
.aide .outils { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aide .outils > span { color: #a7b4d0; margin-right: 4px; }
.aide .outils a { padding: 4px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; text-decoration: none; color: #fff; background: rgba(255,255,255,.06); }
.aide .outils a:hover { border-color: #fff; }
.aide .contact { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
.aide .contact a { color: #fff; text-decoration: none; font-weight: 600; }

/* En-tête */
.tete { background: var(--fond); border-bottom: 1px solid var(--trait); }
.tete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.tete img { height: 36px; display: block; }
nav.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
nav.menu a { color: var(--texte); text-decoration: none; font-size: 15px; }
nav.menu a:hover { color: var(--accent); }
.bouton { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border: 0; border-radius: 9px; background: var(--accent);
          color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.bouton:hover { background: var(--accent-h); }
.bouton.second { background: var(--carte); color: var(--titre); border: 1px solid var(--trait); }
.bouton.second:hover { border-color: var(--accent); }

/* Accueil : le panneau en dégradé, comme la page de connexion */
.recit { position: relative; overflow: hidden; background: var(--degrade); }
.recit:after { content: ""; position: absolute; width: 520px; height: 520px; right: -150px; bottom: -280px; border: 1px solid var(--cercle);
               border-radius: 50%; box-shadow: 0 0 0 80px var(--halo1), 0 0 0 160px var(--halo2); pointer-events: none; }
.recit .cadre { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.recit h1 { margin: 0 0 22px; font-size: 50px; line-height: 1.1; letter-spacing: -2px; font-weight: 500; }
.recit p.sous { margin: 0; max-width: 32em; font-size: 17px; line-height: 1.75; color: var(--doux); }
.puces { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.puces span { padding: 8px 12px; border: 1px solid var(--puce-bord); border-radius: 6px; background: var(--puce); font-size: 12.5px; color: var(--doux); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

/* La boîte de droite, comme la boîte d'identification */
.boite { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 28px 28px 24px; }
.boite h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; letter-spacing: -1px; font-weight: 600; }
.boite > p { margin: 0 0 20px; font-size: 14px; color: var(--doux); }
.boite .ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--trait); font-size: 15px; }
.boite .ligne a { color: var(--titre); text-decoration: none; font-weight: 600; }
.boite .ligne span.lib { color: var(--doux); font-size: 13.5px; }
.boite .outils { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.boite .outils a { display: block; text-align: center; padding: 10px 6px; border: 1px solid var(--trait); border-radius: 8px; text-decoration: none; color: var(--titre); font-size: 13.5px; font-weight: 600; }
.boite .outils a small { display: block; font-weight: 400; color: var(--doux); font-size: 12px; }
.boite .outils a:hover { border-color: var(--accent); }
.boite ol.mini { margin: 0 0 6px; padding: 0; list-style: none; counter-reset: m; }
.boite ol.mini li { counter-increment: m; display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--trait); font-size: 14.5px; color: var(--doux); }
.boite ol.mini li::before { content: counter(m); font-size: 20px; font-weight: 300; line-height: 1.1; color: var(--violet); }
.boite ol.mini strong { color: var(--titre); }
.boite .ecrit { margin: 14px 0 0; font-size: 14px; }

/* Sections */
.section { padding: 76px 0; }
.section .entete { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; margin-bottom: 34px; }
.section h2 { margin: 0; font-size: 38px; line-height: 1.12; letter-spacing: -1.4px; font-weight: 500; }
.section .entete p { margin: 0; color: var(--doux); font-size: 16.5px; line-height: 1.75; }

.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 26px 26px 24px; display: flex; flex-direction: column; }
.carte h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.2; letter-spacing: -.5px; font-weight: 600; }
.carte p { margin: 0 0 12px; color: var(--doux); font-size: 15px; }
.carte .prix { color: var(--titre); font-weight: 600; margin-top: auto; }
.carte a.lien { font-weight: 600; text-decoration: none; }

.particuliers { background: var(--degrade); position: relative; overflow: hidden; }
.particuliers:after { content: ""; position: absolute; width: 420px; height: 420px; left: -160px; top: -220px; border: 1px solid var(--cercle);
                      border-radius: 50%; box-shadow: 0 0 0 80px var(--halo1), 0 0 0 160px var(--halo2); pointer-events: none; }
.particuliers .cadre { position: relative; z-index: 1; }
ol.etapes { list-style: none; margin: 0; padding: 0; counter-reset: e; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
ol.etapes li { counter-increment: e; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 22px 22px 20px; font-size: 15px; color: var(--doux); }
ol.etapes li::before { content: counter(e); display: block; font-size: 30px; font-weight: 300; color: var(--violet); line-height: 1; margin-bottom: 10px; }
ol.etapes strong { color: var(--titre); }
.outils-gros { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ecrit { margin: 22px 0 0; color: var(--doux); font-size: 15.5px; }
.ecrit a { color: var(--titre); font-weight: 600; text-decoration: none; }

table.t { border-collapse: collapse; width: 100%; font-size: 15.5px; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; overflow: hidden; }
table.t th, table.t td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--trait); }
table.t tr:last-child td { border-bottom: 0; }
table.t th { font-size: 11px; font-weight: 650; letter-spacing: 1.6px; text-transform: uppercase; color: var(--pale); }
table.t td.m { text-align: right; white-space: nowrap; font-weight: 600; color: var(--titre); font-variant-numeric: tabular-nums; }

/* Horaires : la bande bleu nuit */
.horaires { background: var(--bande); color: var(--bande-texte); padding: 76px 0; }
.horaires .cadre { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.horaires h2 { color: #fff; margin: 0 0 16px; font-size: 40px; letter-spacing: -1.4px; font-weight: 500; }
.horaires h2 em { color: #d3acd4; }
.horaires .surtitre { color: #a7b4d0; }
.horaires .statut { color: #fff; font-size: 19px; margin: 0 0 4px; }
.horaires .statut .point { width: 11px; height: 11px; margin-right: 9px; vertical-align: 0; }
.horaires .info { color: #a7b4d0; margin: 0 0 20px; }
table.semaine { border-collapse: collapse; width: 100%; font-size: 15.5px; }
table.semaine td { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #a7b4d0; font-variant-numeric: tabular-nums; }
table.semaine td + td { text-align: right; }
table.semaine tr.auj td { color: #fff; font-weight: 600; }
.horaires address { font-style: normal; color: #c7d4ef; }
.horaires .tel { display: block; margin: 8px 0 6px; color: #fff; text-decoration: none; font-size: 38px; font-weight: 300; letter-spacing: -1px; }
.horaires a { color: #fff; }
.horaires .bouton.second { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

ol.dates { list-style: none; margin: 0; padding: 0; }
ol.dates li { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--trait); color: var(--doux); }
ol.dates li:first-child { border-top: 1px solid var(--trait); }
ol.dates strong { color: var(--titre); font-weight: 600; font-variant-numeric: tabular-nums; }

.pied { background: var(--barre); color: #a7b4d0; padding: 44px 0 30px; font-size: 14.5px; }
.pied .grille { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.pied strong { color: #fff; display: block; margin-bottom: 6px; font-weight: 600; }
.pied a { color: #dce8ff; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 3px; }
.pied .bas { margin-top: 32px; font-size: 12.5px; color: #7f8fae; display: flex; gap: 20px; flex-wrap: wrap; }
.pied .bas:first-child { margin-top: 0; }

.tete img.logo-sombre { display: none; }
@media (prefers-color-scheme: dark) {
  .tete img.logo-clair { display: none; }
  .tete img.logo-sombre { display: block; }
}

/* Pages intérieures (ajouts au style retenu) */
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 12px; top: 12px; z-index: 10; background: #fff; color: #253852; padding: 8px 12px; border-radius: 6px; }
nav.menu a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.recit.seul .cadre { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 64px; }
.recit.seul h1 { max-width: 20em; }
.section .texte p { margin: 0 0 14px; color: var(--doux); font-size: 16.5px; line-height: 1.75; }
.section .texte p:last-child { margin-bottom: 0; }
.texte strong { color: var(--titre); }
.texte h3 { margin: 26px 0 8px; font-size: 19px; font-weight: 600; }
.texte h3:first-child { margin-top: 0; }
.cartes.deux { grid-template-columns: repeat(2, 1fr); }
.carte ul { margin: 0 0 12px; padding-left: 18px; color: var(--doux); font-size: 15px; }
.carte li { margin-bottom: 4px; }

@media (max-width: 900px) {
  .cadre { padding: 0 18px; }
  .tete .cadre { flex-wrap: wrap; gap: 12px; }
  .tete .appel { display: none; }
  nav.menu ul { gap: 4px 16px; }
  .recit .cadre, .section .entete, .horaires .cadre, .pied .grille { grid-template-columns: 1fr; gap: 28px; }
  .recit .cadre { padding-top: 36px; padding-bottom: 44px; }
  .recit h1 { font-size: 33px; letter-spacing: -1.2px; }
  .cartes, ol.etapes { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section h2, .horaires h2 { font-size: 29px; letter-spacing: -1px; }
  .boite .outils { grid-template-columns: 1fr; }
  .cartes.deux { grid-template-columns: 1fr; }
  .recit.seul .cadre { padding-top: 36px; padding-bottom: 44px; }
}
