/* Le site : la nuit du projecteur, le papier du téléphone, le bleu tekhelet, le jaune du surligneur. */
@font-face { font-family: "Frank Ruhl Libre"; src: url(polices/frank-ruhl-libre-latin-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Frank Ruhl Libre"; src: url(polices/frank-ruhl-libre-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Frank Ruhl Libre"; src: url(polices/frank-ruhl-libre-hebrew-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

:root {
  --nuit: #07080a; --papier: #fbfbf9; --feuille: #ffffff; --encre: #10151c; --sourd: #5b6470; --trait: #e3e6ea;
  --tekhelet: #14618c; --tekhelet-clair: #8ccbee; --surligneur: #ffe680; --alerte: #a5281b;
  --lecture: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --outil: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --marge: clamp(20px, 5vw, 72px); --colonne: 1320px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 18px/1.62 var(--lecture); }
img, video { max-width: 100%; display: block; }
a { color: var(--tekhelet); text-underline-offset: .18em; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--tekhelet); outline-offset: 3px; border-radius: 2px; }
.nuit :focus-visible { outline-color: var(--surligneur); }

/* --- tête et pied --- */
.tete { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px var(--marge); max-width: var(--colonne); margin: 0 auto; }
.tete .nom { font-size: 1.22rem; font-weight: 600; color: inherit; text-decoration: none; }
.tete nav { display: flex; gap: clamp(16px, 3vw, 34px); font: 500 .92rem var(--outil); }
.tete nav a { color: inherit; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.tete nav a:hover { border-bottom-color: currentColor; }
.pied { margin-top: 96px; padding: 40px max(var(--marge), calc((100% - var(--colonne)) / 2 + var(--marge))) 56px; border-top: 1px solid var(--trait); font: .88rem/1.7 var(--outil); color: var(--sourd);
  display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pied a { color: inherit; }

/* --- formes communes --- */
main { display: block; }
.colonne { max-width: var(--colonne); margin: 0 auto; padding: 0 var(--marge); }
button, .bouton { font: 600 1rem var(--outil); padding: 13px 22px; border-radius: 6px; border: 1.5px solid var(--encre); background: transparent; color: var(--encre);
  cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.2; }
button:hover, .bouton:hover { background: var(--encre); color: var(--papier); }
button.principal, .bouton.principal { background: var(--tekhelet); border-color: var(--tekhelet); color: #fff; }
button.principal:hover, .bouton.principal:hover { background: #0e4c6f; border-color: #0e4c6f; }
button.lien { border: 0; padding: 0; font-weight: 500; color: var(--tekhelet); text-decoration: underline; text-underline-offset: .18em; }
button.lien:hover { background: transparent; color: var(--encre); }
input[type=text], input[type=email], input:not([type]), textarea { font: 1rem var(--outil); padding: 12px 14px; border: 1.5px solid #b9c0c8; border-radius: 6px; background: var(--feuille);
  color: var(--encre); width: 100%; }
label { font: 600 .9rem var(--outil); display: block; margin: 18px 0 6px; }
.note { font: .92rem/1.55 var(--outil); color: var(--sourd); }
.note.ko { color: var(--alerte); background: #fdf1ef; border-left: 3px solid var(--alerte); padding: 10px 14px; }
.note.ok { color: #1d5b3a; background: #eef7f1; border-left: 3px solid #2c8a57; padding: 10px 14px; }
.sourd { color: var(--sourd); }
.coche { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font: 400 .9rem/1.45 var(--outil); margin: 12px 0; cursor: pointer; }
.coche input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--tekhelet); }

/* --- pages étroites : connexion, merci, textes légaux --- */
.etroit { max-width: 34rem; margin: 0 auto; padding: clamp(40px, 9vh, 96px) var(--marge) 0; }
.etroit h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .5em; }
.etroit form { margin-top: 26px; }
.etroit form button { margin-top: 18px; }
.texte { max-width: 42rem; margin: 0 auto; padding: clamp(32px, 7vh, 72px) var(--marge) 0; }
.texte h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .7em; }
.texte h2 { font-size: 1.35rem; margin: 2em 0 .5em; }
.texte ul { padding-left: 1.2em; }
.texte .brouillon { font: .92rem/1.55 var(--outil); background: var(--surligneur); padding: 14px 18px; border-radius: 4px; margin-bottom: 2em; }

/* =========================== la landing =========================== */
body.accueil { background: var(--papier); }
.nuit { background: var(--nuit); color: #efece4; }
.nuit a { color: var(--tekhelet-clair); }
.nuit .tete nav a { color: #efece4; }
.ecran { padding: clamp(36px, 9vh, 110px) var(--marge) clamp(48px, 9vh, 96px); max-width: var(--colonne); margin: 0 auto; }
.entendu { direction: rtl; text-align: left; font-size: clamp(1.1rem, 2.1vw, 1.5rem); color: var(--tekhelet-clair); margin: 0 0 clamp(18px, 3vh, 30px);
  display: flex; flex-direction: row-reverse; justify-content: flex-start; align-items: center; gap: 14px; }
/* la même ligne pour une langue qui s'écrit de gauche à droite (accueil) */
.entendu-fr { font-size: clamp(1.1rem, 2.1vw, 1.5rem); color: var(--tekhelet-clair); margin: 0 0 clamp(18px, 3vh, 30px);
  display: flex; justify-content: flex-start; align-items: center; gap: 14px; }
.entendu i, .entendu-fr i { width: 9px; height: 9px; border-radius: 50%; background: var(--tekhelet-clair); flex: none; animation: pouls 1.6s ease-in-out infinite; }
@keyframes pouls { 50% { opacity: .25; } }
.ecran h1 { font-size: clamp(2.5rem, 7.4vw, 6.2rem); line-height: 1.04; letter-spacing: -.018em; }
.ecran h1 span { opacity: 0; transition: opacity .32s ease; }
.ecran h1 span.dit { opacity: 1; }
.ecran .suite { max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #cfccc4; margin: clamp(22px, 4vh, 40px) 0 30px; }
.ecran .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.nuit .bouton { border-color: #efece4; color: #efece4; }
.nuit .bouton:hover { background: #efece4; color: var(--nuit); }
.nuit .bouton.principal { background: var(--surligneur); border-color: var(--surligneur); color: var(--nuit); }
.nuit .bouton.principal:hover { background: #fff3b8; border-color: #fff3b8; color: var(--nuit); }
.ecran .petit { font: .9rem var(--outil); color: #9c9990; margin: 16px 0 0; }
.film { padding: 0 var(--marge) clamp(56px, 10vh, 110px); max-width: var(--colonne); margin: 0 auto; }
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid #26282c; border-radius: 4px; }
.film p { font: .9rem var(--outil); color: #9c9990; margin: 12px 0 0; }

.partie { padding-top: clamp(64px, 11vh, 128px); }
.partie h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); max-width: 20ch; margin-bottom: .7em; }
.deux { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.deux.inverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.deux p { max-width: 34em; }
.vue { border-radius: 4px; border: 1px solid var(--trait); background: var(--feuille); width: 100%; height: auto; }
.vue.nue { border: 0; background: none; border-radius: 0; }
mark { background: linear-gradient(transparent 58%, var(--surligneur) 58%); color: inherit; padding: 0 .08em; }
.aides { list-style: none; padding: 0; margin: 1.6em 0 0; border-top: 1px solid var(--trait); }
.aides li { padding: 15px 0; border-bottom: 1px solid var(--trait); display: grid; grid-template-columns: minmax(8.5em, 11em) 1fr; gap: 18px; }
.aides b { font-weight: 600; }
.aides span { color: #333b45; }
.soir { counter-reset: etape; list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.soir li { counter-increment: etape; display: grid; grid-template-columns: 3.2rem 1fr; padding: 20px 0; border-top: 1px solid var(--trait); }
.soir li::before { content: counter(etape); font-size: 2rem; line-height: 1; color: var(--tekhelet); font-weight: 500; }
.soir li:last-child { border-bottom: 1px solid var(--trait); }
.soir b { font-weight: 600; }

.tarifs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; border: 1.5px solid var(--encre); border-radius: 6px; background: var(--feuille); max-width: 60rem; }
.tarifs > div { padding: clamp(24px, 4vw, 44px); }
.tarifs > div + div { border-left: 1.5px solid var(--encre); background: #f3f7f9; }
.tarifs h3 { font-size: 1.3rem; }
.tarifs .prix { font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; margin: .35em 0 .3em; font-weight: 500; }
.tarifs .prix small { font: 500 1rem var(--outil); color: var(--sourd); }
.tarifs ul { padding-left: 1.1em; margin: 1em 0 0; font-size: 1.02rem; }
.tarifs li { margin: .35em 0; }
.apres-tarifs { max-width: 60rem; margin-top: 26px; }
.questions { max-width: 46rem; border-top: 1px solid var(--trait); }
.questions details { border-bottom: 1px solid var(--trait); }
.questions summary { cursor: pointer; padding: 18px 28px 18px 0; font-size: 1.16rem; font-weight: 500; list-style: none; position: relative; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 2px; top: 14px; font: 400 1.5rem var(--outil); color: var(--tekhelet); }
.questions details[open] summary::after { content: "–"; }
.questions details p { margin: 0 0 20px; max-width: 38em; color: #333b45; }
.fin { margin-top: clamp(72px, 12vh, 130px); padding: clamp(56px, 10vh, 110px) max(var(--marge), calc((100% - var(--colonne)) / 2 + var(--marge))); }
.fin h2 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 18ch; margin-bottom: .6em; }
.fin ~ .pied { margin-top: 0; border-top: 0; }

/* =========================== l'espace =========================== */
.espace main { max-width: 60rem; margin: 0 auto; padding: 24px var(--marge) 0; }
.espace h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.espace .qui { font: .92rem var(--outil); color: var(--sourd); margin: 8px 0 0; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.espace section { margin-top: 44px; }
.espace h2 { font-size: 1.45rem; margin-bottom: 14px; }
.lancer { background: var(--feuille); border: 1.5px solid var(--encre); border-radius: 6px; padding: clamp(20px, 3vw, 30px); }
.lancer .ligne { display: flex; gap: 12px; flex-wrap: wrap; }
.lancer .ligne input { flex: 1 1 16rem; width: auto; }
.lancer .ligne select { flex: 0 1 auto; font: 1rem var(--outil); padding: 12px 34px 12px 14px; border: 1.5px solid #b9c0c8; border-radius: 6px; color: var(--encre);
  background: var(--feuille) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2310151c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 11px;
  appearance: none; -webkit-appearance: none; cursor: pointer; }
.lancer .ligne select:focus-visible { outline: 3px solid var(--tekhelet); outline-offset: 1px; }
.solde { list-style: none; padding: 0; margin: 0 0 20px; font: 1rem/1.5 var(--outil); }
.solde li { padding: 4px 0; }
.telephones { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.telephones img { border: 1px solid var(--trait); border-radius: 4px; background: #fff; }
.telephones .adresse { font: 600 1.15rem var(--outil); word-break: break-all; }
.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 20px; align-items: start; }
.offre { background: var(--feuille); border: 1px solid #c9cfd6; border-radius: 6px; padding: 22px; font: .97rem/1.5 var(--outil); }
.offre h3 { font: 500 1.3rem var(--lecture); }
.offre .prix { font: 500 2.2rem/1.1 var(--lecture); margin: 8px 0; }
.offre .prix small { font: 500 .9rem var(--outil); color: var(--sourd); }
.offre button { margin-top: 10px; }
.discret { margin-top: 4px; font: .92rem var(--outil); }
table.cours { width: 100%; border-collapse: collapse; font: .95rem/1.4 var(--outil); }
table.cours th { text-align: left; font-weight: 600; color: var(--sourd); padding: 8px 12px 8px 0; border-bottom: 1.5px solid var(--encre); }
table.cours td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.defile { overflow-x: auto; }

/* =========================== l'administration =========================== */
.admin main { padding: 24px var(--marge) 0; font-family: var(--outil); }
.admin h1 { font: 500 2rem var(--lecture); margin-bottom: 18px; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1px; background: var(--trait); border: 1px solid var(--trait); margin-bottom: 30px; }
.chiffres div { background: var(--feuille); padding: 14px 16px; font-size: .86rem; color: var(--sourd); }
.chiffres b { display: block; font: 500 1.5rem var(--lecture); color: var(--encre); }
.admin table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.admin th { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1.5px solid var(--encre); white-space: nowrap; }
.admin td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--trait); }
.admin td.n, .admin th.n { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .deux, .deux.inverse, .tarifs { grid-template-columns: minmax(0, 1fr); }
  .tarifs > div + div { border-left: 0; border-top: 1.5px solid var(--encre); }
  .aides li { grid-template-columns: 1fr; gap: 2px; }
  .telephones { grid-template-columns: 1fr; }
  .tete nav a.option { display: none; }
  .ecran h1 br { display: none; }
  .cadre { overflow-x: auto; margin: 0 calc(-1 * var(--marge)); padding: 0 var(--marge); }
  .cadre .vue.nue { width: 760px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entendu i, .entendu-fr i { animation: none; }
  .ecran h1 span { transition: none; opacity: 1; }
}
@media print {
  .tete, .pied, .pas-imprime { display: none !important; }
  body { background: #fff; }
}
