/* --- 1. DÉFINITION DES POLICES LOCALES (Optimisation Performance) --- */

/* INTER (Corps de texte) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../../fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* MERRIWEATHER (Titres) */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../fonts/merriweather-v33-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../fonts/merriweather-v33-latin-700.woff2') format('woff2');
}

/* --- 2. VARIABLES GLOBALES (Mises à jour) --- */
:root {
    --color-brand-900: #0f3c85; /* Bleu Média */
    --color-brand-800: #1e4b95;
    --color-brand-700: #2d5ba5;
    --color-brand-600: #4d5f6a;
    --color-brand-500: #607682; 
    --color-brand-100: #e4e8eb;
    --color-brand-50:  #f4f6f8;
    
    --color-accent: #1542b4;
    --color-success: #4ade80;
    
    --color-text-main: #1a202c;
    --color-text-muted: #64748b;
    --color-bg-page: #ffffff;
    --color-border: #e2e8f0;
    
    /* MODIFICATION : Utilisation des polices locales */
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Inter', sans-serif;
    
    --container-width: 1152px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }
body { 
    margin: 0; 
    padding: 0; 
    font-family: var(--font-sans); 
    color: var(--color-text-main); 
    background-color: var(--color-bg-page); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
}
a { text-decoration: none; color: var(--color-accent); transition: color 0.2s;}
a:hover{
   
    text-decoration: underline;
}
.container { width: 100%; max-width: var(--container-width); padding: 0 1rem; margin: 0 auto; }

/* --- HEADER STYLES --- */
.site-header { 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    background: #ffffff; 
    border-bottom: 1px solid var(--color-border); 
    font-family: var(--font-sans); 
}

/* Top Bar */
.top-bar { 
    background-color: var(--color-brand-900); 
    color: #ffffff; 
    font-size: 0.75rem; 
    padding: 8px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    overflow: hidden;
}
.top-bar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    white-space: nowrap; 
}
.top-bar-left { 
    display: flex; 
    gap: 16px; 
    align-items: center; 
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-bar-right { display: flex; gap: 16px; }
.top-bar a:hover { text-decoration: underline; }

/* Main Navigation */
.main-nav { 
    height: 80px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

/* Logo */
.brand { 
    display: flex; 
    flex-direction: column; 
    flex-shrink: 0; 
    margin-right: auto; 
    text-decoration: none;
}
.brand-title { 
    font-family: var(--font-serif); 
    color: var(--color-brand-900); 
    font-size: 1.5rem; 
    font-weight: 900; 
    letter-spacing: -0.025em; 
    line-height: 1; 
}
.brand-subtitle { 
    font-family: var(--font-sans); 
    color: var(--color-text-muted); 
    font-size: 0.625rem; 
    text-transform: uppercase; 
    letter-spacing: 0.15em; 
    font-weight: 600; 
    margin-top: 4px; 
}

/* Links (Desktop) */
.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    flex-wrap: nowrap; 
    margin-left: auto; 
}
.nav-link { 
    color: var(--color-text-main); 
    font-weight: 600; 
    font-size: 0.7rem; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    cursor: pointer;
}
.nav-link:hover { color: var(--color-brand-900); text-decoration: underline; }

/* CTA Button Header */
.btn-header { 
    background-color: var(--color-brand-900); 
    color: #ffffff; 
    padding: 10px 20px; 
    border-radius: var(--radius-sm); 
    font-weight: 600; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-header:hover { background-color: #0a2a5e; }

.btn-header2 { 
    background-color: orange; 
    color: #000000; 
    padding: 10px 20px; 
    border-radius: var(--radius-sm); 
    font-weight: 600; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-header2:hover { background-color: rgb(255, 225, 0); }

/* RESPONSIVE MOBILE */
@media (max-width: 950px) {
    .top-bar { font-size: 0.65rem; padding: 6px 0; }
    .top-bar-right { display: none; }
    .top-bar-left span:first-child { display: none; }
    .top-bar-left span:nth-child(2) { display: none; }
    
    .brand-title { font-size: 1.2rem; }
    
    .nav-links { 
        display: none !important; 
        position: absolute;
        top: 80px;
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        align-items: flex-start;
        z-index: 999;
    }
    .nav-links[style*="display: flex"] { display: flex !important; }
    
    .nav-link { font-size: 0.9rem; padding: 10px 0; border-bottom: 1px solid #f1f5f9; width: 100%; }
    .btn-header { width: 100%; text-align: center; margin-top: 10px; }

    .menu-btn { display: block !important; margin-left: auto; }
}

/* --- FOOTER --- */
.site-footer { background-color: #f9fafb; border-top: 1px solid var(--color-border); padding: 64px 0 32px; color: var(--color-text-muted); font-size: 0.875rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }
.foot-col h4 { font-family: var(--font-serif); font-weight: 700; font-size: 1.125rem; color: var(--color-brand-900); margin-bottom: 16px; }
.foot-col h5 { font-family: var(--font-sans); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-brand-900); margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 12px; }
.foot-bottom { border-top: 1px solid var(--color-border); padding-top: 32px; display: flex; justify-content: space-between; font-size: 0.75rem; color: #94a3b8; }

/* --- GLOBAL BUTTONS --- */
.btn-primary {
    background-color: var(--color-brand-900) !important;
    color: #ffffff !important;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(15, 60, 133, 0.2);
}
.btn-primary:hover {
    background-color: #0a2a5e;
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(15, 60, 133, 0.3);
}
