/**
 * Glesner Theme - Base Stylesheet
 */

/* La police principale est définie via --font-primary (Poppins) dans glesner-modules.css */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #FFFFFF;
    background: #16161A;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
p, span, div, a, li, ul, ol {
    font-family: var(--font-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Cacher les éléments dès le départ pour éviter le flash visible */
.animate-on-scroll {
    opacity: 0 !important;
    visibility: hidden;
}

.animate-on-scroll.animated {
    opacity: 1 !important;
    visibility: visible;
    animation: fadeInUp 0.8s ease forwards;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
}

h2 {
    font-size: 2.75rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0;
}

h3 {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    color: #FFFFFF;
    margin: 0 0 30px 0;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0;
}

p {
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 1rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   WORDPRESS CORE
   ============================================ */
.alignleft {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

/* ============================================
   GUTENBERG EDITOR SUPPORT
   ============================================ */
.wp-block {
    max-width: 1400px;
}

.entry-content > * {
    margin-bottom: 30px;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}
