/**
 * FILE: assets/css/style.css
 * DESCRIPTION: Styles principaux pour le site public ONIARDC
 * VERSION: 15.0 - Refonte élégante Vert & Blanc - Logo agrandi 40%
 */

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --primary: #0d6e4a;
    --primary-dark: #064229;
    --primary-light: #1a8a5e;
    --primary-soft: #e8f5e9;
    --primary-gradient: linear-gradient(135deg, #04301d 0%, #0d6e4a 50%, #064229 100%);
    --primary-gradient-light: linear-gradient(135deg, #0d6e4a 0%, #1a8a5e 100%);
    
    --secondary: #e67e22;
    --secondary-dark: #d35400;
    --accent: #4CAF50;
    --accent-light: #81C784;
    --accent-gold: #e67e22;
    --accent-gold-light: #f39c12;
    --gold: #c9a23d;
    --gold-light: #dbb95a;
    --gold-gradient: linear-gradient(135deg, #c9a23d, #dbb95a);
    
    --success: #10b981;
    --info: #3b82f6;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --dark: #0a1628;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    
    --shadow-xs: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-slower: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-display: 'Manrope', 'Inter', sans-serif;
    --font-elegant: 'Cormorant Garamond', 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 100px; /* Hauteur du header avec logo agrandi */
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--dark);
}

.gold-text {
    color: var(--gold);
}

.gold-gradient {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HEADER - INCLUS DANS HEADER.PHP
   ============================================ */
/* Les styles du header sont définis directement dans header.php */

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.footer .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.footer .logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.footer .logo-text span {
    color: var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-family: var(--font-primary);
}

.footer-links a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 0.4rem;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-links a i {
    margin-right: 0.5rem;
    width: 1.2rem;
    color: var(--gold);
    opacity: 0.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8rem;
    color: var(--gray-500);
}

.footer-bottom .footer-heart {
    color: var(--gold);
}

/* ============================================
   BOUTONS GLOBAUX
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #43A047, #2E7D32);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-normal);
    box-shadow: 0 4px 24px rgba(46, 125, 50, 0.2);
    text-decoration: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(46, 125, 50, 0.3);
    color: white;
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition-normal);
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-3px);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--gold-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-normal);
    box-shadow: 0 4px 24px rgba(201, 162, 61, 0.2);
    text-decoration: none;
    cursor: pointer;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(201, 162, 61, 0.3);
    color: white;
}

/* ============================================
   CARDS GLOBALES
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* ============================================
   SECTION TITRES GLOBAUX
   ============================================ */
.section-tag {
    display: inline-block;
    padding: 4px 16px;
    background: var(--gray-100);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    font-weight: 300;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-notif {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--shadow-2xl);
    max-width: 420px;
    font-size: 0.95rem;
    border: 1px solid rgba(201, 162, 61, 0.06);
    font-family: var(--font-primary);
}

.toast-notif.show {
    transform: translateX(0);
}

.toast-notif i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-notif i.fa-check-circle {
    color: var(--success);
}
.toast-notif i.fa-exclamation-triangle {
    color: var(--warning);
}
.toast-notif i.fa-exclamation-circle {
    color: var(--danger);
}
.toast-notif i.fa-info-circle {
    color: var(--gold);
}

/* ============================================
   RESPONSIVE GLOBAL
   ============================================ */
@media (max-width: 1200px) {
    body {
        padding-top: 88px;
    }
}

@media (max-width: 1024px) {
    body {
        padding-top: 80px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 68px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer .logo {
        justify-content: center;
    }
    
    .footer-links a {
        text-align: center;
    }
    
    .footer-links a i {
        margin-right: 0.3rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .toast-notif {
        left: 20px;
        right: 20px;
        bottom: 20px;
        transform: translateY(100px);
        max-width: none;
    }
    .toast-notif.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-gold {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* ============================================
   UTILITAIRES
   ============================================ */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.d-flex {
    display: flex;
}
.d-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.d-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.flex-column {
    flex-direction: column;
}
.flex-wrap {
    flex-wrap: wrap;
}
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.w-100 {
    width: 100%;
}
.h-100 {
    height: 100%;
}

.relative {
    position: relative;
}
.absolute {
    position: absolute;
}

.overflow-hidden {
    overflow: hidden;
}

.rounded {
    border-radius: var(--radius-md);
}
.rounded-lg {
    border-radius: var(--radius-lg);
}
.rounded-xl {
    border-radius: var(--radius-xl);
}
.rounded-full {
    border-radius: var(--radius-full);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}
.shadow-md {
    box-shadow: var(--shadow-md);
}
.shadow-lg {
    box-shadow: var(--shadow-lg);
}
.shadow-xl {
    box-shadow: var(--shadow-xl);
}

/* ============================================
   ANIMATIONS GLOBALES
   ============================================ */
@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(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes gold-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}
.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}
.animate-slideInLeft {
    animation: slideInLeft 0.6s ease forwards;
}
.animate-slideInRight {
    animation: slideInRight 0.6s ease forwards;
}
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.1s;
}
.delay-2 {
    animation-delay: 0.2s;
}
.delay-3 {
    animation-delay: 0.3s;
}
.delay-4 {
    animation-delay: 0.4s;
}
.delay-5 {
    animation-delay: 0.5s;
}

/* ============================================
   SCROLLBAR PERSONNALISÉE
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   SELECTION TEXTE
   ============================================ */
::selection {
    background: var(--gold);
    color: white;
}

::-moz-selection {
    background: var(--gold);
    color: white;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .footer,
    .hero-wave-refined,
    .cta-refined {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
        background: white !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 1cm !important;
    }
    
    .section-president-refined,
    .services-refined,
    .news-refined,
    .stats-refined {
        padding: 20px 0 !important;
        page-break-inside: avoid;
    }
}