/*
Theme Name: PowerHouse
Template: horizon-base
Version: 1.0.0
*/

/* Hero slider (PowerHouse) : trois fonds en fondu, voile sombre commun */
.hero { background-image: none; }
.hero-bgs { position: absolute; inset: 0; z-index: 0; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-bg.is-active { opacity: 1; }
.hero-bg-1 { background-image: url("images/hero-route.jpg"); }
.hero-bg-2 { background-image: url("images/hero-montagnes.jpg"); background-position: center 40%; }
.hero-bg-3 { background-image: url("images/fond-horizon.jpg"); }
/* Voile sombre : dégradé pour la lisibilité du texte */
.hero::before { z-index: 1; background: linear-gradient(180deg, rgba(7,13,20,.72) 0%, rgba(7,13,20,.6) 45%, rgba(7,13,20,.9) 100%); }
.hero > .container { z-index: 2; }
.hero-titles { display: grid; }
.hero-title { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero-title.is-active { opacity: 1; visibility: visible; }
.hero h1.hero-title, .hero p.hero-title { color: var(--white); font-family: var(--font-display); font-weight: 200; font-size: clamp(46px, 8.4vw, 118px); letter-spacing: -.02em; line-height: 1; max-width: 14ch; margin: 0 auto 26px; }
.hero p.hero-title b { font-weight: 600; }
.hero p.hero-title .script { display: block; font-size: 1.05em; line-height: .9; color: var(--yellow); margin-bottom: 8px; }
.hero-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: transparent; cursor: pointer; }
.hero-dots button[aria-current="true"] { background: var(--yellow); border-color: var(--yellow); }
.hero-pause { background: none; border: 1px solid rgba(255,255,255,.5); color: var(--white); border-radius: 999px; width: 32px; height: 32px; font-size: 11px; cursor: pointer; }
.hero-dots button:focus-visible, .hero-pause:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hero-bg, .hero-title { transition: none; } }

/* Bloc clients animé (défilement continu) */
.clients { padding-bottom: 80px; overflow: hidden; }
.clients-marquee { overflow: hidden; padding: 8px 0 32px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.clients-track { display: flex; gap: 24px; width: max-content; animation: clients-scroll 55s linear infinite; padding-left: 24px; }
.clients-marquee:hover .clients-track, .clients-marquee:focus-within .clients-track { animation-play-state: paused; }
@keyframes clients-scroll { to { transform: translateX(calc(-50% - 12px)); } }
.client-card { flex: 0 0 300px; background: var(--white); border: 1px solid var(--line, #e3e6ea); border-radius: var(--radius, 24px); padding: 28px 26px 30px; display: flex; flex-direction: column; transition: transform .35s; }
.client-card:hover { transform: translateY(-6px); }
.client-logo { height: 92px; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 14px 18px; margin-bottom: 20px; background: #fff; border: 1px solid #eef0f2; }
.client-logo.on-dark { background: #141210; border-color: #141210; }
.client-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.client-tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 6px; }
.client-card h3 { font-size: 24px; margin-bottom: 8px; }
.client-desc { color: var(--muted); flex: 1; margin: 0 0 16px; font-size: 16px; }
.client-card .more { font-weight: 600; color: var(--blue); display: inline-flex; gap: 8px; }
.clients .more-link { text-align: center; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
  .clients-marquee { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .clients-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 24px; }
  .client-card[aria-hidden="true"] { display: none; }
}

/* Réseau de partenaires (accueil) : piliers + bandeau de logos */
.network-pillars .card h3 { font-size: 24px; }
.partner-strip { list-style: none; padding: 0; margin: 40px 0 8px; display: flex; flex-wrap: wrap; gap: 20px 44px; align-items: center; justify-content: center; }
.partner-strip img { height: 40px; width: auto; max-width: 140px; object-fit: contain; opacity: .85; }

/* Sections colorées (accueil) : alternance de fonds pour séparer les messages */
.bg-white { background: var(--white); }
.bg-blue { background: var(--blue-soft); }
.bg-sun { background: #e3f1e2; }
.bg-white .card { background: var(--paper); }
.bg-blue .card { background: var(--white); }
.bg-sun .client-card { box-shadow: 0 8px 24px -16px rgba(30, 80, 30, .3); }
.bg-blue .section-head h2, .bg-sun .section-head h2 { color: var(--navy); }
.bg-sun .eyebrow { color: #2f6e2c; }
.bg-blue .eyebrow { color: var(--blue); }

/* Vignettes photo des cartes */
.card .art.art-photo { background: var(--navy) var(--photo) center 30% / cover no-repeat; }
.card .art.art-photo::before, .card .art.art-photo::after { display: none; }

/* Mentions légales */
.legal-body { max-width: 780px; margin: 0 auto; }
.legal-body h2 { font-size: 26px; margin: 40px 0 12px; }
.legal-body p, .legal-body li { color: var(--ink, #12283a); }
.legal-body a { color: var(--blue); text-decoration: underline; }
.legal-body mark { background: #fff3d1; padding: 0 4px; border-radius: 4px; }

/* Cadrages spécifiques des vignettes */
.card .art.art-photo[style*="operations"] { background-color: #2b2f2f; background-size: contain; background-position: center; }
.card .art.art-photo[style*="leadership"] { background-position: center 12%; }
.card .art.art-photo[style*="strategie"] { background-position: center 40%; }

.card .art.art-photo[style*="ap-pyrenees"] { background-position: center 35%; }
.card .art.art-photo[style*="pq-startups"] { background-position: center 35%; }
.card .art.art-photo[style*="ap-valeurs"], .card .art.art-photo[style*="pq-pme"] { background-color: #fff; }

/* Bloc « Prêt à voir plus loin ? » : photo + voile sombre */
.cta.cta-photo { background: linear-gradient(180deg, rgba(7,13,20,.58), rgba(7,13,20,.45)), url("images/cta-berger.jpg") center 60% / cover no-repeat; }
.cta.cta-photo::before, .cta.cta-photo::after { display: none; }
