/*
 * PRATINIUM — Homepage v2.0 — custom-homepage-v2.css
 * Styles pour les 6 sections de la page d'accueil optimisée.
 * Ne modifie aucun style existant. Compatible PrestaShop 9 + classic parent.
 *
 * ACTIVATION : ajouter dans config/theme.yml :
 *   - id: pratiniumtheme-homepage-v2
 *     path: assets/css/custom-homepage-v2.css
 *     media: all
 *     priority: 90
 */

/* ─── Utilitaires globaux ─────────────────────────────────────────────── */
.pf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.pf-section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}

.pf-section-sub {
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 28px;
}

/* ─── Boutons ─────────────────────────────────────────────────────────── */
.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, opacity .15s, box-shadow .15s;
  border: none;
  line-height: 1.4;
}

.pf-btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.pf-btn:active { transform: scale(.98); }

.pf-btn--primary   { background: #185FA5; color: #fff; }
.pf-btn--primary:hover { background: #1a6ab8; color: #fff; }

.pf-btn--secondary { background: transparent; color: #B5D4F4; border: 1.5px solid #378ADD; }
.pf-btn--secondary:hover { color: #fff; }

.pf-btn--ghost     { background: transparent; color: #94a3b8; border: 1px solid #475569; }
.pf-btn--ghost:hover { color: #cbd5e1; }

.pf-btn--outline   { background: transparent; color: #185FA5; border: 1.5px solid #185FA5; }
.pf-btn--outline:hover { background: #E6F1FB; color: #0C447C; }


/* ═══════════════════════════════════════════════════════════════════════
   SECTION 1 — HERO
   ═══════════════════════════════════════════════════════════════════════ */
.pf-hero {
  position: relative;
  min-height: 420px;
  background: #0C1E35;       /* fallback si image absente */
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Fallback dégradé si image manquante */
.pf-hero--no-img {
  background: linear-gradient(135deg, #0a1628 0%, #0C1E35 50%, #0f2d4a 100%);
}

.pf-hero__media {
  position: absolute;
  inset: 0;
}

.pf-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-hero__overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 48px 24px 48px;
  background: linear-gradient(
    180deg,
    rgba(9,16,29,.15) 0%,
    rgba(9,16,29,.75) 100%
  );
  display: flex;
  align-items: center;
  min-height: 420px;
}

.pf-hero__content {
  max-width: 700px;
  position: relative;
}

/* Badge projets actifs */
.pf-hero__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(21,95,165,.35);
  border: 1px solid #378ADD;
  border-radius: 12px;
  padding: 10px 16px;
  position: absolute;
  right: 0;
  top: 0;
  text-align: center;
  backdrop-filter: blur(8px);
}

.pf-hero__badge-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: #B5D4F4;
  line-height: 1;
}

.pf-hero__badge-label {
  font-size: .7rem;
  color: #85B7EB;
  margin-top: 2px;
}

.pf-hero__eyebrow {
  font-size: .72rem;
  font-weight: 600;
  color: #85B7EB;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* H1 SEO — intentionnellement h1 (remplace l'ancien h2) */
.pf-hero__title {
  font-size: clamp(1.6rem, 3.5vw, 2.7rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  max-width: 560px;
}

.pf-hero__subtitle {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,.88);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 0 12px;
}

.pf-hero__tagline {
  font-size: .9rem;
  color: #85B7EB;
  margin: 0 0 28px;
  font-style: italic;
}

.pf-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 767px) {
  .pf-hero { min-height: 480px; }
  .pf-hero__overlay { min-height: 480px; padding: 80px 20px 36px; align-items: flex-end; }
  .pf-hero__badge { top: 20px; right: 20px; }
  .pf-hero__ctas { flex-direction: column; gap: 8px; }
  .pf-btn { width: 100%; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════════════════
   SECTION 2 — MÉTRIQUES CLÉS
   ═══════════════════════════════════════════════════════════════════════ */
.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.pf-stats__item {
  background: #fff;
  padding: 18px 12px;
  text-align: center;
}

.pf-stats__num {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.02em;
}

.pf-stats__label {
  display: block;
  font-size: .72rem;
  color: #94a3b8;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 600px) {
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════════════════════════════════════
   SECTION 3 — BANDE DE CONFIANCE
   ═══════════════════════════════════════════════════════════════════════ */
.pf-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 10px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.pf-trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: #475569;
  white-space: nowrap;
}

.pf-trust-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   SECTION 4 — PARCOURS / COMMENT ÇA MARCHE
   ═══════════════════════════════════════════════════════════════════════ */
.pf-parcours {
  padding: 52px 0 44px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

/* Tabs */
.pf-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.pf-tab {
  font-size: .85rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all .15s;
  line-height: 1.4;
}

.pf-tab:hover { border-color: #185FA5; color: #185FA5; }

.pf-tab--active,
.pf-tab[aria-selected="true"] {
  background: #E6F1FB;
  color: #185FA5;
  border-color: #B5D4F4;
  font-weight: 600;
}

/* Steps */
.pf-steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pf-steps[hidden] { display: none; }
.pf-steps--active { display: flex; }

.pf-step {
  flex: 1;
  text-align: center;
}

.pf-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E6F1FB;
  color: #185FA5;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.pf-step__title {
  font-size: .95rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 6px;
}

.pf-step__desc {
  font-size: .82rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.pf-step__arrow {
  font-size: 1.2rem;
  color: #cbd5e1;
  align-self: center;
  flex-shrink: 0;
  padding-bottom: 24px;
  user-select: none;
}

@media (max-width: 600px) {
  .pf-steps { flex-direction: column; align-items: center; gap: 10px; }
  .pf-step__arrow { transform: rotate(90deg); padding: 0; }
}


/* ═══════════════════════════════════════════════════════════════════════
   SECTION 5 — PROJETS EN VEDETTE
   ═══════════════════════════════════════════════════════════════════════ */
.pf-projects {
  padding: 52px 0 44px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.pf-projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.pf-project-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.pf-project-card:hover {
  box-shadow: 0 8px 24px rgba(15,23,42,.1);
  transform: translateY(-2px);
}

.pf-project-card__visual {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.pf-project-card__visual--agri  { background: linear-gradient(135deg,#185FA5,#0F6E56); }
.pf-project-card__visual--energy { background: linear-gradient(135deg,#0F6E56,#854F0B); }

.pf-project-card__body {
  padding: 14px 16px;
}

.pf-project-card__sector {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  color: #185FA5;
  background: #E6F1FB;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: .03em;
}

.pf-project-card__name {
  font-size: .95rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 10px;
}

.pf-project-card__progress {
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  margin-bottom: 8px;
  overflow: hidden;
}

.pf-project-card__bar {
  display: block;
  height: 100%;
  min-width: 3px;
  background: linear-gradient(90deg,#185FA5,#0F6E56);
  border-radius: 999px;
  transition: width .25s ease;
}

.pf-project-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: #94a3b8;
}

.pf-projects__cta-wrap {
  text-align: center;
}


/* ═══════════════════════════════════════════════════════════════════════
   SECTION 6 — CADRE LÉGAL
   ═══════════════════════════════════════════════════════════════════════ */
.pf-legal {
  padding: 52px 0;
  background: #fff;
}

.pf-legal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.pf-legal__item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px 20px 18px;
}

.pf-legal__icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.pf-legal__title {
  font-size: .95rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 6px;
}

.pf-legal__desc {
  font-size: .82rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   FOOTER ENRICHI
   ═══════════════════════════════════════════════════════════════════════ */
.pf-footer-links {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 14px 24px;
}

.pf-footer-links__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.pf-footer-links__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.pf-footer-links__nav a {
  font-size: .78rem;
  color: #64748b;
  text-decoration: none;
}

.pf-footer-links__nav a:hover { color: #185FA5; text-decoration: underline; }

.pf-footer-links__copy {
  font-size: .78rem;
  color: #94a3b8;
}

@media (max-width: 600px) {
  .pf-footer-links__inner { flex-direction: column; align-items: flex-start; }
}
