/*
 Theme Name:   GeneratePress Child - Your Odyssey
 Description:  Design institutionnel & Brutaliste. Your Odyssey Branding Complet (Zéro Orange).
 Author:       Gemini
 Template:     generatepress
 Version:      2.2
*/

/* =========================================
   1. VARIABLES GLOBALES
   ========================================= */
:root {
    --primary: #2C3E50;
    --accent: #5D8AA8;
    --accent-hover: #466980;
    --light-accent: #D1DCE5;
    --bg-light: #F8F9FA;
    --white: #ffffff;
    --text-body: #34495E;
    
    /* Variables Odyssey */
    --odyssey-primary: #2C3E50;
    --odyssey-accent: #5D8AA8;
    --odyssey-vivid: #0080ff; /* Bleu Odyssey */
    --odyssey-bg-soft: #F4F7F9;
    --odyssey-radius: 20px;
}

/* =========================================
   2. HEADER & LOGO
   ========================================= */
.main-title a {
    font-size: 30px;
    font-weight: 400;
    color: var(--primary) !important;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.4s ease;
    display: inline-block;
}

/* Force le Odyssey en Bleu Vif (Anciennement Orange) */
.main-title .logo-accent, 
.main-title .logo-orange,
.main-title a span:last-child {
    color: var(--odyssey-vivid) !important;
    font-weight: 600 !important; 
    margin-left: 5px;
    display: inline-block;
    text-shadow: none !important;
    transform: none !important;
}

.main-title a:hover {
    color: #7F8C8D !important;
    font-weight: 600;
}

/* =========================================
   3. TITRES & MISE EN ÉVIDENCE
   ========================================= */
h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    color: var(--primary);
}

h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent); /* Bleu Acier */
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

h2:hover::after { width: 85px; }

.archive-aventuriers h2 { font-size: 38px; font-weight: 800; }

/* Style des Questions (Automatique en Bleu) */
.odyssey-question {
    color: var(--odyssey-vivid) !important;
    font-weight: 700 !important;
    font-style: italic;
    border-bottom: 1px dashed rgba(0, 128, 255, 0.3);
    transition: all 0.3s ease;
}

.odyssey-question:hover {
    background-color: rgba(0, 128, 255, 0.05);
    border-bottom-style: solid;
}

/* =========================================
   4. BOUTONS & INTERACTIONS
   ========================================= */
.hero-btn, .filter-btn, .button, button, .wp-block-button__link {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px !important; 
    text-decoration: none !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background-color: var(--white) !important; 
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    text-align: center;
}

.hero-btn:hover, .filter-btn:hover, button:hover, .wp-block-button__link:hover {
    transform: translateY(-2px);
    background-color: var(--primary) !important;
    color: var(--white) !important;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.15);
}

/* Boutons Magnétiques */
.magnetic-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 35px;
    background: transparent;
    color: var(--odyssey-primary);
    border: 1.5px solid var(--odyssey-primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease-in-out;
    position: relative;
    white-space: nowrap;
}

.magnetic-link:hover {
    background-color: #f0f7ff;
    border-color: var(--odyssey-vivid);
    color: var(--odyssey-vivid);
}

.magnetic-link:active, .magnetic-link:focus {
    outline: none;
    border-color: var(--odyssey-vivid);
    box-shadow: 0 0 0 4px rgba(0, 128, 255, 0.2);
    transform: scale(0.98);
}

/* =========================================
   5. GRILLE DE BLOG & CARTES
   ========================================= */
.coming-soon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-top: 30px;
    padding: 20px 0;
}

.post-card, .placeholder-card {
    width: calc(33.333% - 20px);
    min-width: 300px;
    background: var(--white);
    border: 1.5px solid var(--light-accent) !important;
    border-radius: 15px !important;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.post-card:hover, .placeholder-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--odyssey-vivid) !important;
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.12) !important;
}

.card-image-wrapper { height: 200px; overflow: hidden; border-bottom: 1.5px solid #D1DCE5; }
.card-img { height: 100%; background-position: center; background-size: cover; transition: transform 0.5s ease; }
.post-card:hover .card-img { transform: scale(1.05); }

.card-body { padding: 20px; text-align: left; }
.card-tag { color: var(--odyssey-vivid); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.card-title { margin: 0 0 10px 0; font-size: 1.25rem; color: var(--primary); font-weight: 700; }

/* Filtres de la grille */
.filter-container { margin-bottom: 40px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
.filter-btn { border-radius: 10px !important; padding: 10px 22px; background: white; border: 1.5px solid #D1DCE5; }
.filter-btn.active {
    background: var(--odyssey-vivid) !important;
    border-color: var(--odyssey-vivid) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.2);
}

/* =========================================
   6. ARTICLES & VISUELS
   ========================================= */
.odyssey-chapeau {
    background: var(--odyssey-bg-soft);
    padding: 40px;
    border-radius: var(--odyssey-radius);
    margin-bottom: 50px;
    border-left: 5px solid var(--odyssey-vivid);
}

.odyssey-chapeau p { font-size: 1.25rem; line-height: 1.6; color: var(--primary); font-weight: 500; margin: 0; }

.odyssey-visual-wrapper { max-width: 550px; margin: 40px auto; text-align: center; }
.odyssey-visual-wrapper img { width: 100%; height: auto; border-radius: var(--odyssey-radius); box-shadow: 0 15px 35px rgba(0,0,0,0.06); display: block; margin: 0 auto; }

.odyssey-quote-final {
    margin: 80px 0 40px 0; padding: 50px; background: var(--primary); color: #ffffff !important;
    border-radius: var(--odyssey-radius); font-size: 1.6rem; font-style: italic; font-weight: 600; text-align: center; border-bottom: 5px solid var(--odyssey-vivid);
}

body.page:not(.home) blockquote {
    padding: 40px !important; background-color: var(--primary) !important; color: var(--white) !important;
    border-left: 8px solid var(--accent) !important; border-radius: 4px !important;
}

/* =========================================
   7. L'ESCALE & CONTACT
   ========================================= */
.odyssey-contact-ultra { max-width: 1100px; margin: 0 auto; padding: 80px 20px; background: #fff; }
.glitch-title { font-size: clamp(50px, 10vw, 80px); font-weight: 900; color: var(--primary); letter-spacing: -4px; }
.line-grow { height: 1px; background: var(--odyssey-vivid); flex-grow: 1; }

.contact-strip { border-bottom: 1px solid #e2e8f0; padding: 40px 0; }
.contact-strip:first-child { border-top: 1px solid #e2e8f0; }

.strip-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.strip-num { flex: 0 0 60px; font-size: 1.5rem; font-weight: 900; color: #cbd5e0; }
.text-group { flex: 1; text-align: left; }
.text-group h3 { margin: 0 0 5px 0; font-size: 1.5rem; text-transform: uppercase; color: var(--primary); }

.spam-icon { background: var(--odyssey-vivid); color: white; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }

/* =========================================
   8. FOOTER & NEWSLETTER
   ========================================= */
.site-footer a, .copyright a { color: var(--odyssey-vivid) !important; font-weight: 600; text-decoration: none; }

.newsletter-box {
    background-color: var(--primary); color: var(--white); padding: 80px 50px; border-radius: 15px; margin-top: 100px; text-align: center; border: 1px solid rgba(255,255,255,0.1);
}
.newsletter-box h2 { color: var(--white) !important; font-size: 36px; margin-bottom: 20px; }
.newsletter-box h2::after { display: none; }

/* =========================================
   9. RESPONSIVE & IMAGES MISES EN AVANT
   ========================================= */
@media (max-width: 768px) {
    .strip-content, .coming-soon-grid { flex-direction: column; align-items: center; text-align: center; }
    .post-card, .placeholder-card, .magnetic-link { width: 100% !important; max-width: 400px; }
    .text-group { text-align: center; }
    .glitch-title { font-size: 40px; letter-spacing: -2px; }
    .odyssey-chapeau { padding: 25px; }
    .card-body { text-align: center; }
}

.featured-image img, 
.featured-image-landscape {
    width: 100% !important;
    max-width: 600px !important;
    height: auto !important;
    aspect-ratio: 600 / 400 !important;
    object-fit: cover !important;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
}