/* === DEBUT THEME PERSONNALISE === */
:root {
    --primary-color: #9141ac !important;
    --primary-dark: #613583 !important;
    --text-color: #334155 !important;
    --card-bg: #ffffff !important;
}

body { background: linear-gradient(135deg, #6b21a8 0%, #c084fc 45%, #f8fafc 100%) !important; background-attachment: fixed !important; color: var(--text-color) !important; }
.logo-container { display: flex !important; }

h1, h2, h3, h4, h5, .main-header h1, .feature-card h3, .section-title, a, strong, .other-sites-list a {
    color: var(--primary-dark) !important;
}

.btn, .btn-action-blue, .btn-primary, footer .btn, #scroll-to-top, [id*='scroll'], button {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}
.btn:hover, .btn-action-blue:hover, footer .btn:hover, #scroll-to-top:hover {
    background-color: var(--primary-dark) !important;
}

.feature-card, .card, [class*='card'], .highlight-box {
    border-left: 4px solid var(--primary-color) !important;
}

.info-box, .alert-info, .step-box, [class*='info'], [class*='note'], [class*='step'] {
    border-left-color: var(--primary-color) !important;
    background-color: rgba(234, 88, 12, 0.08) !important;
}
.info-box *, .alert-info *, [class*='info'] * {
    color: var(--text-color) !important;
}
.dropdown-menu a:hover {
    background-color: rgba(234, 88, 12, 0.1) !important;
    color: var(--primary-dark) !important;
}
/* === FIN THEME PERSONNALISE === */

/* --- Styles du corps de page avec dégradé bicolore --- */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Dégradé radial/linéaire riche inspiré de GénéaSite */
    background: linear-gradient(135deg, #1e40af 0%, #60a5fa 45%, #f8fafc 100%);
    background-attachment: fixed; /* Garde le dégradé fixe lors du défilement */
    
    color: var(--text-color);
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Header style GénéaSite --- */
.main-header {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 900px;
    padding: 25px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 30px;
}

/* Alignement du logo et du titre côte à côte */
.logo-container {
    display: flex !important;
    flex-direction: row !important; /* Force l'alignement sur une même ligne */
    align-items: center !important;  /* Centre l'image verticalement par rapport au texte */
    justify-content: center;        /* Garde le bloc centré au milieu du header */
    gap: 15px;                      /* Espacement entre l'image et le texte */
    margin-bottom: 15px;
}

.logo-img {
    width: 45px;                   /* Ajustez la taille selon votre besoin */
    height: auto;
    display: block;
}

.main-header h1 {
    margin: 0;                     /* Enlève la marge par défaut sous le titre */
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* --- Navigation --- */
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

/* --- Conteneur du contenu principal --- */
.main-container {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 900px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* --- Bloc mis en valeur (Bordure verticale verte/bleue comme GénéaSite) --- */
.highlight-box {
    border-left: 4px solid var(--border-accent);
    padding-left: 15px;
    margin: 20px 0;
}

 /* --- Style du Pied de Page (Footer) style GénéaSite --- */
footer {
    background-color: var(--card-bg, #ffffff);
    width: 100%;
    max-width: 900px;
    margin: 30px auto 20px auto;
    padding: 35px 25px 25px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* Boutons principaux du footer (Boutons pill) */
footer .btn {
    display: inline-block;
    background-color: var(--primary-color); /* Couleur bleue principale */
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    padding: 10px 20px;
    border-radius: 25px; /* Arrondi pilule complet */
    margin: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

footer .btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(3, 105, 161, 0.3);
}

/* Séparateur au milieu */
.footer-divider {
    width: 40px;
    height: 3px;
    background-color: #cbd5e1;
    margin: 20px auto;
    border-radius: 2px;
}

/* Liste des autres sites */
.other-sites-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.other-sites-list h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.other-sites-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.2s ease;
}

.other-sites-list a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Copyright */
.copyright {
    font-size: 0.85em;
    color: #64748b;
    margin-top: 15px;
}

/* Bouton Retour en haut (arrondi vert/bleu style GénéaSite) */
#scroll-to-top {
    background-color: var(--primary-color) !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

#scroll-to-top:hover {
    background-color: var(--primary-dark) !important;
}

/* Boutons d'action principaux (style pilule bleu avec survol) */
.btn-action-blue {
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
    transition: all 0.3s ease; /* Transition fluide au survol */
}

/* Changement de couleur au passage de la souris (:hover) */
.btn-action-blue:hover {
    background-color: var(--primary-dark); /* Bleu plus foncé */
    transform: translateY(-2px); /* Léger effet de levée */
    box-shadow: 0 4px 10px rgba(3, 105, 161, 0.3);
}

/* Conteneur principal du menu déroulant */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Bouton du menu principal */
.dropdown-toggle {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Le sous-menu masqué par défaut */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

/* Style des liens à l'intérieur du menu déroulant */
.dropdown-menu a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95em;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* Changement de couleur au survol des sous-liens */
.dropdown-menu a:hover {
    background-color: #f0f9ff;
    color: var(--primary-color);
}

/* Affichage du sous-menu au survol de la souris */
.dropdown:hover .dropdown-menu {
    display: block;
}
