/* mon-calepin.com : direction « Papier et stylo rouge » (maquette B2). Couleurs reprises de l'app Calepin. */
:root {
  --papier: #FAF7F0;
  --papier-2: #F1EBDF;
  --carte: #FFFDF8;
  --encre: #1C1F24;
  --encre-2: #4A4F58;
  --gris: #6B6F78;
  --ligne: #E6DDCB;
  --bleu: #2C4BC7;
  --bleu-fonce: #1E3596;
  --stylo: #C8322A;
  --surligneur: #F6DE7A;
  --nuit: #1C1F24;
  --nuit-texte: #C9CDD4;
  --nuit-ligne: #3A3F48;
  --main: 'Caveat', 'Bradley Hand', cursive;
  --texte: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --large: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--texte); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); }
a:hover { color: var(--bleu-fonce); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.contenu { max-width: var(--large); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(64px, 9vw, 104px); }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 600; font-size: 17px; text-decoration: none; }
.bouton-plein { background: var(--bleu); color: #FFFFFF; }
.bouton-plein:hover { background: var(--bleu-fonce); color: #FFFFFF; }
.bouton-trait { color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.bouton-trait:hover { color: var(--encre); background: var(--papier-2); }
.bouton-encre { background: var(--encre); color: var(--papier); min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
.bouton-encre:hover { color: var(--papier); background: #000000; }

/* En-tête */
.entete { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 900; letter-spacing: -0.02em; color: var(--encre); text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.logo:hover { color: var(--encre); }
.menu { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: 15px; }
.menu a:not(.bouton) { color: var(--encre); text-decoration: none; }
.menu a:not(.bouton):hover { text-decoration: underline; text-underline-offset: 4px; }
.texte-court { display: none; }
@media (max-width: 640px) { .menu a:not(.bouton) { display: none; } .texte-long { display: none; } .texte-court { display: inline; } }

/* Héros */
.heros { padding-block: 40px 28px; display: grid; gap: 28px; }
.heros h1 { font-weight: 900; font-size: clamp(48px, 8.4vw, 124px); line-height: 0.95; letter-spacing: -0.045em; }
.surligne { background: linear-gradient(transparent 58%, var(--surligneur) 58%, var(--surligneur) 90%, transparent 90%); padding: 0 6px; }
.entoure { position: relative; display: inline-block; padding: 0 10px; }
.entoure svg { position: absolute; left: -18px; top: -14px; width: calc(100% + 36px); height: calc(100% + 28px); overflow: visible; pointer-events: none; }
.entoure path { fill: none; stroke: var(--stylo); stroke-width: 5; stroke-linecap: round; }
.heros-bas { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-end; justify-content: space-between; }
.chapeau { font-size: clamp(18px, 1.6vw, 20px); color: var(--encre-2); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Capture de la semaine, annotée */
.legende-main { display: flex; flex-wrap: wrap; gap: 8px 26px; font-family: var(--main); font-size: 26px; color: var(--stylo); margin-bottom: 18px; }
.legende-main span { display: inline-flex; gap: 8px; align-items: center; }
.pastille { font-family: var(--texte); font-size: 13px; font-weight: 800; color: #FFFFFF; background: var(--stylo); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.navigateur { border-radius: 14px; overflow: hidden; background: #FFFFFF; box-shadow: 0 30px 70px rgba(60, 40, 20, 0.18), 0 0 0 1px var(--ligne); }
.navigateur-barre { display: flex; gap: 7px; align-items: center; padding: 11px 14px; background: #EFE9DD; border-bottom: 1px solid var(--ligne); font-size: 12px; color: var(--gris); }
.navigateur-barre i { width: 11px; height: 11px; border-radius: 50%; background: #D9CFBE; }
.navigateur-barre span { margin-left: 12px; }
.capture-annotee { position: relative; }
.capture-annotee .pastille { position: absolute; box-shadow: 0 0 0 3px #FFFFFF; }
.p1 { left: 3%; top: 28.5%; } .p2 { left: 21.5%; top: 32.5%; } .p3 { left: 23%; top: 59%; } .p4 { left: 0.6%; top: 88%; } .p5 { left: 77.5%; top: 37%; }
@media (max-width: 640px) { .capture-annotee .pastille { width: 18px; height: 18px; font-size: 10px; box-shadow: 0 0 0 2px #FFFFFF; } }
.note-capture { font-size: 13px; color: var(--gris); margin-top: 14px; }

/* Titres de section */
.titre-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 20px 48px; align-items: end; margin-bottom: 40px; }
.titre-section h2 { font-weight: 900; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.titre-section p { font-size: 18px; color: var(--encre-2); }
.etiquette-plus { display: inline-block; vertical-align: middle; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--bleu-fonce); background: #DCE4FA; padding: 3px 9px; border-radius: 999px; margin-left: 10px; }

/* Saisie (bandeau sombre) */
.nuit { background: var(--nuit); color: var(--papier); }
.nuit .titre-section p { color: var(--nuit-texte); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 24px; }
.duo figure { margin: 0; display: grid; gap: 12px; }
.duo img { border-radius: 14px; background: #FFFFFF; }
.duo figcaption { font-size: 15px; color: var(--nuit-texte); }
.duo figcaption b { color: #FFFFFF; }
.dico { margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 22px 28px; }
.dico div { border-top: 1px solid var(--nuit-ligne); padding-top: 12px; display: grid; gap: 4px; }
.dico dt { font-size: 26px; font-weight: 800; }
.dico dd { margin: 0; font-size: 15px; color: var(--nuit-texte); }

/* Tâches */
.taches { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 860px) { .taches { grid-template-columns: 1fr; } }
.cadre { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px rgba(60, 40, 20, 0.14), 0 0 0 1px var(--ligne); }
.telephone { width: min(300px, 100%); justify-self: center; border-radius: 46px; border: 10px solid var(--encre); overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2); background: var(--encre); }
.liste-coche { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px 28px; }
.liste-coche li { display: flex; gap: 10px; align-items: baseline; }
.liste-coche li::before { content: "✓"; color: var(--stylo); font-weight: 800; }

/* Couverture */
.bande { background: var(--papier-2); }
.couverture { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; align-items: center; }
.couverture-texte { display: grid; gap: 18px; }
.couverture-texte h2 { font-weight: 900; font-size: clamp(38px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.035em; }
.couverture-texte p { font-size: 18px; color: var(--encre-2); }
.couverture-texte .main-rouge { font-family: var(--main); font-size: 30px; line-height: 1.2; color: var(--stylo); }
.telephones { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.telephones .telephone { width: min(250px, 80%); border-width: 9px; border-radius: 42px; }
.telephones .telephone:first-child { transform: rotate(-2deg); }
.telephones .telephone:last-child { transform: rotate(2deg); margin-top: 40px; }

/* iPad */
.tablette { border-radius: 34px; border: clamp(8px, 1.2vw, 14px) solid var(--encre); overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2); background: var(--encre); }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; align-items: start; }
.offre { background: var(--carte); border-radius: 20px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 0 0 1px var(--ligne); display: grid; gap: 16px; }
.offre-plus { box-shadow: 0 0 0 2px var(--bleu), 0 24px 50px rgba(44, 75, 199, 0.12); }
.offre h3 { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.prix { font-size: 40px; font-weight: 900; letter-spacing: -0.03em; }
.prix small { font-size: 16px; font-weight: 500; color: var(--encre-2); letter-spacing: 0; }
.offre .sous-prix { font-size: 15px; color: var(--encre-2); margin-top: -10px; }
.offre ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.offre li { display: flex; gap: 10px; align-items: baseline; }
.offre li::before { content: "✓"; color: var(--stylo); font-weight: 800; }
.offre .bouton { justify-self: start; }
.note-tarifs { margin-top: 20px; font-size: 14px; color: var(--gris); }

/* Pied */
.pied { border-top: 1px solid var(--ligne); padding-block: 32px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--gris); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied a { color: var(--encre-2); }

/* Pages de texte (mentions légales) */
.page-texte { max-width: 760px; padding-block: 24px 80px; }
.page-texte h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 24px; }
.page-texte h2 { font-size: 22px; margin: 32px 0 10px; }
.page-texte p, .page-texte li { color: var(--encre-2); }
.a-completer { background: var(--surligneur); padding: 0 4px; color: var(--encre); }
