/* Page d'accueil de kalanpro.com : statique, trois langues (fr, en, ar en RTL), polices et photos servies par le site. */
@font-face { font-family: "Bricolage"; src: url("/polices/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("/polices/bricolage-grotesque-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage"; src: url("/polices/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("/polices/bricolage-grotesque-latin-ext-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans"; src: url("/polices/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans"; src: url("/polices/source-sans-3-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans"; src: url("/polices/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans"; src: url("/polices/source-sans-3-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Naskh"; src: url("/polices/noto-naskh-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Naskh"; src: url("/polices/noto-naskh-arabic-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }


:root {
  --craie: #f2f4ef;     /* fond : tableau blanc, pas papier crème */
  --surface: #ffffff;
  --encre: #17241d;     /* texte */
  --doux: #4c5a52;      /* texte secondaire */
  --vert: #0f5132;      /* accent de l'application */
  --vert-fonce: #0a3a24;
  --vert-clair: #dbe8df;
  --indigo: #23306b;    /* bazin teint à l'indigo : la couleur des grandes surfaces sombres */
  --indigo-clair: #e3e6f3;
  --carnet: #c9d3e6;    /* lignes bleues du carnet */
  --stylo: #b3261e;     /* stylo rouge de l'enseignant : un seul usage, l'appréciation */
  --trait: #d5dbd4;
  --titre: "Bricolage", "Source Sans", system-ui, sans-serif;
  --texte: "Source Sans", system-ui, sans-serif;
  --mesure: 74rem;
}
:root[lang="ar"] {
  --titre: "Naskh", "Source Sans", serif;
  --texte: "Naskh", "Source Sans", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--craie);
  color: var(--encre);
  font: 400 1.125rem/1.6 var(--texte);
}
:root[lang="ar"] body { font-size: 1.1875rem; line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: var(--vert); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); margin: 0; line-height: 1.1; }
p, figure, dl, dd { margin: 0; }
.cadre { max-width: var(--mesure); margin-inline: auto; padding-inline: 1.25rem; }
.lien-evitement { position: absolute; inset-inline-start: -999px; }
.lien-evitement:focus { inset-inline-start: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }

/* En-tête */
.entete { padding-block: 1rem; }
.entete .cadre { display: flex; align-items: center; gap: 0.5rem 1.25rem; flex-wrap: wrap; }
.marque { display: inline-flex; align-items: center; gap: 0.5rem; font: 800 1.5rem/1 "Bricolage", sans-serif; color: var(--vert); text-decoration: none; letter-spacing: -0.01em; }
.navigation { display: none; gap: 0.25rem; margin-inline-start: 1rem; }
.navigation a { padding: 0.5rem 0.625rem; color: var(--encre); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: 0.375rem; }
.navigation a:hover { background: var(--vert-clair); color: var(--vert); }
@media (min-width: 66rem) { .navigation { display: flex; } }
.langues { display: flex; gap: 0.125rem; margin-inline-start: auto; list-style: none; padding: 0; margin-block: 0; }
.langues a { display: inline-flex; align-items: center; min-height: 2.5rem; padding-inline: 0.625rem; border-radius: 999px; color: var(--doux); text-decoration: none; font-size: 1rem; }
.langues a[aria-current="page"] { background: var(--vert-clair); color: var(--vert); font-weight: 600; }
.langues a:hover { color: var(--encre); }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding-inline: 1.375rem; border-radius: 0.5rem; font: 600 1.0625rem/1 var(--texte); text-decoration: none; border: 2px solid var(--vert); cursor: pointer; }
.bouton-plein { background: var(--vert); color: #fff; }
.bouton-plein:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); }
.bouton-creux { background: transparent; color: var(--vert); }
.bouton-creux:hover { background: var(--vert-clair); }

/* Ouverture : la promesse, puis une vraie cour d'école avec un bulletin et une notification posés dessus */
.ouverture { padding-block: 2rem 2.5rem; }
.ouverture > .cadre:first-child { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62rem) { .ouverture > .cadre:first-child { grid-template-columns: 1fr 1.08fr; gap: 3.5rem; } }
.ouverture h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; max-width: 13ch; text-wrap: balance; }
:root[lang="ar"] .ouverture h1 { font-weight: 700; letter-spacing: 0; line-height: 1.35; max-width: 16ch; }
.ouverture .chapeau { margin-top: 1.5rem; font-size: 1.25rem; color: var(--doux); max-width: 33rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.precision { margin-top: 1.25rem; font-size: 1rem; color: var(--doux); }

.scene { position: relative; padding-block-end: 9rem; }
.scene-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; border-radius: 1.25rem; box-shadow: 0 30px 60px -40px rgba(23, 36, 29, 0.6); }
.bulletin {
  position: absolute;
  inset-inline-start: -0.5rem;
  bottom: 0;
  width: min(19rem, 82%);
  background: var(--surface);
  border-radius: 0.25rem;
  padding: 1rem 1.125rem 1.25rem;
  box-shadow: 0 1px 0 var(--trait), 0 22px 40px -24px rgba(15, 81, 50, 0.55);
  transform: rotate(-2deg);
}
:root[dir="rtl"] .bulletin { transform: rotate(2deg); }
.bulletin-tete { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; border-bottom: 2px solid var(--encre); padding-bottom: 0.5rem; }
.bulletin-tete h2 { font-size: 1.0625rem; font-weight: 600; }
.bulletin-tete p { font-size: 0.8125rem; color: var(--doux); text-align: end; line-height: 1.3; }
.bulletin table { width: 100%; border-collapse: collapse; margin-top: 0.25rem; font-variant-numeric: tabular-nums; }
.bulletin th { text-align: start; font-weight: 600; font-size: 0.75rem; color: var(--doux); padding: 0.375rem 0 0.125rem; }
.bulletin td { padding: 0.25rem 0; font-size: 0.9375rem; border-bottom: 1px solid var(--carnet); }
.bulletin .nombre { text-align: end; }
.bulletin tfoot td { font-weight: 600; border-top: 2px solid var(--encre); border-bottom: 0; padding-top: 0.375rem; }
.appreciation {
  margin-top: 0.75rem;
  color: var(--stylo);
  font: 600 1.125rem/1.2 var(--titre);
  transform: rotate(-2deg);
  transform-origin: left center;
  inline-size: fit-content;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 40% 10% / 0 0 6px 3px;
}
:root[lang="ar"] .appreciation { font-weight: 700; transform: rotate(2deg); }
.avis {
  position: absolute;
  inset-inline-end: -0.5rem;
  top: 1.25rem;
  width: min(17rem, 70%);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  box-shadow: 0 16px 34px -22px rgba(23, 36, 29, 0.8);
  animation: arrivee 0.7s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.avis-app { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: var(--vert); margin-bottom: 0.25rem; }
.avis-app img { border-radius: 0.25rem; }
.avis-app span { margin-inline-start: auto; color: var(--doux); font-weight: 400; }
@keyframes arrivee { from { opacity: 0; transform: translateY(-0.75rem); } to { opacity: 1; transform: none; } }
.cycles { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--trait); color: var(--doux); font-size: 1.0625rem; }

/* Frise de bogolan : la signature de la page, entre les grandes parties */
.frise { width: 100%; height: 1.75rem; color: var(--indigo); opacity: 0.85; }

/* Sections */
.section { padding-block: 4.5rem; }
.section h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }
:root[lang="ar"] .section h2 { font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.section .intro { margin-top: 1rem; color: var(--doux); max-width: 40rem; }

/* Rôles : un onglet par personne, et ce qu'elle voit à l'écran */
.roles { margin-top: 2.25rem; }
.roles-choix { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.roles-choix button {
  font: 600 1rem/1 var(--texte);
  min-height: 2.75rem;
  padding-inline: 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--trait);
  background: var(--surface);
  color: var(--encre);
  cursor: pointer;
}
.roles-choix button:hover { border-color: var(--vert); }
.roles-choix button[aria-selected="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.role { display: grid; gap: 2rem; padding: 1.75rem; background: var(--surface); border-radius: 1rem; border: 1px solid var(--trait); }
.role + .role { margin-top: 1rem; }
.roles.actif .role + .role { margin-top: 0; }
.role[hidden] { display: none; }
@media (min-width: 52rem) { .role { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 2.25rem; } }
.role h3 { font-size: 1.5rem; font-weight: 700; }
.role ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.role li { padding-block: 0.5rem; padding-inline-start: 1.75rem; position: relative; }
.role li::before { content: ""; position: absolute; inset-inline-start: 0.25rem; top: 1.05rem; width: 0.75rem; height: 0.375rem; border-inline-start: 2.5px solid var(--vert); border-bottom: 2.5px solid var(--vert); transform: rotate(-45deg); }
:root[dir="rtl"] .role li::before { transform: rotate(45deg); }
.ecran { background: var(--indigo); color: #fff; border-radius: 0.875rem; padding: 0.5rem 1.25rem; box-shadow: inset 0 0 0 6px #1b2655; }
.ecran div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 0.875rem; }
.ecran div + div { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ecran dt { color: #c5cbe8; font-size: 0.9375rem; }
.ecran dd { font: 700 1.1875rem/1.2 var(--titre); text-align: end; font-variant-numeric: tabular-nums; }

/* Récits illustrés : une photo, le texte à côté */
.recit .cadre { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 58rem) {
  .recit .cadre { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .recit-inverse .recit-image { order: 2; }
}
.recit-image { position: relative; padding-block-end: 2.5rem; }
.recit-image img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 1.25rem; }
.recit-inverse .recit-image { padding-block-end: 0; }
.recit-inverse { background: var(--surface); }
.liste { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.liste li { padding-block: 0.625rem; border-top: 1px solid var(--trait); }
.recu {
  position: absolute;
  inset-inline-end: 1rem;
  bottom: 0;
  width: min(15.5rem, 70%);
  background: #fff;
  border: 1px dashed #9aa79f;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  transform: rotate(2.5deg);
  box-shadow: 0 14px 28px -18px rgba(23, 36, 29, 0.7);
}
:root[dir="rtl"] .recu { transform: rotate(-2.5deg); }
.recu strong { display: block; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.recu .montant { font: 800 1.5rem/1.2 var(--titre); color: var(--vert); margin-block: 0.25rem; }
:root[lang="ar"] .recu .montant { font-weight: 700; }
.recu span { color: var(--doux); }
.moyens { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.moyen { display: inline-flex; align-items: center; min-height: 2.25rem; padding-inline: 0.875rem; border-radius: 999px; font: 600 0.9375rem/1 "Source Sans", sans-serif; direction: ltr; }
.moyen-orange { background: #fff1e6; color: #9a4300; }
.moyen-moov { background: #e6eefb; color: #1f4c9e; }
.moyen-wave { background: #e3f4fb; color: #0b6b8f; }

/* Pensé pour ici */
.terrain { background: var(--indigo); color: #fff; }
.terrain h2 { color: #fff; }
.atouts { display: grid; gap: 0; margin-top: 2.5rem; grid-template-columns: 1fr; border-top: 1px solid rgba(255, 255, 255, 0.2); }
@media (min-width: 46rem) { .atouts { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
@media (min-width: 70rem) { .atouts { grid-template-columns: repeat(3, 1fr); } }
.atouts div { padding-block: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.atouts dt { font: 700 1.25rem/1.25 var(--titre); }
.atouts dd { margin-top: 0.5rem; color: #d3d8ef; }

/* Tarifs */
.tarif { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 58rem) { .tarif { grid-template-columns: 1fr 1.15fr; align-items: stretch; } }
.tarif-regle { display: grid; gap: 1rem; }
.tarif-regle p { padding: 1.25rem 1.5rem; background: var(--surface); border-radius: 0.75rem; border: 1px solid var(--trait); }
.tarif-regle strong { display: block; font: 800 1.75rem/1.15 var(--titre); color: var(--vert); font-variant-numeric: tabular-nums; }
.tarif-regle span { display: block; margin-top: 0.25rem; font-size: 1.0625rem; color: var(--doux); }
:root[lang="ar"] .tarif-regle strong { font-weight: 700; }
.calcul { display: grid; gap: 0.875rem; padding: 1.5rem; border-radius: 0.75rem; background: var(--vert); color: #fff; align-content: start; }
.calcul[hidden] { display: none; }
.calcul label { font-weight: 600; }
.calcul input[type="number"] { width: 9rem; min-height: 3.25rem; border: 0; border-radius: 0.5rem; padding-inline: 1rem; font: 700 1.5rem var(--titre); color: var(--encre); direction: ltr; }
.calcul input[type="range"] { width: 100%; accent-color: #fff; }
.calcul output { display: grid; gap: 0.25rem; margin-top: 0.5rem; }
.calcul output strong { font: 800 2rem/1.15 var(--titre); font-variant-numeric: tabular-nums; }
:root[lang="ar"] .calcul output strong { font-weight: 700; }
.calcul .par-eleve { color: #cfe2d6; font-size: 1rem; }
.exemples { margin-top: 2.5rem; }
.exemples h3 { font: 700 1.25rem/1.3 var(--titre); }
.exemples table { margin-top: 1rem; width: 100%; border-collapse: collapse; }
.exemples th, .exemples td { padding: 0.875rem 0.5rem; text-align: start; border-bottom: 1px solid var(--trait); }
.exemples thead th { font-size: 0.9375rem; color: var(--doux); font-weight: 600; }
.exemples tbody th { font-weight: 600; }
.exemples .prix { font-weight: 600; color: var(--vert); white-space: nowrap; font-variant-numeric: tabular-nums; }
.conditions { margin-top: 1.25rem; color: var(--doux); max-width: 44rem; }

/* Étapes : une vraie suite, donc numérotée */
.etapes { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; counter-reset: etape; }
@media (min-width: 52rem) { .etapes { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.etapes li { counter-increment: etape; padding-top: 1rem; border-top: 3px solid var(--vert); }
.etapes li::before { content: counter(etape); display: block; font: 800 2.75rem/1 "Bricolage", sans-serif; color: var(--indigo); margin-bottom: 0.75rem; }
.etapes h3 { font-size: 1.375rem; font-weight: 700; }
.etapes p { margin-top: 0.5rem; color: var(--doux); }

/* Questions */
.questions { margin-top: 2rem; border-top: 1px solid var(--trait); max-width: 52rem; }
.questions details { border-bottom: 1px solid var(--trait); }
.questions summary { cursor: pointer; list-style: none; padding: 1.125rem 0; font: 700 1.1875rem/1.35 var(--titre); display: flex; justify-content: space-between; gap: 1rem; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font: 400 1.75rem/1 var(--texte); color: var(--vert); transition: transform 0.2s; }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { padding-bottom: 1.25rem; color: var(--doux); max-width: 44rem; }

/* Dernier appel, puis l'accès à son école */
.fin .cadre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: 2.5rem; border-block: 1px solid var(--trait); }
.fin { padding-block: 1rem 4.5rem; }
.acces { background: var(--vert); color: #fff; }
.acces h2 { color: #fff; }
.acces .intro { color: #d6e6dc; }
.acces form { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.acces label { display: block; width: 100%; font-weight: 600; }
.champ { display: flex; align-items: stretch; direction: ltr; border-radius: 0.5rem; overflow: hidden; background: #fff; flex: 1 1 20rem; max-width: 30rem; }
.champ input { flex: 1; min-width: 0; border: 0; padding: 0 1rem; min-height: 3.25rem; font: 600 1.125rem var(--texte); color: var(--encre); }
.champ input:focus-visible { outline-offset: -3px; }
.champ span { display: flex; align-items: center; padding-inline: 0.875rem; background: #e8ede7; color: var(--doux); font-weight: 600; }
.acces .bouton-plein { background: #fff; color: var(--vert); border-color: #fff; min-height: 3.25rem; }
.acces .bouton-plein:hover { background: var(--vert-clair); border-color: var(--vert-clair); }
.acces .erreur { width: 100%; color: #ffd9d6; font-weight: 600; min-height: 1.6em; }

/* Pied */
.pied { padding-block: 2.5rem; color: var(--doux); font-size: 1rem; }
.pied .cadre { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; justify-content: space-between; }
.marque-pied { display: inline-flex; align-items: center; gap: 0.5rem; font: 800 1.125rem/1 "Bricolage", sans-serif; color: var(--vert); }

@media (max-width: 40rem) {
  .ouverture { padding-top: 0.5rem; }
  /* Le bulletin passe sous la photo, en la chevauchant à peine : la cour reste visible. */
  .scene { padding-block-end: 0; }
  .bulletin { position: relative; inset: auto; width: 88%; margin: -2.5rem auto 0; }
  .avis { inset-inline-end: 0.5rem; top: 0.75rem; }
  .recu { inset-inline-end: 0.5rem; }
  .role { padding: 1.25rem; }
  /* Sur téléphone, l'accès à son école est déjà dans l'ouverture : l'en-tête ne garde que la marque et les langues. */
  .entete .bouton { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .avis { animation: none; }
  .questions summary::after { transition: none; }
}
