/*
 Theme Name: Humanae Partners Child Theme
 Theme URI: https://staging.humanae-partners.ch
 Description: Child theme for Humanae Partners - Divi 5
 Author: Claude.IA pour AGICA
 Author URI: https://humanae-partners.ch
 Template: Divi
 Version: 1.0.0
 Text Domain: humanae-divi-child
*/

/* =============================================
   HUMANAE PARTNERS — CUSTOM STYLES
   ============================================= */

/* === PALETTE DE COULEURS === */
:root {
  /* ── Palette principale (design mockup 2025) ── */
  --hp-ink:          #1a1a18;   /* Noir charbon — fond sombre, texte titres */
  --hp-ink-soft:     #3d3d38;   /* Gris foncé chaud — texte corps */
  --hp-ink-muted:    #7a7a72;   /* Gris moyen — texte secondaire */
  --hp-ink-faint:    #b8b8b0;   /* Gris clair — texte caption */

  --hp-warm:         #c8a96e;   /* Or chaud — accent principal (CTA, highlights) */
  --hp-warm-light:   #e8d9b8;   /* Or clair — fonds badges */
  --hp-warm-dark:    #9a7d4a;   /* Or foncé — hover, labels */

  --hp-green:        #2b4a3c;   /* Vert forêt — transmission */
  --hp-green-light:  #3d6b54;   /* Vert moyen — hover transmission */

  --hp-blue:         #2a3f5c;   /* Navy marine — croissance */
  --hp-blue-light:   #3a5580;   /* Navy moyen — hover croissance */

  --hp-cream:        #f5f2ec;   /* Crème chaud — fond sections alternées */
  --hp-cream-dark:   #ede9e0;   /* Crème foncé — fond cards légères */
  --hp-white:        #fdfcf8;   /* Blanc chaud — fond principal */

  --hp-danger:       #c0392b;   /* Rouge — erreurs */
  --hp-border:       rgba(200,169,110,0.2); /* Bordure chaude subtile */

  /* ── Compatibilité rétro (utilisés dans les templates) ── */
  --hp-dark:     var(--hp-ink);
  --hp-primary:  var(--hp-blue);
  --hp-accent:   var(--hp-warm);
  --hp-light:    var(--hp-cream);
  --hp-text:     var(--hp-ink-soft);
  --hp-muted:    var(--hp-ink-muted);
  --hp-success:  var(--hp-green);

  --hp-radius:   6px;
  --hp-radius-m: 10px;
  --hp-radius-l: 16px;
  --hp-shadow:   0 4px 24px rgba(26,26,24,0.08);
  --hp-shadow-m: 0 8px 32px rgba(26,26,24,0.12);
}

/* === TYPOGRAPHIE === */
body {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  color: var(--hp-ink-soft);
  line-height: 1.65;
  background: var(--hp-white);
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--hp-ink);
  letter-spacing: -0.01em;
}

h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--hp-ink);
}

/* === NAVIGATION === */
#main-header {
  background: var(--hp-white) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

.et_pb_menu .nav li a,
#top-menu li a {
  color: var(--hp-text) !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.et_pb_menu .nav li a:hover,
#top-menu li a:hover {
  color: var(--hp-green) !important;
}

/* Menu Contact — sans fond coloré */
.menu-cta a,
#top-menu .menu-cta > a {
  color: var(--hp-green) !important;
  font-weight: 700 !important;
  padding: 0 !important;
  background: transparent !important;
}

.menu-cta a:hover,
#top-menu .menu-cta > a:hover {
  color: var(--hp-ink) !important;
  background: transparent !important;
  text-decoration: underline !important;
}

/* === HERO SECTION === */
.hp-hero {
  background: linear-gradient(135deg, var(--hp-dark) 0%, var(--hp-primary) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

.hp-hero h1 {
  color: var(--hp-white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hp-hero p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* === BOUTONS === */
.hp-btn-primary {
  display: inline-block;
  background: var(--hp-accent);
  color: var(--hp-ink) !important;
  padding: 0.9rem 2rem;
  border-radius: var(--hp-radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.hp-btn-primary:hover {
  background: #d4911c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,160,32,0.35);
}

.hp-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--hp-white) !important;
  padding: 0.9rem 2rem;
  border-radius: var(--hp-radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all 0.25s ease;
}

.hp-btn-secondary:hover {
  border-color: var(--hp-white);
  background: rgba(255,255,255,0.1);
}

/* === CARDS PARCOURS === */
.hp-parcours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.hp-parcours-card {
  background: var(--hp-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--hp-shadow);
  border-top: 4px solid var(--hp-primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-parcours-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.hp-parcours-card.accent {
  border-top-color: var(--hp-accent);
}

.hp-parcours-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--hp-dark);
}

.hp-parcours-card p {
  color: var(--hp-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* === SIGNAUX / SYMPTOMS === */
.hp-signals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.hp-signal-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--hp-light);
  border-radius: var(--hp-radius);
}

.hp-signal-icon {
  width: 40px;
  height: 40px;
  background: var(--hp-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* === OFFRES === */
.hp-offres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.hp-offre-card {
  background: var(--hp-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--hp-shadow);
  text-align: center;
  border: 1px solid var(--hp-border);
  transition: all 0.25s ease;
}

.hp-offre-card:hover {
  border-color: var(--hp-primary);
  transform: translateY(-4px);
}

.hp-offre-card.featured {
  background: var(--hp-primary);
  color: var(--hp-white);
  border-color: var(--hp-primary);
}

.hp-offre-card.featured h3,
.hp-offre-card.featured p {
  color: var(--hp-white);
}

.hp-prix-tag {
  font-size: 2rem;
  font-weight: 800;
  color: var(--hp-primary);
  margin: 1rem 0;
}

.hp-offre-card.featured .hp-prix-tag {
  color: var(--hp-accent);
}

/* === SECTION TEMOIGNAGES === */
.hp-temoignage {
  background: var(--hp-light);
  border-left: 4px solid var(--hp-accent);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--hp-radius) var(--hp-radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
}

/* === CTA SECTION === */
.hp-cta-section {
  background: linear-gradient(135deg, var(--hp-dark) 0%, var(--hp-primary) 100%);
  padding: 5rem 0;
  text-align: center;
}

.hp-cta-section h2 {
  color: var(--hp-white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hp-cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* === SIMULATEUR ROI === */
.hp-simulator-wrap {
  background: var(--hp-white);
  border-radius: 16px;
  box-shadow: var(--hp-shadow);
  padding: 2.5rem;
  margin: 2rem 0;
}

.hp-simulator-wrap label {
  font-weight: 600;
  color: var(--hp-text);
  display: block;
  margin-bottom: 0.4rem;
}

.hp-simulator-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--hp-primary);
}

.hp-simulator-result {
  background: var(--hp-primary);
  color: var(--hp-white);
  border-radius: var(--hp-radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.hp-simulator-result .result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--hp-accent);
}

/* === BADGES / LABELS === */
.hp-badge {
  display: inline-block;
  background: var(--hp-accent);
  color: var(--hp-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.hp-badge.blue {
  background: var(--hp-primary);
  color: var(--hp-white);
}

/* === FOOTER === */
.et_pb_footer_container,
#main-footer {
  background: var(--hp-dark) !important;
  color: rgba(255,255,255,0.75) !important;
}

#main-footer a {
  color: rgba(255,255,255,0.75) !important;
  transition: color 0.2s;
}

#main-footer a:hover {
  color: var(--hp-accent) !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hp-parcours-grid,
  .hp-signals-grid {
    grid-template-columns: 1fr;
  }

  .hp-offres-grid {
    grid-template-columns: 1fr;
  }

  .hp-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hp-parcours-card,
  .hp-offre-card,
  .hp-simulator-wrap {
    padding: 1.5rem;
  }
}

/* =============================================
   LOGO — Réduction de taille
   ============================================= */

/* Logo — taille optimisée (ratio 1950:270 = 7.22:1) */
#main-header .et_pb_image_wrap img,
#main-header .et-pb-header-logo img,
#main-header .et_header_style_left .et-fixed-header #logo,
#et-main-nav .logo_container img,
.et_pb_header_logo img,
header#main-header img[src*="logo"],
.logo_container img,
#logo {
  max-height: 32px !important;    /* ~420px / 7.22 */
  max-width: 236px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* Conteneur du logo */
#main-header .et_pb_header_logo,
.logo_container,
#main-header .et-pb-header-logo {
  max-width: 248px !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
}

/* Réduction sur mobile */
@media (max-width: 980px) {
  #main-header img[src*="logo"],
  .logo_container img,
  #logo {
    max-height: 25px !important;
    max-width: 180px !important;
  }
}


/* =============================================
   Masquer la sidebar sur les pages HP custom
   ============================================= */
.hp-custom-page #sidebar {
  display: none !important;
}

.hp-custom-page #main-content .container {
  padding-right: 0 !important;
}

.hp-custom-page #left-area {
  width: 100% !important;
  float: none !important;
  padding-right: 0 !important;
}
