/* ═══════════════════════════════════════════════
   MODERN-MAP — HOMEPAGE.CSS
   Hero, carrousel, étapes, story, newsletter
   ═══════════════════════════════════════════════ */

/* ─── Couleurs du Carrousel ─── */
:root {
    --bg-real: linear-gradient(135deg, #FF7B6B 0%, #E65142 100%);
    --bg-flight: linear-gradient(135deg, #8EA7FF 0%, #5B7CFA 100%);
    --bg-quiz: linear-gradient(135deg, #66CC70 0%, #39B54A 100%);
    --bg-record: linear-gradient(135deg, #FFC371 0%, #F59A23 100%);
    --bg-motivation: linear-gradient(135deg, #D2B4DE 0%, #A569BD 100%);
    --bg-truesize: linear-gradient(135deg, #6EB5FF 0%, #3498DB 100%);
    --bg-history: linear-gradient(135deg, #E6DBC6 0%, #B59F82 100%);
    --bg-flags: linear-gradient(135deg, #FBCFE8 0%, #EC4899 100%);
    --bg-guessr: linear-gradient(135deg, #5D6D7E 0%, #2C3E50 100%);
    --bg-atlas: linear-gradient(135deg, #48C9B0 0%, #16A085 100%);
    --active-color: #F59A23;
}

/* ─── Animations ─── */
.mm-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mm-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── 1. HERO SECTION ─── */
.mm-hero-master {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: transparent;
}
.mm-header-block {
    width: 100%;
    text-align: center;
    padding: 5vh 5% 0;
    z-index: 5;
}
.mm-shrink-title {
    font-family: 'Rammetto One', serif;
    font-size: clamp(2rem, 7vw, 5.5rem);
    color: var(--mm-dark);
    margin: 0;
    line-height: 0.85;
    letter-spacing: -0.04em;
    white-space: nowrap;
    transition: transform 0.1s;
}
.mm-shrink-title .edition-red { color: var(--mm-accent-red); }

.mm-hero-img-container {
    width: 100%;
    height: 75vh;
    z-index: 2;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.15);
}
.mm-hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Conteneur principal ─── */
.mm-main-content {
    position: relative;
    z-index: 10;
    background-color: transparent;
    padding-top: 0;
}

/* ─── 2. HERO PREMIUM ─── */
.mm-hero-premium {
    display: flex; flex-wrap: wrap; align-items: center;
    max-width: 1400px; margin: 50px auto; padding: 0 20px;
}
.mm-hero-text { width: 45%; padding-right: 50px; }
.mm-tagline {
    color: var(--mm-accent-gold); font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 14px; display: block; margin-bottom: 20px;
}
.mm-main-title {
    font-family: 'Rammetto One', cursive;
    font-size: 28px; color: var(--mm-dark);
    line-height: 1.2; margin: 0 0 25px 0;
}
.mm-intro-text {
    font-size: 18px; color: var(--mm-text);
    line-height: 1.6; margin-bottom: 25px;
}
.mm-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.mm-feature-item { display: flex; align-items: center; }
.mm-feature-icon { color: var(--mm-accent-gold); font-size: 18px; margin-right: 10px; line-height: 1; }
.mm-feature-text { font-size: 15px; font-weight: 700; color: var(--mm-dark); }
.mm-hero-image { width: 55%; }
.mm-hero-image img {
    width: 100%; height: auto; border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ─── 3. ETAPES ─── */
.mm-custom-steps {
    max-width: 1200px; margin: 80px auto; padding: 40px 20px; text-align: center;
}
.mm-custom-steps h2 {
    font-family: 'Rammetto One', cursive; font-size: 26px;
    color: var(--mm-dark); margin-bottom: 10px;
}
.mm-custom-steps > p { font-size: 18px; color: var(--mm-text); margin-bottom: 40px; }
.mm-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mm-step-card {
    background: #fff; padding: 30px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 2px solid var(--card-border-gold);
}
.mm-step-num {
    font-family: 'Russo One', sans-serif; font-size: 40px;
    color: var(--mm-accent-gold); opacity: 0.5; margin-bottom: 10px;
}
.mm-step-card h3 { font-size: 20px; color: var(--mm-accent-red); margin: 0 0 15px 0; font-weight: 800; }
.mm-step-note { font-size: 0.85rem; color: var(--mm-text); opacity: 0.7; font-style: italic; margin: -10px 0 10px; }
.mm-step-card p { font-size: 15px; color: var(--mm-text); line-height: 1.5; margin: 0; }
.mm-btn-center {
    display: inline-block; background-color: var(--mm-dark); color: #fff;
    font-weight: 700; padding: 15px 40px; border-radius: 50px;
    text-transform: uppercase; text-decoration: none; margin-top: 40px; transition: 0.3s;
}
.mm-btn-center:hover { background-color: var(--mm-accent-red); transform: translateY(-3px); }

/* ─── 4. STORY SECTION ─── */
.mm-story-section {
    display: flex; flex-wrap: wrap; align-items: center;
    max-width: 1400px; margin: 80px auto; padding: 0 20px;
}
.mm-story-content {
    flex: 1 1 45%; background-color: var(--mm-card-bg);
    padding: 60px; border-radius: 12px; border: 6px solid #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    margin-right: -80px; position: relative; z-index: 2;
}
.mm-story-content h2 { font-size: 32px; font-weight: 800; color: var(--mm-accent-red); line-height: 1.2; margin: 0 0 30px 0; }
.mm-story-content p { font-size: 16px; line-height: 1.7; color: var(--mm-text); margin-bottom: 20px; }
.mm-story-content p strong { color: var(--mm-dark); font-weight: 800; }
.mm-story-content p .mm-highlight { color: var(--mm-accent-gold); font-weight: 800; }
.mm-story-image { flex: 1 1 55%; position: relative; z-index: 1; }
.mm-story-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

/* ─── TITRE SECTION PLATEFORME ─── */
.mm-platform-title {
    font-family: 'Rammetto One', cursive;
    font-size: clamp(1.3rem, 3vw, 2rem);
    text-align: center; color: var(--mm-dark);
    max-width: 900px; margin: 80px auto 10px;
    padding: 0 20px; line-height: 1.3;
}
.mm-platform-title::before {
    content: ""; display: block; width: 60px; height: 4px;
    background: var(--mm-accent-gold); margin: 0 auto 20px; border-radius: 2px;
}

/* ─── 5. CARROUSEL ─── */
.fun-geo-wrapper { background: transparent; padding: 60px 0 20px; overflow-x: hidden; }
.slider-wrapper { position: relative; max-width: 100vw; margin: 0 auto; overflow: hidden; }
.fun-slider {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 25px; padding: 20px calc(50vw - 165px);
    scrollbar-width: none; opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.fun-slider.is-loaded { opacity: 1; }
.fun-slider::-webkit-scrollbar { display: none; }
.fun-card {
    flex: 0 0 330px; scroll-snap-align: center; scroll-snap-stop: always;
    border-radius: 20px; border: 6px solid var(--card-border-gold);
    overflow: hidden; display: flex; flex-direction: column;
    position: relative; cursor: default; text-decoration: none;
    transition: transform 0.4s, box-shadow 0.4s; background: #fff;
}
.card-image-container {
    height: 180px; margin: 15px 15px 0 15px;
    border: 4px solid var(--card-border-gold);
    border-radius: 12px; overflow: hidden;
}
.card-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-body {
    background: var(--mm-card-bg); margin: 15px; padding: 25px 15px;
    border-radius: 12px; text-align: center; display: flex;
    flex-direction: column; align-items: center; gap: 12px; flex-grow: 1;
}
.fun-icon-svg { width: 45px; height: 45px; margin-bottom: 5px; transition: transform 0.4s; }
.fun-card h3 { font-family: 'Russo One', sans-serif; font-size: 1.4rem; margin: 0; color: var(--mm-dark); text-transform: uppercase; }
.fun-card p { font-size: 0.95rem; line-height: 1.4; margin: 0; color: var(--mm-text); font-weight: 600; }

/* Themes */
.theme-real       { background: var(--bg-real);       box-shadow: 0 0 0 5px #E65142; }
.theme-flight     { background: var(--bg-flight);     box-shadow: 0 0 0 5px #5B7CFA; }
.theme-quiz       { background: var(--bg-quiz);       box-shadow: 0 0 0 5px #39B54A; }
.theme-guessr     { background: var(--bg-guessr);     box-shadow: 0 0 0 5px #2C3E50; }
.theme-record     { background: var(--bg-record);     box-shadow: 0 0 0 5px #F59A23; }
.theme-flags      { background: var(--bg-flags);      box-shadow: 0 0 0 5px #EC4899; }
.theme-motivation { background: var(--bg-motivation); box-shadow: 0 0 0 5px #A569BD; }
.theme-truesize   { background: var(--bg-truesize);   box-shadow: 0 0 0 5px #3498DB; }
.theme-history    { background: var(--bg-history);     box-shadow: 0 0 0 5px #B59F82; }
.theme-atlas      { background: var(--bg-atlas);       box-shadow: 0 0 0 5px #16A085; }

.theme-real .fun-icon-svg       { fill: #E65142; }
.theme-flight .fun-icon-svg     { fill: #5B7CFA; }
.theme-quiz .fun-icon-svg       { fill: #39B54A; }
.theme-guessr .fun-icon-svg     { fill: #2C3E50; }
.theme-record .fun-icon-svg     { fill: #F59A23; }
.theme-flags .fun-icon-svg      { fill: #EC4899; }
.theme-motivation .fun-icon-svg { fill: #A569BD; }
.theme-truesize .fun-icon-svg   { fill: #3498DB; }
.theme-history .fun-icon-svg    { fill: #B59F82; }
.theme-atlas .fun-icon-svg      { fill: #16A085; }

/* Contrôles slider */
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 25px 20px 10px; }
.arrow-btn {
    width: 50px; height: 50px; border-radius: 50%;
    border: 3px solid #333; background: #fff; color: #333;
    font-size: 1.2rem; display: flex; align-items: center;
    justify-content: center; cursor: pointer; transition: all 0.2s; font-weight: bold;
}
.arrow-btn:hover { background: #333; color: #fff; transform: scale(1.1); }
.arrow-btn:disabled { opacity: 0.3; cursor: default; }
.dots-wrapper { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 180px; }
.active-label { font-family: 'Russo One', sans-serif; font-size: 1rem; text-transform: uppercase; color: var(--active-color); height: 1.2em; }
.dots-row { display: flex; gap: 6px; }
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--card-border-gold); border: 1px solid #c5b8a5;
    cursor: pointer; transition: all 0.3s;
}
.dot.active { width: 24px; border-radius: 6px; background: var(--active-color); border-color: var(--active-color); }
.slide-counter { font-family: 'Russo One', sans-serif; font-size: 0.8rem; color: #555; margin-top: 4px; }

/* Coverflow 3D */
@media (min-width: 769px) {
    .fun-slider { perspective: 1200px; }
    .fun-card.is-left  { transform: rotateY(20deg) scale(0.85); opacity: 0.6; filter: grayscale(30%); z-index: 1; }
    .fun-card.is-right { transform: rotateY(-20deg) scale(0.85); opacity: 0.6; filter: grayscale(30%); z-index: 1; }
    .fun-card.is-active { transform: rotateY(0deg) scale(1.03); opacity: 1; filter: grayscale(0%); z-index: 5; box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
}

/* Bouton Découvrir */
.mm-platform-cta { text-align: center; padding: 10px 20px 70px; }
.mm-platform-btn {
    display: inline-block; background-color: var(--mm-accent-red); color: #fff;
    font-family: 'Russo One', sans-serif; font-size: 16px;
    letter-spacing: 0.5px; padding: 16px 42px; border-radius: 50px;
    text-transform: uppercase; text-decoration: none;
    border: 2px solid var(--mm-accent-red);
    box-shadow: 0 10px 25px rgba(183, 50, 83, 0.35);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s, border-color 0.3s;
}
.mm-platform-btn:hover {
    background-color: #fff;
    color: var(--mm-dark);
    border-color: var(--mm-accent-red);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

/* ─── 6. NEWSLETTER ─── */
.mm-newsletter-section {
    background: url('https://www.qola7357.odns.fr/wp-content/uploads/2023/04/h1-page-bcgr-scaled.png') center/cover no-repeat;
    padding: 100px 20px; text-align: center; position: relative;
    margin-top: 60px; border-top: 6px solid var(--card-border-gold);
}
.mm-newsletter-box {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    max-width: 600px; margin: 0 auto; padding: 50px;
    border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative; z-index: 5; border: 2px solid var(--card-border-gold);
}
.mm-newsletter-box h2 { font-family: 'Rammetto One', cursive; font-size: 24px; color: var(--mm-dark); margin-top: 0; margin-bottom: 15px; }
.mm-newsletter-box p { font-size: 16px; color: var(--mm-text); margin-bottom: 30px; }

.mm-float-img { position: absolute; z-index: 2; opacity: 0.8; animation: float 6s ease-in-out infinite; }
.img-nl-2 { bottom: 10%; left: 10%; max-width: 120px; animation-delay: 1s; }
.img-nl-3 { top: 20%; left: 15%; max-width: 100px; animation-delay: 2s; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

/* Newsletter form (CF7) */
.mm-newsletter-section .wpcf7 { width: 100%; }
.mm-newsletter-section .wpcf7-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.mm-newsletter-section .wpcf7-form p { margin: 0; width: auto; text-align: center; }
.mm-newsletter-section .wpcf7-form br { display: none; }
.mm-newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}
.mm-newsletter-form input[type="email"] {
    padding: 12px 20px; border: 2px solid #ccc; border-radius: 30px;
    font-size: 1rem; width: 300px; font-family: 'Roboto', sans-serif;
}
.mm-newsletter-form input[type="email"]:focus { outline: none; border-color: var(--mm-accent-red); }
.mm-newsletter-form input[type="submit"] {
    padding: 12px 30px; background: var(--mm-accent-red); color: #fff;
    border: 2px solid var(--mm-accent-red); border-radius: 30px; font-family: 'Russo One', sans-serif;
    font-size: 1rem; cursor: pointer; transition: background 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
}
.mm-newsletter-form input[type="submit"]:hover {
    background: #fff;
    color: var(--mm-dark);
    border-color: var(--mm-accent-red);
    transform: translateY(-2px);
}
.wpcf7-response-output { text-align: center; margin-top: 10px; font-size: 0.9rem; width: 100%; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .mm-shrink-title { white-space: normal; font-size: 12vw; }
    .mm-hero-img-container { height: 50vh; }
    .mm-hero-premium { flex-direction: column; }
    .mm-hero-text, .mm-hero-image { width: 100%; padding-right: 0; }
    .mm-hero-text { margin-bottom: 40px; }
    .mm-main-title { font-size: 30px; }
    .mm-features-grid { grid-template-columns: 1fr; }
    .mm-steps-grid { grid-template-columns: 1fr; }
    .mm-story-section { flex-direction: column-reverse; }
    .mm-story-content { flex: 1 1 100%; width: 100%; margin-right: 0; margin-top: -60px; padding: 40px 20px; }
    .mm-story-image { flex: 1 1 100%; width: 100%; margin-bottom: 30px; }
    .fun-slider { padding: 20px calc(50vw - 140px); }
    .fun-card { flex: 0 0 280px; }
    .mm-float-img { display: none; }
    .mm-newsletter-box { padding: 30px 20px; }
}
