/* ==========================================================================
   BASES & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
    --color-bg:          #f5f9fa;
    --color-white:       #ffffff;
    --color-accent:      #2AB7C9;
    --color-accent-hover:#1e99a8;
    --color-dark:        #2c3e50;
    --color-text-main:   #2c3e50;
    --color-text-light:  #7f8c8d;
    --color-border:      #eef2f3;
    --radius-btn:        8px;
    --max-width:         1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f0f4f5;
    background-image:
        radial-gradient(at 0% 0%,   rgba(42, 183, 201, 0.3)  0px, transparent 60%),
        radial-gradient(at 100% 0%,  rgba(255, 127, 127, 0.25) 0px, transparent 60%),
        radial-gradient(at 100% 100%,rgba(255, 165, 0, 0.2)   0px, transparent 60%),
        radial-gradient(at 0% 100%,  rgba(42, 183, 201, 0.15)  0px, transparent 60%);
    background-attachment: fixed;
    background-size: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.main-header {
    background-color: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: none;
    position: sticky;
    top: 2px;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    will-change: background-color, backdrop-filter;
}

.inner-header {
    width: 95%;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
}

.main-logo {
    height: 70px;
    width: auto;
    display: block;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.main-header.scrolled .inner-header {
    height: 60px;
}

.main-header.scrolled .main-logo {
    height: 45px;
}

.buttons-group-desktop,
.buttons-group-mobile {
    display: none;
}

.header-actions {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
}

.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 2px;
    transition: 0.3s;
}

.desktop-nav {
    display: none;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s;
    white-space: nowrap;
}

.desktop-nav a i {
    margin-right: 8px;
    color: var(--color-accent);
}

.desktop-nav a:hover {
    color: var(--color-accent);
}

.desktop-nav a.nav-btn {
    padding: 10px 0;
    border-radius: var(--radius-btn);
    transition: all 0.3s ease;
    min-width: 9rem;
    max-width: 9rem;
    text-align: center;
    display: inline-block;
    font-size: 0.9rem;
}

.desktop-nav a.nav-impliquer {
    background: rgba(44, 62, 80, 0.15);
    color: var(--color-dark);
}

.desktop-nav a.nav-impliquer:hover {
    background: var(--color-dark);
    color: white;
}

.desktop-nav a.nav-donner {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.desktop-nav a.nav-donner:hover {
    background: var(--color-accent);
    color: white;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: absolute;
    top: 0px;
    right: 5%;
    width: 90%;
    max-width: 300px;
    border-radius: 20px;
    border: 1px solid rgba(42, 183, 201, 0.2);
    box-shadow: 0 15px 35px rgba(23, 43, 77, 0.15);
    padding: 10px 0;
    z-index: 1001;
    overflow: hidden;
}

.mobile-nav.open {
    display: flex;
    animation: fadeInDown 0.3s ease-out;
}

.mobile-nav a {
    padding: 18px;
    color: var(--color-dark);
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.2s;
    display: block;
}

.mobile-nav a:hover {
    background-color: rgba(42, 183, 201, 0.08);
    color: var(--color-accent);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a.mobile-cta {
    margin: 5px 10px;
    padding: 15px;
    border-radius: var(--radius-btn);
    border-bottom: none;
    font-size: 0.95rem;
}

.mobile-nav a.mobile-impliquer {
    background-color: var(--color-dark);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.mobile-nav a.mobile-impliquer:hover {
    background-color: var(--color-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.mobile-nav a.mobile-donner {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.mobile-nav a.mobile-donner:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

.desktop-nav a.active,
.mobile-nav a.active {
    color: var(--color-accent);
    cursor: default;
    pointer-events: none;
    opacity: 0.7;
}

.desktop-nav a.nav-impliquer.active,
.mobile-nav a.mobile-impliquer.active {
    color: var(--color-accent);
    cursor: default;
    pointer-events: none;
    opacity: 0.8;
}

@media (min-width: 769px) {
    .desktop-nav  { display: flex; }
    .burger-menu  { display: none; }
    .mobile-nav   { display: none; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HERO (INDEX)
   ========================================================================== */
.hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    margin-bottom: 10px;
}

.hero-slogan {
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-divider {
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    margin: 0 auto 25px;
    border-radius: 2px;
}

.hero-actions-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
    margin-top: 20px;
}

.btn-hero-primary {
    width: 100%;
    max-width: 320px;
    padding: 17px 20px;
    background-color: var(--color-dark);
    color: white;
    border-radius: var(--radius-btn);
    font-weight: bold;
    font-size: 1.05rem;
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.35);
    letter-spacing: 0.5px;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.45);
    opacity: 1;
}

.btn-hero-secondary {
    width: 100%;
    max-width: 320px;
    padding: 14px 20px;
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-btn);
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.3s;
}

.btn-hero-secondary:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

.hero-footer-note {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* ==========================================================================
   SECTION ACTIVITÉS — CARROUSEL SWIPER (INDEX)
   ========================================================================== */
.section-activites {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    max-width: none;
    margin-top: 40px;
    padding: 50px 20px;
    position: relative;
    background: rgba(255, 140, 120, 0.12);
    border-top: 2px solid rgba(255, 127, 127, 0.25);
    border-bottom: 2px solid rgba(255, 127, 127, 0.25);
}

.section-activites-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 25px;
}

.section-titre {
    color: var(--color-accent);
    font-size: 1.8rem;
    margin: 0 0 5px 0;
}

.section-sous-titre {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

/* Carrousel Swiper */
.activites-swiper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0 50px;
    overflow: hidden;
}

.activites-swiper .swiper-slide {
    height: auto;
}

.gallery-frame {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.4s, box-shadow 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.16);
}

.gallery-frame-img {
    width: 100%;
    overflow: hidden;
}

.gallery-frame-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-frame-portrait .gallery-frame-img img {
    height: 280px;
}

.gallery-frame:hover .gallery-frame-img img {
    transform: scale(1.05);
}

.gallery-frame-body {
    padding: 15px;
    flex: 1;
}

.gallery-frame-titre {
    font-size: 1rem;
    color: var(--color-dark);
    margin: 0 0 6px 0;
}

.gallery-frame-desc {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

/* Flèches Swiper — style personnalisé */
.activites-swiper .swiper-button-prev,
.activites-swiper .swiper-button-next {
    color: var(--color-accent);
    background: rgba(255,255,255,0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.activites-swiper .swiper-button-prev:hover,
.activites-swiper .swiper-button-next:hover {
    background: var(--color-accent);
    color: white;
}

.activites-swiper .swiper-button-prev::after,
.activites-swiper .swiper-button-next::after {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Pagination Swiper — points */
.activites-swiper .swiper-pagination-bullet {
    background: var(--color-accent);
    opacity: 0.3;
    width: 10px;
    height: 10px;
    transition: 0.3s;
}

.activites-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* --- Modal activité --- */
.modal-activite {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-activite-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-activite-contenu {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalApparition 0.3s ease;
}

@keyframes modalApparition {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-activite-fermer {
    position: absolute;
    top: 12px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: 0.3s;
}

.modal-activite-fermer:hover {
    background: var(--color-accent);
    color: white;
}

.modal-activite-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.modal-activite-titre {
    padding: 20px 25px 5px;
    color: var(--color-dark);
    font-size: 1.2rem;
    margin: 0;
}

.modal-activite-desc {
    padding: 5px 25px 15px;
    color: var(--color-text-main);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

.modal-activite-liens {
    display: flex;
    gap: 12px;
    padding: 10px 25px 25px;
    justify-content: center;
}

/* ==========================================================================
   SECTION CALENDRIER — TIMELINE (INDEX)
   ========================================================================== */
.section-calendrier {
    width: 100%;
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding: 0 20px 60px;
    position: relative;
}

.section-calendrier-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent), rgba(42,183,201,0.2));
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    cursor: pointer;
    width: 50%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-gauche {
    padding-right: 40px;
    justify-content: flex-end;
    align-self: flex-start;
}

.timeline-droite {
    padding-left: 40px;
    margin-left: 50%;
}

/* Point sur la ligne */
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border: 3px solid var(--color-white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--color-accent), 0 3px 8px rgba(0,0,0,0.15);
    z-index: 2;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-gauche .timeline-dot {
    right: -8px;
}

.timeline-droite .timeline-dot {
    left: -8px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px var(--color-accent), 0 4px 12px rgba(42,183,201,0.4);
}

/* Date */
.timeline-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    margin-right: 15px;
}

.timeline-droite .timeline-date {
    margin-right: 0;
    margin-left: 0;
    order: -1;
    margin-right: 15px;
}

.timeline-jour {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.timeline-mois {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card */
.timeline-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1;
}

.timeline-item:hover .timeline-card {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
}

.timeline-card-titre {
    font-size: 0.95rem;
    color: var(--color-dark);
    margin: 0 0 6px;
}

.timeline-card-desc {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin: 0 0 10px;
    line-height: 1.5;
}

.timeline-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.timeline-card-meta i {
    color: var(--color-accent);
    margin-right: 3px;
}

/* Modal événement — réutilise les styles modal-activite */
.modal-evenement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-evenement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-evenement-contenu {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalApparition 0.3s ease;
}

.modal-evt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 5px 25px 10px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.modal-evt-meta i {
    color: var(--color-accent);
    margin-right: 4px;
}

/* Toggle inscription */
.evt-toggle-groupe {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.evt-toggle-label {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.evt-toggle-label input {
    margin-right: 6px;
}

/* ==========================================================================
   CONTENU & FORMULAIRES
   ========================================================================== */
.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
}

.page-content h1,
.card h1 {
    color: var(--color-accent);
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
}

.card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

.form-label {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-main);
    font-size: 0.9rem;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-btn);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.card-narrow {
    max-width: 480px;
}

.lien-discret {
    color: var(--color-accent);
    font-size: 0.85rem;
}

.lien-accent-bold {
    color: var(--color-accent);
    font-weight: bold;
}

.card-footer-note {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
}

.btn-submit-contact i {
    margin-right: 8px;
}

.alert-box,
.form-alert {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.alert-success {
    background: #ebfef2;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.alert-error {
    background: #fdf2f2;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.form-submit-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.card-narrow .form-submit-group .captcha-container {
    width: 100%;
    justify-content: stretch;
}

.card-narrow .form-submit-group .captcha-box {
    width: 100%;
    min-width: unset;
}

.form-submit-group .btn-submit-contact {
    flex: 1;
    min-width: 200px;
}

/* ==========================================================================
   CAPTCHA SÉCURISÉ
   ========================================================================== */
.captcha-container {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

.captcha-box {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    min-width: 280px;
}

.captcha-box:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(42, 183, 201, 0.1);
}

.captcha-box.validated {
    border-color: #27ae60;
    background: #f0fdf4;
}

.captcha-box.validated .captcha-logo {
    color: #27ae60;
}

.captcha-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-checkbox {
    position: relative;
    width: 24px;
    height: 24px;
}

.checkbox-empty {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    background: white;
    transition: all 0.2s ease;
}

.checkbox-checked {
    display: none;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    border-radius: 4px;
    color: white;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0%   { transform: scale(0); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.captcha-label {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.captcha-logo {
    color: var(--color-accent);
    font-size: 1.2rem;
    opacity: 0.7;
}

.btn-submit-contact {
    width: 100%;
    padding: 15px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    font-weight: bold;
    font-size: 1rem;
    cursor: not-allowed;
    opacity: 0.5;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: transparent;
    color: var(--color-text-main);
    padding: 30px 0 20px 0;
    margin-top: auto;
}

.footer-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-license {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-license p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-cc-text {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.cc-icon {
    height: 24px;
    width: auto;
    opacity: 0.6;
    display: block;
}

.footer-links {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    align-items: center;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.separator {
    color: rgba(0,0,0,0.2);
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(42, 183, 201, 0.1);
    color: var(--color-accent);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
    border: none;
    opacity: 0;
    visibility: hidden;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
}

/* ==========================================================================
   PAGE MISSION — DESIGN ÉDITORIAL & FILIGRANE
   ========================================================================== */
.card-mission {
    position: relative;
    background-color: var(--color-white);
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 1;
}

.card-mission::before {
    content: "";
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('https://aimerenaction.org/assets/media/coeur_mission.webp');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    opacity: 0.08;
    z-index: -1;
    transform: translateY(var(--parallax-offset, 0px));
    will-change: transform;
    animation: floatingHeart 20s ease-in-out infinite;
}

.card-contact {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-contact::before {
    content: "";
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('/assets/media/mains_contact.webp');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    opacity: 0.08;
    z-index: -1;
    will-change: transform;
    animation: floatingHeart 20s ease-in-out infinite;
}

@keyframes floatingHeart {
    0%   { transform: translateY(var(--parallax-offset, 0px)) scale(1); }
    50%  { transform: translateY(calc(var(--parallax-offset, 0px) + 15px)) scale(1.02); }
    100% { transform: translateY(var(--parallax-offset, 0px)) scale(1); }
}

.mission-row {
    padding: 45px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    text-align: center;
}

.mission-row:last-child {
    border-bottom: none;
}

.mission-row strong {
    display: block;
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 700;
}

.mission-row p {
    margin: 0 auto;
    max-width: 650px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

.mission-conclusion {
    margin-top: 45px;
    text-align: center;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   PORTAIL ADMIN
   ========================================================================== */
body.admin-body {
    background: #f5f0e8;
    background-image: none;
}

.admin-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3d5166 100%);
    border-bottom: none;
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.admin-header-inner {
    width: 95%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-logo {
    height: 60px;
    width: auto;
    opacity: 0.9;
}

.admin-welcome {
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.admin-welcome i {
    color: rgba(255,255,255,0.5);
    margin-right: 6px;
}

.admin-btn-retour {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.3rem;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.admin-btn-retour:hover {
    color: white;
    transform: translateX(-4px);
}

.admin-btn-quitter {
    padding: 8px 18px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.admin-btn-quitter:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

.grid-portail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--color-dark);
    transition: 0.3s;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: rgba(44,62,80,0.15);
}

.card-icon {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    opacity: 0.8;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin: 5px 0 0 0;
}

.admin-card {
    border-top: 3px solid #c0392b;
}

.admin-card .card-icon {
    color: #c0392b;
}

.admin-section-divider {
    margin: 10px 0 0 0;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.admin-section-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-text-light);
    font-weight: 700;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-page-title {
    margin: 0;
    color: var(--color-accent);
}

.grid-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.card-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-box-title {
    margin: 0 0 15px 0;
    font-size: 1em;
    color: var(--color-accent);
    border-bottom: 2px solid #f4f7f6;
    padding-bottom: 10px;
}

.card-box-desc {
    font-size: 0.85em;
    color: #666;
}

.card-box-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.backup-list {
    font-size: 0.85em;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    min-height: 100px;
}

.backup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.backup-row:last-child {
    border-bottom: none;
}

.backup-actions {
    display: flex;
    gap: 8px;
}

.btn-bottom {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    width: 100%;
    background-color: var(--color-accent);
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

.btn-bottom:hover {
    background-color: var(--color-accent-hover);
    color: white;
}

.btn-dark {
    background-color: var(--color-dark);
}

.btn-dark:hover {
    background-color: #1a252f;
}

.btn-action {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-edit {
    color: var(--color-accent);
    background: none;
    margin-right: 5px;
}

.btn-warning {
    color: #f39c12;
    background: none;
}

.btn-danger {
    color: #e74c3c;
    background: none;
}

.btn-search {
    position: absolute;
    right: 15px;
    top: 12px;
    background: none;
    border: none;
    cursor: pointer;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.custom-table thead tr {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.custom-table th {
    padding: 15px 10px;
    text-align: left;
    color: #495057;
    font-weight: 700;
}

.custom-table th a {
    color: inherit;
    text-decoration: none;
}

.custom-table td {
    padding: 12px;
    font-size: 0.95em;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.expandable {
    cursor: pointer;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expandable.active {
    white-space: normal;
    max-width: none;
    color: var(--color-accent);
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.page-btn {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--color-accent);
    background: white;
    color: var(--color-accent);
}

.page-btn.active {
    background: var(--color-accent);
    color: white;
}

.import-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.import-bloc {
    padding: 20px;
    border-radius: 6px;
    background: #f9f9f9;
}

.import-bloc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.import-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.input-file {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    padding: 8px 0;
}

/* --- Formulaire backend --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-phone-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-indicatif {
    width: 80px !important;
    text-align: center;
}

.form-phone-sep {
    font-weight: bold;
    color: var(--color-dark);
}

.form-radio-group {
    display: flex;
    gap: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-top: 5px;
}

.form-radio-label {
    cursor: pointer;
    font-weight: normal;
}

.form-counter {
    color: var(--color-text-light);
    display: block;
    text-align: right;
    margin-top: 4px;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-actions .btn-bottom {
    flex: 1;
    text-align: center;
}

/* --- Gestion activités (backend) --- */
.activites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activite-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    flex-wrap: wrap;
    transition: box-shadow 0.2s;
}

.activite-item.dragging {
    opacity: 0.5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.activite-drag-handle {
    cursor: grab;
    font-size: 1.3rem;
    color: var(--color-text-light);
    user-select: none;
    padding: 5px;
}

.activite-drag-handle:active {
    cursor: grabbing;
}

.activite-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.activite-info {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activite-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.activite-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.activite-edit {
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

/* ==========================================================================
   RESPONSIVE FINAL
   ========================================================================== */
@media (max-width: 768px) {
    .main-header {
        top: 0;
    }
    .inner-header {
        width: 100%;
        height: 70px;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        justify-content: center;
    }
    .desktop-nav {
        display: none;
    }
    .header-actions {
        display: flex;
        position: absolute;
        right: 15px;
    }
    .main-logo {
        height: 50px;
        margin-top: 25px;
    }
    .card {
        width: 92%;
        padding: 30px 20px;
    }
    .card-mission {
        padding: 40px 20px;
        border-radius: 15px;
    }
    .mission-row {
        padding: 30px 0;
    }
    .grid-portail {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .form-submit-group {
        flex-direction: column;
    }
    .form-submit-group .captcha-container {
        width: 100%;
        justify-content: stretch;
    }
    .form-submit-group .captcha-box {
        display: flex;
        width: 100%;
        min-width: unset;
        justify-content: flex-start;
    }
    .form-submit-group .btn-submit-contact {
        width: 100%;
        min-width: 100%;
    }
    .section-activites {
        padding: 30px 10px;
    }
    .activites-swiper .swiper-button-prev,
    .activites-swiper .swiper-button-next {
        display: none;
    }
    .modal-activite-img {
        height: 180px;
    }
    .modal-activite-liens {
        flex-direction: column;
    }
    .modal-activite-liens a {
        max-width: 100% !important;
        text-align: center;
    }

/* Timeline mobile */
    .timeline-line {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }
    .timeline-gauche {
        justify-content: flex-start;
    }
    .timeline-droite {
        margin-left: 0;
        padding-left: 50px;
    }
    .timeline-gauche .timeline-dot,
    .timeline-droite .timeline-dot {
        left: 12px;
        right: auto;
    }
    .timeline-droite .timeline-date {
        order: 0;
    }
    .evt-toggle-groupe {
        flex-direction: column;
        gap: 10px;
    }
}