/*
Theme Name: Actu IA Premium Tech Magazine Theme
Template: generatepress
Version: 3.0.0 - Dark Tech Edition
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Actu IA Dark Tech Brand Colors */
    --accent-blue: #0066FF;
    --dark-bg: #0A0A0A;
    --card-dark: #141414;
    --white-soft: #E5E5E5;
    --border-dark: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.15);
    --shadow-hover: 0 8px 40px rgba(0, 102, 255, 0.25);
    --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.8);
    --gradient-hero: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0, 102, 255, 0.3) 100%);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 20px;
    --border-radius-small: 12px;
    --glow-color: rgba(0, 102, 255, 0.4);
}

/* === GLOBAL RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--dark-bg) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: var(--white-soft) !important;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-blue);
    color: white;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--card-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052cc;
}

/* === HIDE GENERATEPRESS ELEMENTS ON MAGAZINE PAGES === */
.bento-homepage .site-header,
.bento-homepage .site-footer,
.bento-homepage .site-content > .inside-article {
    display: none !important;
}

.bento-homepage .site-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* === MAGAZINE WRAPPER === */
.magazine-wrapper {
    min-height: 100vh;
    background: var(--dark-bg);
}

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

/* === SECTION TITLES === */
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white-soft);
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-blue);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow-color);
}

/* === SECTION 1: HERO BREAKING === */
.hero-breaking {
    height: 70vh;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-dark);
}

.hero-content {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
    animation: glow-pulse 3s infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--glow-color); }
    50% { box-shadow: 0 0 30px var(--glow-color), 0 0 40px var(--glow-color); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-excerpt {
    font-size: 1.2rem;
    color: rgba(229, 229, 229, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-time, .hero-read-time {
    color: rgba(229, 229, 229, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-glow);
}

.hero-cta:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

/* === SECTION 2: BENTO GRID === */
.section-bento {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 1.5rem;
    margin-top: 2rem;
}

.bento-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: var(--transition-smooth);
}

.bento-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: inherit;
}

.bento-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.bento-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.9) 100%);
}

.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    color: var(--white-soft);
}

.bento-category {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 0 10px var(--glow-color);
}

.bento-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--white-soft);
}

.bento-large .bento-title {
    font-size: 1.8rem;
}

.bento-excerpt {
    font-size: 0.9rem;
    color: rgba(229, 229, 229, 0.8);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.bento-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: rgba(229, 229, 229, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Space Grotesk', sans-serif;
}

/* === SECTION 4: EDITION === */
.section-edition {
    padding: 5rem 0;
    background: var(--card-dark);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.edition-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.edition-featured {
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-dark);
    transition: var(--transition-smooth);
}

.edition-featured:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.edition-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.edition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.edition-featured:hover .edition-image img {
    transform: scale(1.05);
}

.edition-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: var(--shadow-glow);
}

.edition-content {
    padding: 2rem;
}

.edition-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--white-soft);
}

.edition-content h3 a {
    color: var(--white-soft);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.edition-content h3 a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--glow-color);
}

.edition-content p {
    color: rgba(229, 229, 229, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.edition-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: rgba(229, 229, 229, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Space Grotesk', sans-serif;
}

.edition-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-dark);
}

.edition-sidebar h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white-soft);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--accent-blue);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.edition-sidebar-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-dark);
    transition: var(--transition-smooth);
}

.edition-sidebar-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.edition-sidebar-item:hover {
    background: rgba(0, 102, 255, 0.05);
    border-radius: var(--border-radius-small);
    padding: 1rem;
    margin: 0 0 2rem 0;
}

.sidebar-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--border-radius-small);
    overflow: hidden;
    border: 1px solid var(--border-dark);
}

.sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-item-content h5 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.sidebar-item-content h5 a {
    color: var(--white-soft);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sidebar-item-content h5 a:hover {
    color: var(--accent-blue);
}

.sidebar-item-time {
    font-size: 0.7rem;
    color: rgba(229, 229, 229, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Space Grotesk', sans-serif;
}

/* === SECTION 5: CATEGORIES === */
.section-category {
    padding: 4rem 0;
}

.category-dark {
    background: var(--dark-bg);
    border-top: 1px solid var(--border-dark);
}

.category-light {
    background: var(--card-dark);
    border-top: 1px solid var(--border-dark);
}

.category-accent {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0052cc 100%);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.category-light .category-card {
    background: rgba(255, 255, 255, 0.02);
}

.category-accent .category-card {
    background: rgba(255, 255, 255, 0.1);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 10, 0.8) 100%);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 1.5rem;
}

.category-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--white-soft);
}

.category-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: rgba(229, 229, 229, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Space Grotesk', sans-serif;
}

/* === SECTION 6: ANALYSES === */
.section-analyses {
    padding: 5rem 0;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-dark);
}

.analyses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.analysis-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.analysis-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
}

.analysis-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.analysis-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.analysis-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.analysis-card:hover .analysis-image img {
    transform: scale(1.05);
}

.analysis-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: var(--shadow-glow);
}

.analysis-content {
    padding: 2rem;
}

.analysis-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--white-soft);
}

.analysis-content p {
    color: rgba(229, 229, 229, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.analysis-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(229, 229, 229, 0.6);
    font-family: 'Space Grotesk', sans-serif;
}

.analysis-author {
    font-weight: 600;
}

.analysis-date {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === SECTION 7: NEWSLETTER === */
.section-newsletter {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0052cc 100%);
    color: white;
    border-top: 1px solid var(--border-dark);
}

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

.newsletter-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.newsletter-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.newsletter-form-inner {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    font-family: 'Space Grotesk', sans-serif;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.newsletter-button {
    padding: 1rem 2rem;
    background: white;
    color: var(--accent-blue);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    background: var(--white-soft);
}

.newsletter-privacy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
    }
    
    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: 1;
        grid-row: span 1;
    }
    
    .edition-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .category-grid,
    .analyses-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .newsletter-form-inner {
        flex-direction: column;
    }
}