/* ── ION Studio Design Tokens — Brand v3.0 (single theme) ── */
/* Source de vérité : docs/2026-04-23-brand-v3-handoff.html                */
:root {
  /* Fond — crème beige unifié (app + PDF + impression) */
  --creme:        #E8DFD0;
  --creme-deep:   #D8CEBD;
  --creme-light:  #F2ECE3;

  /* Texte */
  --encre:        #5A4834;   /* tabac — corps */
  --encre-dark:   #3D3022;   /* titres, chrome (nav, hero, footer) */
  --encre-muted:  rgba(90,72,52,0.55);
  --encre-border: rgba(90,72,52,0.18);

  /* Accent bordeaux */
  --bordeaux:        #8B2635;
  --bordeaux-hover:  #a32d41;
  --bordeaux-subtle: rgba(139,38,53,0.12);
  --bordeaux-border: rgba(139,38,53,0.30);

  /* ── Aliases backward-compat ──
     Permettent aux inline styles des HTML (var(--ion-bg), var(--doc-bg-surface)…)
     de continuer de fonctionner sans réécrire chaque page. En single theme,
     les aliases "texte" pointent tous vers les valeurs encre sur crème. */
  --app-bg:            var(--encre-dark);
  --app-bg-deep:       var(--encre-dark);
  --app-bg-surface:    var(--creme-light);
  --app-text:          var(--encre-dark);
  --app-text-muted:    var(--encre-muted);
  --app-border:        var(--encre-border);

  --doc-bg:            var(--creme);
  --doc-bg-deep:       var(--creme-deep);
  --doc-bg-surface:    var(--creme-light);
  --doc-text:          var(--encre);
  --doc-text-muted:    var(--encre-muted);
  --doc-border:        var(--encre-border);

  --ion-bg:            var(--encre-dark);
  --ion-bg-deep:       var(--encre-dark);
  --ion-bg-light:      var(--creme-light);
  --ion-bg-warm:       var(--creme);
  --ion-gold:          var(--bordeaux);
  --ion-gold-hover:    var(--bordeaux-hover);
  --ion-text:          var(--encre-dark);
  --ion-text-muted:    var(--encre-muted);
  --ion-text-alt:      var(--encre-dark);
  --ion-text-alt-muted:var(--encre-muted);

  /* Structure */
  --ion-radius: 8px;
  --ion-max-w:  980px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:  'DM Mono', 'Courier New', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Sections ──
   Single theme strict : TOUTES les sections sur crème.
   Le rythme visuel est donné par les 3 nuances (crème, crème-deep, crème-light)
   et par la densité typographique, pas par des contrastes sombre/clair. */
.section { padding: 80px 24px; }
.section--dark  { background: var(--creme);       color: var(--encre); }
.section--deep  { background: var(--creme-deep);  color: var(--encre); }  /* footer */
.section--light { background: var(--creme-light); color: var(--encre); }
.section--warm  { background: var(--creme);       color: var(--encre); }
.section__inner { max-width: var(--ion-max-w); margin: 0 auto; }
.section__inner--wide { max-width: 1080px; }

/* ── Typography ── */
.headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--encre-dark);
}
.headline--hero { font-size: clamp(32px, 5vw, 48px); }
.headline--section { font-size: clamp(26px, 4vw, 38px); margin-bottom: 24px; }
.subheadline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.8;
  max-width: 700px;
  color: var(--encre);
}
.label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bordeaux);
}

/* En single theme strict, plus d'overrides pour "chrome sombre".
   Les éléments typographiques héritent tous des couleurs par défaut (encre/encre-dark). */

/* ── Logo mount ──
   Les SVG sont injectés inline par main.js (injectLogos) depuis
   /assets/logo-lockup-dark.svg et /assets/logo-lockup-creme.svg. */
.logo-mount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  margin-bottom: 40px;
}
.logo-mount svg { display: block; width: 200px; height: auto; }
.logo-mount--sm svg { width: 160px; }

/* Legacy : certains HTML utilisent encore .logo-svg inline */
.logo { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: 40px; }
.logo-svg { display: block; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--ion-radius);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--bordeaux);
  color: var(--creme);
}
.btn--primary:hover {
  background: var(--bordeaux-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139,38,53,0.28);
}
.btn--secondary {
  background: transparent;
  color: var(--bordeaux);
  border-color: var(--bordeaux);
}
.btn--secondary:hover { background: var(--bordeaux-subtle); }

/* btn--light-secondary : posé sur crème, contour encre */
.btn--light-secondary {
  background: transparent;
  color: var(--encre-dark);
  border-color: var(--encre-border);
}
.btn--light-secondary:hover {
  background: rgba(90,72,52,0.06);
  border-color: var(--encre-dark);
}

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ── Site Nav ── */
.site-nav {
  background: var(--creme-deep);
  border-bottom: 1px solid var(--encre-border);
  padding: 14px 32px;
  display: flex;
  gap: 32px;
  justify-content: flex-end;
  align-items: center;
}
.site-nav a {
  color: var(--encre-muted);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.18s;
}
.site-nav a:hover { color: var(--encre-dark); }
.site-nav a[aria-current] {
  color: var(--encre-dark);
  border-bottom: 1.5px solid var(--bordeaux);
  padding-bottom: 1px;
}

/* ── Hero (accueil) ──
   En single theme : fond crème avec un léger halo bordeaux en haut pour
   suggérer la "marque" sans rompre la continuité chromatique. */
.hero {
  padding: 112px 24px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, var(--bordeaux-subtle), transparent 70%),
    linear-gradient(180deg, var(--creme-light) 0%, var(--creme) 100%);
  color: var(--encre);
}
.hero .section__inner { max-width: 900px; position: relative; z-index: 1; }
.hero .headline { margin: 0 auto 20px; max-width: 820px; }
.hero .subheadline { margin: 0 auto; }
.hero .btn-group { justify-content: center; }

/* ── Page hero (pages intérieures) ──
   Variante plus sobre du hero, sans halo bordeaux, pour bien distinguer
   l'accueil des pages intérieures. */
.page-hero {
  padding: 80px 24px 64px;
  background: linear-gradient(180deg, var(--creme-light) 0%, var(--creme) 100%);
  color: var(--encre);
  border-bottom: 1px solid var(--encre-border);
}
.page-hero .section__inner { max-width: 860px; }
.page-hero .headline { margin-bottom: 20px; }

/* ── Problem bullets ── */
.problem-list { list-style: none; margin: 32px 0; }
.problem-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--encre-border);
  font-size: 16px;
  line-height: 1.8;
  color: var(--encre);
}
.problem-list li strong { font-weight: 600; color: var(--encre-dark); }
.problem-list li:last-child { border-bottom: none; }

.blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--bordeaux);
  margin-top: 24px;
  padding-left: 20px;
  border-left: 2px solid var(--bordeaux);
  line-height: 1.4;
}

/* ── Pack cards ── */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0;
  align-items: stretch;
}
.pack-card {
  background: var(--creme-light);
  border: 1px solid var(--encre-border);
  border-radius: 10px;
  padding: 32px 28px;
  color: var(--encre);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pack-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(61,48,34,0.10);
}
.pack-card__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--encre-dark);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.pack-card__sub {
  font-size: 13px;
  color: var(--encre-muted);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.pack-card ul { list-style: none; font-size: 15px; line-height: 1.85; }
.pack-card ul li { position: relative; padding-left: 16px; }
.pack-card ul li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--encre-muted);
}
.pack-card--highlight {
  border: 1px solid var(--bordeaux-border);
  position: relative;
}
.pack-card__badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--bordeaux);
  color: var(--creme);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* ── Process cards ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin: 40px 0;
}
.process-card {
  background: var(--creme-light);
  border: 1px solid var(--encre-border);
  border-radius: 12px;
  padding: 28px 24px;
  color: var(--encre);
}
.process-card__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--encre-dark);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.process-card__sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.process-card ul { list-style: none; font-size: 15px; line-height: 1.85; }
.process-card li { position: relative; padding-left: 18px; }
.process-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--bordeaux);
}

/* ── Features list ── */
.features-list {
  list-style: none;
  margin: 32px 0;
  font-size: 16px;
  color: var(--encre);
}
.features-list li {
  padding: 10px 0;
  padding-left: 26px;
  position: relative;
}
.features-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--bordeaux);
  font-weight: 600;
}
.features-meta {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  margin-top: 24px;
  color: var(--bordeaux);
}

/* ── Qualiopi table ── */
.quali-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px; }
.quali-table th {
  text-align: left;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 2px solid var(--bordeaux);
  color: var(--bordeaux);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.quali-table td {
  padding: 16px;
  border-bottom: 1px solid var(--encre-border);
  vertical-align: top;
  color: var(--encre);
}
.quali-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  color: var(--encre-dark);
}

/* ── Pricing ── */
.pricing-card {
  background: var(--creme-light);
  border: 1px solid var(--encre-border);
  border-radius: 16px;
  padding: 48px 40px;
  color: var(--encre);
  text-align: center;
  max-width: 520px;
  margin: 40px auto;
  position: relative;
  box-shadow: 0 14px 32px rgba(61,48,34,0.06);
}
.pricing-card__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bordeaux);
  font-weight: 600;
}
.pricing-card__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  color: var(--encre-dark);
  margin: 12px 0 4px;
  letter-spacing: -0.4px;
}
.pricing-card__cert { font-size: 14px; color: var(--encre-muted); margin-bottom: 24px; }
.pricing-card__price {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 64px;
  color: var(--bordeaux);
  line-height: 1;
}
.pricing-card__price span {
  font-size: 22px;
  font-weight: 400;
  font-family: var(--font-sans);
}
.pricing-card__note { font-size: 13px; color: var(--encre-muted); margin: 8px 0 32px; }
.pricing-card__includes {
  list-style: none;
  text-align: left;
  font-size: 14px;
  line-height: 2;
  margin-bottom: 32px;
  color: var(--encre);
}
.pricing-card__includes li::before {
  content: "✓";
  color: var(--bordeaux);
  margin-right: 10px;
  font-weight: 600;
}
.pricing-card__delivery { font-size: 13px; color: var(--encre-muted); margin-top: 20px; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--encre-border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  background: none;
  border: none;
  color: var(--encre-dark);
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
}
.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--bordeaux);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 15px;
  line-height: 1.8;
  color: var(--encre);
  opacity: 0.88;
}
.faq-item.open .faq-a { max-height: 360px; padding-bottom: 24px; }

/* ── Custom block (ex : renvoi devis) ── */
.custom-block {
  border: 1px solid var(--bordeaux-border);
  background: var(--bordeaux-subtle);
  border-radius: 12px;
  padding: 32px;
  margin-top: 40px;
  text-align: center;
}
.custom-block p { font-size: 15px; margin-bottom: 16px; color: var(--encre); }
.custom-block a { color: var(--bordeaux); font-weight: 600; text-decoration: none; }
.custom-block a:hover { text-decoration: underline; }

/* ── Footer (sur crème-deep, single theme) ── */
.footer {
  padding: 48px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--encre-muted);
  border-top: 1px solid var(--encre-border);
}
.footer__brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--encre-dark);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.footer__tagline {
  color: var(--bordeaux);
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 600;
}
.footer__links { margin: 16px 0; }
.footer__links a {
  color: var(--encre-muted);
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.18s;
}
.footer__links a:hover { color: var(--encre-dark); }
.footer__copy { margin-top: 24px; font-size: 12px; opacity: 0.78; }
.footer__legal {
  font-size: 11px;
  color: rgba(90,72,52,0.48);
  margin-top: 16px;
  max-width: 680px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}

/* ── Proof images ── */
.proof-placeholder {
  background: rgba(90,72,52,0.05);
  border: 1px dashed var(--encre-border);
  border-radius: 8px;
  height: 200px;
  display: flex;
  align-items: center; justify-content: center;
  color: var(--encre-muted);
  font-size: 13px;
}
.proof-fig figcaption { font-size: 12px; color: var(--encre-muted); margin-top: 8px; text-align: center; }
.proof-fig img {
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(61,48,34,0.10);
}
.proof-fig img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 32px rgba(61,48,34,0.16) !important;
}

/* ── Lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(32,24,14,0.88);
  z-index: 2000;
  align-items: center; justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: lb-in 0.2s ease;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: rgba(232,223,208,0.75);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  background: none; border: none; padding: 8px;
}
.lightbox-close:hover { color: var(--creme); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .proof-fig img, .pack-card { transition: none; }
  .lightbox-overlay { animation: none; }
}

/* ── Service blocks (page /services) ── */
.service-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: 64px 0;
  border-bottom: 1px solid var(--encre-border);
  align-items: start;
}
.service-block:last-child { border-bottom: none; }
.service-block__meta { padding-top: 4px; }
.service-block__number {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bordeaux);
  font-weight: 600;
  margin-bottom: 12px;
}
.service-block__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--encre-dark);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}
.service-block__tag { font-size: 13px; color: var(--encre-muted); }
.service-block__content h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin: 24px 0 12px;
}
.service-block__content h4:first-child { margin-top: 0; }
.service-block__content ul { list-style: none; font-size: 15px; line-height: 2; color: var(--encre); }
.service-block__content ul li { position: relative; padding-left: 20px; }
.service-block__content ul li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--bordeaux);
}
.service-block__content p { font-size: 16px; line-height: 1.8; color: var(--encre); margin-bottom: 16px; }

/* ── Comparison table ── */
.compare-table { width: 100%; border-collapse: collapse; margin: 40px 0; font-size: 14px; }
.compare-table th {
  text-align: left;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 2px solid var(--encre-border);
  color: var(--encre-dark);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(90,72,52,0.08);
  vertical-align: top;
  color: var(--encre);
}
.compare-table td:first-child {
  font-weight: 600;
  color: var(--encre-dark);
  white-space: nowrap;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .highlight-row { background: var(--bordeaux-subtle); }
.compare-table .highlight-row td { color: var(--encre-dark); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .section { padding: 56px 20px; }
  .hero { padding: 80px 20px 60px; }
  .page-hero { padding: 60px 20px 48px; }
  .btn { width: 100%; text-align: center; }
  .btn-group { flex-direction: column; }
  .pricing-card { padding: 32px 24px; }
  .pack-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr !important; }
  .quali-table { font-size: 13px; }
  .quali-table td:first-child { white-space: normal; }
  .logo-mount svg, .logo-svg { width: 160px; height: auto; }
  .service-block { grid-template-columns: 1fr; gap: 24px; }
  .compare-table { font-size: 12px; }
  .compare-table td:first-child { white-space: normal; }
  .site-nav { gap: 16px; padding: 12px 16px; }
}
