/* ===================================
   Le Journal de Mève - Feuille de Style
   Couleurs : Gris/Argent
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #0a0b14;
    margin: 0;
    padding: 0;
}


.zalando-sans-expanded {
  font-family: "Zalando Sans Expanded", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
/* Assurer que rien ne limite la largeur */
.hero, .hero-video, .hero-overlay {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: none;
}

/* ===================================
   HERO SECTION - VIDÉO PLEINE LARGEUR
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0b14 0%, #1a1b2e 50%, #16213e 100%);
}

/* Vidéo YouTube en background - Pleine largeur FORCÉE */
.hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* Ratio 16:9 */
    min-height: 100vh;
    min-width: 177.78vh; /* Ratio 16:9 inversé */
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
}

/* Overlay avec couleurs gris/argent - PLEINE LARGEUR */
.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg,
        rgba(10, 11, 20, 0.85) 0%,
        rgba(26, 27, 46, 0.75) 30%,
        rgba(22, 33, 62, 0.85) 70%,
        rgba(156, 163, 175, 0.15) 100%);
    z-index: -1;
    margin: 0;
    padding: 0;
}

.hero-content {
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1.5s ease-out;
}

.hero-title {
  font-family: "Bodoni Moda", serif;
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg,
        #9ca3af 0%,
        #d1d5db 30%,
        #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(156, 163, 175, 0.3);
    line-height: 1.1;
}

.hero-subtitle {
  font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-style: italic;
    color: #94a3b8;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    box-shadow: 0 8px 32px rgba(156, 163, 175, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(156, 163, 175, 0.4);
}

.hero-cta.secondary {
    background: transparent;
    border: 1px solid #9ca3af;
    box-shadow: none;
}

.hero-cta.secondary:hover {
    background: #9ca3af;
    box-shadow: 0 16px 48px rgba(156, 163, 175, 0.3);
}

/* ===================================
   SECTIONS GÉNÉRALES
   =================================== */
section {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
  font-family: "Bodoni Moda", serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #9ca3af 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   SECTION PRÉSENTATION
   =================================== */
.presentation {
  background-image: url("../img/back-chess-party.webp");
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
  height: 100%;
  position: relative;
    /* background: linear-gradient(180deg, #0a0b14 0%, #16213e 100%); */
    color: #fff;
}

.presentation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.presentation-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #e2e8f0;
    font-weight: 400;
}

.presentation-text strong {
    color: #9ca3af;
    font-weight: 600;
}

.presentation-image {
    text-align: center;
}

.book-cover {
    width: 320px;
    height: 450px;
    /* background: linear-gradient(135deg,
        #1e293b 0%,
        #334155 30%,
        #9ca3af 100%); */
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin: 0 auto;
    animation: float 4s ease-in-out infinite;
    /* box-shadow: 0 24px 64px rgba(156, 163, 175, 0.2);*/
    /* border: 0px solid rgba(156, 163, 175, 0.3); */
    position: relative;
    overflow: hidden;
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.book-cover-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.book-cover-fallback small {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 10px;
    display: block;
}

/* ===================================
   SECTION AUTEURS
   =================================== */
.auteurs {
    background: #0f172a;
    color: #fff;
}

.auteurs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.auteur-card {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.4) 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 0px solid rgba(156, 163, 175, 0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    text-align: center;
}

.auteur-card:hover {
    transform: translateY(-8px);
    border-color: #9ca3af;
    box-shadow: 0 24px 64px rgba(156, 163, 175, 0.15);
}

.auteur-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 0px solid rgba(156, 163, 175, 0.3);
    animation: fadeInUp 1.5s ease-out;
    transition: all 0.5s ease;
}

.auteur-photo:hover {box-shadow: 0 24px 64px rgba(156, 163, 175, 0.15);}


.auteur-name {
    font-size: 1.8rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.auteur-card p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: left;
}

/* ===================================
   SECTION APERÇU
   =================================== */
.apercu {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
}

.apercu-content {
    text-align: center;
}

.apercu-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #94a3b8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.apercu-btn {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #9ca3af;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 15px;
}

.apercu-btn:hover {
    background: #9ca3af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(156, 163, 175, 0.3);
}

/* ===================================
   SECTION MERCHANDISING
   =================================== */
.merchandising {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
}

.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.merch-item {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.8) 0%,
        rgba(51, 65, 85, 0.6) 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    border: 0px solid rgba(156, 163, 175, 0.2);
    backdrop-filter: blur(10px);
}

.merch-item:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg,
        rgba(156, 163, 175, 0.1) 0%,
        rgba(107, 114, 128, 0.1) 100%);
    border-color: #9ca3af;
    box-shadow: 0 20px 64px rgba(156, 163, 175, 0.2);
}

.merch-visual {
    width: 400px;
    height: 534px;
    background: linear-gradient(135deg, #334155 0%, #9ca3af 100%);
    border-radius: 12px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 0px solid rgba(156, 163, 175, 0.3);
    overflow: hidden;
}

.merch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.merch-item h3 {
    font-size: 1.4rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    font-weight: 700;
}

.merch-item p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.merch-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d1d5db;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: #020617;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #1e293b;
}

.footer p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d1d5db;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .presentation-content,
    .auteurs-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Vidéo pleine largeur sur mobile */
    .hero-video iframe {
        width: 100vw;
        height: 100vh;
    }

    .book-cover {
        width: 280px;
        height: 380px;
    }

    .merch-grid {
        grid-template-columns: 1fr;
    }

    .auteur-card,
    .merch-item {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    .hero-cta,
    .apercu-btn {
        display: block;
        margin: 10px auto;
        max-width: 280px;
    }
}

/* ===================================
   AMÉLIORATIONS VISUELLES
   =================================== */

/* Scroll fluide */
html {
    scroll-behavior: smooth;
}

/* Barre de scroll personnalisée - thème argent */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0b14;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
}

/* Focus pour l'accessibilité */
a:focus,
button:focus {
    outline: 2px solid #9ca3af;
    outline-offset: 2px;
}

/* Amélioration des transitions */
* {
    transition: opacity 0.3s ease;
}

/* Effets de chargement pour les images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* États de hover améliorés */
.merch-item:hover .merch-visual {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(156, 163, 175, 0.3);
}

.auteur-card:hover .auteur-photo {
    transform: scale(1.1);
    border-color: #9ca3af;
}

/* ===================================
   MODAL TEASER VIDÉO
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 20, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.9) 0%,
        rgba(51, 65, 85, 0.9) 100%);
    border-radius: 20px;
    border: 2px solid rgba(156, 163, 175, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
    z-index: 10000;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: 2px solid #9ca3af;
    color: #9ca3af;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    z-index: 10001;
}

.modal-close:hover {
    background: #9ca3af;
    color: white;
    transform: rotate(90deg);
    border-color: #d1d5db;
}

.modal-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
    }

    .modal-close {
        top: -45px;
        font-size: 2rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 0;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        background: rgba(10, 11, 20, 0.8);
        border-color: white;
        color: white;
    }
}

/* Empêcher le scroll quand la modal est ouverte */
body.modal-open {
    overflow: hidden;
}
