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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* ===== COULEURS MODEM ===== */
:root {
    --bleu-modem: #003189;
    --orange-modem: #F7941D;
    --blanc: #ffffff;
    --gris-clair: #f5f5f5;
    --gris-moyen: #ddd;
    --texte-fonce: #222;
}

/* ===== HEADER ===== */
header {
    background: var(--bleu-modem);
    color: white;
}

.header-top {
    padding: 20px 40px;
}

.logo-zone {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-modem {
    height: 60px;
}

.titre-header h1 {
    font-size: 1.8em;
    font-weight: bold;
}

.titre-header p {
    font-size: 1em;
    opacity: 0.9;
}

.parti {
    color: var(--orange-modem) !important;
    font-weight: bold;
}

/* ===== NAVIGATION ===== */
nav {
    background: #002070;
    padding: 0 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    transition: background 0.3s;
    font-size: 1em;
}

nav ul li a:hover {
    background: var(--orange-modem);
    color: white;
}

/* ===== MAIN ===== */
main {
    min-height: 70vh;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--bleu-modem), #0052cc);
    color: white;
    text-align: center;
    padding: 80px 40px;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-texte {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* ===== BOUTONS ===== */
.btn-principal {
    display: inline-block;
    background: var(--orange-modem);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.btn-principal:hover {
    background: #d4780a;
}

.btn-secondaire {
    display: inline-block;
    background: transparent;
    color: var(--bleu-modem);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--bleu-modem);
    transition: all 0.3s;
}

.btn-secondaire:hover {
    background: var(--bleu-modem);
    color: white;
}

.btn-danger {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-danger:hover {
    background: #b02a37;
}

.btn-petit {
    font-size: 0.85em;
    padding: 5px 10px;
}

/* ===== SECTIONS ===== */
.section-accueil, .section-valeurs {
    padding: 60px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-accueil h2, .section-valeurs h2 {
    font-size: 1.8em;
    color: var(--bleu-modem);
    margin-bottom: 30px;
    text-align: center;
}

/* ===== GRILLE ACTUALITÉS ===== */
.grille-actus {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.carte-actu {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-top: 4px solid var(--orange-modem);
}

.carte-actu h3 {
    color: var(--bleu-modem);
    margin: 10px 0;
}

.date-actu {
    font-size: 0.85em;
    color: var(--orange-modem);
    font-weight: bold;
}

.lien-suite {
    color: var(--bleu-modem);
    text-decoration: none;
    font-weight: bold;
}

/* ===== VALEURS ===== */
.section-valeurs {
    background: white;
    max-width: 100%;
    padding: 60px 40px;
}

.grille-valeurs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.valeur {
    padding: 20px;
}

.valeur .icone {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.valeur h3 {
    color: var(--bleu-modem);
    margin-bottom: 10px;
}

/* ===== PAGES INTÉRIEURES ===== */
.page-interieure {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 40px;
}

.page-interieure h2 {
    color: var(--bleu-modem);
    font-size: 2em;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--orange-modem);
    padding-bottom: 10px;
}

/* ===== PROFIL ===== */
.profil {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.photo {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15);
}

.bio {
    font-size: 1.05em;
    line-height: 1.8;
}

.modem-info {
    background: var(--bleu-modem);
    color: white;
    padding: 30px;
    border-radius: 10px;
}

.modem-info h3 {
    margin-bottom: 15px;
    color: var(--orange-modem);
}

.modem-info a {
    margin-top: 15px;
    border-color: white;
    color: white;
}

.modem-info a:hover {
    background: white;
    color: var(--bleu-modem);
}

/* ===== ACTUALITÉS PAGE ===== */
.article-actu {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border-left: 5px solid var(--orange-modem);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.article-header h3 {
    color: var(--bleu-modem);
    font-size: 1.3em;
}

.badge-date {
    background: var(--orange-modem);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    white-space: nowrap;
}

/* ===== CONTACT ===== */
.contact-grille {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.formulaire-contact h3, .infos-contact h3 {
    color: var(--bleu-modem);
    margin-bottom: 20px;
}

.champ {
    margin-bottom: 20px;
}

.champ label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--bleu-modem);
}

.champ input, .champ textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gris-moyen);
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: border 0.3s;
}

.champ input:focus, .champ textarea:focus {
    outline: none;
    border-color: var(--bleu-modem);
}

.infos-contact {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.info-bloc {
    padding: 15px 0;
    border-bottom: 1px solid var(--gris-moyen);
}

/* ===== ALERTES ===== */
.alerte-succes {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.alerte-erreur {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* ===== LOGIN ===== */
.page-login {
    background: var(--bleu-modem);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    background: white;
    padding: 50px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.login-box h2 {
    text-align: center;
    color: var(--bleu-modem);
    margin-bottom: 10px;
}

.sous-titre-login {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* ===== ADMIN ===== */
.page-admin {
    background: #f0f2f5;
}

.admin-header {
    background: var(--bleu-modem);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.5em;
}

.admin-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
}

.admin-contenu {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.onglets {
    display: flex;
    gap: 5px;
    margin-bottom: 0;
}

.onglet {
    padding: 12px 25px;
    background: #ddd;
    border: none;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    font-size: 1em;
    font-family: inherit;
}

.onglet.actif {
    background: var(--bleu-modem);
    color: white;
}

.badge {
    background: var(--orange-modem);
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.8em;
    margin-left: 5px;
}

.section-onglet {
    background: white;
    padding: 30px;
    border-radius: 0 5px 5px 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.section-onglet h2 {
    color: var(--bleu-modem);
    margin-bottom: 20px;
    margin-top: 20px;
}

.section-onglet h2:first-child {
    margin-top: 0;
}

.formulaire-admin textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gris-moyen);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
}

.tableau-admin {
    width: 100%;
    border-collapse: collapse;
}

.tableau-admin th {
    background: var(--bleu-modem);
    color: white;
    padding: 12px;
    text-align: left;
}

.tableau-admin td {
    padding: 12px;
    border-bottom: 1px solid var(--gris-moyen);
}

.tableau-admin tr:hover td {
    background: #f9f9f9;
}

.message-recu {
    background: #f9f9f9;
    border: 1px solid var(--gris-moyen);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.message-info {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.date-msg {
    color: #888;
    font-size: 0.9em;
}

.message-sujet {
    font-weight: bold;
    color: var(--bleu-modem);
    margin-bottom: 10px;
}

/* ===== FOOTER ===== */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
}

.footer-content p {
    margin-bottom: 8px;
}

footer a {
    color: var(--orange-modem);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== DIVERS ===== */
.centrer {
    text-align: center;
    margin-top: 20px;
}

.message-vide {
    text-align: center;
    padding: 50px;
    color: #888;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li a {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .hero h2 {
        font-size: 1.7em;
    }
    
    .profil {
        grid-template-columns: 1fr;
    }
    
    .contact-grille {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        padding: 15px 20px;
    }
    
    .section-accueil, .page-interieure {
        padding: 30px 20px;
    }
    
    .article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
