/* Charte Les Cahiers Oriavel : menthe, bleu nuit, turquoise, corail, jaune. */
:root {
  --menthe: #c5e8e2;
  --menthe-clair: #eaf6f3;
  --papier: #fbfdfc;
  --nuit: #0d2442;
  --nuit-doux: #3c5570;
  --turquoise: #45b5a8;
  --turquoise-fonce: #1f8a80;
  --corail: #f2705a;
  --corail-fonce: #d4543f;
  --jaune: #f5c95c;
  --jaune-fonce: #d9a936;
  --fantome: #e3eeec;
  --ligne: #9fd4cc;
  --vert: #2eaa5c;
  --ombre: 0 10px 30px rgba(13, 36, 66, .10);
  --police: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--nuit); font-family: var(--police); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--turquoise-fonce); }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.conteneur { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
.entete { background: var(--menthe); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 58px; width: auto; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.menu a { text-decoration: none; color: var(--nuit); font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.menu a:hover, .menu a[aria-current="page"] { background: rgba(255,255,255,.6); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 24px; min-height: 52px; font-size: 18px; font-weight: 800; text-decoration: none; transition: transform .08s ease; }
.btn:active { transform: translateY(2px); }
.btn-corail { background: var(--corail); color: #fff; box-shadow: 0 4px 0 var(--corail-fonce); }
.btn-nuit { background: var(--nuit); color: #fff; box-shadow: 0 4px 0 #04101f; }
.btn-blanc { background: #fff; color: var(--nuit); box-shadow: 0 4px 0 #b9d6d1; }
.btn-jaune { background: var(--jaune); color: #3d2d00; box-shadow: 0 4px 0 var(--jaune-fonce); }

/* Accueil : bandeau */
.hero { background: var(--menthe); position: relative; overflow: hidden; padding: 20px 0 56px; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 46px, rgba(69,181,168,.35) 46px 48px); }
.hero .conteneur { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.surtitre { display: inline-block; background: #fff; color: var(--turquoise-fonce); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--corail); }
.hero .accroche { font-size: 19px; color: var(--nuit-doux); margin: 0 0 26px; max-width: 32em; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.page-cahier { background: #fff; border-radius: 26px; box-shadow: var(--ombre); padding: 14px; transform: rotate(1.5deg); }
.page-cahier svg { width: 100%; height: auto; display: block; }
.page-cahier p { margin: 4px 0 2px; text-align: center; font-weight: 700; color: var(--nuit-doux); font-size: 15px; }

/* Sections */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; margin: 0 0 10px; text-align: center; }
.section .intro-section { text-align: center; color: var(--nuit-doux); margin: 0 auto 32px; max-width: 36em; }
.deux-cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.carte { background: #fff; border-radius: 24px; box-shadow: var(--ombre); padding: 26px; display: flex; flex-direction: column; gap: 14px; border-top: 8px solid var(--turquoise); }
.carte.papier { border-top-color: var(--corail); }
.carte h3 { margin: 0; font-size: 24px; }
.carte .etiquette { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--turquoise-fonce); margin: 0; }
.carte.papier .etiquette { color: var(--corail-fonce); }
.carte ul { margin: 0; padding-left: 20px; color: var(--nuit-doux); }
.carte li { margin-bottom: 4px; }
.carte .visuel { background: var(--menthe-clair); border-radius: 16px; padding: 12px; display: flex; justify-content: center; align-items: center; min-height: 190px; }
.carte .visuel img { max-height: 230px; width: auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(13,36,66,.15); transform: rotate(-2deg); }
.carte .visuel svg { width: 100%; max-height: 200px; }
.carte .actions { margin-top: auto; }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: etape; }
.etape { background: var(--menthe-clair); border-radius: 20px; padding: 22px; position: relative; }
.etape::before { counter-increment: etape; content: counter(etape); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--nuit); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.etape h3 { margin: 0 0 6px; font-size: 20px; }
.etape p { margin: 0; color: var(--nuit-doux); }

.confiance { background: var(--nuit); color: #fff; padding: 26px 0; }
.confiance ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; font-weight: 700; }
.confiance li span { display: block; font-size: 26px; margin-bottom: 4px; }

/* Pied de page */
.pied { background: var(--menthe); padding: 30px 0 40px; color: var(--nuit-doux); font-size: 14px; text-align: center; }
.pied img { height: 48px; width: auto; margin: 0 auto 10px; }
.pied p { margin: 6px 0; }
.pied a { color: var(--nuit); font-weight: 700; }

/* Page Lettres */
.titre-page { background: var(--menthe); padding: 8px 0 26px; text-align: center; }
.titre-page h1 { margin: 0 0 4px; font-size: clamp(26px, 4.4vw, 38px); }
.titre-page p { margin: 0 auto; color: var(--nuit-doux); max-width: 34em; }
.atelier { background: #fff; border-radius: 24px; padding: 12px 12px 18px; box-shadow: var(--ombre); margin-top: -14px; position: relative; }
.scene { position: relative; }
#tableau { display: block; width: 100%; height: min(60vh, 580px); touch-action: manipulation; }
#ardoise { position: absolute; left: 0; top: 0; touch-action: none; cursor: crosshair; }
.nom-lettre { position: absolute; left: 12px; top: 6px; margin: 0; font-size: 15px; font-weight: 800; color: var(--turquoise-fonce); background: #fff; padding: 0 6px; border-radius: 6px; }
.lignes .l-base { stroke: var(--turquoise); stroke-width: 2.6; vector-effect: non-scaling-stroke; }
.lignes .l-x { stroke: var(--ligne); stroke-width: 1.8; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.lignes .l-fine { stroke: #d4ebe7; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.fantome path { fill: none; stroke: var(--fantome); stroke-linecap: round; stroke-linejoin: round; }
.fleche { fill: none; stroke: #8cbab4; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.encre path { fill: none; stroke: var(--nuit); stroke-linecap: round; stroke-linejoin: round; }
.departs .depart { fill: var(--vert); }
.departs .num { fill: #fff; font-family: var(--police); font-weight: 800; text-anchor: middle; }
.stylo { fill: var(--corail); stroke: #fff; stroke-width: 8; }
#tableau.atoi .fantome path { stroke: #d5e6e3; }
.commandes { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.gros { border: 0; border-radius: 999px; padding: 14px 24px; min-height: 54px; font-size: 19px; font-weight: 800; background: var(--nuit); color: #fff; box-shadow: 0 4px 0 #04101f; }
.gros:active { transform: translateY(2px); box-shadow: 0 2px 0 #04101f; }
.gros.bis { background: var(--jaune); color: #3d2d00; box-shadow: 0 4px 0 var(--jaune-fonce); }
.gros.bis[aria-pressed="true"] { background: var(--corail); color: #fff; box-shadow: 0 4px 0 var(--corail-fonce); }
.nav { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--menthe); background: #fff; font-size: 32px; line-height: 1; color: var(--nuit); font-weight: 700; padding: 0 0 4px; }
.options { display: flex; gap: 10px 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.vitesse { display: inline-flex; background: var(--menthe-clair); border-radius: 999px; padding: 4px; }
.vitesse button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 700; color: var(--nuit-doux); min-height: 40px; }
.vitesse button[aria-checked="true"] { background: #fff; color: var(--nuit); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.lien { border: 0; background: none; font-size: 15px; font-weight: 800; color: var(--corail-fonce); text-decoration: none; padding: 8px 6px; }
.lien:hover { text-decoration: underline; }
.alphabet h2 { font-size: 22px; margin: 30px 4px 12px; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
.grille button { background: #fff; border: 2px solid var(--menthe-clair); border-radius: 14px; padding: 6px 4px; aspect-ratio: 1 / 1.15; display: flex; box-shadow: 0 2px 6px rgba(13,36,66,.05); }
.grille button svg { width: 100%; height: 100%; }
.grille button path { fill: none; stroke: var(--nuit); stroke-width: 72; stroke-linecap: round; stroke-linejoin: round; }
.grille button[aria-current="true"] { border-color: var(--corail); background: #fff5f2; }
.parents { background: var(--menthe-clair); border-radius: 18px; margin-top: 26px; padding: 4px 20px; }
.parents summary { font-weight: 800; padding: 12px 0; cursor: pointer; color: var(--nuit); }
.parents ul { padding-left: 20px; margin-top: 0; }
.parents li { margin-bottom: 8px; }

/* Page Fiches */
.fiches-tete { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; background: #fff; border-radius: 24px; box-shadow: var(--ombre); padding: 26px; margin-top: -14px; position: relative; }
.fiches-tete h2 { margin: 0 0 8px; font-size: 26px; text-align: left; }
.fiches-tete p { margin: 0 0 16px; color: var(--nuit-doux); }
.fiches-tete img { max-height: 280px; width: auto; margin: 0 auto; border-radius: 6px; box-shadow: 0 8px 22px rgba(13,36,66,.18); transform: rotate(2deg); }
.conseil { font-size: 14px; color: var(--nuit-doux); margin-top: 12px !important; }
.grille-fiches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 28px; }
.fiche-carte { background: #fff; border-radius: 18px; box-shadow: 0 3px 12px rgba(13,36,66,.07); padding: 12px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.fiche-carte .mini { background: var(--menthe-clair); border-radius: 12px; aspect-ratio: 1 / .9; display: flex; padding: 8px; }
.fiche-carte .mini svg { width: 100%; height: 100%; }
.fiche-carte .mini path { fill: none; stroke: var(--nuit); stroke-width: 60; stroke-linecap: round; stroke-linejoin: round; }
.fiche-carte .mini .ligne-base { stroke: var(--turquoise); stroke-width: 14; }
.fiche-carte .nom { margin: 0; font-weight: 800; text-align: center; }
.fiche-carte .boutons { display: flex; gap: 6px; }
.fiche-carte .boutons a { flex: 1; text-align: center; text-decoration: none; font-weight: 800; font-size: 14px; padding: 9px 6px; border-radius: 999px; }
.fiche-carte .pdf { background: var(--corail); color: #fff; }
.fiche-carte .voir { background: var(--menthe-clair); color: var(--nuit); }

/* Mentions */
.texte { max-width: 760px; margin: 0 auto; }
.texte section { background: #fff; border-radius: 18px; box-shadow: 0 3px 12px rgba(13,36,66,.06); padding: 6px 22px 14px; margin-bottom: 14px; }
.texte h2 { font-size: 20px; text-align: left; color: var(--turquoise-fonce); }

@media (max-width: 860px) {
  .hero .conteneur, .deux-cartes, .fiches-tete { grid-template-columns: 1fr; }
  .page-cahier { max-width: 420px; margin: 0 auto; width: 100%; }
  .etapes { grid-template-columns: 1fr; }
  .confiance ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .conteneur { padding: 0 14px; }
  .logo img { height: 44px; }
  .menu a { padding: 6px 8px; font-size: 14px; }
  .hero { padding-bottom: 40px; }
  .btn { width: 100%; }
  .section { padding: 40px 0; }
  .carte { padding: 20px; }
  #tableau { height: 50vh; }
  .atelier { padding: 8px 6px 14px; }
  .gros { padding: 10px 14px; font-size: 16px; min-height: 48px; }
  .nav { width: 44px; height: 44px; font-size: 26px; }
  .commandes { gap: 6px; flex-wrap: nowrap; }
  .grille-fiches { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:active, .gros:active { transform: none; } }

/* Démo du bandeau et mini-alphabet */
.d-fantome { fill: none; stroke: var(--fantome); stroke-linecap: round; stroke-linejoin: round; }
.d-encre { fill: none; stroke: var(--nuit); stroke-linecap: round; stroke-linejoin: round; }
.d-depart { fill: var(--vert); }
.d-base { stroke: var(--turquoise); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.d-x { stroke: var(--ligne); stroke-width: 1.6; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.d-fine { stroke: #d4ebe7; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.m-trait { fill: none; stroke: var(--nuit); stroke-width: 70; stroke-linecap: round; stroke-linejoin: round; }
/* Bloc « En bref » et « coup d'œil » */
.bref { padding-top: 48px; }
.bref-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.bref .surtitre { background: var(--menthe-clair); }
.bref h2 { text-align: left; }
.bref-texte p { color: var(--nuit-doux); margin: 0 0 12px; }
.bref-texte strong { color: var(--nuit); }
.comparaison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.comparaison > div { background: #fff; border-radius: 16px; box-shadow: 0 3px 12px rgba(13,36,66,.07); padding: 12px 14px 8px; }
.comparaison span { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--turquoise-fonce); }
.comparaison .script { margin: 4px 0 0; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 46px; line-height: 1.25; color: var(--nuit); letter-spacing: .06em; }
.comparaison svg { display: block; width: 100%; height: 92px; margin-top: 2px; }
.coup-oeil { background: var(--menthe-clair); border-radius: 24px; padding: 22px; }
.coup-oeil h2 { font-size: 24px; text-align: left; margin-bottom: 14px; }
.tuile { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; text-decoration: none; color: var(--nuit-doux); box-shadow: 0 2px 8px rgba(13,36,66,.06); border-left: 6px solid var(--turquoise); transition: transform .12s ease; }
.tuile:hover { transform: translateX(3px); }
.tuile.papier { border-left-color: var(--corail); }
.tuile.conseils { border-left-color: var(--jaune); }
.tuile strong { display: block; color: var(--nuit); font-size: 18px; margin-bottom: 2px; }
.pastille { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--menthe); font-size: 18px; color: var(--nuit); }
.enseignants { margin: 12px 2px 0; font-size: 15px; color: var(--nuit-doux); }
@media (max-width: 860px) { .bref-grille { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .comparaison { grid-template-columns: 1fr; } }
.mini-carte { border-top-width: 6px; }
.mini-carte p { margin: 0; color: var(--nuit-doux); }
.mini-carte .etiquette { color: var(--turquoise-fonce); }
