/*
Theme Name: Réseau Coeur2 Theme
Theme URI: https://www.reseaucoeur2.fr/
Author: Réseau Coeur2
Description: Thème WordPress sur mesure du site Réseau Coeur2 - Version Dynamisée.
Version: 1.1
Text Domain: reseaucoeur2-theme
*/

:root {
  --c2b-blue: #1e73be;
  --c2b-green: #43a047;
  --c2b-red: #e53935;
  --c2b-dark: #1f2937;
  --c2b-text: #334155;
  --c2b-light: #f4f7f6;
  --c2b-white: #ffffff;
  --c2b-border: #e5e7eb;
  --c2b-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  --c2b-radius: 24px; /* Arrondis plus doux */
  --c2b-max: 1200px;
}

/* =========================
   RESET & BASE
========================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--c2b-text);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

.container {
  width: min(100% - 40px, var(--c2b-max));
  margin: 0 auto;
}

h1, h2, h3 { letter-spacing: -0.03em; font-weight: 700; }

/* Couleur d'accentuation pour les titres (le <span> dans le PHP) */
h1 span, h2 span, h2 strong {
    color: var(--c2b-red);
    position: relative;
}

/* =========================
   ANIMATIONS DYNAMIQUES
========================= */

/* Effet de flottement pour les éléments visuels */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating { animation: float 5s ease-in-out infinite; }

/* Effet Pulse pour le bouton principal */
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0px rgba(30, 115, 190, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(30, 115, 190, 0); }
    100% { box-shadow: 0 0 0 0px rgba(30, 115, 190, 0); }
}

.pulse { animation: pulse-blue 2.5s infinite; }

/* =========================
   COMPOSANTS REUTILISABLES
========================= */

.eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(30, 115, 190, 0.08);
    color: var(--c2b-blue);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.btn {
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    cursor: pointer;
}

.btn:hover { transform: translateY(-3px) scale(1.02); }

.btn-primary { background: var(--c2b-blue); color: #fff; }
.btn-outline { border: 2px solid var(--c2b-blue); color: var(--c2b-blue); }
.btn-white { background: #fff; color: var(--c2b-blue); }
.btn-white-outline { border: 2px solid #fff; color: #fff; }

/* =========================
   SECTION HERO (VERSION DYNAMIQUE)
========================= */

.rc2-hero {
    position: relative;
    padding: 120px 0 160px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    overflow: visible;
}

/* Blobs de couleur en arrière-plan */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    border-radius: 50%;
}
.blob-1 { width: 300px; height: 300px; background: var(--c2b-blue); top: -50px; left: -100px; }
.blob-2 { width: 250px; height: 250px; background: var(--c2b-green); bottom: 10%; right: -50px; }

.rc2-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.rc2-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 25px;
}

.rc2-hero-text {
    font-size: 1.2rem;
    color: #556677;
    margin-bottom: 35px;
    max-width: 550px;
}

.visual-wrapper {
    position: relative;
}

.main-visual-container {
    background: #fff;
    padding: 15px;
    border-radius: 40px;
    box-shadow: var(--c2b-shadow);
    transform: rotate(2deg);
}

.floating-card {
    position: absolute;
    bottom: -30px;
    left: -40px;
    background: #fff;
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 280px;
    animation: float 6s ease-in-out infinite;
    transform: rotate(-2deg);
}

/* La vague magique */
.section-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}
.section-divider-bottom svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    fill: var(--c2b-light);
}

/* =========================
   SECTION INITIATIVES (CARTES DYNAMIQUES)
========================= */

.rc2-initiatives-section {
    padding: 100px 0;
    background: var(--c2b-light);
}

.rc2-initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card-dynamic {
    background: #fff;
    padding: 40px;
    border-radius: var(--c2b-radius);
    box-shadow: var(--c2b-shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.card-dynamic:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    border-radius: 18px;
    background: #f8fbff;
}

.card-dynamic h3 { margin-bottom: 15px; }

.btn-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    color: var(--c2b-blue);
    transition: gap 0.3s;
}
.btn-link:hover { padding-left: 5px; }

/* =========================
   SECTION INTRO & PILIERS
========================= */

.bg-light-gray { background-color: var(--c2b-light); padding-bottom: 100px; }

.modern-card {
    background: #fff;
    padding: 35px;
    border-radius: 30px;
    box-shadow: var(--c2b-shadow);
}

.check-list {
    list-style: none;
    padding: 0;
}
.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
}
.check-list span {
    color: var(--c2b-green);
    margin-right: 12px;
    font-weight: 900;
}

/* =========================
   CTA FINAL (GRADIENT)
========================= */

.rc2-final-cta-dynamic {
    padding: 120px 0;
    background: #fff;
}

.rc2-final-box-gradient {
    background: linear-gradient(135deg, var(--c2b-dark) 0%, var(--c2b-blue) 100%);
    border-radius: 40px;
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.rc2-final-box-gradient h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; color: #fff; }
.rc2-final-box-gradient p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; }

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================
   FOOTER (PROPRE)
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .rc2-hero-grid, .rc2-intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .rc2-hero-content { order: 2; }
    .rc2-hero-visual { order: 1; margin-bottom: 50px; }
    
    .rc2-hero-text { margin-left: auto; margin-right: auto; }
    .rc2-hero-actions { justify-content: center; }
    
    .floating-card {
        position: static;
        width: 100%;
        margin-top: 20px;
        transform: none;
    }
}

@media (max-width: 600px) {
    .btn { width: 100%; text-align: center; }
    .rc2-hero { padding-top: 60px; }
}

/* =========================
   CLASSES AOS (Apparition au scroll)
========================= */
[data-aos] {
  pointer-events: none;
}
.aos-animate {
  pointer-events: auto;
}