/**
 * cocon.css — Styles du template cocon semantique
 *
 * Variables CSS overridables par chaque site via cocon-overrides.css.
 * PAS de Tailwind — CSS vanilla avec custom properties.
 *
 * Extrait du template valide v10.
 */

    :root {
      --bg: #FFFBF5;
      --bg-alt: #FFF7EE;
      --card: #FFFFFF;
      --white: #FFFFFF;
      --accent: #C2694A;
      --accent-hover: #B05A3D;
      --accent-light: #FFF0E8;
      --accent-dark: #A3523A;
      /* V9 — Accent secondaire taupe chaud (Mod 17 palette) */
      --accent-secondary: #8B7355;
      --text: #1a1a1a;
      --muted: #4f4f4f;
      --muted-light: #666666; /* I7: darkened from #7a7a7a → ratio ≥4.5:1 on #FFFBF5 */
      --border: #f0f0f0;
      --border-hover: #e0d5cc;
      --green: #2D8B55;
      --green-light: #EEFBF3;
      --red: #D94040;
      --red-light: #FFF0F0;
      --shadow-accent: var(--accent-alpha-08);
      --shadow-accent-hover: var(--accent-alpha-15);
      /* Alpha variants — auto-overridden par cocon-theme.css */
      --accent-alpha-06: rgba(194, 105, 74, 0.06);
      --accent-alpha-08: rgba(194, 105, 74, 0.08);
      --accent-alpha-10: rgba(194, 105, 74, 0.10);
      --accent-alpha-15: rgba(194, 105, 74, 0.15);
      --accent-alpha-25: rgba(194, 105, 74, 0.25);
      --accent-alpha-30: rgba(194, 105, 74, 0.30);
      --accent-alpha-35: rgba(194, 105, 74, 0.35);
      --accent-alpha-00: rgba(194, 105, 74, 0);
      --accent-alpha-04: rgba(194, 105, 74, 0.04);
      --accent-alpha-09: rgba(194, 105, 74, 0.09);
      --accent-alpha-12: rgba(194, 105, 74, 0.12);
      /* V9 — Mod 9: Formalized 3-level elevation system */
      --shadow-rest:  0 2px 8px rgba(0, 0, 0, 0.03);
      --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.02);
      --shadow-hover: 0 16px 48px var(--accent-alpha-10), 0 4px 12px rgba(0, 0, 0, 0.04);
      --radius-card: 20px;
      --radius-pill: 9999px;
      /* V9 — Formalized radius scale */
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-xl: 24px;
      --max-content: 820px;
      --max-image: 1000px; /* breakout images — between content and layout */
      --max-layout: 1200px;
      /* V9 — Mod 18: Grid system aliases (documented) */
      --width-content: 820px;   /* texte courant */
      --width-breakout: 1000px;  /* images, vidéo */
      --width-layout: 1200px;    /* grilles, header */
      --nav-height: 64px;
      /* V9 — Mod 10: Formalized spacing scale (base 4px) */
      --space-1: 4px;
      --space-2: 8px;
      --space-3: 12px;
      --space-4: 16px;
      --space-6: 24px;
      --space-8: 32px;
      --space-10: 40px;
      --space-12: 48px;
      --space-16: 64px;
      --space-18: 72px;
      --space-24: 96px;
      --font-body: 'Cormorant Garamond', Georgia, serif;
      --font-title: 'Cormorant Garamond', Georgia, serif;
      --font-handwritten: 'Caveat', cursive;
      /* I5: Multi-vertical theme toggles (override per site) */
      --use-handwritten: 1; /* 0 = off (YMYL), 1 = on (lifestyle) */
      --use-emojis: 1;      /* 0 = off, 1 = on */
    }

    /* ============================================
       RESET & BASE
       ============================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    /* S2: Respect prefers-reduced-motion for smooth scroll */
    @media (prefers-reduced-motion: no-preference) {
      html { scroll-behavior: smooth; }
    }

    html {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* Change 4: Subtle grain texture overlay — premium paper feel
       V9: Moved from fixed pseudo-element to body background for better paint performance */
    body {
      font-family: var(--font-body);
      font-size: clamp(1.0625rem, 0.5vw + 0.9rem, 1.25rem); /* 17px mobile → 20px desktop */
      line-height: 1.72;
      color: var(--muted);
      background-color: var(--bg);
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      background-repeat: repeat;
      background-size: 256px 256px;
      background-blend-mode: overlay;
      overflow-x: hidden;
    }

    html { background-color: var(--bg); }

    img { max-width: 100%; height: auto; display: block; }
    a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
    a:hover { color: var(--accent-dark); }

    /* ============================================
       SKIP-LINK (C3)
       ============================================ */
    .skip-link {
      position: absolute;
      top: -100%;
      left: 16px;
      z-index: 200;
      background: var(--accent);
      color: var(--white);
      padding: 12px 24px;
      border-radius: 0 0 12px 12px;
      font-weight: 700;
      font-size: 14px;
      text-decoration: none;
      transition: top 0.2s;
    }

    .skip-link:focus {
      top: 0;
    }

    /* ============================================
       AUTHOR AVATAR IMG (I1)
       ============================================ */
    .author-avatar-img {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .author-box-avatar-img {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }

    /* ============================================
       ARTICLE DATES (C2)
       ============================================ */
    .article-dates {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .date-published {
      font-weight: 600;
      color: var(--text);
      font-size: 13px;
    }

    .date-updated {
      font-size: 12px;
      color: var(--muted);
    }

    /* ============================================
       VIDEO SECTION — Conditional slot (I4)
       V5: breakout width like images (1000px)
       ============================================ */
    .video-section {
      max-width: var(--max-image);
      margin: 0 auto;
      position: relative;
      z-index: 2;
      /* Breakout centering — same math as .content-image */
      margin-left: auto;
      margin-right: auto;
    }

    .video-section .video-wrapper {
      position: relative;
      padding-bottom: 56.25%; /* 16:9 */
      height: 0;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    }

    .video-section .video-wrapper video,
    .video-section .video-wrapper iframe {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      border: none;
      object-fit: cover; /* V9 fix: poster fills the frame */
    }

    .video-section figcaption {
      max-width: var(--max-content);
      margin: 14px auto 0;
      padding: 0 24px;
      font-size: 0.8125em;
      color: var(--muted-light);
      font-style: normal;
      text-align: left;
      line-height: 1.5;
    }

    .video-section figcaption::before {
      content: '';
      display: inline-block;
      width: 20px;
      height: 2px;
      background: var(--accent);
      vertical-align: middle;
      margin-right: 10px;
    }

    /* ============================================
       BACK TO TOP (S4)
       ============================================ */
    .back-to-top {
      position: fixed;
      bottom: 32px;
      right: 32px;
      z-index: 50;
      width: 44px;
      height: 44px;
      background: var(--card);
      border: 2px solid var(--border);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 18px;
      color: var(--accent);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s;
    }

    .back-to-top.visible {
      opacity: 1;
      pointer-events: auto;
    }

    .back-to-top:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
    }


    /* V9 — Mod 7: Reading progress bar — premium engagement signal */
    .reading-progress {
      position: fixed;
      top: var(--nav-height);
      left: 0;
      width: 0%;
      height: 2px;
      background: var(--accent);
      z-index: 99;
      transition: width 50ms linear;
      pointer-events: none;
    }


    /* ============================================
       BREADCRUMB — Point D1
       ============================================ */
    .breadcrumb {
      max-width: var(--max-content);
      margin: 0 auto;
      padding: calc(var(--nav-height) + 20px) 24px 0;
      font-size: 13px;
      letter-spacing: 0.3px;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 0;
      flex-wrap: wrap;
    }
    .breadcrumb a {
      color: var(--muted);
      text-decoration: none;
      border-bottom: 1px solid transparent;
      padding-bottom: 1px;
      transition: color 0.2s ease, border-color 0.2s ease;
      padding: 8px 4px;
    }
    .breadcrumb a:hover {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }
    .breadcrumb-sep {
      color: var(--muted);
      opacity: 0.3;
      margin: 0 10px;
      flex-shrink: 0;
    }
    .breadcrumb-current {
      color: var(--text);
      font-weight: 600;
      padding: 8px 4px;
    }
    .breadcrumb-sep { color: var(--muted-light); font-size: 11px; }

    /* ============================================
       ARTICLE HEADER
       ============================================ */
    .article-header {
      max-width: var(--max-content);
      margin: 0 auto;
      padding: 32px 24px 0;
      position: relative;
      background: var(--bg-alt);
      box-shadow: 0 0 0 9999px var(--bg-alt);
      clip-path: inset(0 -9999px);
    }

    /* Unified header band — direct background on breadcrumb + article-header */
    .article-header::before {
      content: '';
      position: absolute;
      top: -60px;
      left: 50%;
      transform: translateX(-50%);
      width: 120%;
      height: 140%;
      background: radial-gradient(ellipse at 50% 30%, var(--accent-alpha-04) 0%, transparent 70%);
      pointer-events: none;
      z-index: -1;
    }

    /* Full-width bg-alt band via box-shadow trick */
    .breadcrumb {
      background: var(--bg-alt);
      box-shadow: 0 0 0 9999px var(--bg-alt);
      clip-path: inset(0 -9999px);
    }

    .article-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--accent-light);
      color: var(--accent);
      font-weight: 600;
      font-size: 13px;
      padding: 6px 16px;
      border-radius: var(--radius-pill);
      margin-bottom: 24px;
    }

    /* Change 1: Decorative accent line above header for visual impact */
    .article-header-accent {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }

    .article-header-accent::before,
    .article-header-accent::after {
      content: '';
      height: 1.5px;
      flex: 1;
      max-width: 48px;
      background: linear-gradient(90deg, var(--accent), transparent);
    }

    .article-header-accent::after {
      background: linear-gradient(-90deg, var(--accent), transparent);
    }

    /* Point D2, D3 — H1 cohérent avec title tag */
    .article-header h1 {
      font-family: var(--font-title);
      font-size: clamp(2.25rem, 5.5vw, 3.5rem); /* 36px → 56px */
      font-weight: 400;
      line-height: 1.08;
      letter-spacing: -2.5px; /* V9 — Mod 11: tighter for premium feel (was -2px) */
      color: var(--text);
      margin-bottom: 24px;
    }

    .article-header h1 em {
      font-style: italic;
      color: var(--accent);
    }

    .article-subtitle {
      font-size: clamp(1.0625rem, 1.2vw + 0.6rem, 1.3125rem); /* 17px → 21px */
      line-height: 1.55;
      color: var(--text);
      font-weight: 400;
      max-width: 58ch;
      margin-bottom: 28px;
    }

    /* Point D3 — Date visible = dateModified schema */
    .article-meta {
      display: flex;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
      font-size: 13px;
      color: var(--muted-light);
      padding-bottom: 32px;
      border-bottom: 1px solid var(--border);
    }

    .article-meta-author {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .author-name {
      font-weight: 600;
      color: var(--text);
      font-size: 14px;
    }

    .author-title {
      font-size: 12px;
      color: var(--muted-light);
    }

    .meta-dot { color: var(--muted-light); }

    /* ============================================
       HERO IMAGE — Point D4 (NO lazy loading)
       V5: full-bleed by default (editorial standard)
       ============================================ */
    .hero-image {
      max-width: 100%;
      margin: 0 auto;
      padding: 0;
      position: relative;
      background-color: var(--bg-alt); /* placeholder during load */
    }

    /* V9 — Mod 1: Gradient fade bottom for smooth transition into content */
    .hero-image::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0; right: 0;
      height: 25%;
      background: linear-gradient(to top, var(--bg), transparent);
      pointer-events: none;
      z-index: 1;
    }

    /* Contained variant: add .hero-image--contained for non-bleed */
    .hero-image--contained {
      max-width: var(--max-layout);
      padding: 0 24px;
    }

    .hero-image img {
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
    }

    .hero-image--contained img {
      border-radius: 16px; /* V9 — Mod 14: upgraded from 12px */
      box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08); /* V9 — Mod 14: richer shadow */
    }

    .hero-image figcaption {
      max-width: var(--max-content);
      margin: 14px auto 0;
      padding: 0 24px;
      font-size: 0.8125em;
      color: var(--muted-light);
      font-style: normal;
      text-align: left;
      line-height: 1.5;
      position: relative;
      z-index: 2; /* V9 fix: sit above gradient overlay */
    }

    .hero-image figcaption::before {
      content: '';
      display: inline-block;
      width: 20px;
      height: 2px;
      background: var(--accent);
      vertical-align: middle;
      margin-right: 10px;
    }

    /* Fix 6: Global credit line in figcaptions */
    figcaption .credit {
      display: block;
      font-size: 0.8em;
      margin-top: 3px;
      opacity: 0.7;
    }

    /* ============================================
       TTS AUDIO PLAYER — Conditional (data-conditional="tts-player")
       ============================================ */
    .tts-player {
      max-width: var(--max-content);
      margin: 0 auto;
      padding: 0 24px;
    }

    .tts-player-bar {
      display: flex;
      align-items: center;
      gap: 14px;
      background: var(--accent-alpha-06);
      border: 1.5px solid var(--accent-alpha-15);
      border-left: 3px solid var(--accent);
      border-radius: var(--radius-card);
      padding: 14px 20px;
      transition: border-color 0.25s, box-shadow 0.25s;
    }

    .tts-player-bar:hover {
      background: var(--accent-alpha-09);
      border-color: var(--accent-alpha-25);
      border-left-color: var(--accent);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }

    .tts-play-btn {
      flex-shrink: 0;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--accent);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, transform 0.15s;
    }

    .tts-play-btn:hover {
      background: var(--accent-hover);
      transform: scale(1.06);
    }

    .tts-play-btn:focus-visible {
      outline: 3px solid var(--accent);
      outline-offset: 3px;
    }

    .tts-play-btn svg {
      width: 18px;
      height: 18px;
      fill: var(--white);
    }

    .tts-info {
      flex: 1;
      min-width: 0;
    }

    .tts-label {
      font-family: var(--font-body);
      font-size: 0.9375em;
      font-weight: 600;
      color: var(--text);
      line-height: 1.3;
    }

    .tts-duration {
      font-family: var(--font-body);
      font-size: 0.8125em;
      color: var(--muted-light);
      margin-top: 2px;
    }

    .tts-progress-wrap {
      flex: 1;
      max-width: 200px;
      height: 4px;
      background: var(--border);
      border-radius: 2px;
      overflow: hidden;
    }

    .tts-progress-fill {
      width: 0%;
      height: 100%;
      background: var(--accent);
      border-radius: 2px;
      transition: width 0.3s linear;
    }

    .tts-speed-btn {
      flex-shrink: 0;
      font-family: var(--font-body);
      font-size: 0.75em;
      font-weight: 700;
      color: var(--muted-light);
      background: transparent;
      border: 1.5px solid var(--border);
      border-radius: 6px;
      padding: 4px 8px;
      cursor: pointer;
      min-width: 44px;
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s, border-color 0.2s;
    }

    .tts-speed-btn:hover {
      color: var(--accent);
      border-color: var(--accent);
    }

    /* Mobile: player goes full-width, progress bar below */
    @media (max-width: 768px) {
      .tts-player {
        margin-top: 32px;
      }

      .tts-player-bar {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 10px;
      }

      .tts-progress-wrap {
        max-width: 100%;
        width: 100%;
        order: 10;
        margin-top: 4px;
      }

      .tts-info {
        flex: 1;
      }
    }

    /* ============================================
       TABLE OF CONTENTS
       ============================================ */
    .toc {
      max-width: var(--max-content);
      margin: 0 auto;
      position: relative;
      z-index: 2;
      padding: 0 24px;
    }

    .toc-box {
      background: var(--card);
      border: 2px solid var(--border);
      border-radius: var(--radius-card);
      padding: 32px;
      transition: border-color 0.25s;
      box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
    }

    .toc-box:hover { border-color: var(--border-hover); }

    .toc-title {
      font-family: var(--font-handwritten);
      font-size: 22px;
      color: var(--accent);
      margin-bottom: 16px;
    }

    .toc-list {
      list-style: none;
    }

    .toc-list li {
      margin-bottom: 6px;
    }

    .toc-list li a {
      display: flex;
      align-items: baseline;
      gap: 12px;
      font-size: 0.9375em; /* slightly smaller than body */
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
      padding: 10px 10px;
      transition: all 0.2s;
      border-radius: 8px;
    }

    /* S1: TOC numbering in HTML (not CSS ::before) */
    .toc-num {
      font-size: 12px;
      font-weight: 700;
      color: var(--accent);
      background: var(--accent-light);
      padding: 3px 10px;
      border-radius: 8px;
      flex-shrink: 0;
    }

    .toc-list li a:hover {
      color: var(--accent);
      padding-left: 6px;
    }

    /* ============================================
       ARTICLE CONTENT — Point D5 semantic HTML
       ============================================ */
    .article-content {
      max-width: var(--max-content);
      margin: 0 auto;
      padding: 48px 24px 0;
    }

    /* Headings */
    .article-content h2 {
      font-family: var(--font-title);
      font-size: clamp(1.75rem, 4vw, 2.5rem);
      font-weight: 600;
      line-height: 1.2;
      letter-spacing: -0.3px;
      color: var(--text);
      margin-top: 72px;
      margin-bottom: 20px; /* Fix 2: was 8px — title needs room to breathe */
    }

    /* V9 — Mod 2: Signature accent bar above H2 — system identity */
    .article-content h2::before {
      content: '';
      display: block;
      width: 32px;
      height: 3px;
      background: var(--accent);
      border-radius: 2px;
      margin-bottom: 16px;
    }

    .article-content h2:first-child { margin-top: 0; }

    .article-content h3 {
      font-family: var(--font-body);
      font-size: clamp(1.1875rem, 2.5vw, 1.4375rem); /* 19px → 23px */
      font-weight: 700;
      color: var(--text);
      margin-top: 48px;
      margin-bottom: 16px; /* Fix 2: was 12px */
      letter-spacing: -0.3px;
    }

    /* Paragraphs — Point C6: first paragraph answers the question */
    .article-content p {
      font-size: inherit; /* inherits fluid 17-20px from body */
      line-height: 1.72;
      color: var(--muted);
      margin-bottom: 24px;
      max-width: 65ch; /* adjusted from 68ch for larger font */
    }

    .article-content p strong {
      color: var(--text);
      font-weight: 600;
    }

    /* Point C2 — Hot Links: liens internes contextuels */
    .article-content a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 500;
      border-bottom: 1.5px solid var(--accent-alpha-25);
      transition: all 0.2s;
    }

    .article-content a:hover {
      border-bottom-color: var(--accent);
      color: var(--accent-dark);
    }

    /* ============================================
       HANDWRITTEN ASIDE — Caveat "voice" blocks
       ============================================ */
    .aside-handwritten {
      font-family: var(--font-handwritten);
      font-size: 21px;
      color: var(--accent);
      line-height: 1.5;
      margin: 24px 0 28px;
      padding: 14px 16px 14px 18px;
      border-left: 3px solid var(--accent-alpha-25);
      background: linear-gradient(90deg, var(--accent-alpha-10), var(--accent-alpha-00));
      border-radius: 14px;
    }

    /* ============================================
       KEY-VALUE RECAP BOX — Point C8
       ============================================ */
    .recap-box {
      background: var(--card);
      border: 2px solid var(--border);
      border-radius: var(--radius-card);
      padding: 28px 32px;
      margin: 32px 0;
      transition: border-color 0.25s;
    }

    .recap-box:hover { border-color: var(--accent); }

    .recap-box-title {
      font-family: var(--font-handwritten);
      font-size: 20px;
      color: var(--accent);
      margin-bottom: 16px;
    }

    .recap-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px 24px;
    }

    .recap-item {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .recap-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--muted-light);
    }

    .recap-value {
      font-size: 1em;
      font-weight: 700;
      color: var(--text);
    }

    /* ============================================
       COMPARISON BLOCK — Inspired by wafwaf problem section
       ============================================ */
    .comparison {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      align-items: stretch;
      margin: 32px 0;
    }

    .comparison-bad {
      background: var(--card);
      border: 2px solid var(--border);
      border-top: 3px solid var(--muted-light);
      border-radius: var(--radius-card);
      padding: 28px;
    }

    .comparison-good {
      background: var(--card);
      border: 2px solid var(--border);
      border-top: 3px solid var(--accent);
      border-radius: var(--radius-card);
      padding: 28px;
    }

    .comparison-vs {
      display: none;
    }

    .comparison-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      padding: 5px 12px;
      border-radius: var(--radius-pill);
      margin-bottom: 16px;
    }

    .comparison-bad .comparison-tag {
      background: var(--bg-alt);
      color: var(--muted);
    }

    .comparison-good .comparison-tag {
      background: var(--accent-light);
      color: var(--accent);
    }

    .comparison p {
      font-size: 0.9375em; /* scales with body */
      line-height: 1.7;
      color: var(--muted);
      margin-bottom: 0;
    }

    .comparison p strong { color: var(--text); }

    .comparison .handwritten-note {
      font-family: var(--font-handwritten);
      font-size: 18px;
      margin-top: 12px;
    }

    .comparison-bad .handwritten-note { color: var(--muted-light); }
    .comparison-good .handwritten-note { color: var(--accent); }

    /* ============================================
       IN-CONTENT IMAGES — Point D4
       Fix 4: radius réduit, ombre subtile
       Fix 5: breakout + float variants
       Fix 6: figcaption editorial
       V5: breakout par défaut (1000px > 720px texte)
       ============================================ */
    .content-image {
      max-width: var(--max-image);
      margin: 48px auto;
      /* Center the breakout image relative to the text column */
      margin-left: calc(50% - min(var(--max-image), 100vw - 48px) / 2);
      margin-right: calc(50% - min(var(--max-image), 100vw - 48px) / 2);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    }

    .content-image img {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
    }

    .content-image figcaption {
      background: var(--card);
      padding: 14px 24px;
      font-size: 0.8125em;
      color: var(--muted-light);
      font-style: normal;
      text-align: left;
      border-top: 1px solid var(--border);
      line-height: 1.5;
    }

    /* Variant: inline — same width as text column (for small illustrations) */
    .content-image--inline {
      max-width: none;
      margin-left: 0;
      margin-right: 0;
    }

    /* Fix 5: Extra-wide breakout — full layout width */
    .content-image--wide {
      max-width: var(--max-layout);
      margin-left: calc(50% - min(var(--max-layout), 100vw - 48px) / 2);
      margin-right: calc(50% - min(var(--max-layout), 100vw - 48px) / 2);
    }

    /* Fix 5: Float image — alongside text */
    .content-image--float-right {
      float: right;
      width: 45%;
      max-width: none;
      margin: 8px 0 24px 32px;
      margin-left: 32px;
      margin-right: 0;
    }

    .content-image--float-left {
      float: left;
      width: 45%;
      max-width: none;
      margin: 8px 32px 24px 0;
      margin-left: 0;
      margin-right: 32px;
    }

    .content-image--float-right img,
    .content-image--float-left img {
      aspect-ratio: auto;
    }

    /* Fix 5: Full-bleed image — edge to edge */
    .content-image--bleed {
      max-width: 100vw;
      margin-left: calc(50% - 50vw);
      margin-right: calc(50% - 50vw);
      border-radius: 0;
      box-shadow: none;
    }

    /* ============================================
       TABLE — For comparatifs (Point C11 rétention)
       ============================================ */
    /* ============================================
       ARTICLE TABLE — Comparatif v11
       ============================================ */
    .article-table-wrap {
      margin: 32px 0;
      overflow-x: auto;
      border-radius: var(--radius-card);
      border: 2px solid var(--border);
      position: relative;
      background: var(--card);
      box-shadow: var(--shadow-card);
    }
    .article-table-wrap::after {
      content: '';
      position: sticky;
      right: 0;
      top: 0;
      bottom: 0;
      width: 48px;
      background: linear-gradient(to left, var(--card), transparent);
      pointer-events: none;
      display: none;
    }
    @media (max-width: 768px) {
      .article-table-wrap::after {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
      }
    }
    .article-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 15px;
      background: var(--card);
    }
    .article-table thead {
      background: var(--bg-alt);
    }
    .article-table th {
      padding: 16px 24px;
      font-weight: 700;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--accent);
      text-align: left;
      border-bottom: 2px solid var(--border);
    }
    .article-table td {
      padding: 16px 24px;
      border-bottom: 1px solid var(--border);
      color: var(--muted);
      line-height: 1.5;
    }
    .article-table td strong {
      color: var(--text);
    }
    .article-table tr:last-child td { border-bottom: none; }
    @media (max-width: 768px) {
      .article-table th:first-child,
      .article-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: var(--card);
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
      }
      .article-table thead th:first-child {
        background: var(--bg-alt);
      }
    }
    .article-table tbody tr {
      transition: background 0.2s;
    }
    .article-table tbody tr:hover {
      background: var(--accent-light);
    }
    .price-tag {
      font-weight: 700;
      color: var(--accent);
    }

    /* ============================================
       FAQ — Accordion (visible HTML, no schema)
       ============================================ */
    .faq-section {
      max-width: var(--max-content);
      margin: 64px auto 0;
      padding: 0 24px;
    }

    /* V9 — Mod 3: Engagement zone — visual break between content and interaction zones */
    .engagement-zone {
      background: var(--bg-alt);
      padding: 64px 0;
      margin-top: 64px;
    }

    .engagement-zone .faq-section {
      margin-top: 0;
    }

    .engagement-zone .children-section {
      margin-top: 48px;
    }

    .faq-header {
      margin-bottom: 32px;
    }

    .faq-header h2 {
      font-family: var(--font-title);
      font-size: clamp(1.75rem, 4vw, 2.5rem);
      font-weight: 600;
      color: var(--text);
    }

    .faq-header h2::before {
      content: '';
      display: block;
      width: 32px;
      height: 3px;
      background: var(--accent);
      border-radius: 2px;
      margin-bottom: 16px;
    }

    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .faq-item {
      background: var(--card);
      border: 2px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      transition: border-color 0.25s;
    }

    .faq-item.active { border-color: var(--accent); }

    .faq-question {
      width: 100%;
      background: none;
      border: none;
      padding: 20px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      gap: 16px;
      font-family: var(--font-body);
    }

    .faq-question span {
      font-size: 17px;
      font-weight: 600;
      color: var(--text);
      text-align: left;
      line-height: 1.4;
    }

    .faq-toggle {
      width: 44px;
      height: 44px;
      min-width: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: 700;
      background: var(--bg);
      color: var(--accent);
      transition: all 0.3s;
    }

    .faq-item.active .faq-toggle {
      background: var(--accent);
      color: var(--white);
      transform: rotate(45deg);
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease;
    }
    .faq-item.active .faq-answer {
      max-height: 1000px !important;
      overflow: visible;
    }

    .faq-answer-inner {
      padding: 0 24px 28px; /* V9 fix: increased from 22px to prevent handwritten text clipping */
      font-size: 0.9375em; /* slightly smaller than body, scales proportionally */
      line-height: 1.7;
      color: var(--muted);
    }

    .faq-answer-inner .handwritten {
      font-family: var(--font-handwritten);
      font-size: 17px;
      color: var(--accent);
      margin-top: 10px;
      display: block;
    }

    /* ============================================
       CHILD PAGES GRID — For page mère
       ============================================ */
    .children-section {
      max-width: var(--max-content);
      margin: 64px auto 0;
      padding: 0 24px;
    }

    .children-header {
      margin: 0 auto 32px;
    }

    .children-header h2 {
      font-family: var(--font-title);
      font-size: clamp(1.75rem, 4vw, 2.5rem);
      font-weight: 600;
      color: var(--text);
    }

    .children-header h2::before {
      content: '';
      display: block;
      width: 32px;
      height: 3px;
      background: var(--accent);
      border-radius: 2px;
      margin-bottom: 16px;
    }

    .children-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .child-card {
      background: var(--card);
      border: 2px solid var(--border);
      border-top: 3px solid var(--accent); /* V9 — Mod 13: signature accent top */
      border-radius: var(--radius-card);
      padding: 28px;
      text-decoration: none;
      transition: all 0.25s;
      display: flex;
      flex-direction: column;
      gap: 12px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    }

    .child-card:hover {
      border-color: var(--accent);
      border-top-color: var(--accent-dark);
      transform: translateY(-4px);
      box-shadow: 0 18px 50px var(--accent-alpha-12);
    }

    .child-card-title {
      font-family: var(--font-body);
      font-size: 1.0625em; /* ~18px at base 17 */
      font-weight: 700;
      color: var(--text);
      line-height: 1.3;
    }

    .child-card-desc {
      font-size: 0.875em;
      color: var(--muted);
      line-height: 1.6;
    }

    .child-card-arrow {
      font-size: 13px;
      font-weight: 600;
      color: var(--accent);
      margin-top: auto;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: gap 0.2s;
    }

    .child-card:hover .child-card-arrow { gap: 10px; }

    /* ============================================
       SIBLING PAGES — For page enfant
       ============================================ */
    .siblings-section {
      max-width: var(--max-content);
      margin: 0 auto;
      padding-top: 56px;
      padding: 0 24px;
    }

    .siblings-box {
      background: var(--card);
      border: 2px solid var(--border);
      border-radius: var(--radius-card);
      padding: 28px 32px;
    }

    .siblings-title {
      font-family: var(--font-handwritten);
      font-size: 20px;
      color: var(--accent);
      margin-bottom: 16px;
    }

    .siblings-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .siblings-list li a {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 0.9375em;
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
      padding: 10px 14px;
      border-radius: 12px;
      transition: all 0.2s;
      border-bottom: none;
    }

    .siblings-list li a::before {
      content: '→';
      color: var(--accent);
      font-weight: 600;
      opacity: 0;
      transform: translateX(-8px);
      transition: all 0.2s;
    }

    .siblings-list li a:hover {
      background: var(--accent-light);
      color: var(--accent);
      padding-left: 20px;
    }

    .siblings-list li a:hover::before {
      opacity: 1;
      transform: translateX(0);
    }

    .siblings-list li.current a {
      background: var(--accent-light);
      color: var(--accent);
      font-weight: 700;
      pointer-events: none;
    }

    .siblings-list li.current a::before {
      content: '●';
      opacity: 1;
      transform: translateX(0);
      font-size: 8px;
    }

    /* ============================================
       AUTHOR BOX — Points B1, E4
       ============================================ */
    .author-box {
      background: var(--bg-alt);
      box-shadow: 0 0 0 9999px var(--bg-alt);
      clip-path: inset(0 -9999px);
      max-width: var(--max-content);
      margin: 0 auto;
      padding: 56px 24px 24px;


    }

    .author-box-inner {
      background: var(--card);
      border: 2px solid var(--border);
      border-radius: var(--radius-card);
      padding: 32px;
      display: flex;
      gap: 20px;
      align-items: flex-start;
      transition: border-color 0.25s;
    }

    .author-box-inner:hover { border-color: var(--border-hover); }

    .author-box-info h4,
    .author-box-info .author-box-name {
      font-size: 17px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 2px;
    }

    .author-box-info .job-title {
      font-size: 13px;
      color: var(--accent);
      font-weight: 600;
      margin-bottom: 10px;
    }

    .author-box-info .bio {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.7;
    }

    .author-box-info .author-link {
      font-size: 13px;
      font-weight: 600;
      color: var(--accent);
      margin-top: 10px;
      display: inline-block;
      border-bottom: none;
    }

    /* ============================================
       CTA FINAL
       ============================================ */
    .final-cta {
      max-width: var(--max-content);
      margin: 64px auto 0;
      padding: 0 24px 80px;
    }

    .final-cta-box {
      background: var(--accent-light);
      border: 2px solid var(--border);
      border-radius: 24px;
      padding: 48px;
      text-align: center;
      position: relative;
      overflow: hidden;
      box-shadow: var(--shadow-card);
    }

    .final-cta-box::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--accent), var(--accent-dark), var(--accent));
    }

    .final-cta-box::after {
      content: "";
      position: absolute;
      inset: -2px;
      border-radius: 24px;
      pointer-events: none;
      border: 1px solid var(--accent-alpha-25);
    }

    .final-cta-box .emoji { font-size: 48px; margin-bottom: 16px; display: block; }

    .final-cta-box h2 {
      font-family: var(--font-title);
      font-size: clamp(1.5rem, 3.5vw, 2.125rem);
      font-weight: 600;
      color: var(--text);
      line-height: 1.2;
      margin-bottom: 12px;
    }

    .final-cta-box h2 em {
      font-style: italic;
      color: var(--accent);
    }

    .final-cta-box p {
      font-size: 1em;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .final-cta-box .handwritten {
      font-family: var(--font-handwritten);
      font-size: 20px;
      color: var(--accent);
      margin-bottom: 24px;
    }

    /* V9: CTA icon on dark background */
    .final-cta-box .icon-inline--cta {
      stroke: var(--accent);
    }

    .cta-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--accent);
      color: #fff !important;
      font-weight: 700;
      font-size: 16px;
      padding: 16px 36px; /* I8: increased from 14px → 16px for 48px+ height */
      border-radius: var(--radius-pill);
      text-decoration: none;
      transition: all 0.2s;
    }

    .cta-pill:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px var(--shadow-accent-hover);
      color: var(--white);
    }

    /* ============================================
       SCROLL ANIMATIONS
       ============================================ */

    /* Change 2: Inline SVG icon system — consistent Lucide-style */
    .icon-inline {
      display: inline-block;
      width: 1em;
      height: 1em;
      vertical-align: -0.125em;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex-shrink: 0;
    }

    .icon-inline--badge {
      width: 14px;
      height: 14px;
    }

    .icon-inline--toc {
      width: 18px;
      height: 18px;
      vertical-align: -0.2em;
    }

    .icon-inline--tts {
      width: 20px;
      height: 20px;
      vertical-align: -0.2em;
    }

    .icon-inline--comparison {
      width: 16px;
      height: 16px;
      vertical-align: -0.15em;
      stroke-width: 2.5;
    }

    .icon-inline--cta {
      width: 48px;
      height: 48px;
      stroke: var(--accent);
      margin-bottom: 16px;
    }

    .icon-inline--siblings {
      width: 18px;
      height: 18px;
      vertical-align: -0.2em;
    }


    /* Change 3: Enhanced depth — V9 Mod 9: Using elevation tokens */
    .toc-box {
      box-shadow: var(--shadow-card);
    }

    .faq-item {
      box-shadow: var(--shadow-rest);
    }

    .faq-item.active {
      box-shadow: var(--shadow-hover);
    }

    .child-card {
      box-shadow: var(--shadow-card);
    }

    .child-card:hover {
      box-shadow: var(--shadow-hover);
    }

    .recap-box {
      box-shadow: var(--shadow-rest);
    }

    .author-box-inner {
      box-shadow: var(--shadow-rest);
    }

    .tts-player-bar {
      box-shadow: var(--shadow-rest);
    }

    /* Change 5: Micro-interactions — TTS pulse, TOC active, CTA enhanced */

    /* TTS play button — subtle pulse at rest */
    @keyframes tts-pulse {
      0%, 100% { box-shadow: 0 0 0 0 var(--accent-alpha-35); }
      50% { box-shadow: 0 0 0 8px var(--accent-alpha-00); }
    }

    .tts-play-btn {
      animation: tts-pulse 2.5s ease-in-out infinite;
    }

    .tts-play-btn.is-playing {
      animation: none;
      background: var(--accent-dark);
    }

    @media (prefers-reduced-motion: reduce) {
      .tts-play-btn { animation: none; }
    }

    /* TOC active section highlight on scroll */
    .toc-list li a.toc-active {
      background: var(--accent-light);
      color: var(--accent);
      font-weight: 600;
    }

    .toc-list li a.toc-active .toc-num {
      background: var(--accent);
      color: var(--white);
    }

    /* CTA pill — enhanced hover + click feedback */
    .cta-pill:active {
      transform: translateY(0px) scale(0.97);
      box-shadow: 0 2px 8px var(--shadow-accent);
    }


    /* Child cards — press feedback */
    .child-card:active {
      transform: translateY(-1px) scale(0.985);
      transition-duration: 0.1s;
    }

    /* FAQ toggle — smoother rotation */
    .faq-toggle {
      transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* Change 6: Feedback — FAQ answer with opacity transition */
    .faq-answer {
      transition: max-height 0.35s ease, opacity 0.25s ease;
      opacity: 0;
    }

    .faq-item.active .faq-answer {
      opacity: 1;
      transition: max-height 0.35s ease, opacity 0.3s ease 0.05s;
    }

    /* TTS play/pause icon transition */
    .tts-play-btn svg {
      transition: transform 0.2s ease;
    }

    .tts-play-btn:active svg {
      transform: scale(0.85);
    }

    /* FAQ question hover feedback */
    .faq-question:hover .faq-toggle {
      background: var(--accent-light);
      color: var(--accent);
    }

    /* Back-to-top press feedback */
    .back-to-top:active {
      transform: translateY(0px) scale(0.92);
    }

    /* ============================================
       STICKY MINI-TOC — Wide screens only (>=1380px)
       ============================================ */
    .toc-sticky {
      display: none;
    }
    @media (min-width: 1380px) {
      .toc-sticky {
        display: flex;
        flex-direction: column;
        gap: 6px;
        position: fixed;
        left: calc((100vw - var(--max-content)) / 2 - 180px);
        top: 50%;
        transform: translateY(-50%);
        z-index: 40;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
      }
      .toc-sticky.visible {
        opacity: 1;
        pointer-events: auto;
      }
      .toc-sticky a {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 8px;
        transition: all 0.2s;
        border-bottom: none;
      }
      .toc-sticky-num {
        font-size: 11px;
        font-weight: 700;
        color: var(--muted-light);
        background: var(--bg-alt);
        width: 28px;
        height: 28px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.25s;
      }
      .toc-sticky-label {
        font-size: 11px;
        font-weight: 500;
        color: var(--muted-light);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 110px;
        opacity: 0;
        transform: translateX(-4px);
        transition: all 0.2s;
      }
      .toc-sticky a:hover .toc-sticky-label {
        opacity: 1;
        transform: translateX(0);
      }
      .toc-sticky a:hover .toc-sticky-num {
        background: var(--accent-light);
        color: var(--accent);
      }
      .toc-sticky a.toc-sticky-active .toc-sticky-num {
        background: var(--accent);
        color: #fff;
      }
      .toc-sticky a.toc-sticky-active .toc-sticky-label {
        color: var(--accent);
        font-weight: 600;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .toc-sticky { transition: none; }
      .toc-sticky-label { transition: none; }
    }

    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1; transform: none; transition: none; }
    }

    /* V9 — Mod 8: Stagger reveals on sequential items */
    .toc-list li,
    .faq-item,
    .child-card {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .toc-list li.stagger-visible,
    .faq-item.stagger-visible,
    .child-card.stagger-visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (prefers-reduced-motion: reduce) {
      .toc-list li,
      .faq-item,
      .child-card {
        opacity: 1;
        transform: none;
        transition: none;
      }
    }

    /* ============================================
       RESPONSIVE
       ============================================ */
    @media (max-width: 768px) {

      .article-header { padding-top: 32px; }

      .article-content h2 {
        margin-top: 56px;
        margin-bottom: 16px;
      }

      .article-content h3 {
        margin-top: 40px;
        margin-bottom: 12px;
      }

      .recap-grid { grid-template-columns: 1fr; }

      .comparison {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .comparison-vs {
        width: 36px;
        height: 36px;
        margin: 0 auto;
      }

      .children-grid {
        grid-template-columns: 1fr;
      }

      .author-box-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .article-table-wrap { margin-left: -24px; margin-right: -24px; border-radius: 0; }

      .final-cta-box { padding: 32px 24px; }

      /* V9 — Mod 5: Footer mobile stacking */

      /* V5: breakout images collapse to full-width on tablet */
      .content-image {
        max-width: none;
        margin-left: -24px;
        margin-right: -24px;
        border-radius: 0;
        box-shadow: none;
      }

      .content-image--wide {
        max-width: none;
        margin-left: -24px;
        margin-right: -24px;
      }

      /* V5: video full-bleed on mobile */
      .video-section {
        max-width: none;
        margin-left: -24px;
        margin-right: -24px;
      }

      .video-section .video-wrapper {
        border-radius: 0;
        box-shadow: none;
      }

      /* Float images stack on tablet */
      .content-image--float-right,
      .content-image--float-left {
        float: none;
        width: auto;
        max-width: none;
        margin: 40px -24px;
      }
    }

    @media (max-width: 480px) {
      .article-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
      .meta-dot { display: none; }
    }

/* ============================================
   COCON-PAGE WRAPPER + FULL TAILWIND ANTIDOTE
   Neutralise Tailwind preflight pour tout le
   contenu a l interieur de .cocon-page.
   ============================================ */
.cocon-page {
  font-family: var(--font-body);
  color: var(--muted);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  background-blend-mode: overlay;
  font-size: clamp(1.125rem, 0.5vw + 0.95rem, 1.3125rem);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Headings: Tailwind strips font-size and font-weight --- */
.cocon-page h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-top: 0; margin-bottom: 0.5em; color: var(--text); font-family: var(--font-title); line-height: 1.15; }
.cocon-page h2 { font-size: clamp(1.5rem, 4vw, 2.125rem); font-weight: 700; margin-top: 2em; margin-bottom: 0.75em; color: var(--text); font-family: var(--font-title); line-height: 1.2; }
.cocon-page h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; margin-top: 1.5em; margin-bottom: 0.5em; color: var(--text); font-family: var(--font-title); line-height: 1.3; }
.cocon-page h4 { font-size: 1.125rem; font-weight: 600; margin-top: 1.25em; margin-bottom: 0.5em; color: var(--text); }
.cocon-page h5, .cocon-page h6 { font-size: 1rem; font-weight: 600; margin-top: 1em; margin-bottom: 0.5em; color: var(--text); }

/* --- Paragraphs --- */
.cocon-page p { margin-top: 0; margin-bottom: 1em; }

/* --- Links: Tailwind strips color and text-decoration --- */
.cocon-page a { color: var(--accent); text-decoration: none; }
.cocon-page a:hover { color: var(--accent-dark); }

/* --- Lists: Tailwind strips list-style, margin, padding --- */
.cocon-page ol { list-style: decimal; margin: 1em 0; padding-left: 1.5em; }
.cocon-page ul { list-style: disc; margin: 1em 0; padding-left: 1.5em; }
.cocon-page li { margin-bottom: 0.25em; }

/* TOC list override — no bullets */
.cocon-page .toc-list { list-style: none; padding-left: 0; margin: 0; }
.cocon-page .toc-list li { margin-bottom: 6px; }
.cocon-page .toc-list a { color: var(--muted); font-weight: 500; display: flex; align-items: baseline; gap: 8px; padding: 6px 0; transition: color 0.2s; }
.cocon-page .toc-list a:hover { color: var(--accent); }

/* --- Images --- */
.cocon-page img { max-width: 100%; height: auto; display: block; }

/* --- Buttons: Tailwind makes them transparent --- */
.cocon-page button { font-family: inherit; font-size: inherit; line-height: inherit; cursor: pointer; }

/* --- Blockquotes --- */
.cocon-page blockquote { margin: 1.5em 0; padding: 1em 1.5em; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 8px 8px 0; }

/* --- Tables --- */
.cocon-page table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
.cocon-page th, .cocon-page td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.cocon-page th { font-weight: 700; color: var(--text); background: var(--bg-alt); }

/* --- HR --- */
.cocon-page hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* --- Figure --- */
.cocon-page figure { margin: 1.5em 0; }
.cocon-page figure.hero-image { margin: 0; }

/* --- Strong / Em --- */
.cocon-page strong { font-weight: 700; }
.cocon-page em { font-style: italic; }

/* --- Border reset: Tailwind * { border-width: 0 } --- */
.cocon-page .toc-box,
.cocon-page .faq-item,
.cocon-page .child-card,
.cocon-page .recap-box,
.cocon-page .siblings-box {
  border-width: 2px;
  border-style: solid;
  border-color: var(--border);
}

.cocon-page .faq-item.active { border-color: var(--accent); }

.cocon-page .child-card {
  border-top-width: 3px;
  border-top-style: solid;
  border-top-color: var(--accent);
}

.cocon-page .faq-toggle {
  border-width: 2px;
  border-style: solid;
  border-color: var(--border);
  border-radius: 50%;
}

/* --- FAQ question button visible --- */
.cocon-page .faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.cocon-page .faq-question span {
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

/* --- Article content links --- */
.cocon-page .article-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-alpha-30);
  transition: border-color 0.2s;
}
.cocon-page .article-content a:hover {
  border-bottom-color: var(--accent);
}

/* --- Siblings list --- */
.cocon-page .siblings-list { list-style: none; padding-left: 0; margin: 0; }
.cocon-page .siblings-list li a { color: var(--accent); }

    /* Avatar initiales (fallback sans photo) */
    .author-avatar-initials {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--accent-light);
      color: var(--accent);
      font-weight: 700;
      font-size: 13px;
      line-height: 1;
      flex-shrink: 0;
    }

    .author-avatar-initials--lg {
      width: 56px;
      height: 56px;
      font-size: 18px;
      background: var(--accent);
      color: #fff;
    }
    /* Reading time */
    .reading-time {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 14px;
      color: var(--text-light);
    }
    .reading-time .icon-inline {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
    }

/* ============================================================
   COCON NAVBAR + FOOTER v2 — Premium Design
   Variables utilisées : --accent, --accent-dark, --accent-light,
   --accent-alpha-*, --bg, --bg-alt, --card, --text, --muted,
   --muted-light, --border, --font-body, --font-title,
   --font-handwritten, --nav-height, --radius-pill
   ============================================================ */

/* ── Navbar ── */

.cocon-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height, 64px);
  background: color-mix(in srgb, var(--bg, #F2EFE9) 92%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--accent-alpha-08, rgba(0, 0, 0, 0.06));
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease;
}

.cocon-navbar--scrolled {
  box-shadow: 0 4px 24px var(--accent-alpha-10, rgba(0, 0, 0, 0.06)),
              0 1px 3px var(--accent-alpha-06, rgba(0, 0, 0, 0.03));
  border-bottom-color: var(--accent-alpha-15, rgba(0, 0, 0, 0.08));
}

.cocon-navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */

.cocon-navbar__logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cocon-navbar__logo-text {
  font-family: var(--font-title, 'Poppins', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent, #A68966);
  letter-spacing: -0.03em;
  transition: opacity 0.2s ease;
}

.cocon-navbar__logo:hover .cocon-navbar__logo-text {
  opacity: 0.8;
}

.cocon-navbar__logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.cocon-navbar__logo:hover .cocon-navbar__logo-img {
  opacity: 0.85;
}

/* ── Desktop links ── */

.cocon-navbar__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.cocon-navbar__link {
  position: relative;
  text-decoration: none;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text, #1B3022);
  opacity: 0.72;
  transition: opacity 0.25s ease, color 0.25s ease;
  padding-bottom: 2px;
}

/* Animated underline on hover */
.cocon-navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--accent, #A68966);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cocon-navbar__link:hover {
  opacity: 1;
  color: var(--accent, #A68966);
}

.cocon-navbar__link:hover::after {
  width: 100%;
  left: 0;
}

/* ── Actions (CTA + contact) ── */

.cocon-navbar__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.cocon-navbar__contact {
  text-decoration: none;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted, #2D2D2D);
  opacity: 0.65;
  transition: opacity 0.25s ease, color 0.25s ease;
  position: relative;
}

.cocon-navbar__contact::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent, #A68966);
  transition: width 0.3s ease;
}

.cocon-navbar__contact:hover {
  opacity: 1;
  color: var(--accent, #A68966);
}

.cocon-navbar__contact:hover::after {
  width: 100%;
}

.cocon-navbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--accent, #A68966);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-pill, 9999px);
  transition: background 0.25s ease,
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
  box-shadow: 0 2px 8px var(--accent-alpha-25, rgba(166, 137, 102, 0.25));
}

.cocon-navbar__cta:hover {
  background: var(--accent-dark, #8F7455);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-alpha-35, rgba(166, 137, 102, 0.35));
}

.cocon-navbar__cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px var(--accent-alpha-15, rgba(166, 137, 102, 0.15));
}

/* ── Hamburger — hidden on desktop ── */

.cocon-navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 1002;
}

.cocon-navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text, #1B3022);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
}

.cocon-navbar__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.cocon-navbar__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.cocon-navbar__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile menu — hidden on desktop ── */

.cocon-mobile-menu {
  display: none;
}

.cocon-mobile-menu__overlay {
  display: none;
}

/* ── Navbar responsive ── */

@media (max-width: 768px) {
  .cocon-navbar__inner {
    padding: 0 1.25rem;
  }

  .cocon-navbar__links {
    display: none;
  }

  .cocon-navbar__actions {
    display: none;
  }

  .cocon-navbar__hamburger {
    display: flex;
  }

  .cocon-mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg, #F2EFE9);
    z-index: 1001;
    padding: calc(var(--nav-height, 64px) + 2rem) 1.75rem 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
  }

  .cocon-mobile-menu--open {
    transform: translateX(0);
  }

  .cocon-mobile-menu__link {
    display: block;
    text-decoration: none;
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text, #1B3022);
    padding: 1rem 0;
    border-bottom: 1px solid var(--accent-alpha-08, rgba(0, 0, 0, 0.06));
    transition: color 0.25s ease, padding-left 0.25s ease;
  }

  .cocon-mobile-menu__link:hover {
    color: var(--accent, #A68966);
    padding-left: 0.5rem;
  }

  .cocon-mobile-menu__actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .cocon-mobile-menu__contact {
    display: block;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text, #1B3022);
    padding: 0.85rem;
    border: 1.5px solid var(--border, #D6D2CC);
    border-radius: 12px;
    transition: background 0.25s ease, border-color 0.25s ease;
  }

  .cocon-mobile-menu__contact:hover {
    background: var(--accent-alpha-06, rgba(0, 0, 0, 0.03));
    border-color: var(--accent-alpha-30, rgba(0, 0, 0, 0.12));
  }

  .cocon-mobile-menu__cta {
    display: block;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent, #A68966);
    padding: 0.95rem;
    border-radius: var(--radius-pill, 9999px);
    transition: background 0.25s ease,
                box-shadow 0.3s ease;
    box-shadow: 0 2px 8px var(--accent-alpha-25, rgba(166, 137, 102, 0.25));
  }

  .cocon-mobile-menu__cta:hover {
    background: var(--accent-dark, #8F7455);
    box-shadow: 0 4px 16px var(--accent-alpha-35, rgba(166, 137, 102, 0.35));
  }

  .cocon-mobile-menu__overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: cocon-overlay-in 0.35s ease;
  }

  @keyframes cocon-overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE MOBILE — Patch v2.0
   ══════════════════════════════════════════════════════════
   
   Fixes :
   1. Grain SVG désactivé sur mobile (pixelisé sur Retina)
   2. Contraste texte remonté (muted-light trop faible + grain)
   3. Back-to-top ne chevauche plus les H2
   4. Padding/sizing mobile pour tous les composants
   
   Conforme cahier des charges SEO v1.0 :
   - Phase 4.4 : aucune image en background-image CSS pour le contenu
   - Phase 4.5 : aucun texte contenu en ::before/::after
   - Phase 4.9 : CLS préservé, LCP amélioré (moins de paint)
   ══════════════════════════════════════════════════════════ */


/* ── MOBILE ≤768px ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* ══ FIX 1 : Désactiver le grain SVG sur mobile ══
     Le fractalNoise 256×256 est pixelisé sur écrans Retina.
     Le fond uni reste propre et la lisibilité est restaurée. */
  body {
    background-image: none !important;
    background-blend-mode: normal !important;
  }
  .cocon-page {
    background-image: none !important;
    background-blend-mode: normal !important;
  }

  /* ══ FIX 2 : Contraste texte remonté ══
     Sur fond uni sans grain, on peut utiliser des couleurs
     légèrement plus contrastées pour les textes clairs. */
  .breadcrumb a,
  .breadcrumb-sep {
    opacity: 1;
  }
  .article-meta,
  .article-meta span {
    color: var(--muted);           /* force --muted au lieu de --muted-light */
  }
  .aside-handwritten {
    color: var(--muted);
  }
  .toc-list li a {
    color: var(--muted);
  }

  /* ══ FIX 3 : Back-to-top ne chevauche plus les H2 ══ */
  .back-to-top {
    bottom: 20px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 14px;
    opacity: 0.85;
  }
  .back-to-top.visible {
    opacity: 0.85;
  }
  /* Empêcher le chevauchement texte/bouton */
  .article-content h2,
  .article-content h3 {
    padding-right: 48px;
  }

  /* ── Article Header — H1, subtitle, pseudo-element ── */
  .article-header::before {
    width: 100vw;
  }
  .article-header {
    padding: 24px 16px 0;
    clip-path: none;
    box-shadow: none;
  }
  .article-header h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    letter-spacing: -0.8px;
    margin-bottom: 16px;
  }
  .article-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .article-badge {
    font-size: 12px;
    padding: 5px 12px;
    margin-bottom: 16px;
  }

  /* Tailwind antidote headings — mobile override */
  .cocon-page h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    letter-spacing: -0.5px;
  }
  .cocon-page h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  .cocon-page h3 {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
  }
  .article-content h2 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }
  .article-content h3 {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  }

  /* ── Breadcrumb — scroll horizontal ── */
  .breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-top: calc(var(--nav-height) + 20px);
    padding-left: 16px;
    padding-right: 16px;
    gap: 0;
    /* Désactiver le full-width trick sur mobile */
    clip-path: none;
    box-shadow: none;
  }
  .breadcrumb::-webkit-scrollbar {
    display: none;
  }
  .breadcrumb a,
  .breadcrumb-current {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .breadcrumb-sep {
    flex-shrink: 0;
  }

  /* ── TOC box ── */
  .toc {
    padding: 0 16px;
    margin-top: 32px;
  }
  .toc-box {
    padding: 20px;
  }
  .toc-title {
    font-size: 19px;
    margin-bottom: 12px;
  }
  .toc-list li a {
    padding: 8px 6px;
    font-size: 0.875em;
    gap: 8px;
  }
  .toc-num {
    font-size: 11px;
    padding: 2px 8px;
  }

  /* ── Article content ── */
  .article-content {
    padding: 32px 16px 0;
  }
  .article-content p {
    max-width: 100%;
  }

  /* ── Recap box ── */
  .recap-box {
    padding: 20px 16px;
  }
  .recap-box-title {
    font-size: 18px;
  }

  /* ── Comparison ── */
  .comparison-bad,
  .comparison-good {
    padding: 20px 16px;
  }
  .comparison-vs {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ── Children section ── */
  .children-section {
    padding: 0 16px;
    margin-top: 40px;
  }
  .child-card {
    padding: 20px 16px;
  }
  .child-card-title {
    font-size: 1em;
  }
  .child-card:hover {
    transform: none;
  }

  /* ── Siblings ── */
  .siblings-section {
    padding: 0 16px;
    margin-top: 40px;
  }
  .siblings-box {
    padding: 20px 16px;
  }
  .siblings-title {
    font-size: 18px;
  }
  .siblings-list li a {
    padding: 8px 10px;
    font-size: 0.875em;
  }

  /* ── Author box ── */
  .author-box {
      background: var(--bg-alt);
      box-shadow: 0 0 0 9999px var(--bg-alt);
      clip-path: inset(0 -9999px);
    padding: 0 16px;
    margin-top: 40px;
  }
  .author-box-inner {
    padding: 20px 16px;
  }

  /* ── FAQ section ── */
  .faq-section {
    padding: 0 16px;
    margin-top: 40px;
  }
  .faq-question {
    padding: 16px;
    gap: 12px;
  }
  .faq-question span {
    font-size: 15px;
  }
  .faq-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 16px;
  }
  .faq-answer-inner {
    padding: 0 16px 20px;
    font-size: 0.875em;
  }

  /* ── Engagement zone ── */
  .engagement-zone {
    padding: 40px 0;
    margin-top: 40px;
  }
  .engagement-zone .children-section {
    margin-top: 32px;
  }

  /* ── Final CTA ── */
  .final-cta {
    padding: 0 16px 48px;
    margin-top: 40px;
  }
  .final-cta-box h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  .cta-pill {
    font-size: 15px;
    padding: 14px 28px;
    width: 100%;
    justify-content: center;
  }

  /* ── Hero image ── */
  .hero-image {
    margin-top: 0;
  }
  .hero-image figcaption {
    padding: 0 16px;
    font-size: 0.75em;
  }

  /* ── Video section ── */
  .video-section figcaption {
    padding: 0 16px;
  }

  /* ── Content images ── */
  .content-image {
    margin-left: -16px;
    margin-right: -16px;
  }
  .content-image--wide {
    margin-left: -16px;
    margin-right: -16px;
  }
  .content-image--float-right,
  .content-image--float-left {
    margin: 32px -16px;
  }

  /* ── Tables ── */
  .article-table-wrap {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .article-table th,
  .article-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
  .article-table th {
    font-size: 11px;
  }

  /* ── Aside handwritten ── */
  .aside-handwritten {
    font-size: 18px;
    padding: 12px 14px 12px 16px;
    margin: 20px 0 24px;
  }

  /* ── Recap grid 1 col ── */
  .recap-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* ── Reading progress bar ── */
  .reading-progress {
    height: 2px;
  }
}

/* ── SMALL MOBILE ≤480px ──────────────────────────────── */
@media (max-width: 480px) {

  .article-header h1 {
    font-size: 1.625rem;
    letter-spacing: -0.5px;
  }
  .cocon-page h1 {
    font-size: 1.625rem;
    letter-spacing: -0.3px;
  }
  .cocon-page h2 { font-size: 1.25rem; }
  .article-content h2 { font-size: 1.25rem; }
  .article-subtitle { font-size: 0.9375rem; }

  .toc-box { padding: 16px; }
  .child-card { padding: 16px 14px; }
  .siblings-box { padding: 16px 14px; }
  .author-box-inner { padding: 16px 14px; }
  .faq-question { padding: 14px 12px; }
  .faq-answer-inner { padding: 0 12px 16px; }
  .recap-box { padding: 16px 14px; }

  .final-cta { padding: 0 12px 40px; }
  .final-cta-box { padding: 24px 16px; }
}

/* ── TABLET 769-1024px ────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .article-header h1 { letter-spacing: -1.5px; }
  .children-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .child-card { padding: 24px; }
}


/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */

.cocon-footer {
  position: relative;
  z-index: 41;
  background: var(--bg-alt, #E8E5DF);
  margin-top: 0;
}

/* Decorative accent line at top */
.cocon-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(200px, 40%);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent, #A68966),
    transparent
  );
  border-radius: 1px;
}

.cocon-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 2rem 2.5rem;
}

.cocon-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3.5rem;
}

/* ── Brand column ── */

.cocon-footer__brand {
  padding-right: 2rem;
}

.cocon-footer__logo {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.cocon-footer__logo-text {
  font-family: var(--font-title, 'Poppins', sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent, #A68966);
  letter-spacing: -0.03em;
}

.cocon-footer__logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.cocon-footer__description {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--muted-light, #5A5A5A);
  margin: 0;
  max-width: 340px;
}

/* ── Link columns ── */

.cocon-footer__column-title {
  font-family: var(--font-title, 'Poppins', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text, #1B3022);
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent-alpha-25, rgba(166, 137, 102, 0.25));
  display: inline-block;
}

.cocon-footer__column-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cocon-footer__link {
  text-decoration: none;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.9rem;
  color: var(--muted-light, #5A5A5A);
  transition: color 0.25s ease, transform 0.2s ease;
  display: inline-block;
  position: relative;
}

/* Animated underline on footer links */
.cocon-footer__link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent, #A68966);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cocon-footer__link:hover {
  color: var(--accent, #A68966);
  transform: translateX(3px);
}

.cocon-footer__link:hover::after {
  width: 100%;
}

/* ── Bottom bar ── */

.cocon-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--accent-alpha-12, rgba(0, 0, 0, 0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cocon-footer__copyright {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.8rem;
  color: var(--muted-light, #5A5A5A);
  opacity: 0.6;
  margin: 0;
  letter-spacing: 0.01em;
}

.cocon-footer__legal {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.cocon-footer__legal-link {
  text-decoration: none;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.8rem;
  color: var(--muted-light, #5A5A5A);
  opacity: 0.6;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.cocon-footer__legal-link:hover {
  opacity: 1;
  color: var(--accent, #A68966);
}

/* ── Footer responsive ── */

@media (max-width: 768px) {
  .cocon-footer__inner {
    padding: 3.5rem 1.25rem 2rem;
  }

  .cocon-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .cocon-footer__brand {
    padding-right: 0;
  }

  .cocon-footer__description {
    max-width: 100%;
  }

  .cocon-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2.5rem;
  }

  .cocon-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
