/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header et navigation - Inspiré de la Faculté Jean Calvin */
header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.header-content {
    position: relative;
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 60px;
    background: rgba(44, 82, 130, 0.3);
    z-index: 1;
    border-radius: 30px;
    clip-path: polygon(
        0% 20%,
        10% 10%,
        20% 15%,
        30% 5%,
        40% 12%,
        50% 8%,
        60% 15%,
        70% 5%,
        80% 18%,
        90% 10%,
        100% 20%,
        100% 80%,
        90% 90%,
        80% 85%,
        70% 95%,
        60% 88%,
        50% 92%,
        40% 85%,
        30% 95%,
        20% 82%,
        10% 90%,
        0% 80%
    );
}

.logo-background::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    clip-path: polygon(
        0% 25%,
        10% 15%,
        20% 20%,
        30% 10%,
        40% 17%,
        50% 13%,
        60% 20%,
        70% 10%,
        80% 23%,
        90% 15%,
        100% 25%,
        100% 75%,
        90% 85%,
        80% 80%,
        70% 90%,
        60% 83%,
        50% 87%,
        40% 80%,
        30% 90%,
        20% 77%,
        10% 85%,
        0% 75%
    );
}

.logo-background::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    clip-path: polygon(
        0% 30%,
        10% 20%,
        20% 25%,
        30% 15%,
        40% 22%,
        50% 18%,
        60% 25%,
        70% 15%,
        80% 28%,
        90% 20%,
        100% 30%,
        100% 70%,
        90% 80%,
        80% 75%,
        70% 85%,
        60% 78%,
        50% 82%,
        40% 75%,
        30% 85%,
        20% 72%,
        10% 80%,
        0% 70%
    );
}

header h1 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

header h1 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

header h1 a:hover {
    color: #e2e8f0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav li {
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

nav a:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Contenu principal */
main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Sections */
section {
    margin-bottom: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #c53030;
}

h2 {
    color: #1e3a5f;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c53030, #e53e3e);
    border-radius: 2px;
}

h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 500;
}

/* Titres générés par le contenu Markdown */
main h1 {
    color: #1e3a5f;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
}

main h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c53030, #e53e3e);
    border-radius: 2px;
}

main h2 {
    color: #1e3a5f;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    position: relative;
}

main h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2c5282, #1e3a5f);
    border-radius: 2px;
}

main h3 {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

main h4 {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Détails des numéros */
.details-numero {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-left: 5px solid #1e3a5f;
    margin-bottom: 2rem;
}

.details-numero h2 {
    color: #1e3a5f;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.numero-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.numero-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.pdf-link {
    color: #c53030 !important;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(197, 48, 48, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pdf-link:hover {
    background: #c53030;
    color: white !important;
    transform: translateY(-1px);
}

/* Listes des numéros */
.liste-numeros {
    list-style: none;
    margin-left: 0;
    display: grid;
    gap: 1rem;
}

.numero-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #c53030;
}

.numero-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.numero-link {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.numero-principal {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.numero-details {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Articles */
.liste-articles {
    list-style: none;
    margin-left: 0;
    display: grid;
    gap: 1rem;
}

.article-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.article-item:hover {
    border-left-color: #c53030;
    background: #fff;
    transform: translateX(5px);
}

.sommaire-item {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    border-left-color: #c53030;
}

.sommaire-item .titre-article a {
    color: white;
    font-weight: 600;
}

.sommaire-item .page-article {
    color: #e2e8f0;
}

.titre-article {
    margin-bottom: 0.25rem;
}

/* Espacement spécifique pour les détails de publication dans les pages auteur */
.details-publication {
    color: #718096;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.25rem;
}

.titre-article a {
    color: #1e3a5f;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.titre-article a:hover {
    color: #c53030;
}

.auteurs-article {
    color: #718096;
    font-style: italic;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.page-article {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Liens d'articles entièrement cliquables */
.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: inherit;
    text-decoration: none;
}

.article-link .titre-article {
    color: #1e3a5f;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.article-link:hover .titre-article {
    color: #c53030;
}

.article-link .auteurs-article {
    color: #718096;
    font-style: italic;
    margin-bottom: 0;
    font-weight: 500;
}

/* Styles spéciaux pour les articles sommaire avec liens */
.sommaire-item .article-link .titre-article {
    color: white;
    font-weight: 600;
}

.sommaire-item .article-link:hover .titre-article {
    color: #e2e8f0;
}

.sommaire-item .article-link .auteurs-article {
    color: #e2e8f0;
}

/* Listes des auteurs */
.liste-auteurs {
    list-style: none;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.liste-auteurs li {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #1e3a5f;
    transition: all 0.3s ease;
}

.liste-auteurs li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left-color: #c53030;
}

.liste-auteurs a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Recherche */
.search-container, .search-alternative {
    margin-bottom: 2rem;
}

.search-alternative form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-alternative input[type="text"] {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-alternative input[type="text"]:focus {
    outline: none;
    border-color: #1e3a5f;
}

.search-alternative button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #c53030 0%, #e53e3e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-alternative button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 48, 48, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .numero-info {
        grid-template-columns: 1fr;
    }
    
    .search-alternative form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-alternative input[type="text"] {
        min-width: auto;
    }
    
    .liste-auteurs {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Liens généraux */
a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c53030;
}

/* Styles pour les listes générales */
ul {
    margin-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Amélioration de la lisibilité */
p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

strong {
    color: #1e3a5f;
    font-weight: 600;
}

/* Menu de navigation par année */
.menu-annees {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.menu-annees h3 {
    color: #1e3a5f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.liste-annees {
    list-style: none;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.liste-annees li {
    margin: 0;
}

.lien-annee {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: #1e3a5f;
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.lien-annee:hover {
    background: #1e3a5f;
    color: white;
    border-color: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

/* Groupes d'années */
.groupe-annee {
    margin-bottom: 3rem;
}

.titre-annee {
    color: #1e3a5f;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #c53030;
    position: relative;
}

.titre-annee::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1e3a5f, #2c5282);
}

/* Retour à la ligne après les années multiples de 10 (seulement sur écrans larges) */
@media (min-width: 769px) {
    /* Force un retour à la ligne après les années se terminant par 0 */
    .liste-annees .annee-fin-decennie::after {
        content: "";
        flex-basis: 100%;
        height: 0;
        order: 1;
    }
}

/* Responsive pour le menu des années */
@media (max-width: 768px) {
    .liste-annees {
        gap: 0.5rem;
        /* Garde le flexbox sur mobile pour un affichage compact */
        display: flex;
        flex-wrap: wrap;
    }
    
    .lien-annee {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .menu-annees {
        padding: 1rem;
    }
    
    .titre-annee {
        font-size: 1.5rem;
    }
}

/* Formulaire de choix d'une année */
.choix-annee {
    background: linear-gradient(135deg, #f0f9ff 0%, #bfdbfe 100%);
    border: 2px solid #93c5fd;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.1);
}

.choix-annee h3 {
    color: #1e3a5f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.form-annee-direct {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Formulaire de choix direct d'un numéro */
.choix-direct-numero {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #feb2b2;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(197, 48, 48, 0.1);
}

.choix-direct-numero h3 {
    color: #c53030;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.form-numero-direct {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.input-group label {
    color: #1e3a5f;
    font-weight: 600;
    font-size: 1rem;
}

.input-group input[type="number"] {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    width: 120px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #c53030;
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

.input-group button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #c53030 0%, #e53e3e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 48, 48, 0.3);
}

/* Styles spécifiques pour le bouton du formulaire année */
.form-annee-direct .input-group button {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
}

.form-annee-direct .input-group button:hover {
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

/* Responsive pour le formulaire de choix d'année */
.choix-annee {
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.1);
}

@media (max-width: 768px) {
    .choix-annee {
        padding: 1rem;
    }
}

.input-group button:active {
    transform: translateY(0);
}

.message-resultat {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}

.message-resultat.erreur {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

/* Responsive pour le formulaire */
@media (max-width: 768px) {
    .choix-direct-numero {
        padding: 1rem;
    }
    
    .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .input-group input[type="number"] {
        width: 150px;
    }
}

/* Styles pour le sommaire alphabétique et les lettres de séparation */
.sommaire-alphabetique {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.lettre-sommaire {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    margin: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
}

.lettre-sommaire:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: white;
}

.lettre-separateur {
    font-size: 3rem !important;
    font-weight: 800 !important;
    color: #1e3a5f !important;
    text-align: center;
    margin: 3rem 0 2rem 0 !important;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 3px solid #1e3a5f;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.1);
    position: relative;
    letter-spacing: 2px;
}

.lettre-separateur::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #1e3a5f 0%, #c53030 100%);
    border-radius: 15px;
    z-index: -1;
}

.groupe-lettre {
    margin-bottom: 4rem;
}

/* Responsive pour le sommaire alphabétique */
@media (max-width: 768px) {
    .sommaire-alphabetique {
        padding: 1.5rem;
    }
    
    .lettre-sommaire {
        font-size: 1.4rem;
        padding: 0.8rem 1rem;
        margin: 0.3rem;
        min-width: 50px;
    }
    
    .lettre-separateur {
        font-size: 2.5rem !important;
        margin: 2rem 0 1.5rem 0 !important;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .lettre-sommaire {
        font-size: 1.2rem;
        padding: 0.6rem 0.8rem;
        margin: 0.2rem;
        min-width: 40px;
    }
    
    .lettre-separateur {
        font-size: 2rem !important;
        letter-spacing: 1px;
    }
}

/* Liens "Haut de page" */
.haut-de-page {
    text-align: right;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.lien-haut-page {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(113, 128, 150, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.lien-haut-page:hover {
    color: #1e3a5f;
    background: rgba(30, 58, 95, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive pour les liens haut de page */
@media (max-width: 768px) {
    .haut-de-page {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .lien-haut-page {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Styles pour la page de contact */
.contact-intro {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-left: 4px solid #1e3a5f;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.contact-intro p {
    margin: 0;
    color: #2d3748;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group h3 {
    color: #1e3a5f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.form-group label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Boutons radio personnalisés */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
    line-height: 1.5;
}

.radio-label:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    margin-right: 1rem;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #1e3a5f;
    background: #1e3a5f;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-label input[type="radio"]:checked ~ * {
    color: #1e3a5f;
}

/* Informations et erreurs des champs */
.field-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
    text-align: right;
}

.field-error {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #c53030;
    font-weight: 500;
    display: none;
}

.field-error.show {
    display: block;
}

/* Bouton de soumission */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Messages de retour */
.form-messages {
    margin-top: 2rem;
}

.message {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.message h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.message p {
    margin: 0;
    line-height: 1.6;
}

.message.success {
    background: #f0fff4;
    border: 2px solid #68d391;
    color: #22543d;
}

.message.success h3 {
    color: #22543d;
}

.message.error {
    background: #fff5f5;
    border: 2px solid #fc8181;
    color: #c53030;
}

.message.error h3 {
    color: #c53030;
}

/* Responsive pour le formulaire de contact */
@media (max-width: 768px) {
    .contact-form {
        max-width: none;
    }
    
    .radio-label {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .radio-custom {
        width: 18px;
        height: 18px;
        margin-right: 0.8rem;
    }
    
    .btn-submit {
        width: 100%;
        padding: 1rem;
    }
    
    .contact-intro {
        padding: 1rem;
    }
}