/* ============================================================
   Coffee Thinking : design system v2
   Base : template "Karate Academy" (Framer) reconstruit en HTML/CSS/JS,
   rendu dans l'identité Coffee Thinking (bleu #1423FB).
   Chargé uniquement par les pages migrées (layout v2-base.njk).
   ============================================================ */

:root {
  /* --- couleur de marque : bleu Coffee Thinking (remplace le rouge du template) --- */
  --brand:        #1423FB;
  --brand-hover:  #0E17C2;
  --brand-ink:    #FFFFFF;
  --brand-100:    #E9ECFF;
  --brand-90:     #D6DBFF;
  --brand-20:     rgba(20, 35, 251, 0.12);
  --brand-10:     rgba(20, 35, 251, 0.06);

  /* --- neutres --- */
  --ink:          #16181C;
  --ink-2:        #3B3F47;
  --ink-3:        #6B7078;
  --line:         #E7E8EB;
  --line-2:       #EFEFF1;
  --paper:        #FFFFFF;
  --paper-2:      #F5F5F6;
  --paper-grad:   linear-gradient(180deg, #FFFFFF 0%, #F5F5F6 100%);

  /* --- surfaces sombres (CTA, footer) --- */
  --dark:         #101318;
  --dark-2:       #191D24;
  --on-dark:      #FFFFFF;
  --on-dark-soft: #C7CACF;

  /* --- accent secondaire (étoiles, badges) : bleu clair --- */
  --star:         #1423FB;
  --gold:         #C29F3E;

  /* --- typo --- */
  --font-display: "DM Sans", "DM Sans Placeholder", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Inter Placeholder", system-ui, -apple-system, sans-serif;

  /* --- layout --- */
  --container: 1200px;
  --container-narrow: 780px;
  --radius:    16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.2,.6,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper-grad);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 18px; } }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-soft); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head__t { max-width: 40ch; }
.lead { font-size: 1.15rem; color: var(--ink-3); max-width: 46ch; }
.section--dark .lead { color: var(--on-dark-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.section--dark .eyebrow { color: var(--brand-90); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .95rem 1.7rem; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--brand-ink); border: 1.5px solid var(--brand);
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: #000; border-color: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink-3); }
.section--dark .btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,.3); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--sm { padding: .6rem 1.1rem; font-size: .88rem; }
.link {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--brand); transition: gap .18s var(--ease);
}
.link:hover { gap: .7em; }

/* ---------- header (fixe, blur, coins bas arrondis, menu dropdown) ---------- */
.v2-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.v2-header__in {
  max-width: var(--container); margin-inline: auto;
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (max-width: 640px) { .v2-header__in { padding: 12px 18px; } }
.v2-logo { display: flex; align-items: center; gap: .55rem; color: var(--brand); }
.v2-logo .ct-logo { font-size: 22px; }
.v2-nav { display: flex; align-items: center; gap: 2rem; }
.v2-nav a { font-family: var(--font-display); font-weight: 500; font-size: .98rem; color: var(--ink-2); transition: color .18s var(--ease); }
.v2-nav a:hover, .v2-nav a[aria-current] { color: var(--brand); }
.v2-nav__lang { font-size: .86rem; color: var(--ink-3); }
.v2-nav__lang [aria-current] { color: var(--brand); font-weight: 600; }
.v2-header__cta { display: inline-flex; }
.v2-menu-toggle { display: none; }

@media (max-width: 900px) {
  .v2-header__cta { display: none; }
  .v2-menu-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-display); font-weight: 600; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
    background: none; border: 0; padding: .4rem; z-index: 110;
  }
  .v2-menu-toggle__bars { width: 20px; height: 12px; position: relative; }
  .v2-menu-toggle__bars::before, .v2-menu-toggle__bars::after,
  .v2-menu-toggle__bars span { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
  .v2-menu-toggle__bars::before { top: 0; }
  .v2-menu-toggle__bars span { top: 5px; }
  .v2-menu-toggle__bars::after { top: 10px; }
  .v2-header[data-open="true"] .v2-menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
  .v2-header[data-open="true"] .v2-menu-toggle__bars span { opacity: 0; }
  .v2-header[data-open="true"] .v2-menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

  .v2-nav {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 1.4rem; padding: 0 2rem;
    background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
  }
  .v2-header[data-open="true"] .v2-nav { opacity: 1; visibility: visible; }
  .v2-nav a { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
  .v2-nav__lang { font-size: 1.1rem; margin-top: .5rem; }
}

/* espace pour le header fixe */
.v2-page { padding-top: 84px; }
.v2-page--hero { padding-top: 0; }

/* header transparent au-dessus du hero, plein au scroll */
.v2-page--hero ~ * .v2-header,
.v2-header--over { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body:has(.v2-page--hero) .v2-header:not([data-scrolled="true"]) {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
body:has(.v2-page--hero) .v2-header:not([data-scrolled="true"]) .v2-nav a,
body:has(.v2-page--hero) .v2-header:not([data-scrolled="true"]) .v2-nav__lang,
body:has(.v2-page--hero) .v2-header:not([data-scrolled="true"]) .v2-menu-toggle { color: var(--on-dark); }
body:has(.v2-page--hero) .v2-header:not([data-scrolled="true"]) .v2-nav__lang [aria-current] { color: #fff; }
@media (max-width: 900px) {
  body:has(.v2-page--hero) .v2-header[data-open="true"] .v2-nav a { color: var(--ink); }
}

/* ---------- hero (repris tel quel de la v1 : vidéo + scrim + logo animé) ---------- */
.v2-hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--dark); color: var(--on-dark); }
.v2-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.v2-hero__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,35,251,.14) 0%, rgba(20,35,251,.16) 42%, rgba(9,12,74,.55) 100%); }
.v2-hero__in { position: relative; z-index: 2; max-width: var(--container); margin-inline: auto; width: 100%; padding: 7rem 24px clamp(3rem, 8vw, 5.5rem); }
.v2-hero h1 { color: var(--on-dark); font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 22ch; margin-bottom: 1.1rem; }
.v2-hero__sub { font-size: 1.12rem; color: var(--on-dark); max-width: 44ch; margin-bottom: 1rem; }
.v2-hero__sig { font-style: italic; color: var(--on-dark-soft); margin-bottom: 1.8rem; }
.v2-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
@media (max-width: 767px) { .v2-hero { min-height: 82vh; } .v2-hero__in { padding-top: 6rem; } }

/* ---------- badge / floating badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--paper-2); border-radius: var(--radius-pill);
  padding: .4rem .9rem .4rem .5rem; font-size: .85rem; color: var(--ink-2);
}
.badge b { background: var(--brand); color: var(--brand-ink); border-radius: var(--radius-pill); padding: .2rem .65rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge em { font-style: normal; font-weight: 600; color: var(--brand); }

.float-badge {
  position: absolute; width: 128px; height: 128px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 14px 40px rgba(20,35,251,.28);
}
.float-badge strong { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.float-badge span { font-size: .68rem; opacity: .9; margin-top: .2rem; }

/* ---------- stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 2.4rem; }
.stats > div { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--brand); line-height: 1; }
.stats span { font-size: .9rem; color: var(--ink-3); margin-top: .3rem; }
.section--dark .stats span { color: var(--on-dark-soft); }
.stats--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stats--grid > div { background: var(--paper-2); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.section--dark .stats--grid > div { background: var(--dark-2); }

/* ---------- cards génériques ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(16,24,32,.08); }
.card__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/11; background: var(--paper-2); margin-bottom: 1.2rem; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- image utilitaire ---------- */
.frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.v2-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); }
.v2-footer__grid { max-width: var(--container); margin-inline: auto; padding: 0 24px clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 900px) { .v2-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .v2-footer__grid { grid-template-columns: 1fr; } }
.v2-footer__brand p { font-size: .92rem; color: var(--ink-3); margin-top: .9rem; max-width: 30ch; }
.v2-footer__social { display: flex; gap: 1rem; margin-top: 1rem; }
.v2-footer__social a { color: var(--ink-3); font-size: .88rem; }
.v2-footer__social a:hover { color: var(--brand); }
.v2-footer h5 { font-family: var(--font-display); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.1rem; }
.v2-footer__col a, .v2-footer__col p { display: block; font-size: .93rem; color: var(--ink-2); margin-bottom: .7rem; }
.v2-footer__col a:hover { color: var(--brand); }
.v2-footer__map {
  display: flex; align-items: center; gap: .7rem; min-height: 96px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--brand-10), var(--paper));
  padding: 1rem 1.1rem; font-size: .88rem; color: var(--ink-2); line-height: 1.35;
}
.v2-footer__map:hover { border-color: var(--brand); }
.v2-footer__pin { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: var(--brand); transform: rotate(-45deg); flex: none; }
.v2-footer__bottom { border-top: 1px solid var(--line); padding: 1.5rem 24px; text-align: center; font-size: .82rem; color: var(--ink-3); }

/* ---------- scroll reveal ---------- */
.js-reveal .reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal .reveal.pre { opacity: 0; transform: translateY(18px); }
.js-reveal .reveal.pre.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   Composants de page : Accueil
   ============================================================ */

/* --- section 2 colonnes (texte + média) --- */
.v2-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.v2-two--rev .v2-two__media { order: 2; }
@media (max-width: 860px) { .v2-two, .v2-two--rev { grid-template-columns: 1fr; } .v2-two--rev .v2-two__media { order: 0; } }
.v2-two__media { position: relative; aspect-ratio: 4/5; max-height: 520px; }
.v2-two__media .float-badge { right: -18px; bottom: -18px; }
@media (max-width: 500px) { .v2-two__media .float-badge { right: 8px; bottom: -14px; width: 104px; height: 104px; } }
.v2-two h2 { margin-bottom: 1rem; }
.v2-two .stats { margin-top: 1.8rem; }

/* --- grille de projets (Accueil + aperçu) --- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-cell { display: block; color: inherit; }
.proj-cell__media { display: block; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.proj-cell__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.proj-cell:hover .proj-cell__media img { transform: scale(1.05); }
.proj-cell__t { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin: .9rem 0 .2rem; letter-spacing: -0.02em; transition: color .18s var(--ease); }
.proj-cell:hover .proj-cell__t { color: var(--brand); }
.proj-cell__meta { display: block; font-size: .82rem; color: var(--ink-3); }

/* --- planning de projet (ex-Weekly Schedule) --- */
.plan__tabs { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.4rem; }
.plan__tab {
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2);
  border-radius: var(--radius-pill); padding: .55rem 1.2rem; transition: all .16s var(--ease);
}
.plan__tab:hover { border-color: var(--brand); color: var(--brand); }
.plan__tab.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.plan__panel[hidden] { display: none; }
.plan__table { width: 100%; border-collapse: collapse; }
.plan__table th {
  text-align: left; padding: .9rem 1rem; font-family: var(--font-display); font-weight: 600;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  background: var(--brand-10); border-bottom: 1px solid var(--line);
}
.plan__table th:first-child { border-radius: var(--radius) 0 0 0; }
.plan__table th:last-child { border-radius: 0 var(--radius) 0 0; }
.plan__table td { padding: 1rem; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: .95rem; }
.plan__table tr:last-child td { border-bottom: 0; }
.plan__step {
  display: inline-block; padding: .2rem .7rem; border-radius: var(--radius-pill);
  background: var(--brand-20); color: var(--brand); font-family: var(--font-display);
  font-weight: 600; font-size: .78rem;
}
@media (max-width: 680px) { .plan { overflow-x: auto; } .plan__table { min-width: 36rem; } }

/* --- carrousel de témoignages --- */
.tmc { margin-top: 1rem; }
.tmc__nav { display: flex; gap: .6rem; }
.tmc__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-size: 1rem; display: grid; place-items: center; transition: all .16s var(--ease); }
.tmc__arrow:hover { border-color: var(--brand); color: var(--brand); }
.tmc__track { display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem 24px 1rem; -ms-overflow-style: none; scrollbar-width: none; }
.tmc__track::-webkit-scrollbar { display: none; }
.tmc__card {
  flex: 0 0 auto; width: min(88vw, 440px); scroll-snap-align: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; margin: 0; display: flex; flex-direction: column; gap: 1.1rem;
}
.tmc__stars { color: var(--star); letter-spacing: 3px; font-size: .95rem; }
.tmc__card blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.tmc__card figcaption { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.tmc__card figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--paper-2); flex: none; }
.tmc__card figcaption strong { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--ink); }
.tmc__card figcaption span span { font-size: .82rem; color: var(--ink-3); }

/* --- FAQ accordéon --- */
.faq { display: flex; flex-direction: column; gap: .8rem; max-width: 780px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; padding: 1.15rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__chev { color: var(--brand); transition: transform .25s var(--ease); flex: none; }
.faq__item.is-open .faq__chev { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 1.4rem 1.2rem; color: var(--ink-3); font-size: .96rem; }

/* --- bloc CTA sombre centré --- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 1rem; }
.cta-band p { max-width: 46ch; margin: 0 auto 1.8rem; }

/* ---------- logo animé (cup + wordmark) : porté depuis style.css, tokens v2 ---------- */
.ct-logo { display: inline-flex; align-items: center; gap: .42em; font-size: 22px; line-height: 1; color: var(--brand); vertical-align: middle; }
.ct-logo__mark { height: 2em; width: auto; flex: none; overflow: visible; }
.ct-logo__wm { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 700; letter-spacing: -.022em; line-height: .9; }
.ct-logo__w { color: currentColor; opacity: .4; transition: opacity .4s var(--ease); }
.ct-logo__tilt { transform-box: view-box; transform-origin: 95px 105px; transform: rotate(0deg); transition: transform .5s cubic-bezier(.3,.7,.3,1); }
.ct-logo:not(.is-awake) .ct-logo__tilt { transform: rotate(-7deg); }
.ct-logo__lid, .ct-logo__iris { transform-box: fill-box; transform-origin: center; }
.ct-logo__lid { opacity: 1; transition: opacity .3s var(--ease); }
.ct-logo__iris { opacity: 0; transform: scale(.26); transition: opacity .4s var(--ease), transform .5s cubic-bezier(.2,.85,.25,1.4); }
.ct-logo__w--coffee { opacity: 1; }
.ct-logo.is-awake .ct-logo__lid { opacity: 0; }
.ct-logo.is-awake .ct-logo__iris { opacity: 1; transform: scale(1); }
.ct-logo.is-awake .ct-logo__w--coffee { opacity: .4; }
.ct-logo.is-awake .ct-logo__w--think { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ct-logo__lid, .ct-logo__iris, .ct-logo__w, .ct-logo__tilt { transition: none; } }

/* logo blanc au-dessus du hero, bleu au scroll */
body:has(.v2-page--hero) .v2-header:not([data-scrolled="true"]) .ct-logo { color: #fff; }
body:has(.v2-page--hero) .v2-header:not([data-scrolled="true"]) .ct-logo__wm { text-shadow: 0 1px 14px rgba(0,0,0,.45); }
body:has(.v2-page--hero) .v2-header:not([data-scrolled="true"]) .ct-logo__mark { filter: drop-shadow(0 1px 9px rgba(0,0,0,.4)); }
.v2-footer .ct-logo { color: var(--ink); font-size: 20px; }

/* ============================================================
   Composants : pages internes (sans hero)
   ============================================================ */
.v2-page-head { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.v2-page-head h1 { max-width: 18ch; margin-bottom: 1rem; }
.v2-page-head .lead { max-width: 52ch; }

/* --- histoire / origine (2 colonnes texte + citation) --- */
.story { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story h2 { margin-bottom: 1rem; }
.story p { color: var(--ink-2); }
.story__q {
  margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.3; color: var(--brand);
  border-left: 3px solid var(--brand); padding-left: 1.3rem;
}

/* --- timeline verticale --- */
.tl { list-style: none; margin: 0; padding: 0; position: relative; max-width: 780px; }
.tl::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl__item { position: relative; padding: 0 0 2.4rem 3.6rem; }
.tl__item:last-child { padding-bottom: 0; }
.tl__marker {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
}
.tl__body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.tl__body p { color: var(--ink-3); font-size: .98rem; margin: 0; }

/* --- liste "comment ça se passe" --- */
.notes { display: grid; gap: .8rem; max-width: 680px; margin-top: 1.5rem; list-style: none; padding: 0; }
.notes li { padding-left: 1.5rem; position: relative; color: var(--ink-2); }
.notes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* --- lien retour / fin de page --- */
.page-end { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 1rem; }

/* --- grilles de cartes --- */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cards-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; } }
.card__tag { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-10); border-radius: var(--radius-pill); padding: .3rem .8rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card > p { color: var(--ink-3); font-size: .96rem; }
.card__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; }
.card__list li { padding-left: 1.4rem; position: relative; font-size: .92rem; color: var(--ink-2); }
.card__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* --- deux colonnes texte simples --- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }
.cols-2 h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: .8rem; }
.cols-2 p { color: var(--ink-2); }

/* ============================================================
   Pages de cas (prose) — porté depuis style.css, tokens v2
   ============================================================ */
.v2-case { padding-top: clamp(3rem, 7vw, 5rem); }
.v2-case__head { max-width: 760px; margin-inline: auto; padding-inline: 24px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.v2-case__head .eyebrow { margin-bottom: .7rem; }
.v2-case__head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; }
.v2-case__cover { max-width: 900px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); padding-inline: 24px; }
.v2-case__cover img { width: 100%; height: auto; max-height: 34rem; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); }

.prose { max-width: 720px; margin-inline: auto; padding-inline: 24px; padding-bottom: clamp(3rem, 6vw, 5rem); font-size: 1.06rem; color: var(--ink-2); }
.prose > p { margin: 0 0 1.2rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.6rem 0 .8rem; color: var(--ink); }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 .5rem; color: var(--ink); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin: .35rem 0; }
.prose strong { color: var(--ink); }
.prose a.link { display: inline; }
.prose__fig { margin: 2rem 0; background: var(--paper-2); border: 1px solid var(--line); padding: 1.5rem; border-radius: var(--radius-lg); }
.prose__fig img { width: 100%; height: auto; margin: 0; display: block; border-radius: var(--radius); }
.prose__fig figcaption { margin-top: 1rem; font-family: var(--font-display); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.prose__fig--badge { max-width: 200px; margin-inline: auto; text-align: center; background: none; border: none; padding: 0; }
.prose__fig--badge img { width: 100%; border-radius: 0; }
.prose__fig--bleed { background: none; border: none; padding: 0; }
.prose__fig--bleed img { border-radius: var(--radius-lg); }
.prose__video { position: relative; aspect-ratio: 16/9; margin: 2rem 0; background: #000; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.prose__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 2rem 0; }
.prose__gallery img { border: 1px solid var(--line); border-radius: var(--radius); }
.prose__gallery--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .prose__gallery { grid-template-columns: repeat(2, 1fr); } }
.prose blockquote { border-left: 3px solid var(--brand); margin: 1.6rem 0; padding-left: 1.2rem; font-family: var(--font-body); font-style: italic; color: var(--ink-2); font-size: 1.1rem; }
.prose blockquote cite { display: block; margin-top: .6rem; font-family: var(--font-display); font-style: normal; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.prose__end { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; }

.bio-portrait { width: min(380px, 100%); margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.bio-portrait img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }

.apc-palette { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin: 1.6rem 0 2.5rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.apc-swatch { background: var(--sw); color: var(--tx,#fff); aspect-ratio: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem; padding: .6rem; }
.apc-swatch span, .apc-swatch code { font-family: var(--font-display); font-size: .64rem; letter-spacing: .03em; color: inherit; }
.apc-swatch span { opacity: .75; text-transform: uppercase; }
.apc-swatch code { background: none; padding: 0; }
@media (max-width: 600px) { .apc-palette { grid-template-columns: repeat(2,1fr); } }

.u5anim { position: relative; aspect-ratio: 4 / 3; max-width: 440px; margin: 0 auto; }
.u5anim__f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; animation: u5cycle 10s infinite; }
.u5anim__f--a { animation-delay: 0s; } .u5anim__f--b { animation-delay: 2s; } .u5anim__f--c { animation-delay: 4s; }
.u5anim__f--d { animation-delay: 6s; } .u5anim__f--e { animation-delay: 8s; }
@keyframes u5cycle { 0% { opacity: 0; } 4% { opacity: 1; } 18% { opacity: 1; } 22% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .u5anim__f { animation: none; opacity: 0; } .u5anim__f--e { opacity: 1; } }
.u5compare { margin: 2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.u5compare__col { background: var(--paper); padding: 2.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.u5compare__col img { max-width: 160px; width: 100%; height: auto; }
.u5compare__label { font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 600px) { .u5compare { grid-template-columns: 1fr; } }

/* --- index projets : carrousel compact (repris) --- */
.proj-carousel { margin-top: 1.5rem; }
.proj-carousel__track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .3rem .1rem 1rem; scrollbar-width: none; }
.proj-carousel__track::-webkit-scrollbar { display: none; }
.proj-card { scroll-snap-align: start; flex: 0 0 auto; width: 220px; color: inherit; display: block; }
.proj-card__img { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.proj-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.proj-card:hover .proj-card__img img { transform: scale(1.06); }
.proj-card__t { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.02rem; margin: .8rem 0 .15rem; display: block; transition: color .2s var(--ease); color: var(--ink); }
.proj-card:hover .proj-card__t { color: var(--brand); }
.proj-card__meta { font-size: .8rem; color: var(--ink-3); display: block; }
.proj-nav { display: flex; gap: .6rem; margin-top: .8rem; }

/* ============================================================
   Formulaire de contact (v2)
   ============================================================ */
.cform { max-width: 34rem; display: grid; gap: 1.1rem; }
.cform__row { display: grid; gap: .4rem; }
.cform__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cform label { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cform input, .cform select, .cform textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem .9rem; width: 100%; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--brand); }
.cform textarea { min-height: 6.5rem; resize: vertical; }
.cform .btn { justify-self: start; }
.cform__note { font-size: .88rem; color: var(--ink-3); margin: 0; }
.cform__error { font-size: .88rem; color: #B3261E; margin: 0; }
.cform.is-sending { opacity: .6; pointer-events: none; }
.cform__success[hidden], .cform__error[hidden] { display: none; }
.cform__success {
  max-width: 34rem; padding: 1.7rem 1.9rem; background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: var(--radius); display: grid; gap: .8rem; }
.cform__success-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.25rem; color: var(--brand); margin: 0; }
.cform__success p { margin: 0; color: var(--ink-2); }
.cform__success .btn { justify-self: start; }
@media (max-width: 560px) { .cform__row--2 { grid-template-columns: 1fr; } }

/* --- infos contact (heures, coordonnées) --- */
.contact-info { display: grid; gap: 1.6rem; }
.contact-info h3 { font-size: 1rem; margin-bottom: .5rem; }
.contact-info p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.contact-info a { color: var(--brand); }
.hours-list { list-style: none; margin: .4rem 0 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; color: var(--ink-2); }
.hours-list li:last-child { border-bottom: 0; }

/* ============================================================
   Blog
   ============================================================ */
.blog-filter { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.2rem; }
.blog-filter__pill {
  font-family: var(--font-display); font-weight: 600; font-size: .86rem;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2);
  border-radius: var(--radius-pill); padding: .5rem 1.1rem; transition: all .16s var(--ease);
}
.blog-filter__pill:hover { border-color: var(--brand); color: var(--brand); }
.blog-filter__pill.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { display: flex; flex-direction: column; color: inherit; }
.blog-card[hidden] { display: none; }
.blog-card__media { aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); margin-bottom: 1rem; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__cat { font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; }
.blog-card__t { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.15rem; color: var(--ink); line-height: 1.25; margin-bottom: .4rem; transition: color .18s var(--ease); }
.blog-card:hover .blog-card__t { color: var(--brand); }
.blog-card__meta { font-size: .82rem; color: var(--ink-3); margin-top: auto; padding-top: .8rem; }
.blog-card__excerpt { font-size: .92rem; color: var(--ink-3); line-height: 1.5; margin-bottom: .6rem; }
.blog-card--text { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; background: var(--paper); transition: border-color .18s var(--ease), transform .18s var(--ease); }
.blog-card--text:hover { border-color: var(--brand); transform: translateY(-3px); }
.blog-card--text .blog-card__t { font-size: 1.22rem; }
.load-more { display: block; margin: 2.6rem auto 0; }
.load-more[hidden] { display: none; }

/* --- article de blog --- */
.post { padding-top: clamp(3rem, 7vw, 5rem); }
.post__head { max-width: 720px; margin-inline: auto; padding-inline: 24px; margin-bottom: 2rem; }
.post__cat { font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.post__head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: .8rem 0; }
.post__meta { font-size: .88rem; color: var(--ink-3); }
.post__lead { max-width: 720px; margin: 0 auto 2rem; padding-inline: 24px; font-size: 1.2rem; color: var(--ink-2); }
.post__cover { max-width: 900px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); padding-inline: 24px; }
.post__cover img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.post__nav { max-width: 720px; margin: 3rem auto 0; padding: 1.6rem 24px 0; border-top: 1px solid var(--line); }
