@import url('fonts/fonts.css');

/* ───────────── Planche ───────────── */
:root {
  --papier: #F4EEE3;
  --encre: #1D2545;
  --gris: #6B6A72;
  /* enfant 6-10 */
  --k-creme: #FFF4DE;
  --k-orange: #F2784B;
  --k-soleil: #FFC93C;
  --k-turq: #17A398;
  --k-rose: #FF9DB0;
  --k-encre: #1D2545;
  /* ado */
  --t-nuit: #141A33;
  --t-nuit2: #1E2647;
  --t-citron: #D4F35B;
  --t-corail: #FF7A59;
  --t-lav: #9AA3C7;
  /* parent */
  --p-papier: #F6F1E8;
  --p-sapin: #1F4D45;
  --p-sable: #E7DCC8;
  --p-terre: #C2603D;
  --p-encre: #22282A;
}

@page { size: 420mm 297mm; margin: 0; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #9a958c; }
body { font-family: 'Figtree', sans-serif; color: var(--encre); -webkit-font-smoothing: antialiased; }

.page {
  width: 420mm; height: 297mm; position: relative; overflow: hidden;
  background: var(--papier);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(29,37,69,.07) 1px, transparent 0);
  background-size: 22px 22px;
  break-after: page; page-break-after: always;
  display: grid; grid-template-columns: 92px 1fr;
}
@media screen { .page { margin: 0 auto 24px; } }

/* bandeau vertical de section */
.bande {
  background: var(--bande, var(--encre)); color: var(--bande-txt, #fff);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 40px 0 36px;
}
.bande .num { font-family: 'Fraunces', serif; font-weight: 700; font-size: 44px; line-height: 1; }
.bande .nom {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-weight: 700; font-size: 17px; letter-spacing: .02em;
}
.bande .marque { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; writing-mode: vertical-rl; transform: rotate(180deg); opacity: .75; }

.contenu { padding: 44px 54px 36px 50px; display: flex; flex-direction: column; min-width: 0; }
.entete { display: grid; grid-template-columns: 1fr 440px; gap: 50px; align-items: end; margin-bottom: 26px; }
.entete h1 { font-family: 'Fraunces', serif; font-weight: 700; font-size: 46px; line-height: 1.04; letter-spacing: -.01em; }
.entete h1 em { font-style: italic; font-weight: 400; color: var(--accent, var(--k-orange)); }
.entete p { font-size: 17px; line-height: 1.5; color: #3d4256; }

/* rangée de téléphones */
.rangee { display: flex; gap: var(--gap, 34px); align-items: flex-start; flex: 1; }
.ecran { display: flex; flex-direction: column; align-items: flex-start; width: calc(414px * var(--z, .86)); flex-shrink: 0; }
.ecran:nth-child(even) { margin-top: 26px; }
.legende { display: grid; grid-template-columns: 40px 1fr; column-gap: 6px; margin-top: 16px; width: 100%; }
.legende b { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; color: var(--accent, var(--k-orange)); line-height: 1; grid-row: span 2; }
.legende h3 { font-size: 17px; font-weight: 800; line-height: 1.2; }
.legende p { font-size: 14px; line-height: 1.4; color: #4a4e60; margin-top: 3px; }

/* colonne de notes à droite d'une rangée */
.notes { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.notes .citation { font-family: 'Fraunces', serif; font-size: 25px; line-height: 1.25; font-style: italic; color: var(--encre); border-left: 4px solid var(--accent); padding-left: 18px; }
.notes ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.notes li { font-size: 15px; line-height: 1.45; color: #3d4256; padding-left: 20px; position: relative; }
.notes li::before { content: ''; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.notes h4 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.notes .mini-doudi { width: 120px; }

/* ───────────── Téléphone ───────────── */
.tel { zoom: var(--z, .86); }
.device {
  width: 414px; height: 868px; padding: 12px; border-radius: 64px;
  background: linear-gradient(145deg, #2b2f3a, #0d0f14 60%);
  box-shadow: 0 0 0 2px #3a3f4c inset, 0 30px 50px -18px rgba(20,22,40,.45), 0 8px 18px rgba(20,22,40,.18);
  position: relative;
}
.screen {
  width: 390px; height: 844px; border-radius: 52px; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.ilot { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 120px; height: 34px; border-radius: 20px; background: #050608; z-index: 20; }
.statut { direction: ltr; display: flex; justify-content: space-between; align-items: center; padding: 17px 30px 0 34px; height: 54px; font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 16px; flex-shrink: 0; position: relative; z-index: 10; }
.statut .icos { display: flex; gap: 6px; align-items: center; }
.statut .bat { width: 26px; height: 12px; border: 2px solid currentColor; border-radius: 4px; position: relative; opacity: .9; }
.statut .bat::after { content: ''; position: absolute; inset: 1px 5px 1px 1px; background: currentColor; border-radius: 1px; }
.statut .reseau { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.statut .reseau i { width: 3px; background: currentColor; border-radius: 1px; }
.barre-home { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: currentColor; opacity: .85; z-index: 10; }
svg.i { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ───────────── Univers enfant 6-10 ───────────── */
.kid { background: var(--k-creme); color: var(--k-encre); font-family: 'Fredoka', sans-serif; }
.kid .corps { flex: 1; padding: 6px 22px 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.k-haut { display: flex; justify-content: space-between; align-items: center; }
.k-salut h2 { font-size: 32px; font-weight: 700; line-height: 1.05; }
.k-salut p { font-size: 16px; font-weight: 500; opacity: .7; margin-top: 2px; }
.k-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2.5px solid var(--k-encre); border-radius: 30px; padding: 5px 12px; font-weight: 700; font-size: 17px; box-shadow: 0 3px 0 var(--k-encre); }
.k-chip .i { color: #E9A600; fill: var(--k-soleil); }
.k-carte { background: #fff; border: 3px solid var(--k-encre); border-radius: 24px; box-shadow: 0 5px 0 var(--k-encre); padding: 14px 16px; }
.k-btn { display: flex; align-items: center; justify-content: center; gap: 8px; border: 3px solid var(--k-encre); border-radius: 20px; box-shadow: 0 5px 0 var(--k-encre); font-weight: 700; font-size: 19px; padding: 12px 14px; background: #fff; }
.k-bulle { background: #fff; border: 3px solid var(--k-encre); border-radius: 22px; padding: 10px 14px; font-size: 18px; font-weight: 600; line-height: 1.3; position: relative; }
.k-tabs { display: flex; justify-content: space-around; padding: 10px 14px 26px; background: #fff; border-top: 3px solid var(--k-encre); margin-top: auto; }
.k-tabs div { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; opacity: .55; }
.k-tabs div.on { opacity: 1; color: var(--k-orange); }
.k-tabs .i { font-size: 26px; }
.k-tuile { border: 3px solid var(--k-encre); border-radius: 24px; box-shadow: 0 5px 0 var(--k-encre); padding: 14px 16px; position: relative; overflow: hidden; min-height: 92px; }
.k-tuile h4 { font-size: 21px; font-weight: 700; line-height: 1.1; position: relative; z-index: 1; }
.k-tuile p { font-size: 14px; font-weight: 500; opacity: .8; margin-top: 3px; position: relative; z-index: 1; }
.k-tuile .i.deco { position: absolute; left: 10px; bottom: -6px; font-size: 70px; stroke-width: 2; opacity: .9; }
.k-tache { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; padding: 8px 0; }
.k-tache + .k-tache { border-top: 2px dashed rgba(29,37,69,.18); }
.k-coche { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--k-encre); display: grid; place-items: center; flex-shrink: 0; font-size: 16px; }
.k-coche.ok { background: var(--k-turq); color: #fff; }
.k-tache .mat { margin-inline-start: auto; font-size: 14px; font-weight: 600; opacity: .6; }

/* ───────────── Univers ado 11-16 ───────────── */
.teen { background: var(--t-nuit); color: #EEF0FA; font-family: 'Rubik', sans-serif; }
.teen .corps { flex: 1; padding: 8px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.t-haut { display: flex; justify-content: space-between; align-items: center; }
.t-haut h2 { font-size: 27px; font-weight: 700; }
.t-haut p { font-size: 14px; color: var(--t-lav); margin-top: 2px; }
.t-carte { background: var(--t-nuit2); border-radius: 20px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.06); }
.t-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.t-tabs { display: flex; justify-content: space-around; padding: 10px 10px 28px; border-top: 1px solid rgba(255,255,255,.08); margin-top: auto; background: #10152B; }
.t-tabs div { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--t-lav); }
.t-tabs div.on { color: var(--t-citron); }
.t-tabs .i { font-size: 23px; }
.t-msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 16px; line-height: 1.4; }
.t-msg.ia { background: var(--t-nuit2); border-start-start-radius: 4px; align-self: flex-start; }
.t-msg.moi { background: var(--t-citron); color: var(--t-nuit); border-start-end-radius: 4px; align-self: flex-end; font-weight: 500; }

/* ───────────── Univers parent ───────────── */
.par { background: var(--p-papier); color: var(--p-encre); font-family: 'Figtree', sans-serif; }
.par .corps { flex: 1; padding: 8px 20px 0; display: flex; flex-direction: column; gap: 13px; }
.p-haut { display: flex; justify-content: space-between; align-items: flex-start; }
.p-haut h2 { font-family: 'Fraunces', serif; font-size: 29px; font-weight: 600; line-height: 1.1; }
.p-haut p { font-size: 14px; color: #6b6f6c; margin-top: 3px; }
.p-rond { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--p-sable); font-size: 19px; color: var(--p-sapin); flex-shrink: 0; }
.p-carte { background: #fff; border-radius: 18px; padding: 14px 16px; border: 1px solid #E6DED0; box-shadow: 0 1px 2px rgba(40,40,30,.05); }
.p-tabs { display: flex; justify-content: space-around; padding: 10px 10px 28px; background: #fff; border-top: 1px solid #E6DED0; margin-top: auto; }
.p-tabs div { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: #8a8d88; font-weight: 500; }
.p-tabs div.on { color: var(--p-sapin); font-weight: 700; }
.p-tabs .i { font-size: 22px; }
.p-titre-sec { font-size: 13px; font-weight: 700; color: #7b7a70; }
.p-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: 'Fraunces', serif; font-weight: 700; font-size: 19px; color: #fff; flex-shrink: 0; }
.p-btn { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 12px; font-weight: 700; font-size: 15px; }
.p-btn.plein { background: var(--p-sapin); color: #fff; }
.p-btn.vide { background: #fff; color: var(--p-sapin); border: 1.5px solid var(--p-sapin); }
.he { font-family: 'Rubik', sans-serif; direction: rtl; unicode-bidi: isolate; }

/* ───────────── Couverture ───────────── */
.couverture { background-color: #FFF4DE; }
.cv { display: grid; grid-template-columns: 640px 1fr; gap: 30px; padding-top: 56px; }
.cv-marque { display: flex; align-items: baseline; gap: 26px; }
.cv-nom { font-family: 'Fraunces', serif; font-weight: 700; font-size: 168px; line-height: .9; letter-spacing: -.035em; color: var(--encre); }
.cv-he { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 64px; color: var(--k-orange); }
.cv-accroche { font-family: 'Fraunces', serif; font-size: 40px; line-height: 1.12; margin-top: 18px; }
.cv-accroche em { color: var(--p-sapin); }
.cv-bloc { margin-top: 30px; }
.cv-bloc h2 { font-size: 15px; font-weight: 800; color: var(--k-orange); margin-bottom: 8px; }
.cv-bloc > p { font-size: 17px; line-height: 1.55; color: #3d4256; max-width: 600px; }
.cv-points { list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 14px; }
.cv-points li { counter-increment: p; position: relative; padding-left: 52px; font-size: 16.5px; line-height: 1.5; color: #3d4256; max-width: 600px; }
.cv-points li b { color: var(--encre); display: block; font-size: 18px; }
.cv-points li::before { content: counter(p); position: absolute; left: 0; top: 0; font-family: 'Fraunces', serif; font-weight: 700; font-size: 40px; line-height: 1; color: var(--k-turq); }
.cv-cible { margin-top: 26px; font-size: 15px; font-weight: 600; color: var(--encre); border-top: 2px solid var(--encre); padding-top: 12px; max-width: 600px; }
.cv-droite { position: relative; }
.cv-rond { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: var(--k-soleil); right: 60px; top: 160px; opacity: .55; }
.cv-tel { position: absolute; }
.cv-tel .tel { --z: .82; }
.cv-tel1 { left: 0; top: 10px; transform: rotate(-4deg); }
.cv-tel2 { right: 0; top: 170px; transform: rotate(3deg); }
.cv-doudi { position: absolute; left: 20px; bottom: -10px; z-index: 5; filter: drop-shadow(0 10px 10px rgba(29,37,69,.18)); }
.cv-legende { position: absolute; font-family: 'Fraunces', serif; font-style: italic; font-size: 19px; color: var(--encre); }
.cv-l1 { left: 215px; bottom: 40px; width: 200px; }
.cv-l2 { right: 0; top: 96px; width: 330px; text-align: right; }

/* ───────────── Flux ───────────── */
.flux { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr; align-items: stretch; margin-top: 10px; }
.etape { display: flex; flex-direction: column; }
.et-num { font-family: 'Fraunces', serif; font-weight: 700; font-size: 64px; line-height: 1; color: var(--k-turq); }
.etape h3 { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600; line-height: 1.15; margin-top: 6px; min-height: 56px; }
.etape > p { font-size: 15px; line-height: 1.5; color: #3d4256; margin-top: 8px; min-height: 68px; }
.fleche { display: grid; place-items: center; font-size: 30px; color: var(--k-turq); align-self: end; height: 390px; }
.et-visuel { margin-top: 16px; height: 390px; border-radius: 22px; background: #fff; border: 2px solid var(--encre); box-shadow: 6px 6px 0 var(--encre); padding: 18px; position: relative; display: flex; flex-direction: column; gap: 9px; }
.mini-feuille { background: #FCFBF6; border: 1px solid #ddd; transform: rotate(-3deg); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.4; box-shadow: 0 6px 12px rgba(0,0,0,.1); width: 90%; margin-top: 6px; }
.mini-feuille b { font-size: 19px; text-align: center; }
.mini-feuille .pommes { display: flex; gap: 5px; }
.mini-feuille .pommes i { width: 15px; height: 15px; border-radius: 50%; background: #e2483d; }
.et-astuce b { font-family: 'Figtree', sans-serif !important; font-size: 14.5px !important; }
.et-ico { position: absolute; left: 14px; bottom: 12px; font-size: 54px; color: var(--k-orange); }
.et-puces span { font-size: 15px; background: #EAF7F5; border-radius: 12px; padding: 8px 12px; }
.et-chat { font-family: 'Fredoka', sans-serif; background: var(--k-creme); }
.et-chat span { font-size: 16px; padding: 8px 12px; border-radius: 16px; border: 2px solid var(--encre); max-width: 90%; line-height: 1.3; }
.et-chat .b-ia { background: #fff; align-self: flex-start; }
.et-chat .b-moi { background: var(--k-soleil); align-self: flex-end; font-weight: 700; }
.et-resume { background: var(--p-papier); font-size: 15px; }
.et-resume b { font-family: 'Fraunces', serif; font-size: 19px; }
.et-resume span { display: flex; gap: 8px; align-items: center; color: var(--p-sapin); }
.et-resume span.alerte { color: var(--p-terre); }
.garde-fous { margin-top: auto; border-top: 2px solid var(--encre); padding-top: 20px; }
.garde-fous h2 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.gf-liste { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.gf-liste h3 { font-size: 17px; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.gf-liste h3 .i { color: var(--k-turq); font-size: 22px; }
.gf-liste p { font-size: 14.5px; line-height: 1.5; color: #3d4256; margin-top: 5px; }

/* ───────────── Fin ───────────── */
.fin { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px 70px; flex: 1; align-content: space-between; }
.nom-principal { background: var(--k-creme); border: 2px solid var(--encre); box-shadow: 8px 8px 0 var(--k-orange); border-radius: 26px; padding: 26px 30px; }
.np-mot { display: flex; align-items: baseline; gap: 20px; }
.np-mot span:first-child { font-family: 'Fraunces', serif; font-size: 92px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.np-mot .he { font-size: 44px; font-weight: 700; color: var(--k-orange); }
.nom-principal p { font-size: 16.5px; line-height: 1.55; margin-top: 10px; color: #3d4256; }
.noms h2, .suite h2 { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; margin: 30px 0 10px; }
.suite h2 { margin-top: 0; }
.piste { display: grid; grid-template-columns: 130px 90px 1fr; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(29,37,69,.18); }
.pf { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 600; }
.ph { font-size: 24px; color: var(--k-turq); font-weight: 600; }
.piste p { font-size: 15px; line-height: 1.45; color: #3d4256; }
.etapes { list-style: none; display: flex; flex-direction: column; }
.etapes li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(29,37,69,.18); }
.etapes li > span { font-family: 'Fraunces', serif; font-weight: 700; font-size: 20px; color: var(--k-orange); }
.etapes b { font-size: 18px; }
.etapes p { font-size: 15px; line-height: 1.5; color: #3d4256; margin-top: 3px; }
.questions { margin-top: 24px; background: var(--encre); color: #fff; border-radius: 20px; padding: 20px 24px; }
.questions h3 { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 600; color: var(--k-soleil); }
.questions p { font-size: 15.5px; line-height: 1.6; margin-top: 6px; }

.et-puces span { font-size: 16px; }
.et-chat span { font-size: 17px; }
.et-resume { font-size: 16px; gap: 12px; }
.et-astuce { margin-top: auto; background: #F3E3C8; border-radius: 12px; padding: 10px 12px; font-size: 14.5px; line-height: 1.4; color: #5a3a1c; }
.et-manus { font-family: 'Fredoka', sans-serif; color: #2f56c9; }
.tech { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 15px; color: #3d4256; }
.tech b { font-size: 15px; color: var(--encre); margin-right: 6px; }
.tech span { background: #fff; border: 1.5px solid rgba(29,37,69,.25); border-radius: 30px; padding: 6px 14px; }
/* fin : identité */
.identite { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr 170px; gap: 34px; border-top: 2px solid var(--encre); padding-top: 20px; align-items: start; }
.identite h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.identite .pastilles { display: flex; gap: 6px; margin-bottom: 10px; }
.identite .pastilles i { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(29,37,69,.25); }
.identite p { font-size: 14px; line-height: 1.45; color: #3d4256; }
.identite .ech { font-size: 30px; line-height: 1.1; margin-bottom: 6px; }
