/* =========================================================
   SCALE.CSS - LINGATTITUDE DESIGN SYSTEM (ANIMATED)
   Theme: "New Age Classic" (Scientific, Warm, Accessible, Human)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&display=swap');

:root {
    /* Brand Colors (Extracted from Logo) */
    --brand-dark: #2b3542;      /* Slate grey from logo outline */
    --brand-blue: #2b8cc4;      /* Bright trust blue from logo 'A' */
    --brand-blue-hover: #1f6b96;
    
    /* Warm & Human Accents */
    --accent-warm: #d97a53;     /* Terracotta for warmth/humanity */
    --accent-gold: #e6b861;     /* Soft gold for premium/coaching feel */

    /* Backgrounds & Surfaces */
    --bg-main: #fcfbf9;         /* Very soft, warm off-white (Classic/Academic) */
    --bg-surface: #ffffff;      /* Pure white for cards/content blocks */
    --bg-subtle: #f0efe9;       /* Light grey/beige for secondary sections */

    /* Typography */
    --text-main: #1a1f26;       /* Deep charcoal */
    --text-muted: #5c6673;      /* Muted slate for secondary text */
    
    /* Fonts */
    --font-ui: 'Inter', sans-serif;           /* Modern, accessible, tech-friendly */
    --font-heading: 'Merriweather', serif;    /* Classic, academic, scientific */

    /* Borders & Shadows */
    --border-soft: rgba(43, 53, 66, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 12px rgba(43, 53, 66, 0.04);
    --shadow-md: 0 12px 32px rgba(43, 53, 66, 0.08);
    --shadow-hover: 0 20px 40px rgba(43, 140, 196, 0.12); /* Brighter shadow for hover */
}

/* =========================================================
   KEYFRAME ANIMATIONS (Inspired by Chrif Template)
   ========================================================= */
@keyframes gradientShift {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes expand {
    0%, 100% { width: 40%; opacity: 0.5; }
    50% { width: 80%; opacity: 1; }
}

/* =========================================================
   RESET & BASICS
   ========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Animated Ambient Background (Adapted for warm classic theme) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(217, 122, 83, 0.04) 0%, transparent 50%),  /* Warm terracotta glow */
        radial-gradient(circle at 80% 80%, rgba(230, 184, 97, 0.05) 0%, transparent 50%),  /* Gold glow */
        radial-gradient(circle at 50% 20%, rgba(43, 140, 196, 0.04) 0%, transparent 50%);  /* Blue glow */
    pointer-events: none;
    z-index: -1;
    animation: gradientShift 20s ease infinite;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--brand-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-blue-hover);
}

/* =========================================================
   HEADER & LOGO (Animated & Interactive)
   ========================================================= */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeInDown 0.8s ease;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    cursor: pointer;
    position: relative;
    padding-bottom: 6px;
}

.brand-link:hover .logo-img {
    transform: scale(1.05) rotate(-2deg);
}

.brand-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-link:hover::after {
    opacity: 1;
    animation: expand 2.5s ease-in-out infinite;
}

.brand-link .logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(43, 140, 196, 0.2));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-link .brand-text {
    font-family: var(--font-ui);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.5px;
    margin: 0;
}

/* =========================================================
   MODULAR CARDS & SECTIONS (With Staggered Animations)
   ========================================================= */
.container {
    max-width: 920px; /* Reduced max-width for better reading comfort like a newsletter/blog */
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease backwards;
}

/* Staggered load for cards (first 5) */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(43, 140, 196, 0.3);
}

/* =========================================================
   ICONS & HIGHLIGHTS (Bouncing emojis / Focus elements)
   ========================================================= */
.section-icon {
    display: inline-block;
    font-size: 1.4em;
    margin-right: 12px;
    vertical-align: middle;
    filter: drop-shadow(0 4px 8px rgba(217, 122, 83, 0.3));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .section-icon {
    transform: scale(1.2) rotate(-10deg);
}

.highlight {
    background: linear-gradient(135deg, rgba(43, 140, 196, 0.1), rgba(43, 140, 196, 0.05));
    padding: 4px 12px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid rgba(43, 140, 196, 0.2);
    color: var(--brand-blue);
}

/* Quotes & Callouts */
.quote-box {
    font-style: italic;
    font-size: 1.15em;
    padding: 28px;
    background: rgba(230, 184, 97, 0.05); /* Soft gold tint */
    border-left: 4px solid var(--accent-gold);
    border-radius: var(--radius-md);
    margin: 20px 0;
    line-height: 1.7;
    color: var(--text-muted);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(43, 140, 196, 0.3);
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(43, 140, 196, 0.4);
    color: #ffffff;
}
/* =========================================================
   HEADER UPDATES & MISSING BUTTONS
   ========================================================= */

/* Le bouton "Soutenir le projet" */
.btn-outline {
    background-color: transparent;
    color: var(--brand-dark);
    border: 2px solid var(--brand-dark);
}

.btn-outline:hover {
    background-color: var(--brand-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Alignement du titre et de ton nom */
.brand-title-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px; 
}

/* Espacement dans la barre de navigation */
.header-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Le design des boutons (Notre Genèse, Coaching, etc.) */
.nav-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--bg-subtle);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-btn:hover {
    background-color: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(43, 140, 196, 0.2);
}

/* Comportement sur Téléphone Mobile (Responsive) */
@media (max-width: 900px) {
    .site-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .header-user {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch; 
        gap: 1rem;
    }
    
    .header-nav {
        display: flex;
        flex-wrap: wrap; /* Permet aux boutons de passer à la ligne proprement */
        justify-content: center;
        gap: 0.5rem;
    }
    
    .header-user > .btn-outline {
        align-self: center; /* Garde le bouton Soutenir bien au centre */
    }
}