/* ============================================================
   design-to-patent.css v6 — override MINIMAL
   Utilise 100% les composants du site (hero-wide, manifesto,
   cta-section, faq, gantt, modeles-grid, mod-card, etc.).
   N'ajoute que le strict nécessaire pour :
   - Fond noir + grille de la page
   - Adaptation fresque hero (transparent + masque dégradé)
   - Logo DTP grand dans le manifeste
   - 3 tuiles en 3 colonnes, cost/DfM en gris, DTP multicolore
   - Ratio image/texte des cercles concentriques
   ============================================================ */

/* --- Fond noir + grille millimétrée pour cette page uniquement --- */
body.dtp-page {
  background: #0a0a0a !important;
}
body.dtp-page::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    repeating-linear-gradient(0deg,  transparent 0 13px, rgba(255,255,255,0.028) 13px 14px),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(255,255,255,0.028) 13px 14px),
    repeating-linear-gradient(0deg,  transparent 0 69px, rgba(255,255,255,0.055) 69px 70px),
    repeating-linear-gradient(90deg, transparent 0 69px, rgba(255,255,255,0.055) 69px 70px);
  pointer-events: none;
  z-index: 0;
}
/* IMPORTANT : ne PAS casser le position:fixed de la nav — n'appliquer position:relative qu'aux sections/footer */
body.dtp-page > section,
body.dtp-page > footer,
body.dtp-page > .scroll-progress { position: relative; z-index: 1; }
/* La nav garde son position:fixed venant de components.css — on ne surcharge que le fond pour l'harmoniser au noir de la page */
body.dtp-page nav#nb {
  background: var(--black);   /* même noir plein que le reste du site avant scroll */
}
body.dtp-page nav#nb.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- HERO : fresque transparente + contenu centré verticalement + masque dégradé côté texte --- */
body.dtp-page .hero-wide {
  align-items: center;  /* remonter le bloc texte (au lieu de flex-end) */
  background: transparent;
}
body.dtp-page .hw-img-wrap { background: transparent; }
body.dtp-page .hw-img {
  object-fit: contain;
  object-position: center center;
  opacity: 0.85;                         /* fresque plus visible */
  filter: brightness(1.55) contrast(1.05);  /* traits plus blancs */
}
/* Masque dégradé côté gauche pour protéger la lisibilité du titre — identique en principe aux autres hero */
body.dtp-page .hw-overlay {
  background:
    linear-gradient(90deg,
      rgba(10,10,10,0.92) 0%,
      rgba(10,10,10,0.75) 18%,
      rgba(10,10,10,0.35) 40%,
      rgba(10,10,10,0.05) 60%,
      transparent 75%),
    linear-gradient(to top,
      rgba(10,10,10,0.55) 0%,
      rgba(10,10,10,0.15) 25%,
      transparent 55%);
}
body.dtp-page .hw-content {
  position: relative !important;
  bottom: auto !important;
  padding: 0 80px !important;
  max-width: 720px;
}

/* --- MANIFESTO : logo DTP grand (même largeur que le bloc texte) --- */
body.dtp-page .manifesto-visual-dtp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
body.dtp-page .manifesto-visual-dtp img {
  width: 100%;              /* tient dans sa colonne, pas de débord */
  max-width: 640px;         /* taille visuelle correcte pour l'ordinateur */
  height: auto;
  max-height: none;
  display: block;
  margin: 0 auto;           /* centré dans la colonne */
}

/* --- Section 3 : modeles-grid en 3 colonnes portrait --- */
body.dtp-page .modeles-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px;
}
body.dtp-page .mod-card {
  display: flex;
  flex-direction: column;
  min-height: 500px;              /* format portrait vertical */
  padding: 40px 32px 44px;
  text-align: center;
  align-items: center;
}
body.dtp-page .mod-card .mod-tag {
  font-size: 17px;
  margin-bottom: 10px;
}
body.dtp-page .mod-card h3 {
  font-size: 26px;                /* titre plus gros */
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 700;
}
body.dtp-page .mod-card .mod-illustration {
  flex: 1;
  min-height: 220px;              /* illustrations plus grandes */
  margin: 8px 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
body.dtp-page .mod-card .mod-illustration img {
  max-height: 220px;
  max-width: 90%;
  width: auto;
  height: auto;
  opacity: 0.95;
  filter: brightness(1.15);
}
body.dtp-page .mod-card p {
  font-size: 15px;                /* sous-titre tient sur une ligne */
  line-height: 1.4;
  color: var(--gray);
  margin: 0;
  white-space: nowrap;            /* force 1 ligne */
}

/* --- Cost + DfM en gris neutre (override du :nth-child couleur de mission-inventive) --- */
body.dtp-page .mod-card:nth-child(1),
body.dtp-page .mod-card:nth-child(2) {
  border-top: 3px solid rgba(255,255,255,0.18) !important;
  --mc: rgba(255,255,255,0.15);
}
body.dtp-page .mod-card:nth-child(1) .mod-tag,
body.dtp-page .mod-card:nth-child(2) .mod-tag {
  color: rgba(255,255,255,0.55) !important;
}
body.dtp-page .mod-card:nth-child(1):hover,
body.dtp-page .mod-card:nth-child(2):hover {
  box-shadow: 0 8px 40px rgba(255,255,255,0.06);
}

/* --- DTP featured : liseré multicolore ÉPAIS sur TOUS les côtés --- */
body.dtp-page .mod-card.dtp-featured {
  position: relative;
  border: none !important;                    /* on vire les bordures par défaut de .mod-card */
  border-top: none !important;                /* et le border-top:3px hérité */
  background-clip: padding-box;
}
body.dtp-page .mod-card.dtp-featured::after {
  content: "";
  position: absolute;
  inset: 0;                                    /* aligne au bord de la tuile */
  border-radius: 12px;                         /* même que .mod-card */
  padding: 4px;                                /* ÉPAISSEUR du liseré (4px) */
  background: linear-gradient(135deg,
    #ff803e 0%,
    #ffd93e 20%,
    #68e88d 45%,
    #15a8fe 65%,
    #fc1fa2 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
body.dtp-page .mod-card.dtp-featured .mod-tag {
  color: var(--orange) !important;
}
body.dtp-page .mod-card.dtp-featured:hover {
  box-shadow: 0 8px 50px rgba(255,128,62,0.25);
}
/* zoom illustration au hover pour DTP */
body.dtp-page .mod-card.dtp-featured .mod-illustration img {
  max-height: 240px;
  opacity: 1;
  filter: brightness(1.25);
}

/* --- Section 4 (cercles concentriques) : plus de place pour l'image --- */
body.dtp-page section.manifesto.dtp-circles {
  padding-top: 60px;   /* réduit l'espace avec la section [3] précédente */
}
/* Superposition via même cellule grid : texte 38% à gauche, image 67% ancrée à droite (overlap 5% invisible car fond image transparent) */
body.dtp-page section.manifesto.dtp-circles .manifesto-grid {
  grid-template-columns: 100% !important;
  grid-template-rows: auto;
  gap: 0;
}
body.dtp-page section.manifesto.dtp-circles .reveal-left,
body.dtp-page section.manifesto.dtp-circles .reveal-right {
  grid-column: 1;
  grid-row: 1;
}
body.dtp-page section.manifesto.dtp-circles .reveal-left {
  width: 38%;
  justify-self: start;
  align-self: center;
  z-index: 2;                /* texte au-dessus de l'overlap */
}
body.dtp-page section.manifesto.dtp-circles .reveal-right {
  width: 62%;                /* -5% par rapport à 67% */
  justify-self: end;
  align-self: center;
  z-index: 1;
}
/* Mobile : on empile normalement */
@media (max-width: 900px) {
  body.dtp-page section.manifesto.dtp-circles .reveal-left,
  body.dtp-page section.manifesto.dtp-circles .reveal-right {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    justify-self: stretch;
  }
}
body.dtp-page .circles-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* --- Uniclou : container standard 1200px (aligné avec toutes les autres sections) --- */
body.dtp-page .uniclou-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  width: 100%;
}
body.dtp-page .uniclou-image-wrap img {
  width: 100%;
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* --- Responsive : 3 tuiles empilées sur mobile --- */
@media (max-width: 900px) {
  body.dtp-page .modeles-grid {
    grid-template-columns: 1fr !important;
  }
  body.dtp-page section.manifesto.dtp-circles .manifesto-grid {
    grid-template-columns: 1fr !important;
  }
  body.dtp-page .hw-content { padding: 0 40px !important; }
}
