/* ===== RÉINITIALISATION ET BASE ===== */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Optimisation mobile pour les clics */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6; /* Améliore la lisibilité */
    color: #333;
}

/* ===== STRUCTURE PRINCIPALE ===== */
.container {
    flex: 1;
    width: 95%; /* Prend presque toute la largeur sur petit écran */
    max-width: 900px;
    margin: 20px auto; /* Marge réduite pour mobile */
    background-color: #ffffff;
    padding: 30px 20px; /* Padding réduit par défaut (mobile-first) */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ===== TYPOGRAPHIE ===== */
h1 {
    text-align: center;
    color: #f97316;
    font-size: 1.8rem; /* Taille adaptée mobile */
    margin-top: 20px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.last-update {
    text-align: center;
    margin-bottom: 40px;
    color: #777;
    font-size: 0.9rem;
}

h2 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #f97316;
    font-size: 1.3rem;
    border-left: 4px solid #f97316;
    padding-left: 12px;
    font-weight: 600;
}

h3 {
    margin-top: 25px;
    font-size: 1.1rem;
    color: #444;
}

p, li {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #444;
}

ul {
    padding-left: 20px;
}

/* ===== ÉLÉMENTS SPÉCIFIQUES ===== */
.highlight {
    background-color: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.95rem;
}

a {
    color: #0066cc;
    text-decoration: none;
    word-break: break-all; /* Évite que les longs emails dépassent du cadre sur mobile */
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

footer, .footer-class {
    width: 100%;
    margin-top: auto;
}

/* ===== ADAPTATION ÉCRANS LARGES (Tablettes et PC) ===== */
@media (min-width: 768px) {
    .container {
        width: 90%;
        margin: 40px auto;
        padding: 60px 80px; /* On retrouve le grand espacement sur PC */
    }

    h1 {
        font-size: 2.5rem;
        margin-top: 40px;
    }

    h2 {
        font-size: 1.6rem;
    }
    
    .highlight {
        padding: 25px;
    }
}

/* ===== PETITS TÉLÉPHONES (Moins de 380px) ===== */
@media (max-width: 380px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 20px 15px;
    }
}