/* ============================================================
   STYLES FONDAMENTAUX - fondamentaux-style.css
   ============================================================ */

:root {
    --aurum-blue: #0B243E;
    --deep-blue: #0b1b2b;
    --aurum-gold: #C5A059;
    --gold-leaf: #C5A059;
    --paper-white: #fcfaf7;
    --text-gray: #555;
}

/* Hero section pour la page fondamentaux */
.pillar-hero {
    padding: 140px 20px 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--aurum-blue) 0%, #1a2a3a 100%);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    position: relative;
    overflow: hidden;
}

.pillar-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(197,160,89,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(197,160,89,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.back-link {
    color: var(--gold-leaf);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}

.back-link:hover { 
    opacity: 0.7; 
    transform: translateX(-5px); 
}

.pillar-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.pillar-hero p {
    font-family: 'Playfair Display', italic;
    font-size: 1.3rem;
    color: var(--gold-leaf);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.reveal {
    position: relative;
    z-index: 1;
}

/* Articles container */
.articles-container {
    max-width: 1300px;
    margin: 60px auto 120px;
    padding: 0 25px;
}

/* Grid pour les articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    -webkit-column-gap: 40px;
    -moz-column-gap: 40px;
}

/* Card article */
.article-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.article-card.reveal {
    animation: revealCard 0.8s ease-out forwards;
}

.article-card.reveal:nth-child(1) { animation-delay: 0.1s; }
.article-card.reveal:nth-child(2) { animation-delay: 0.2s; }
.article-card.reveal:nth-child(3) { animation-delay: 0.3s; }
.article-card.reveal:nth-child(4) { animation-delay: 0.4s; }
.article-card.reveal:nth-child(5) { animation-delay: 0.5s; }
.article-card.reveal:nth-child(6) { animation-delay: 0.6s; }

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

.article-img {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f0f0f0;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.article-content {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.article-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--aurum-gold);
    font-weight: 600;
    margin-bottom: 15px;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--deep-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 35px;
    flex-grow: 1;
}

.article-link {
    text-decoration: none;
    color: var(--deep-blue);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.article-link i {
    color: var(--aurum-gold);
    transition: transform 0.3s;
}

/* Hover effects */
.article-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15), 0 0 20px rgba(197, 160, 89, 0.3);
    border-color: var(--aurum-gold);
}

.article-card:hover .article-img img {
    transform: scale(1.08);
}

.article-link:hover {
    color: var(--aurum-gold);
}

.article-link:hover i {
    transform: translateX(8px);
}

@media (max-width: 768px) {
    .articles-grid { 
        grid-template-columns: 1fr; 
    }
    .pillar-hero { 
        padding-top: 100px; 
        padding-bottom: 60px;
    }
    .articles-container {
        margin: 40px auto 80px;
        padding: 0 15px;
    }
}
