/* ==========================================================================
   PHILO PARTNERS - FEUILLE DE STYLE GLOBALE
   Cette feuille gère le design de TOUTES les pages du site.
   ========================================================================== */

/* 1. CONFIGURATION DE BASE
   ========================================================================== */
   html {
    scroll-behavior: smooth;
}

:root{
  --pp-teal:#2fc4b6;
  --pp-tealDark:#259d92;
  --pp-dark:#0f172a;
  --pp-text:#1f2937;
  --pp-textSoft:#64748b;
  --pp-muted:#e2e8f0;
  --pp-soft:#f8fafc;
}

body {
    /* La police est définie via Tailwind, mais on assure le fallback ici */
    font-family: 'Roboto', sans-serif;
    background-color: #f8fafc; /* pp-soft */
    color: #1f2937; /* pp-text */
}

/* 2. CLASSES SPÉCIFIQUES (Non gérées par Tailwind)
   ========================================================================== */

/* Fond avec image + Overlay sombre (Utilisé sur Header et Footer/Ressources) */
.philo-bg-image {
    position: relative;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.63), rgba(0, 0, 0, 0.63)), url('https://philopartners.fr/wp-content/uploads/2025/09/2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ajustement du Hero pour le chevauchement */
.hero-philo-wrapper {
    padding-bottom: 80px; 
}

.hero-philo {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 20px 40px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 40px;
    align-items: center;
}

/* Typographie Hero */
.hero-philo-text {
    position: relative;
    z-index: 1;
}

.hero-philo-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.hero-philo-text h1 {
    font-family: "Roboto Slab", "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(2.1rem, 3vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0;
}

.hero-philo-text p {
    margin-top: 18px;
    max-width: 560px;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #e5e7eb;
}

.hero-philo-highlight {
    color: #2fc4b6;
    font-weight: 500;
}

/* Boutons */
.hero-philo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.hero-btn-primary {
    background-color: #2fc4b6;
    color: #0b1320;
}

.hero-btn-primary:hover {
    background-color: #259d92;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(47, 196, 182, 0.4);
}

.hero-btn-secondary {
    border-color: #374151;
    color: #e5e7eb;
    background: transparent;
}

.hero-btn-secondary:hover {
    border-color: #2fc4b6;
    color: #2fc4b6;
    background: rgba(47, 196, 182, 0.1);
}

/* Meta Data (Crédibilité sous le header) */
.hero-philo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.hero-philo-meta span::before {
    content: "•";
    margin-right: 6px;
    color: #2fc4b6;
}

/* 3. COMPOSANTS COMPLEXES (Cartes Diagnostics, etc.)
   ========================================================================== */

/* Carte principale (Droite du Header) */
.hero-philo-card {
    position: relative;
    background: linear-gradient(135deg, #2a4856 0%, #1e3a47 100%);
    color: #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.hero-philo-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #2fc4b6;
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.hero-philo-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.hero-philo-card p {
    font-size: 0.85rem;
    margin: 0 0 16px 0;
    color: #cbd5e1;
    line-height: 1.5;
}

.hero-philo-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.hero-philo-card-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

.hero-philo-card .hero-btn-primary {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
}

/* Mini Cartes Flottantes */
.hero-mini-cards {
    position: relative;
    margin-top: 16px;
    height: 200px;
}

.hero-mini-card {
    position: absolute;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 14px;
    width: 210px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    font-size: 0.78rem;
    color: #334155;
    transition: transform 0.3s ease;
}

.hero-mini-card h4 {
    margin: 0 0 2px 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2a4856;
}

.hero-mini-card span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
}

.hero-mini-card p {
    margin: 6px 0 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

/* Positions Desktop */
.hero-mini-card.card-a {
    top: 0; left: 0;
    transform: rotate(-2deg);
    border-top: 3px solid #4f46e5;
}
.hero-mini-card.card-b {
    top: 36px; right: 0;
    transform: rotate(2deg);
    border-top: 3px solid #059669;
}
.hero-mini-card.card-c {
    bottom: 0; left: 40px;
    transform: rotate(-1deg);
    border-top: 3px solid #2a4856;
}

/* 4. RESPONSIVE (Tablettes & Mobiles)
   ========================================================================== */
@media (max-width: 960px) {
    .hero-philo {
        grid-template-columns: 1fr;
        padding-top: 40px;
        padding-bottom: 40px;
        gap: 40px;
    }

    .hero-philo-text {
        text-align: center;
    }
    
    .hero-philo-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-philo-actions, .hero-philo-meta {
        justify-content: center;
    }

    .hero-philo-card {
        margin: 0 10px;
    }

    .hero-mini-cards {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .hero-mini-card {
        position: static;
        width: 100%;
        transform: none !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
}

/* ==========================================================================
   HOME — WEBINAIRES / CTA
   ========================================================================== */

.webinar-section-home{
  background-color:#2a4856;
  padding:60px 40px;
  border-radius:24px;
  margin-top:40px;
}

.webinar-section-home h2{ color:var(--pp-teal); }
.webinar-section-home h3{ color:#f9fafb; }
.webinar-section-home p{ color:#e5e7eb; }

.webinar-card-home{
  background:#fff;
  border:1px solid var(--pp-muted);
  border-radius:12px;
  padding:20px;
  display:flex;
  align-items:center;
  gap:16px;
  box-shadow:0 4px 8px rgba(0,0,0,0.03);
  text-decoration:none;
  color:var(--pp-text);
  transition:all .2s ease;
}

.webinar-card-home:hover{
  border-color:var(--pp-teal);
  box-shadow:0 8px 16px rgba(0,0,0,0.10);
  transform:translateY(-2px);
}

.webinar-card-home strong{
  font-family:'Roboto Slab', serif;
  color:var(--pp-dark);
}

.webinar-card-home span.date{
  color:var(--pp-teal);
  font-weight:700;
  flex-shrink:0;
  width:80px;
}

.webinar-cta-home{
  background:var(--pp-dark);
  color:#fff;
  padding:12px 24px;
  border-radius:8px;
  font-weight:700;
  text-decoration:none;
  transition:background .2s ease, color .2s ease;
  display:inline-block;
}

.webinar-cta-home:hover{
  background:var(--pp-teal);
  color:#0b1320;
}

.audience-cta-box{
  background:rgba(15,23,42,0.90);
  border:1px solid rgba(148,163,184,0.50);
  padding:20px;
  border-radius:12px;
  text-align:center;
  margin-top:24px;
  color:#e5e7eb;
}

/* Prochain webinaire */
.next-webinar-section-card{
  background:#fff;
  border-radius:24px;
  border:1px solid var(--pp-muted);
  box-shadow:0 18px 45px rgba(15,23,42,0.12);
  padding:32px 24px;
}

@media (min-width:768px){
  .next-webinar-section-card{ padding:40px 36px; }
}
