/* ==========================================================================
   Glumy, feuille de style unique du site (novembre 2026)
   Univers repris du portfolio : ciel, papier crème, Fraunces et Figtree.
   Utilisée par toutes les pages, sauf /portfolio/ et /contes/.
   ========================================================================== */

:root {
  --sky-top: #a3d2e6;
  --sky-mid: #d8ebe8;
  --sky-bottom: #f7e0bd;
  --ink: #22201a;
  --ink-2: #3d382d;
  --title: #1f4f41;
  --tag: #c46d1c;        /* orange de marque : grands chiffres et décors */
  --tag-text: #854510;   /* orange lisible (AA) pour le petit texte, même sur le ciel */
  --accent: #24614f;
  --paper: #fbf7ee;
  --paper-glass: rgba(251, 247, 238, .86);
  --line: rgba(80, 64, 36, .14);
  --shadow: 0 18px 50px -22px rgba(60, 48, 24, .35);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shell: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--title); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--tag-text); outline-offset: 3px; }

.shell { max-width: var(--shell); margin: 0 auto; }
.tag { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--tag-text); }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0; }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; color: var(--title); text-wrap: balance; }
.h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.25; color: var(--title); }
.muted { color: var(--ink-2); }
.subhead { margin: 48px 0 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 16px 28px; border-radius: 999px;
  font-family: inherit; font-size: 18px; font-weight: 600; text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(36, 97, 79, .6); }
.btn--primary:hover { color: var(--paper); background: var(--title); }
.btn--ghost { background: var(--paper-glass); color: var(--title); }
.btn--ghost:hover { color: var(--title); }
.btn--light { background: var(--paper); color: var(--title); }
.btn--light:hover { color: var(--title); }

/* --- En-tête et hero ------------------------------------------------------ */
.hero {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bottom) 100%);
  padding: 24px 24px 104px;
}
.hero .shell { display: flex; flex-direction: column; gap: 64px; }
.nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--title); }
.brand__tag { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--tag-text); }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 16px; color: var(--title); text-decoration: none; }
.nav__links a:hover { text-decoration: underline; }
.nav__links .nav__tel { padding: 10px 20px; border-radius: 999px; background: var(--title); color: var(--paper); }
.nav__links .nav__tel:hover { color: var(--paper); text-decoration: none; }

.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; color: var(--title); text-wrap: balance; }
.hero__lede { margin: 0; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero__figure { flex: 1 1 280px; max-width: 360px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 28px; border: 8px solid var(--paper); box-shadow: 0 30px 60px -28px rgba(60, 48, 24, .45); }
.hero__figure figcaption { display: flex; flex-direction: column; gap: 2px; padding-left: 8px; }
.hero__figure strong { font-family: var(--display); font-size: 22px; color: var(--title); }
.hero__figure span { font-size: 15px; color: var(--ink-2); }

/* Hero des pages de service : même ciel, titre un cran plus petit */
.hero--page { padding-bottom: 88px; }
.hero--page .hero__title { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.05; }
.hero__note { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.hero__aside { flex: 1 1 300px; max-width: 420px; min-width: 0; }
.hero__aside--wide { flex-basis: 420px; max-width: 460px; }

/* Carte papier posée sur le ciel (résumé, exemple, chiffres) */
.paper-card { margin: 0; background: var(--paper); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.paper-card__label { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.paper-card__note { margin: 0; font-size: 14px; color: var(--ink-2); }

/* --- Sections ------------------------------------------------------------- */
.section { padding: 104px 24px; }
#realisations { padding-bottom: 96px; }
.section--tint { background: var(--sky-mid); padding: 96px 24px; }
.section--flush-top { padding-top: 0; }
.section__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.section__head p { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 720px; }
.lede { margin: 32px 0 0; font-family: var(--display); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; color: var(--title); max-width: 760px; }
.fine { margin: 24px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 820px; }

/* Cartes (réalisations, points clés) */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 220px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card--wide { flex-basis: 460px; padding: 36px; }
.card--feature { background: var(--title); border-color: var(--title); color: var(--paper); }
.card--outline { border: 2px solid var(--accent); }
.card__label { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.card--feature .card__label { color: var(--paper); opacity: .85; }
.card__title { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.25; color: var(--title); }
.card--wide .card__title { font-size: 28px; line-height: 1.2; }
.card--feature .card__title { color: var(--paper); }
.card__text { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.card--feature .card__text { color: var(--paper); opacity: .92; }
.card__note { margin-top: auto; font-size: 14px; color: var(--ink-2); }
.card__link { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.card--feature .card__link, .card--feature .card__link:hover { color: var(--paper); }
.cards--tint .card { background: var(--paper); border-color: transparent; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-weight: 600; font-size: 17px; }

/* Vous reconnaissez ça */
.recognize { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.recognize__head { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.recognize__head p { margin: 0; font-size: 18px; color: var(--ink-2); }
.pains { flex: 999 1 480px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pains li { background: var(--paper); border-radius: 16px; padding: 20px 24px; font-size: 18px; font-weight: 500; }

/* Méthode et étapes */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 28px; }
.steps li { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--title); padding-top: 18px; }
.steps__num { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--tag); }
.steps__kicker { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.steps strong { font-size: 20px; }
.steps span:last-child { font-size: 17px; color: var(--ink-2); }

/* Listes à puces cochées */
.checklist { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 28px; }
.checklist li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.5; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 5px); width: 6px; height: 10px; border: solid var(--paper); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.checklist--ring li::before { background: transparent; border: 2px solid var(--accent); }
.checklist--ring li::after { content: none; }

/* Accompagnement et tarifs */
.plans { display: flex; flex-wrap: wrap; gap: 20px; }
.plan { flex: 1 1 320px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.plan--main { border: 2px solid var(--accent); }
.plan__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.plan__name { font-size: 18px; font-weight: 700; }
.plan__badge { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--paper); background: var(--accent); border-radius: 999px; padding: 4px 12px; }
.plan__price { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; color: var(--title); }
.plan__price small { font-family: var(--body); font-size: 16px; font-weight: 500; color: var(--ink-2); }
.plan__meta { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.45; }
.plan__for { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.plans-note { margin: 24px 0 0; font-size: 16px; color: var(--ink-2); }

/* Chiffres */
.stats { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; }
.stat { flex: 1 1 200px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column-reverse; gap: 6px; margin: 0; }
.stat dt { font-size: 16px; color: var(--ink-2); }
.stat dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; color: var(--title); }

/* Questions fréquentes */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 24px; font-size: 18px; font-weight: 600; color: var(--title); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--display); font-size: 28px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 24px 22px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* Étiquettes (logiciels compatibles, etc.) */
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 16px; font-weight: 600; }

/* Assistant téléphonique : une case par appel de la journée */
.calls { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.calls i { aspect-ratio: 1; border-radius: 6px; background: var(--sky-mid); }
.calls i.is-caught { background: var(--tag); }
.calls-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--ink-2); }
.calls-legend span { display: inline-flex; align-items: center; gap: 8px; }
.calls-legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--sky-mid); }
.calls-legend i.is-caught { background: var(--tag); }

/* Devis : note vocale et document */
.voice { background: var(--sky-mid); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.voice__meta { font-size: 14px; font-weight: 600; color: var(--title); }
.voice__text { margin: 0; font-family: var(--display); font-style: italic; font-size: 18px; line-height: 1.45; color: var(--ink); }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; font-size: 14px; line-height: 1.4; }
.sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--title); }
.sheet__head span { color: var(--ink-2); }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet td + td { padding-left: 10px; text-align: right; white-space: nowrap; color: var(--ink-2); }
.sheet .is-todo td:last-child { color: var(--tag-text); font-style: italic; white-space: normal; }
.sheet__total { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-weight: 700; color: var(--title); }
.sheet__stamp { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); border: 2px solid var(--accent); border-radius: 999px; padding: 3px 12px; }

/* Bloc horloge (devis) */
.clock { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; }
.clock__time { margin: 0; flex: 0 0 auto; font-family: var(--display); font-weight: 700; font-size: clamp(64px, 10vw, 120px); line-height: 1; color: var(--title); }
.clock p:last-child { flex: 1 1 320px; margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-2); }

/* Je fais aussi */
.also { border-top: 1px solid var(--line); padding-top: 40px; display: flex; flex-wrap: wrap; gap: 24px 64px; }
.also .tag { flex: 0 0 auto; }
.also__item { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.also__item a { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; }
.also__item a:hover { text-decoration: underline; }
.also__item span { font-size: 16px; color: var(--ink-2); }

/* Pied de page */
.footer { background: var(--title); color: var(--paper); padding: 88px 24px 40px; }
.footer .shell { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.footer__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; max-width: 760px; text-wrap: balance; }
.footer__lede { margin: 0; font-size: 19px; line-height: 1.5; opacity: .9; max-width: 600px; }
.footer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-size: 18px; font-weight: 600; }
.footer a:not(.btn):hover { color: var(--paper); opacity: .85; }
.footer__legal { margin-top: 16px; padding-top: 24px; border-top: 1px solid rgba(251, 247, 238, .18); font-size: 13px; line-height: 1.6; opacity: .8; max-width: 900px; }
.footer__legal p { margin: 0 0 6px; }

/* Page MaestreIA */
.transition { min-height: 100vh; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--sky-bottom) 100%); padding: 24px; display: flex; flex-direction: column; gap: 64px; }
.transition__card { max-width: 720px; width: 100%; margin: 0 auto; background: var(--paper); border-radius: 24px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 22px; }
.transition__card h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; color: var(--title); }
.transition__card p { margin: 0; font-size: 19px; line-height: 1.6; }
.transition__card .btn { align-self: flex-start; }

@media (max-width: 600px) {
  .hero { padding-bottom: 72px; }
  .hero--page { padding-bottom: 64px; }
  .hero .shell { gap: 48px; }
  .section { padding: 72px 20px; }
  #realisations { padding-bottom: 72px; }
  .section--tint { padding: 72px 20px; }
  .section--flush-top { padding-top: 0; }
  .card, .card--wide, .plan { padding: 26px; }
  .paper-card { padding: 22px; }
  .btn { width: 100%; }
  .hero__figure { max-width: 280px; }
  .footer { padding: 72px 20px 32px; }
  .faq summary { padding: 14px 18px; }
  .faq details p { padding: 0 18px 20px; }
  .calls { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
