/* ============================================
   METHODE.CSS - PAGE NOTRE MÉTHODE
   Communication pas à pas
   ============================================ */

/* ============================================
   ANIMATIONS GÉNÉRALES
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating stickers */
.floating-sticker {
    position: absolute;
    animation: float-gentle 4s ease-in-out infinite;
}

.sticker-1 {
    width: 80px;
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.sticker-2 {
    width: 120px;
    bottom: 15%;
    left: 8%;
    animation-delay: 1.5s;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* ============================================
   BLOC 1: HERO SECTION
   ============================================ */
.methode-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        160deg,
        var(--creme-fouettee) 0%,
        #FFF5E6 60%,
        var(--jaune-oeuf) 100%
    );
    position: relative;
    overflow: hidden;
    padding: 6rem 5%;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content-methode {
    max-width: 850px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.methode-hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--noir-olive);
}

.hero-subtitle-h2 {
    font-size: 1.5rem;
    color: var(--vert-persil);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--noir-olive);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.hero-highlight {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vert-persil);
    margin-top: 1.5rem;
    background: rgba(38, 104, 54, 0.1);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: inline-block;
}

/* ============================================
   TIMELINE OVERVIEW
   ============================================ */
.timeline-overview {
    background: var(--vert-persil);
    padding: 3rem 5%;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--jaune-oeuf);
    color: var(--noir-olive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.step-label {
    color: var(--creme-fouettee);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-connector {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--jaune-oeuf) 0%, rgba(255, 200, 87, 0.3) 100%);
    border-radius: 2px;
}

/* ============================================
   PATTERN DIVIDER
   ============================================ */
.pattern-divider-methode {
    height: 80px;
    background-image: url('/assets/motifs/carreauxverts.png');
    background-size: 300px;
    background-repeat: repeat;
}

.pattern-divider-methode.pattern-red {
    background-image: url('/assets/motifs/carreauxrouges.png');
}

/* ============================================
   SECTIONS ÉTAPES
   ============================================ */
.etape-section {
    padding: 5rem 5%;
}

.etape-1, .etape-3, .etape-5 {
    background: var(--creme-fouettee);
}

.etape-2 {
    background: linear-gradient(135deg, var(--jaune-oeuf) 0%, #FFE4A0 100%);
}

.etape-4 {
    background: linear-gradient(135deg, var(--rose-bonbon) 0%, #E89BB8 100%);
}

.etape-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.etape-container.reverse {
    grid-template-columns: 1fr 1.5fr;
}

.etape-container.reverse .etape-visual {
    order: -1;
}

/* Badges étapes */
.etape-badge {
    display: inline-block;
    background: var(--vert-persil);
    color: var(--creme-fouettee);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.badge-jaune {
    background: var(--noir-olive);
}

.badge-rouge {
    background: var(--rouge-tomate);
}

.badge-rose {
    background: white;
    color: var(--rose-bonbon);
}

/* Contenu étapes */
.etape-content h2 {
    font-size: 2.2rem;
    color: var(--noir-olive);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.etape-2 .etape-content h2,
.etape-4 .etape-content h2 {
    color: var(--noir-olive);
}

.etape-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--noir-olive);
}

.etape-4 .etape-content p {
    color: white;
}

.etape-content strong {
    color: var(--vert-persil);
}

.etape-2 .etape-content strong {
    color: var(--noir-olive);
}

.etape-4 .etape-content strong {
    color: var(--jaune-oeuf);
}

.etape-content a {
    color: var(--vert-persil);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.etape-content a:hover {
    color: var(--rouge-tomate);
}

.etape-highlight {
    background: var(--vert-persil);
    color: var(--creme-fouettee) !important;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-top: 1rem !important;
    font-weight: 600;
}

.etape-highlight-rouge {
    background: var(--rouge-tomate);
}

.etape-highlight-rose {
    background: white;
    color: var(--rose-bonbon) !important;
}

/* Liste évolution */
.evolution-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.evolution-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--noir-olive);
}

.evolution-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--vert-persil);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   CARTES ICÔNES AVEC MAGNETS
   ============================================ */
.etape-visual {
    display: flex;
    justify-content: center;
}

.etape-icon-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    margin: 30px;
}

.etape-2 .etape-icon-card {
    background: white;
}

.etape-4 .etape-icon-card {
    background: white;
}

/* Magnets sur les cartes */
.card-magnet {
    position: absolute;
    width: 55px;
    height: 55px;
    z-index: 10;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.card-magnet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.magnet-top-left {
    top: -22px;
    left: -18px;
    transform: rotate(-12deg);
}

.magnet-top-right {
    top: -22px;
    right: -18px;
    transform: rotate(12deg);
}

.magnet-top-center {
    top: -28px;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
}

.etape-icon-card:hover .card-magnet {
    transform: scale(1.15) rotate(-5deg);
}

.etape-icon-card:hover .magnet-top-center {
    transform: translateX(-50%) scale(1.15) rotate(-5deg);
}

/* Cercles icônes */
.icon-circle {
    width: 100px;
    height: 100px;
    background: var(--vert-persil);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.icon-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    color: white;
}

.icon-jaune {
    background: var(--jaune-oeuf);
}

.icon-rouge {
    background: var(--rouge-tomate);
    color: white;
}

.icon-rose {
    background: var(--rose-bonbon);
}

.icon-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--noir-olive);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   BLOC 7: TRANSPARENCE
   ============================================ */
.transparence-section {
    padding: 6rem 5%;
    background: var(--noir-olive);
}

.transparence-container {
    max-width: 900px;
    margin: 0 auto;
}

.transparence-card {
    background: rgba(255, 241, 220, 0.1);
    border: 2px solid rgba(255, 241, 220, 0.15);
    padding: 4rem 3rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
}

/* Magnets coins */
.magnet-corner-left {
    position: absolute;
    width: 80px;
    height: 80px;
    top: -30px;
    left: -25px;
    transform: rotate(-15deg);
    z-index: 10;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    animation: float-gentle 5s ease-in-out infinite;
}

.magnet-corner-right {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -25px;
    right: -20px;
    transform: rotate(10deg);
    z-index: 10;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    animation: float-gentle 6s ease-in-out infinite 1s;
}

.magnet-corner-left img,
.magnet-corner-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.transparence-card h2 {
    font-size: 2.5rem;
    color: var(--creme-fouettee);
    margin-bottom: 1.5rem;
}

.transparence-intro {
    font-size: 1.2rem;
    color: rgba(255, 241, 220, 0.9);
    margin-bottom: 2.5rem;
}

.transparence-intro strong {
    color: var(--jaune-oeuf);
}

.transparence-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.transparence-point {
    background: rgba(255, 241, 220, 0.08);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 241, 220, 0.1);
    transition: all 0.3s ease;
}

.transparence-point:hover {
    transform: translateY(-5px);
    background: rgba(255, 241, 220, 0.12);
    border-color: var(--jaune-oeuf);
}

.point-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.transparence-point p {
    color: rgba(255, 241, 220, 0.9);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.transparence-conclusion {
    font-size: 1.3rem;
    color: var(--jaune-oeuf);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

/* ============================================
   BLOC 8: CTA FINAL
   ============================================ */
.cta-methode-section {
    padding: 8rem 5%;
    background: linear-gradient(135deg, var(--vert-persil) 0%, #1a4a24 100%);
    position: relative;
}

.cta-methode-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 241, 220, 0.15);
    padding: 4rem 3rem;
    border-radius: 24px;
    border: 2px solid rgba(255, 241, 220, 0.2);
}

.cta-methode-section h2 {
    font-size: 3rem;
    color: var(--creme-fouettee);
    margin-bottom: 2rem;
}

.cta-intro {
    font-size: 1.2rem;
    color: rgba(255, 241, 220, 0.95);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.cta-action {
    font-size: 1.15rem;
    color: var(--jaune-oeuf);
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .methode-hero h1 {
        font-size: 2.5rem;
    }

    .etape-container,
    .etape-container.reverse {
        grid-template-columns: 1fr;
    }

    .etape-container.reverse .etape-visual {
        order: 0;
    }

    .etape-visual {
        order: -1;
    }

    .timeline-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .timeline-connector {
        display: none;
    }

    .transparence-points {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .methode-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle-h2 {
        font-size: 1.2rem;
    }

    .etape-content h2,
    .transparence-card h2,
    .cta-methode-section h2 {
        font-size: 1.8rem;
    }

    .floating-sticker,
    .magnet-corner-left,
    .magnet-corner-right {
        display: none;
    }

    .timeline-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }

    .timeline-step {
        padding: 0.75rem 0.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .etape-icon-card {
        padding: 2rem 1.5rem;
        margin: 25px 15px;
    }

    .card-magnet {
        width: 45px;
        height: 45px;
    }

    .icon-circle {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .transparence-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-methode-container {
        padding: 3rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .timeline-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline-step:nth-child(4),
    .timeline-step:nth-child(5) {
        grid-column: span 1;
    }

    .etape-section {
        padding: 3rem 1.5rem;
    }
}

/* Préférence reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .floating-sticker,
    .animate-on-scroll {
        animation: none;
        transition: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}
