/* --- CONFIGURATION ARRIÈRE-PLAN (Style TransFreeBox avec image326) --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* L'image se répète sur tout l'écran et reste fixe lors du défilement */
    background: #f3fff7 url('../img/image326.jpg') repeat fixed; 
    background-size: auto;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER CARD (Cadre blanc supérieur) --- */
.header-card {
    background-color: #ffffff !important;
    max-width: 950px;
    margin: 20px auto 40px auto !important;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-align: center;
}

header {
    background: transparent !important;
}

/* Alignement icône (favicon) et titre côte à côte */
.logo-title-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px;
    margin-bottom: 15px;
}

.site-icon {
    width: 48px;
    height: 48px;
    display: block;
}

header h1 {
    margin: 0;
    font-size: 2.8em;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    
    /* Effet cristallin vert dégradé extrait de image326.jpg */
    background: linear-gradient(to bottom, #118a53 0%, #17bb71 50%, #118a53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    filter: drop-shadow(0px 2px 4px rgba(255, 255, 255, 0.8));
}

/* --- NAVIGATION STYLE TRANSFREEBOX (Vert / Or Émeraude) --- */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #118a53; /* Vert soutenu */
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 20px; /* Boutons ovales TransFreeBox */
}

.main-nav a:hover {
    color: #ffffff !important;
    background: #17bb71; /* Vert clair au survol */
    transform: translateY(-2px);
}

/* --- MENU DÉROULANT --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 10px 0 !important;
    z-index: 9999;
    border: 1px solid #ddffe6;
}

.dropdown-menu li {
    display: block !important; 
    width: 100% !important;
    margin: 0 !important;
}

.dropdown-menu a {
    color: #118a53 !important;
    padding: 10px 20px !important;
    display: block;
    font-size: 0.95em;
    font-weight: normal;
    border-radius: 0 !important;
}

.dropdown-menu a:hover {
    background-color: #f3fff7;
    color: #17bb71 !important;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* --- LE CONTENU PRINCIPAL (La Carte Blanche) --- */
.card {
    background: #ffffff !important;
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

h2 { 
    color: #118a53; 
    border-bottom: 2px solid #f3fff7; 
    padding-bottom: 10px; 
}

.section-box {
    margin: 30px 0;
    padding: 20px;
    border-left: 4px solid #17bb71; /* Ligne verte latérale */
    background: #ffffff !important;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

/* --- BOUTONS RONDS (Style TransFreeBox) --- */
.btn {
    display: inline-block;
    background: #17bb71;
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px; /* Entièrement rond */
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(23, 187, 113, 0.2);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #118a53;
    transform: scale(1.03);
}

/* --- FOOTER --- */
footer {
    background-color: #ffffff;
    padding: 40px 20px;
    border-top: 1px solid #eefff3;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.footer-divider {
    width: 50px;
    border: 1px solid #17bb71;
    margin: 20px auto;
}

.other-sites-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.other-sites-list a {
    text-decoration: none;
    color: #118a53;
    transition: color 0.3s;
}

.other-sites-list a:hover {
    color: #17bb71;
    text-decoration: underline;
}

.copyright {
    font-size: 0.85em;
    color: #64748b;
    margin-top: 20px;
}

/* Empêcher les liens cliqués de devenir violets */
.card a, .card a:visited {
    color: #118a53;
    transition: color 0.3s;
}

.card a:hover {
    color: #17bb71;
}
