/* ============================================
   POURQUOI.CSS - PAGE POURQUOI CHOISIR LA BUON'COM
   Design varié avec carreaux, têtes, stickers
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.pourquoi-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--vert-persil) 0%, #1a4a24 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 5%;
}

.pourquoi-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/motifs/tete.png');
    background-size: 200px;
    opacity: 0.08;
    animation: patternSlide 60s linear infinite;
}

@keyframes patternSlide {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(100px) translateY(100px); }
}

.hero-pourquoi-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-pourquoi-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--creme-fouettee);
}

.hero-pourquoi-content .intro-text {
    font-size: 1.3rem;
    line-height: 1.9;
    color: rgba(255, 241, 220, 0.95);
    margin-bottom: 1rem;
}

.hero-pourquoi-content .highlight-promise {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--jaune-oeuf);
    font-family: 'Montserrat', sans-serif;
    margin-top: 2rem;
}

/* Stickers hero */
.hero-sticker-pourquoi {
    position: absolute;
    pointer-events: none;
    z-index: 3;
}

.hero-sticker-1 {
    width: 90px;
    top: 10%;
    left: 5%;
    animation: float-gentle 5s ease-in-out infinite;
}

.hero-sticker-2 {
    width: 70px;
    top: 15%;
    right: 8%;
    animation: float-gentle 6s ease-in-out infinite 1s;
}

.hero-sticker-3 {
    width: 60px;
    bottom: 20%;
    left: 10%;
    animation: float-gentle 7s ease-in-out infinite 2s;
}

/* ============================================
   PATTERN DIVIDERS
   ============================================ */
.pattern-divider-pourquoi {
    height: 80px;
    background-image: url('/assets/motifs/carreauxverts.png');
    background-size: 300px;
    background-repeat: repeat;
}

.pattern-divider-pourquoi.pattern-red {
    background-image: url('/assets/motifs/carreauxrouges.png');
}

/* ============================================
   CARD MAGNETS - Stickers style magnets
   ============================================ */
.card-magnet {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 10;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
}

.card-magnet img {
    width: 100%;
    height: auto;
}

.magnet-top-right {
    top: -20px;
    right: -18px;
    transform: rotate(12deg);
}

.magnet-top-left {
    top: -20px;
    left: -18px;
    transform: rotate(-12deg);
}

.magnet-corner-left {
    top: -25px;
    left: -25px;
    width: 70px;
    height: 70px;
    transform: rotate(-15deg);
}

.magnet-corner-right {
    top: -25px;
    right: -25px;
    width: 60px;
    height: 60px;
    transform: rotate(15deg);
}

/* Hover effect on magnets */
.presta-card-large:hover .card-magnet,
.prix-ticket:hover .card-magnet,
.expertise-card:hover .card-magnet,
.location-card:hover .card-magnet,
.conclusion-card:hover .card-magnet {
    transform: rotate(0deg) scale(1.15);
}

/* ============================================
   SECTION SIMPLICITÉ - Fond carreaux verts
   ============================================ */
.simplicity-section {
    padding: 7rem 5%;
    position: relative;
    overflow: hidden;
    background: var(--vert-persil);
}

.simplicity-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/motifs/Carreaux verts.png');
    background-size: 400px;
    opacity: 0.15;
}

.simplicity-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.simplicity-container h2 {
    color: var(--creme-fouettee);
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.simplicity-container p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: rgba(255, 241, 220, 0.9);
    margin-bottom: 1.5rem;
}

.simplicity-highlight {
    background: rgba(255, 241, 220, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    border: 2px solid rgba(255, 241, 220, 0.2);
}

.simplicity-highlight strong {
    color: var(--jaune-oeuf);
}

/* ============================================
   PRESTATIONS CARTE - Grille asymétrique
   ============================================ */
.carte-prestations-section {
    padding: 7rem 5%;
    background: var(--creme-fouettee);
    position: relative;
}

.carte-prestations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/motifs/tete.png');
    background-size: 350px;
    opacity: 0.04;
}

.carte-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.carte-header h2 {
    font-size: 2.8rem;
    color: var(--rouge-tomate);
    margin-bottom: 1.5rem;
}

.carte-header p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Grille asymétrique avec cartes */
.prestations-asymmetric {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    position: relative;
    z-index: 2;
    margin-bottom: 70px;
}

.presta-card-large {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: visible;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.presta-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--vert-persil), var(--jaune-oeuf));
}

.presta-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.presta-card-large h3 {
    font-size: 1.8rem;
    color: var(--vert-persil);
    margin-bottom: 1rem;
}

.presta-card-large p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--noir-olive);
}

.prestations-cta-center {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

/* ============================================
   JUSTE PRIX - Design ticket
   ============================================ */
.juste-prix-section {
    padding: 7rem 5%;
    background: var(--jaune-oeuf);
    position: relative;
}

.juste-prix-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.prix-visual {
    position: relative;
}

.prix-ticket {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transform: rotate(-3deg);
    transition: transform 0.4s ease;
    position: relative;
    overflow: visible;
}

.prix-ticket:hover {
    transform: rotate(0deg) scale(1.05);
}

.prix-ticket::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--vert-persil) 0px,
        var(--vert-persil) 10px,
        transparent 10px,
        transparent 20px
    );
}

.prix-ticket-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed var(--rouge-tomate);
    margin-bottom: 1.5rem;
}

.prix-ticket-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rouge-tomate);
}

.prix-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prix-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.prix-item:last-child {
    border-bottom: none;
}

.prix-item-name {
    font-weight: 600;
}

.prix-item-check {
    color: var(--vert-persil);
    font-weight: bold;
}

.prix-content h2 {
    font-size: 2.5rem;
    color: var(--noir-olive);
    margin-bottom: 1.5rem;
}

.prix-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

/* ============================================
   PÉDAGOGIE - Fond carreaux rouges
   ============================================ */
.pedagogie-section {
    padding: 7rem 5%;
    background: var(--noir-olive);
    position: relative;
    overflow: hidden;
}

.pedagogie-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/motifs/Carreaux rouges.png');
    background-size: 350px;
    opacity: 0.1;
}

.pedagogie-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.pedagogie-container h2 {
    font-size: 2.8rem;
    color: var(--creme-fouettee);
    margin-bottom: 2rem;
}

.pedagogie-container p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: rgba(255, 241, 220, 0.9);
    margin-bottom: 1.5rem;
}

.pedagogie-cta-box {
    background: rgba(255, 200, 87, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--jaune-oeuf);
    margin-top: 3rem;
}

.pedagogie-cta-box p {
    color: var(--jaune-oeuf);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ============================================
   EXPERTISE - Carte avec image de fond
   ============================================ */
.expertise-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 7rem 5%;
    position: relative;
    overflow: hidden;
}

.expertise-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.expertise-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 93, 46, 0.9) 0%, rgba(34, 93, 46, 0.85) 100%);
    z-index: 1;
}

.expertise-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.expertise-card {
    background: rgba(255, 241, 220, 0.95);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: visible;
}

.expertise-card h2 {
    font-size: 2.5rem;
    color: var(--vert-persil);
    margin-bottom: 1.5rem;
}

.expertise-card p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.expertise-highlight {
    background: var(--jaune-oeuf);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    font-weight: 700;
}

/* ============================================
   LOCAL - Badges avec pattern
   ============================================ */
.local-pourquoi-section {
    padding: 7rem 5%;
    background: var(--creme-fouettee);
    position: relative;
}

.local-pourquoi-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/motifs/tete.png');
    background-size: 300px;
    opacity: 0.03;
}

.local-pourquoi-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.local-text-content h2 {
    font-size: 2.5rem;
    color: var(--rouge-tomate);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.local-text-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.local-badges-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 5px solid var(--vert-persil);
    position: relative;
    overflow: visible;
}

.location-card:nth-child(2) {
    border-left-color: var(--rouge-tomate);
}

.location-card:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.location-icon {
    width: 60px;
    height: 60px;
    background: var(--vert-persil);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.location-card:nth-child(2) .location-icon {
    background: var(--rouge-tomate);
}

.location-info strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--noir-olive);
}

.location-info span {
    font-size: 0.95rem;
    color: #666;
}

/* ============================================
   CONCLUSION - CTA Final
   ============================================ */
.conclusion-section {
    padding: 8rem 5%;
    background: linear-gradient(135deg, var(--jaune-oeuf) 0%, #e6a800 100%);
    position: relative;
    overflow: hidden;
}

.conclusion-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/motifs/tete.png');
    background-size: 250px;
    opacity: 0.08;
}

.conclusion-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.conclusion-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
    overflow: visible;
}

.conclusion-card h2 {
    font-size: 2.8rem;
    color: var(--noir-olive);
    margin-bottom: 2rem;
}

.conclusion-card p {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--noir-olive);
    margin-bottom: 2.5rem;
}

.conclusion-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .pourquoi-hero h1 {
        font-size: 2.8rem;
    }

    .prestations-asymmetric,
    .juste-prix-container,
    .local-pourquoi-container {
        grid-template-columns: 1fr;
    }

    .prix-ticket {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .pourquoi-hero h1 {
        font-size: 2.2rem;
    }

    /* Cacher seulement les stickers du hero, garder les magnets sur les cards */
    .hero-sticker-pourquoi {
        display: none;
    }

    /* Réduire taille des magnets sur mobile */
    .card-magnet {
        width: 40px;
        height: 40px;
    }

    .magnet-top-right {
        top: -15px;
        right: -12px;
    }

    .magnet-top-left {
        top: -15px;
        left: -12px;
    }

    .magnet-corner-left {
        top: -18px;
        left: -18px;
        width: 55px;
        height: 55px;
    }

    .magnet-corner-right {
        top: -18px;
        right: -18px;
        width: 50px;
        height: 50px;
    }

    /* Conclusion: titre sort de la card sur mobile */
    .conclusion-card {
        padding: 2.5rem 1.5rem;
        overflow: visible;
    }

    .conclusion-card h2 {
        font-size: 1.8rem;
        position: relative;
        margin: -4rem 0 2rem 0;
        padding: 1rem;
        background: var(--jaune-oeuf);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .conclusion-card p {
        font-size: 1.1rem;
    }

    .conclusion-ctas {
        flex-direction: column;
    }

    .pattern-divider-pourquoi {
        height: 60px;
        background-size: 200px;
    }
}