/* ===================================
   Je Réalise - Design System
   Colors from je-realise.com:
   Background: #FDFBF0 (cream)
   Primary/CTA: #AE7B64 (terracotta)
   Headings: #00303B (deep teal)
   =================================== */

:root {
    --cream: #FDFBF0;
    --terracotta: #AE7B64;
    --terracotta-dark: #956650;
    --teal: #00303B;
    --teal-light: #004D5A;
    --text: #3A3A3A;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 48, 59, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 48, 59, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--teal);
    line-height: 1.3;
}

a { color: var(--terracotta); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--terracotta-dark); }

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

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

/* ===== NAVIGATION ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(253, 251, 240, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 48, 59, 0.06);
}
.nav__container {
    max-width: 1200px; margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav__logo-text {
    font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700;
    color: var(--teal); letter-spacing: -0.02em;
}
.nav__links { display: flex; gap: 32px; }
.nav__link {
    font-size: 0.9rem; font-weight: 500; color: var(--text-light);
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav__link:hover, .nav__link--active {
    color: var(--terracotta); border-bottom-color: var(--terracotta);
}
.nav__hamburger {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 4px;
}
.nav__hamburger span {
    display: block; width: 24px; height: 2px; background: var(--teal);
    transition: var(--transition);
}
.nav__hamburger--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger--active span:nth-child(2) { opacity: 0; }
.nav__hamburger--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav__mobile {
    display: none; flex-direction: column; padding: 0 24px 20px;
    gap: 12px; background: var(--cream);
}
.nav__mobile--open { display: flex; }
.nav__mobile-link { font-size: 1rem; color: var(--text); padding: 8px 0; }

/* ===== HERO ===== */
.hero {
    min-height: 85vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 120px 24px 80px;
    background: linear-gradient(180deg, rgba(253,251,240,0) 0%, rgba(174,123,100,0.05) 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(174,123,100,0.08) 0%, transparent 70%);
    border-radius: 50%; animation: float 8s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -15%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,48,59,0.04) 0%, transparent 70%);
    border-radius: 50%; animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}
.hero__content { position: relative; z-index: 1; max-width: 700px; }
.hero__subtitle {
    font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600;
    color: var(--terracotta); text-transform: uppercase; letter-spacing: 0.2em;
    margin-bottom: 20px;
}
.hero__title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 24px; }
.hero__description {
    font-size: 1.15rem; color: var(--text-light); margin-bottom: 40px;
    max-width: 540px; margin-left: auto; margin-right: auto;
}
.hero__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px; font-size: 0.9rem;
    font-weight: 600; letter-spacing: 0.04em; cursor: pointer;
    transition: var(--transition); border: none; text-transform: uppercase;
}
.btn--primary { background: var(--terracotta); color: var(--white); }
.btn--primary:hover { background: var(--terracotta-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn--outline:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

/* ===== SECTIONS ===== */
.section { padding: 80px 24px; }
.section--alt { background: var(--white); }
.section__header { text-align: center; margin-bottom: 48px; }
.section__title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section__subtitle { font-size: 1.05rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ===== BENEFITS ===== */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1000px; margin: 0 auto; }
.benefit {
    text-align: center; padding: 40px 24px; background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow);
    transition: var(--transition);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.benefit__icon { font-size: 2.5rem; margin-bottom: 16px; }
.benefit__title { font-size: 1.2rem; margin-bottom: 12px; }
.benefit__text { font-size: 0.95rem; color: var(--text-light); }

/* ===== CATEGORY CARDS ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; max-width: 1200px; margin: 0 auto; }
.category-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.category-card__image { height: 200px; background-size: cover; background-position: center; position: relative; }
.category-card__image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,48,59,0.6) 100%);
}
.category-card__body { padding: 24px; }
.category-card__title { font-size: 1.25rem; margin-bottom: 8px; }
.category-card__count { font-size: 0.85rem; color: var(--terracotta); font-weight: 600; }

/* ===== ARTICLE CARDS ===== */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; max-width: 1200px; margin: 0 auto; }
.article-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.article-card__image {
    height: 220px; background-size: cover; background-position: center;
    position: relative;
}
.article-card__badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--terracotta); color: var(--white);
    padding: 4px 14px; border-radius: 20px; font-size: 0.75rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.article-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-card__meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 8px; }
.article-card__title { font-size: 1.2rem; margin-bottom: 12px; }
.article-card__excerpt { font-size: 0.9rem; color: var(--text-light); flex: 1; margin-bottom: 16px; }
.article-card__link { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== TESTIMONIALS ===== */
.testimonials-slider { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 8px 0 24px; }
.testimonials-slider::-webkit-scrollbar { height: 4px; }
.testimonials-slider::-webkit-scrollbar-track { background: rgba(0,48,59,0.05); border-radius: 2px; }
.testimonials-slider::-webkit-scrollbar-thumb { background: var(--terracotta); border-radius: 2px; }
.testimonial {
    min-width: 320px; max-width: 380px; scroll-snap-align: start;
    background: var(--white); padding: 32px; border-radius: var(--radius);
    box-shadow: var(--shadow); flex-shrink: 0;
}
.testimonial__quote { font-style: italic; font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px; color: var(--text); }
.testimonial__author { font-weight: 600; color: var(--teal); font-size: 0.9rem; }

/* ===== BUBBLES SECTION ===== */
.bubbles-section { position: relative; min-height: 500px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.bubble {
    position: absolute; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 20px; font-family: 'Playfair Display', serif;
    font-size: 0.8rem; font-weight: 600; color: var(--teal); letter-spacing: 0.02em;
    animation: bubbleFloat 6s ease-in-out infinite;
}
.bubble:nth-child(even) { animation-duration: 8s; animation-direction: reverse; }
.bubble--peach { background: rgba(174, 123, 100, 0.15); }
.bubble--mint { background: rgba(0, 48, 59, 0.08); }
.bubble--sky { background: rgba(135, 206, 235, 0.15); }
.bubble--rose { background: rgba(220, 170, 170, 0.2); }
@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* ===== SINGLE ARTICLE ===== */
.article-single { max-width: 780px; margin: 0 auto; padding: 120px 24px 80px; }
.article-single__meta { font-size: 0.85rem; color: var(--terracotta); font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.article-single__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.article-single__image { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); margin-bottom: 40px; }
.article-single__content { font-size: 1.05rem; line-height: 1.9; }
.article-single__content h2 { font-size: 1.6rem; margin: 40px 0 16px; }
.article-single__content h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.article-single__content p { margin-bottom: 20px; }
.article-single__content ul, .article-single__content ol { margin: 16px 0 20px 24px; }
.article-single__content li { margin-bottom: 8px; }
.article-single__content blockquote {
    border-left: 3px solid var(--terracotta); padding: 16px 24px;
    margin: 24px 0; background: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic; color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer { background: var(--teal); color: rgba(255,255,255,0.8); padding: 60px 24px 24px; }
.footer__container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--white); margin-bottom: 8px; }
.footer__tagline { font-size: 0.9rem; opacity: 0.7; margin-bottom: 4px; }
.footer__address { font-size: 0.85rem; opacity: 0.6; }
.footer__nav h4, .footer__social h4 { color: var(--white); font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 16px; }
.footer__nav a, .footer__social a { display: block; color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 8px; }
.footer__nav a:hover, .footer__social a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.8rem; opacity: 0.5; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500;
}
.pagination .active { background: var(--terracotta); color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__hamburger { display: flex; }
    .benefits { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .footer__container { grid-template-columns: 1fr; gap: 24px; }
    .section { padding: 48px 16px; }
    .hero { min-height: 70vh; padding: 100px 16px 60px; }
}
