:root {
    /* Charte Graphique Exacte */
    --clr-primary: #4C0839;       /* Violet profond */
    --clr-secondary: #FF5DA1;     /* Rose Bonbon */
    --clr-tertiary: #EB8582;      /* Fushia */
    --clr-accent: #588934;        /* Vert */
    --clr-bg: #FFF6E4;            /* Crème (Fond global) */
    --clr-light: #FDCCD0;         /* Rose Pastel */
    
    /* Typographies */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* UI / Layout Constants */
    --radius-md: 16px;
    --radius-lg: 30px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body { font-family: var(--font-body); background-color: var(--clr-bg); color: #333; line-height: 1.6; overflow-x: hidden; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--clr-primary); line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border-radius: var(--radius-md); }
ul { list-style: none; }

/* Structural Utility Classes */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; position: relative; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 3rem; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* Text Utilities */
.text-rose { color: var(--clr-tertiary); }
.text-violet { color: var(--clr-primary); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 2rem; font-family: var(--font-heading); font-weight: 700;
    font-size: 0.95rem; border-radius: 50px; cursor: pointer; border: 2px solid transparent; transition: all 0.3s ease;
}
.btn-primary { background-color: var(--clr-primary); color: white; }
.btn-primary:hover { background-color: #330526; color: white; }
.btn-outline { background-color: transparent; color: var(--clr-primary); border-color: var(--clr-primary); }
.btn-outline:hover { background-color: var(--clr-primary); color: white; }

/* Header */
header { background: rgba(255, 246, 228, 0.9); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; transition: all 0.3s; }
.navbar { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.nav-brand { display: flex; align-items: center; gap: 0.1rem; color: #333; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; line-height: 1.1; flex-shrink: 0; }
.header-logo-wrapper { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--clr-bg);
    border: none;
    flex-shrink: 0;
}

.header-logo-wrapper:hover { transform: none; box-shadow: none; }

.header-logo { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    mix-blend-mode: multiply;
}
.menu-btn { display: none; font-size: 1.8rem; cursor: pointer; color: var(--clr-primary); user-select: none; }
.nav-links { display: flex; gap: 0.6rem; align-items: center; white-space: nowrap; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: #555; }
.nav-links a:hover { color: var(--clr-primary); text-decoration: underline; }
header .container { max-width: 1350px; padding: 0 1rem; }

/* Hero Section */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 4rem 2rem; max-width: 1300px; margin: 0 auto; background: var(--clr-light); border-radius: 0 0 50px 50px; }
.surtitle { display: block; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: #333; margin-bottom: 1rem; }
.hero h1 { font-family: var(--font-heading); font-weight: 400; font-size: 4rem; }
.hero-subtitle { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--clr-primary); margin-top: 1rem; }
.hero-desc { margin-top: 1.5rem; font-size: 1rem; color: #444; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.5rem; }

/* Construct/Deconstruct HORIZONTAL Torn Paper */
.torn-wrapper { position: relative; width: 100%; max-width: 550px; margin: 2rem auto; aspect-ratio: 1/1; overflow: visible; background: transparent; }
.torn-slice {
    position: absolute; left: 0; right: 0; width: 100%; height: 100%;
    background-image: url('../images/Photo 1 - Portrait femmes multiples.webp');
    background-size: cover; background-position: center;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
    animation: flapTear 8s infinite alternate cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.slice-1 { clip-path: polygon(0 0, 100% 0, 100% 21%, 0 18%); --trans-y: -20px; --rot: -2deg; animation-delay: 0s; }
.slice-2 { clip-path: polygon(0 18%, 100% 21%, 100% 41%, 0 38%); --trans-y: -10px; --rot: 1deg; animation-delay: 0.1s; border-top: 1px solid rgba(255,255,255,0.3); }
.slice-3 { clip-path: polygon(0 38%, 100% 41%, 100% 61%, 0 63%); --trans-y: 0px; --rot: -1deg; animation-delay: 0.2s; border-top: 1px solid rgba(255,255,255,0.3); }
.slice-4 { clip-path: polygon(0 63%, 100% 61%, 100% 81%, 0 78%); --trans-y: 10px; --rot: 2deg; animation-delay: 0.3s; border-top: 1px solid rgba(255,255,255,0.3); }
.slice-5 { clip-path: polygon(0 78%, 100% 81%, 100% 100%, 0 100%); --trans-y: 20px; --rot: -2deg; animation-delay: 0.4s; border-top: 1px solid rgba(255,255,255,0.3); }

@keyframes flapTear {
    0%, 20% { transform: translateY(0) rotate(0); filter: brightness(1); }
    45%, 55% { transform: translateY(var(--trans-y)) rotate(var(--rot)); filter: brightness(1.1); }
    80%, 100% { transform: translateY(0) rotate(0); filter: brightness(1); }
}

/* Fondatrice Section */
.fondatrice-section { background: var(--clr-bg); display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.fondatrice-img-container { position: relative; }
.fondatrice-img-container img { border-radius: 50%; width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 8px solid white; box-shadow: var(--shadow-sm); }
.fondatrice-box { background: #b67499; border-radius: 40px; padding: 3rem; position: relative; color: white; }
.date-card { position: absolute; bottom: 10%; right: -20px; background: var(--clr-primary); color: white; padding: 1rem; border-radius: 8px; text-align: center; }
.date-card h4 { color: white; margin: 0; font-size: 1.5rem; }
.date-card span { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; }

.fondatrice-content h2 { font-size: 3rem; margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tag { background: var(--clr-primary); color: white; padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.quote { font-style: italic; font-size: 1.1rem; border-left: 3px solid var(--clr-primary); padding-left: 1rem; color: var(--clr-primary); margin-bottom: 1.5rem; font-weight: 500; }

/* Missions */
.missions-section { background: white; text-align: center; }
.missions-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; border-top: 1px solid #eee; }
.mission-card { padding: 3rem; border-right: 1px solid #eee; border-bottom: 1px solid #eee; text-align: left; }
.mission-card:nth-child(3), .mission-card:nth-child(5) { border-right: none; }
.mission-icon { width: 40px; height: 40px; border-radius: 50%; margin-bottom: 1.5rem; }

.mission-card h3 { font-size: 1.2rem; color: var(--clr-primary); margin-bottom: 1rem; }
.mission-card p { font-size: 0.9rem; color: #555; }
.missions-stats { background: var(--clr-primary); color: white; display: grid; grid-template-columns: repeat(4, 1fr); padding: 3rem 0; text-align: center; margin-top: 2rem; }
.stat-item { border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-item h3 { color: white; font-size: 2.5rem; margin: 0; }
.stat-item p { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* Timeline / Histoire */
.timeline-section { background: var(--clr-bg); padding: 6rem 0; text-align: center; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; text-align: left; }
.timeline::after { content: ''; position: absolute; width: 2px; background-color: var(--clr-light); top: 0; bottom: 0; left: 50%; margin-left: -1px; }

.timeline-item { padding: 10px 40px; position: relative; width: 50%; box-sizing: border-box; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-circle { position: absolute; width: 16px; height: 16px; right: -8px; background-color: var(--clr-bg); border: 4px solid var(--clr-tertiary); top: 15px; border-radius: 50%; z-index: 1; }
.timeline-item.right .timeline-circle { left: -8px; }

.timeline-date { color: var(--clr-tertiary); font-weight: 700; font-size: 0.8rem; margin-bottom: 0.5rem; font-family: var(--font-heading); text-transform: uppercase; }
.timeline-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--clr-primary); font-weight: 600; margin-bottom: 0.5rem; }
.timeline-content p { font-size: 0.85rem; color: #666; }

/* Equipe & Standard Text Sections */
.equipe-section { background: white; }
.standard-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); width: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Formations (Modules & Info Box) */
.info-box { background: var(--clr-light); padding: 1.5rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; }
.info-box ul { list-style: none; margin: 0; padding: 0; }
.info-box li { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; font-size: 0.9rem; color: var(--clr-primary); font-weight: 500; }
.info-box li:last-child { margin-bottom: 0; }
.module-item { background: var(--clr-light); padding: 1.2rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 1.5rem; transition: transform 0.2s ease; }
.module-item:hover { transform: translateX(5px); }
.module-num { background: var(--clr-primary); color: white; width: 35px; height: 35px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; flex-shrink: 0; }
.module-content { flex-grow: 1; }
.module-title { color: var(--clr-primary); font-family: var(--font-heading); font-weight: 700; margin-bottom: 0.2rem; }
.module-desc { font-size: 0.8rem; color: #555; }
.module-trainer { font-size: 0.8rem; color: var(--clr-secondary); font-weight: 600; text-align: right; }

/* Testimonials Grid */
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.testimonial-card { background: white; padding: 2.5rem 2rem 2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); position: relative; }
.testimonial-card::before { content: ""; position: absolute; top: 10px; left: 15px; font-size: 4rem; color: var(--clr-light); font-family: serif; line-height: 1; opacity: 0.8; }
.testimonial-text { font-size: 0.95rem; color: #333; margin-bottom: 1.5rem; position: relative; z-index: 1; font-weight: 500; font-style: italic; }
.testimonial-tag { display: inline-block; background: var(--clr-light); color: var(--clr-primary); padding: 0.4rem 1.2rem; border-radius: 50px; font-weight: 600; font-size: 0.85rem; }

/* Events Grid */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.event-card { background: white; padding: 2rem; border-radius: var(--radius-lg); border: 1px solid #eee; text-align: left; }
.event-date { display: inline-block; background: var(--clr-light); color: var(--clr-primary); padding: 0.4rem 1rem; border-radius: 50px; font-weight: 700; font-size: 0.85rem; margin-bottom: 1rem; }

/* Back to Top Button */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; background: var(--clr-primary); color: white; width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(76, 8, 57, 0.2); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; z-index: 99; font-size: 1.2rem; font-weight: bold; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-5px); background: #330526; color: white; }

/* Footer */
footer { background: white; padding: 4rem 0 2rem; border-top: 1px solid #eee; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-info p { margin-bottom: 0.5rem; color: #555; }
.footer-info strong { color: var(--clr-primary); }
.footer-bottom { text-align: center; font-size: 0.9rem; color: #888; border-top: 1px solid #eee; padding-top: 2rem; }

/* Diaporama / Carousel */
.galerie-section { background: var(--clr-bg); padding: 4rem 0; overflow: hidden; }
.carousel-container { position: relative; max-width: 1000px; margin: 0 auto; padding: 0 40px; }
.carousel-track-wrapper { overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; list-style: none; margin: 0; padding: 0; }
.carousel-slide { min-width: 100%; box-sizing: border-box; }
.carousel-slide img { width: 100%; height: 450px; object-fit: cover; display: block; border-radius: var(--radius-lg); }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: var(--clr-primary); color: white; border: none;
    width: 45px; height: 45px; border-radius: 50%; font-size: 1.5rem;
    cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: background 0.3s ease, transform 0.2s ease;
}
.carousel-btn:hover { background: #330526; transform: translateY(-50%) scale(1.1); }
.prev-btn { left: -5px; }
.next-btn { right: -5px; }

@media (max-width: 1150px) {
    body { font-size: 15px; }
    h1, .hero h1 { font-size: 2.2rem !important; }
    h2, .fondatrice-content h2, .missions-header h2, .timeline-header h2 { font-size: 1.8rem !important; }
    .container { padding: 0 1rem; }
    .header-logo-wrapper { width: 55px; height: 55px; }
    .nav-brand { font-size: 1rem; }
    .menu-btn { display: block; margin-right: 0.5rem; }
    .nav-links { 
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; width: 100vw; background-color: var(--clr-bg); padding: 1.5rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); gap: 1rem; align-items: stretch;
        border-top: 1px solid #ddd; z-index: 1000; box-sizing: border-box;
    }
    .nav-links a { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links.active { display: flex; }
    .hero { grid-template-columns: 1fr; padding: 2rem 1rem; gap: 2rem; border-radius: 0 0 30px 30px; }
    .hero-actions { flex-direction: column; }
    .split-layout { grid-template-columns: 1fr; gap: 2rem; }
    .fondatrice-section { grid-template-columns: 1fr; padding: 2rem 1rem; gap: 2rem; }
    .fondatrice-box { padding: 1.5rem; border-radius: 20px; }
    .module-item { flex-direction: column; align-items: flex-start; gap: 0.8rem; padding: 1rem; }
    .module-trainer { text-align: left; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 2rem 1.5rem 1.5rem; }
    .missions-grid { grid-template-columns: 1fr; }
    .mission-card { padding: 2rem 1rem; border-right: none; }
    .missions-stats { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 2rem 1rem; }
    .stat-item { border-right: none; }
    .timeline::after { left: 26px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 15px; }
    .timeline-item.left, .timeline-item.right { left: 0; text-align: left; }
    .timeline-item.left .timeline-circle, .timeline-item.right .timeline-circle { left: 18px; right: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    #adhesion { padding: 2rem 1rem; }
    .carousel-slide img { height: 350px; }
}

@media (max-width: 480px) {
    .missions-stats { grid-template-columns: 1fr; gap: 2rem; }
    .carousel-slide img { height: 250px; }
}

/* Scroll Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.social-icons a {
  font-size: 32px; /* Augmente la valeur (ex: 24px, 32px, 40px) */
  color: #2E8B57;
  transition: color 0.3s ease;
}
.social-icons svg {
  fill: #FF5733; /* Couleur de remplissage */
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 15px 0;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #f8f8f8; /* Fond clair */
  border-radius: 50%; /* Forme circulaire */
  color: #2E8B57; /* Couleur des icônes */
  font-size: 40px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #2E8B57; /* Fond vert au survol */
  color: white; /* Icône blanche */
  transform: translateY(-3px); /* Effet de "lévitation" */
}