/* ==========================================================================
   PERSO.CSS - Configuration Centralisée
   ========================================================================== */

:root {
    /* --- Palette de Couleurs (Harmonisée) --- */
    --primary-bg: #4c3a85;      /* Violet profond */
    --primary-hover: #6a0dad;   /* Violet clair pour survol */
    --accent-text: #6eb772;     /* Vert tendre */
    --page-bg: #f8f9fa;        /* Fond clair général */
    --card-bg: #ffffff;        /* Blanc pur */
    --text-main: #333333;      /* Texte lisible */
    --white: #ffffff;
    --white2: #cebddd;         /* Violet très clair/pastel */
    
    /* --- Layout Mapping (Adapté de l'ancien layout) --- */
    --bg-body: #ddd;           /* Fond de page externe */
    --footer-border: #999;     /* Bordure footer */
    --nav-bg: #f0f0f0;         /* Fond menu */

    /* --- Ombres et Effets --- */
    --shadow-sm: 0 4px 10px rgba(76, 58, 133, 0.2);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(76, 58, 133, 0.3);
    
    /* --- Surcharge SPIP --- */
    --spip-color-theme: var(--primary-bg);
    --spip-bg-body: var(--page-bg);
    --spip-text-color: var(--text-main);
}

/* Hyperliens
---------------------------------------------- */
a, a:visited { color: var(--primary-bg);  }

a:focus,
a:hover,
a:active { background-color: var(--primary-hover); color: var(--white); text-decoration: underline; }


h1, .h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-bg);
    text-align: center;
    margin-bottom: 20px;  
}
h2, .h2 {
    font-family: "Bebas Neue", sans-serif;
    color: var(--primary-bg);
}

.ttiki {
    font-size: 0.9rem;
    line-height: 0.92rem;
}


/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--page-bg);
    color: var(--spip-text-color);
    font-family: 'Poppins', system-ui, sans-serif;
    line-height: 1.6;
}

/* ==========================================================================
   BANDEAU
   ========================================================================== */
.banner {
    background: var(--primary-bg);
    color: var(--accent-text);
    text-align: center;
    padding: 50px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.banner:hover {
    transform: translateY(-5px);
}

.banner h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.banner p {
    color: var(--accent-text);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.banner-gora {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em;
}

nav {text-align: center; margin-bottom: 20px;}


/* ==========================================================================
   MANIFESTU
   ========================================================================== */
.manifestu {
    margin: 30px auto;
    max-width: 1000px;
    text-align: center;
}

/* 3 Gros boutons côte à côte */
.manifestu-botoiak {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0;
}

.manifestu-botoiak li {
    flex: 1;
    max-width: 300px;
}

.manifestu-botoiak li a {
    display: block;
    background-color: var(--primary-bg);
    color: var(--white);
    padding: 20px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.manifestu-botoiak li a:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    text-decoration: none;
}

.manifestu-botoiak li.actif a {
    background-color: #999;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
    opacity: 0.8;
}

.manifestu-botoiak li.actif a:hover {
    background-color: #999;
}

.manifestu_izenpetzaile {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0;
}

.manifestu_izenpetzaile li a {
    color: var(--primary-bg);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .manifestu-botoiak {
        flex-direction: column;
        align-items: center;
    }
    .manifestu_izenpetzaile {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn {
    background-color: var(--primary-bg);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(84, 65, 146, 0.4);
    color: var(--white);
    text-decoration: none;
}

/* ==========================================================================
   FOOTER & BOUTONS DE PIED DE PAGE
   ========================================================================== */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--footer-border);
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.colophon {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* ==========================================================================
   BOUTONS FOOTER (Footer Buttons)
   ========================================================================== */
.footer-buttons a.btn,
.footer-buttons a.btn:link,
.footer-buttons a.btn:visited {
    background-color: var(--primary-bg);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-buttons a.btn:hover,
.footer-buttons a.btn:focus,
.footer-buttons a.btn:active {
    background-color: var(--primary-hover) !important;
    color: var(--white) !important;
    text-decoration: none !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(84, 65, 146, 0.4);
}

/* ==========================================================================
   STYLE DU BOUTON DE FORMULAIRE (Formidable)
   ========================================================================== */
.boutons {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.submit.submit_main {
    background-color: var(--primary-bg);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.submit.submit_main:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 58, 133, 0.3);
}

.submit.submit_main:active {
    transform: translateY(0);
    box-shadow: none;
}

.image_loading {
    display: none;
}

fieldset{
    border: 1px dotted var(--primary-bg);
    padding: 0.5em !important;
    border-radius: 10px;
}
fieldset legend {
    font-weight: bold;
    color: var(--primary-bg);
    margin: 0;
    font-size:1.2em;
}

.zerrenda {
    list-style-type: square;
    padding-left: 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   COMPOSANTS
   ========================================================================== */
.content-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    max-width: 1000px;
    margin: 20px auto;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .banner {
        padding: 30px 15px;
        border-radius: 10px;
    }
    .banner h1 {
        font-size: 2rem;
    }
    .footer-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.telefonoa {
    color: var(--primary-bg);
    text-decoration: none;
}
.garbia {
    color: var(--primary-bg);
    text-decoration: none;
}
.dudan {
    color: var(--text-main);
    font-style: italic;
}

.manifestu_izenpetzaile li a { text-decoration: none;}
.manifestu_izenpetzaile li a:hover { background-color: #f0f0f0;}
.manifestu_izenpetzaile i { width: 1.4rem; text-align: center; font-size: 1.2rem; }

/* ==========================================================================
   POPUP MODALE (Améliorée et intégrée)
   ========================================================================== */
.popup {
    display: none; /* Géré dynamiquement ou par script */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrage parfait à l'écran */
    width: 90%;
    max-width: 500px;
    background: var(--card-bg);
    border: 2px solid var(--primary-bg);
    border-radius: 16px;
    padding: 30px 25px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: popupFadeIn 0.3s ease-out;
}

/* Texte à l'intérieur de la modale */
.popup p {
    color: var(--primary-bg);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

/* Bouton de fermeture élégant (croix) */
.popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--primary-bg);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.popup-close:hover {
    color: var(--primary-hover);
    transform: scale(1.1);
}

/* Animation d'apparition fluide */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}