/* ==========================================================================
   PC ONE — LOT 56 : socle visuel "clair premium"
   Habillage uniquement : aucun texte, aucun lien, aucune fonction modifiée.
   Les couleurs de marque sont injectées en ligne par le PHP (voir index.php).
   ========================================================================== */

:root{
  --pcop-accent: #f97316;
  --pcop-accent-dark: #ea580c;
  --pcop-ink: #0a0f1e;
  --pcop-ink-soft: #475569;
  --pcop-muted: #64748b;
  --pcop-surface: #ffffff;
  --pcop-surface-2: #f8fafc;
  --pcop-surface-3: #f1f5f9;
  --pcop-line: #e6ebf2;
  --pcop-r-sm: 12px;
  --pcop-r: 18px;
  --pcop-r-lg: 26px;
  --pcop-sh-1: 0 1px 2px rgba(10,15,30,.05), 0 8px 24px -12px rgba(10,15,30,.14);
  --pcop-sh-2: 0 2px 6px rgba(10,15,30,.06), 0 26px 60px -26px rgba(10,15,30,.28);
  --pcop-glow: 0 18px 44px -18px color-mix(in srgb, var(--pcop-accent) 60%, transparent);
  --pcop-pad: clamp(48px, 6vw, 96px);
  --pcop-wrap: 1200px;
}

/* --- Typographie fluide ------------------------------------------------- */
body{ -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.cms-section h1{ font-size: clamp(2.3rem, 6.2vw, 4.2rem); line-height: 1.03; letter-spacing: -.025em; }
.cms-section h2{ font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; }
.cms-section h3{ letter-spacing: -.01em; }
.cms-section p{ color: var(--pcop-ink-soft); }

/* --- Rythme des sections ------------------------------------------------ */
.cms-section{ position: relative; padding-block: clamp(28px, 4vw, 56px); margin-bottom: 0 !important; }
.cms-section > *{ position: relative; z-index: 1; }
.cms-section + .cms-section{ border-top: 1px solid transparent; }
.cms-section.pcop-theme-soft{ background: linear-gradient(180deg, var(--pcop-surface-2), var(--pcop-surface)); }
.cms-section.pcop-theme-tint{ background: var(--pcop-surface-2); }
.cms-section.pcop-theme-ink{ background: var(--pcop-ink); }
.cms-section.pcop-theme-ink h1,
.cms-section.pcop-theme-ink h2,
.cms-section.pcop-theme-ink h3{ color: #fff; }
.cms-section.pcop-theme-ink p{ color: #cbd5e1; }
.cms-section.pcop-bg-mesh::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(48rem 24rem at 12% -12%, color-mix(in srgb, var(--pcop-accent) 16%, transparent), transparent 70%),
    radial-gradient(40rem 22rem at 92% 8%, rgba(56,189,248,.14), transparent 70%);
}
.cms-section.pcop-bg-grid::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0; opacity:.5;
  background-image: linear-gradient(var(--pcop-line) 1px, transparent 1px), linear-gradient(90deg, var(--pcop-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
.cms-section.pcop-density-compact{ padding-block: clamp(18px, 2.4vw, 32px); }
.cms-section.pcop-density-airy{ padding-block: clamp(48px, 7vw, 112px); }
.cms-section.pcop-width-boxed > *{ max-width: var(--pcop-wrap); margin-inline: auto; }
.cms-section.pcop-radius-flat :is(.pcop-card, .service-card, .cms-card){ border-radius: 6px !important; }
.cms-section.pcop-radius-round :is(.pcop-card, .service-card, .cms-card){ border-radius: 26px !important; }

/* --- Hero "wahou" ------------------------------------------------------- */
.cms-section.section-hero{ padding-block: 0; }
.cms-section.section-hero .hero{
  position: relative; overflow: hidden;
  border-radius: 0 0 var(--pcop-r-lg) var(--pcop-r-lg);
  padding: clamp(84px, 11vw, 150px) 20px !important;
  background: linear-gradient(135deg, #fff 0%, var(--pcop-surface-2) 45%, #fff 100%) !important;
  color: var(--pcop-ink) !important;
  isolation: isolate;
}
.cms-section.section-hero .hero::before{
  content:""; position:absolute; inset:-30% -10%; z-index:-2;
  background:
    radial-gradient(38rem 22rem at 18% 22%, color-mix(in srgb, var(--pcop-accent) 26%, transparent), transparent 68%),
    radial-gradient(34rem 20rem at 82% 12%, rgba(56,189,248,.22), transparent 68%),
    radial-gradient(30rem 18rem at 60% 96%, color-mix(in srgb, var(--pcop-accent-dark) 18%, transparent), transparent 70%);
  filter: blur(6px);
  animation: pcopAurora 22s ease-in-out infinite alternate;
}
.cms-section.section-hero .hero::after{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.35;
  background-image: linear-gradient(var(--pcop-line) 1px, transparent 1px), linear-gradient(90deg, var(--pcop-line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(60% 55% at 50% 40%, #000, transparent);
}
@keyframes pcopAurora{
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.07); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.03); }
}
.cms-section.section-hero .hero h1{
  color: var(--pcop-ink) !important; text-shadow: none;
  will-change: transform;
}
.cms-section.section-hero .hero p{ color: var(--pcop-ink-soft) !important; opacity: 1 !important; }
.cms-section.section-hero .hero a{
  background: linear-gradient(135deg, var(--pcop-accent), var(--pcop-accent-dark)) !important;
  color: #fff !important;
  box-shadow: var(--pcop-glow) !important;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, filter .25s ease;
}
.cms-section.section-hero .hero a:hover{ transform: translateY(-3px) scale(1.02); filter: saturate(1.08); }
.pcop-hero-layer{ transition: transform .35s cubic-bezier(.2,.8,.2,1); }

/* --- Cartes génériques (services, process, why-us, features, pricing) --- */
.cms-section :is(.service-card, .cms-card, .pcop-card),
.cms-section [class*="-card"]{
  background: var(--pcop-surface);
  border: 1px solid var(--pcop-line);
  border-radius: var(--pcop-r);
  box-shadow: var(--pcop-sh-1);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.cms-section :is(.service-card, .cms-card, .pcop-card):hover,
.cms-section [class*="-card"]:hover{
  transform: translateY(-6px);
  box-shadow: var(--pcop-sh-2);
  border-color: color-mix(in srgb, var(--pcop-accent) 45%, var(--pcop-line));
}

/* --- Titres de section : filet orange discret --------------------------- */
.cms-section > * > h2::after,
.cms-section > h2::after{
  content:""; display:block; width: 64px; height: 4px; border-radius: 999px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--pcop-accent), var(--pcop-accent-dark));
}

/* --- Avis Google / témoignages ----------------------------------------- */
.cms-section.section-google-reviews .pcop-review,
.cms-section.section-testimonials .pcop-review{ background:#fff; }

/* --- Apparition au scroll ---------------------------------------------- */
.pcop-reveal{ opacity: 0; transform: translateY(26px); }
.pcop-reveal.pcop-in{
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--pcop-delay, 0ms);
}
@media (prefers-reduced-motion: reduce){
  .pcop-reveal{ opacity:1 !important; transform:none !important; }
  .cms-section.section-hero .hero::before{ animation: none; }
}

/* --- Header translucide au scroll -------------------------------------- */
header.pc-header{ transition: box-shadow .3s ease, background .3s ease, backdrop-filter .3s ease; }
header.pc-header.pcop-stuck{
  background: rgba(255,255,255,.86) !important;
  backdrop-filter: saturate(1.6) blur(12px);
  box-shadow: 0 10px 30px -18px rgba(10,15,30,.4);
}
.pc-nav a{ position: relative; }
.pc-nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-6px; height:2px; border-radius:2px;
  background: var(--pcop-accent); transition: right .28s cubic-bezier(.2,.8,.2,1);
}
.pc-nav a:hover::after{ right:0; }

/* --- Footer aéré -------------------------------------------------------- */
.footer{ background: var(--pcop-ink) !important; }
.footer a{ transition: color .2s ease, transform .2s ease; display: inline-block; }
.footer a:hover{ transform: translateX(2px); }

/* --- Bouton "haut de page" -------------------------------------------- */
#pcop-top{
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--pcop-line);
  background: rgba(255,255,255,.92); color: var(--pcop-ink); cursor: pointer;
  box-shadow: var(--pcop-sh-1); opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
#pcop-top.pcop-show{ opacity: 1; pointer-events: auto; }
#pcop-top:hover{ transform: translateY(-3px); color: var(--pcop-accent); }

/* --- Mobile ------------------------------------------------------------ */
@media (max-width: 768px){
  .cms-section.columns-2 > *, .cms-section.columns-3 > *, .cms-section.columns-4 > *{
    grid-template-columns: 1fr !important;
  }
  .cms-section.section-hero .hero{ border-radius: 0 0 20px 20px; }
}

/* --- Réglage no-code : animation d'apparition désactivée pour la section --- */
.cms-section.pcop-no-anim .pcop-reveal,
.cms-section.pcop-no-anim.pcop-reveal{ opacity: 1 !important; transform: none !important; }
