/* Externalisé depuis le bloc <style> inline de presentation.html (CSP: retrait unsafe-inline de style-src) */
/* Layout principal */
    body.page-shell { 
      padding-top: 2rem; 
      display: block;
      /* Fond de page très léger pour éviter le blanc pur */
      background:
        linear-gradient(180deg,
          color-mix(in srgb, var(--brand) 3%, white 97%) 0%,
          color-mix(in srgb, var(--accent) 4%, white 96%) 100%
        );
    }
    
    .presentation-hero {
      text-align: center;
      padding: 3rem 1rem;
      background:
        radial-gradient(1200px 600px at 50% 20%, color-mix(in srgb, var(--brand) 10%, transparent) 0%, transparent 60%),
        linear-gradient(135deg,
          color-mix(in srgb, var(--brand) 22%, white 78%),
          color-mix(in srgb, var(--accent) 16%, white 84%)
        );
      margin-bottom: 2rem;
      border-radius: var(--radius-lg);
      border: 1px solid var(--line);
      box-shadow: 0 10px 30px rgba(0,0,0,.06), 0 3px 10px rgba(0,0,0,.04);
    }

    /* Habillage doux de la zone d'onglets pour une continuité avec le hero */
    .dashboard-tabs {
      background:
        linear-gradient(180deg,
          color-mix(in srgb, var(--brand) 4%, white 96%),
          color-mix(in srgb, var(--accent) 3%, white 97%)
        );
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 1rem;
      box-shadow: var(--shadow-sm);
    }

    /* Réduit l'effet trop blanc des cartes sans nuire à la lisibilité */
    .dashboard-tabs .card {
      background: color-mix(in srgb, var(--surface) 98%, var(--brand) 2%);
    }
    
    .presentation-hero .header-logo {
      width: 120px;
      height: 120px;
      margin: 0 auto 1.5rem auto;
    }
    
    .presentation-hero h1 {
      font-size: clamp(2rem, 5vw, 3rem);
      font-weight: 700;
      color: var(--brand);
      margin-bottom: 0.75rem;
      line-height: 1.2;
    }
    
    .presentation-hero .subtitle {
      font-size: clamp(1rem, 2.5vw, 1.25rem);
      color: var(--muted);
      margin-bottom: 1.5rem;
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
    }
    
    .presentation-hero .hero-actions {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 2rem;
    }
    
    /* Sections de contenu */
    .content-section {
      margin-bottom: 2rem;
    }
    
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-top: 1.5rem;
    }
    
    .feature-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 1.5rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .feature-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }
    
    .feature-icon {
      width: 48px;
      height: 48px;
      background: color-mix(in srgb, var(--accent) 15%, white 85%);
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
      color: var(--accent);
      font-size: 1.5rem;
    }
    
    .feature-card h3 {
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--brand);
      margin-bottom: 0.75rem;
    }
    
    .feature-card p {
      color: var(--text);
      line-height: 1.6;
      margin-bottom: 0.5rem;
    }
    
    .feature-list {
      list-style: none;
      padding: 0;
      margin: 0.75rem 0;
    }
    
    .feature-list li {
      padding: 0.35rem 0;
      padding-left: 1.5rem;
      position: relative;
      color: var(--text);
    }
    
    .feature-list li::before {
      content: "✓";
      position: absolute;
      left: 0;
      color: var(--success);
      font-weight: bold;
    }
    
    /* Screenshots placeholder */
    .screenshot-placeholder {
      background: linear-gradient(135deg, 
        color-mix(in srgb, var(--brand) 5%, white 95%), 
        color-mix(in srgb, var(--accent) 3%, white 97%)
      );
      border: 2px dashed var(--line);
      border-radius: var(--radius);
      padding: 3rem 1.5rem;
      text-align: center;
      margin: 1.5rem 0;
      min-height: 300px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    
    .screenshot-placeholder svg {
      width: 64px;
      height: 64px;
      color: var(--muted);
      margin-bottom: 1rem;
    }
    
    .screenshot-placeholder p {
      color: var(--muted);
      font-size: 0.95rem;
      margin: 0.5rem 0;
    }
    
    /* Carrousel d'images */
    .carousel {
      position: relative;
      margin: 1.5rem 0;
    }
    .carousel-title {
      display: none;
      margin: 0.5rem 0 0.25rem 0;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--brand);
    }
    .carousel-caption {
      margin-top: 0.5rem;
      font-size: 0.95rem;
      color: var(--muted);
      /* Espace invariant pour éviter le décalage du contenu au changement d'image */
      min-height: 3.2em; /* ~2 lignes */
    }
    .carousel-track {
      display: flex;
      overflow: hidden;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      gap: 0;
    }
    .carousel-slide {
      flex: 0 0 100%;
      width: 100%;
      height: auto;
      scroll-snap-align: start;
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }
    .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: var(--surface);
      border: 1px solid var(--line);
      width: 36px;
      height: 36px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--brand);
      box-shadow: var(--shadow-sm);
      cursor: pointer;
    }
    .carousel-btn.prev { left: 0.5rem; }
    .carousel-btn.next { right: 0.5rem; }
    /* Uniformiser les dimensions des slides, éviter l'étirement */
    .carousel-slide {
      width: 100%;
      height: clamp(260px, 42vw, 520px);
      object-fit: contain;
      background: var(--surface);
      display: block;
    }
    
    /* Badges informatifs */
    .info-badges {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin: 1rem 0;
    }
    
    /* Process steps */
    .process-steps {
      display: grid;
      gap: 1rem;
      margin-top: 1.5rem;
    }
    
    .process-step {
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      padding: 1rem;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }
    
    .step-number {
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      background: var(--brand);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 1.1rem;
    }
    
    .step-content h4 {
      margin: 0 0 0.5rem 0;
      color: var(--brand);
      font-weight: 600;
      font-size: 1.1rem;
    }
    
    .step-content p {
      margin: 0;
      color: var(--text);
      line-height: 1.6;
    }
    
    /* Lightbox (plein écran images) */
    .lightbox-overlay {
      position: fixed;
      left: 0; right: 0; top: 0; bottom: 0;
      background: rgba(4,21,31,0.85);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 2rem;
      z-index: 10000;
    }
    .lightbox-overlay[hidden] { display: none !important; }
    .lightbox-img {
      max-width: 96vw;
      max-height: 92vh;
      border-radius: var(--radius);
      box-shadow: 0 20px 60px rgba(0,0,0,0.35);
      background: #fff;
    }
    .lightbox-caption {
      margin-top: 0.75rem;
      color: #fff;
      text-align: center;
      max-width: 96vw;
      line-height: 1.4;
      font-size: 0.95rem;
      /* Hauteur minimale pour éviter le saut lors de la navigation */
      min-height: 3.2em;
    }
    .lightbox-close,
    .lightbox-nav {
      position: absolute;
      background: rgba(255,255,255,0.92);
      border: 1px solid var(--line);
      width: 40px; height: 40px;
      border-radius: 999px;
      display: flex; align-items: center; justify-content: center;
      color: var(--brand);
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      user-select: none;
    }
    .lightbox-close { top: 12px; right: 12px; font-size: 22px; }
    .lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 22px; }
    .lightbox-nav.prev { left: 12px; }
    .lightbox-nav.next { right: 12px; }
    
    /* Highlights */
    .highlight-box {
      background: color-mix(in srgb, var(--accent) 8%, white 92%);
      border-left: 4px solid var(--accent);
      padding: 1.25rem;
      border-radius: var(--radius);
      margin: 1.5rem 0;
    }
    
    .highlight-box h4 {
      margin: 0 0 0.75rem 0;
      color: var(--brand);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .highlight-box p {
      margin: 0.5rem 0;
      line-height: 1.6;
    }

    /* Navigation entre onglets */
    .tab-pager {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      margin-top: 1.5rem;
    }
    
    /* Titre centré au début de chaque onglet */
    .tab-content > .card:first-child .card-title {
      text-align: center;
    }
    
    /* Bouton retour en haut */
    .back-to-top {
      position: fixed;
      right: 16px;
      bottom: 16px;
      background: var(--surface);
      border: 1px solid var(--line);
      width: 44px;
      height: 44px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--brand);
      box-shadow: var(--shadow-sm);
      cursor: pointer;
      z-index: 9999;
    }
    .back-to-top:focus-visible {
      outline: 2px solid var(--brand);
      outline-offset: 2px;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
      .presentation-hero {
        padding: 2rem 1rem;
      }
      
      .feature-grid {
        grid-template-columns: 1fr;
      }
      
      .screenshot-placeholder {
        min-height: 200px;
        padding: 2rem 1rem;
      }
    }
