/**
 * Accueil RacinesInvest — inspiration visuelle type Spotahome (clair, aéré, CTAs corail).
 * Le contenu HTML reste inchangé ; seuls les styles sont adaptés.
 */

:root {
    --sa-accent: #ff5a5f;
    --sa-accent-hover: #e54b50;
    --sa-text: #222222;
    --sa-muted: #717171;
    --sa-muted-2: #b0b0b0;
    --sa-bg: #ffffff;
    --sa-bg-soft: #f7f7f7;
    --sa-border: #ebebeb;
    --sa-footer: #222222;
    --ri-primary: #0d6e4a;
    --ri-primary-light: #0b5c3f;
    --ri-success: #00a862;
    --ri-dark: #222222;
    --ri-page: #f7f7f7;
    --ri-bordure: #ebebeb;
    --sa-radius: 16px;
    --sa-radius-pill: 9999px;
    --sa-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    --sa-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html {
    overflow-x: hidden;
}

body.ri-accueil-home {
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    color: var(--sa-text);
    background: var(--sa-bg);
    /* Décalage pour la barre fixed-top (sinon le contenu passe sous l’entête) */
    padding-top: var(--ri-accueil-nav-offset, 4.75rem);
}

body.preloader-active {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ——— Preloader ——— */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(165deg, #fafafa 0%, #f0f0f0 50%, #e8f5ef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 2rem;
    animation: sa-preloader-pulse 1.5s ease-in-out infinite;
}

.preloader-text {
    color: var(--sa-text);
    font-size: clamp(1.15rem, 3.5vw, 1.65rem);
    font-weight: 600;
    text-align: center;
    line-height: 1.45;
    max-width: 720px;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.preloader-bar {
    width: 140px;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--sa-radius-pill);
    overflow: hidden;
    margin-top: 0.5rem;
}

.preloader-bar-inner {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--sa-accent), var(--ri-primary));
    border-radius: var(--sa-radius-pill);
    animation: sa-preloader-load 1.8s ease-in-out infinite;
}

@keyframes sa-preloader-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.92;
        transform: scale(1.03);
    }
}

@keyframes sa-preloader-load {
    0% {
        width: 0;
        margin-left: 0;
    }
    50% {
        width: 100%;
        margin-left: 0;
    }
    100% {
        width: 100%;
        margin-left: 100%;
    }
}

@keyframes sa-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sa-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes sa-scroll-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

@keyframes sa-contact-spin {
    to {
        transform: rotate(360deg);
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--sa-accent);
    z-index: 9999;
    transition: width 0.08s ease-out;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: var(--sa-radius-pill);
    background: var(--sa-text);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: var(--sa-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #000;
    transform: translateY(-2px);
}

/* ——— Navigation (fixe en haut au scroll) ——— */
.navbar-ri {
    background: var(--sa-bg) !important;
    border-bottom: 1px solid var(--sa-border) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    padding: 0.65rem 0;
    z-index: 1030;
}

.navbar-ri.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar-ri .navbar-brand {
    color: var(--sa-text) !important;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.navbar-ri .navbar-brand:hover {
    color: var(--sa-text) !important;
    opacity: 0.85;
}

.navbar-ri .nav-link {
    color: var(--sa-text) !important;
    font-weight: 500;
    font-size: 0.94rem;
    padding: 0.45rem 0.65rem !important;
    border-radius: 8px;
}

.navbar-ri .nav-link:hover {
    background: var(--sa-bg-soft) !important;
    color: var(--sa-text) !important;
}

.navbar-ri .nav-link.active {
    color: var(--ri-primary) !important;
    font-weight: 600;
}

.navbar-ri .nav-link::after {
    display: none;
}

.navbar-ri .btn-outline-success {
    border-color: var(--ri-primary);
    color: var(--ri-primary);
    font-weight: 600;
    border-radius: var(--sa-radius-pill);
    padding: 0.4rem 1rem;
}

.navbar-ri .btn-outline-success:hover {
    background: var(--ri-primary);
    border-color: var(--ri-primary);
    color: #fff;
}

.navbar-ri .btn-outline-primary {
    border-color: var(--sa-border);
    color: var(--sa-text);
    font-weight: 600;
    border-radius: var(--sa-radius-pill);
}

.navbar-ri .btn-outline-primary:hover {
    background: var(--sa-bg-soft);
    border-color: var(--sa-muted-2);
    color: var(--sa-text);
}

.navbar-ri .btn-header-login {
    background: var(--sa-accent);
    color: #fff !important;
    padding: 0.45rem 1.25rem;
    border-radius: var(--sa-radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
}

.navbar-ri .btn-header-login:hover {
    background: var(--sa-accent-hover);
    color: #fff !important;
}

.ri-nav-avatar-accueil {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sa-border);
}

.ri-nav-avatar-icon-accueil {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sa-bg-soft);
    color: var(--sa-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border: 2px solid var(--sa-border);
}

section[id] {
    scroll-margin-top: calc(var(--ri-accueil-nav-offset, 4.75rem) + 0.5rem);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.6rem 1.2rem;
    background: var(--ri-primary);
    color: #fff !important;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* ——— Hero (image conservée, overlay lisible façon landing moderne) ——— */
.hero {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%),
        url("https://images.pexels.com/photos/4559597/pexels-photo-4559597.jpeg?auto=compress&cs=tinysrgb&w=1500") center / cover no-repeat;
    min-height: 88vh;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.hero-blob {
    display: none;
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    font-size: clamp(1.85rem, 5vw, 3.15rem) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    animation: sa-fade-in-up 0.85s ease-out both;
}

.hero-title-gradient {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #fff !important;
    background-clip: unset !important;
    animation: none;
}

.hero .lead {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
    animation: sa-fade-in-up 0.85s ease-out 0.12s both;
}

.hero .mt-4 {
    animation: sa-fade-in-up 0.85s ease-out 0.22s both;
}

.badge-hero {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: var(--sa-radius-pill);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.35);
    animation: sa-fade-in-up 0.75s ease-out both;
}

.hero .btn {
    border-radius: var(--sa-radius-pill);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.hero .btn:hover {
    transform: translateY(-2px);
}

.hero .btn-primary {
    background: #fff !important;
    color: var(--sa-text) !important;
}

.hero .btn-primary:hover {
    background: var(--sa-bg-soft) !important;
    box-shadow: var(--sa-shadow);
}

.hero .btn-success {
    background: var(--ri-primary) !important;
    border-color: var(--ri-primary) !important;
    color: #fff !important;
}

.hero .btn-success:hover {
    background: var(--ri-primary-light) !important;
}

.hero .btn-danger {
    background: var(--sa-accent) !important;
    border-color: var(--sa-accent) !important;
    color: #fff !important;
}

.hero .btn-danger:hover {
    background: var(--sa-accent-hover) !important;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 2;
    cursor: pointer;
}

.hero-scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-scroll-hint-icon {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sa-scroll-bounce 2s ease-in-out infinite;
}

.wave-divider {
    position: relative;
    height: 48px;
    overflow: hidden;
    background: var(--sa-bg-soft);
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 48px;
    fill: var(--wave-fill, #f7f7f7);
}

/* ——— Stats (grands chiffres façon Spotahome) ——— */
.stats-section {
    padding: 4rem 1.25rem;
    background: var(--sa-bg);
    border-top: none;
    border-bottom: 1px solid var(--sa-border);
}

.stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
}

.stat-number {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--sa-text);
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--sa-muted);
}

/* ——— Sections titres ——— */
.section-heading {
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--sa-text);
    padding-bottom: 0;
}

.section-heading::after {
    display: none;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.035em;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--sa-text);
}

.section-subtitle {
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    color: var(--sa-muted) !important;
    font-size: 1.05rem !important;
    line-height: 1.55;
}

.section {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

.bg-light {
    background-color: var(--sa-bg-soft) !important;
}

/* ——— Cartes ——— */
.card {
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    box-shadow: var(--sa-shadow-sm);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sa-shadow);
}

.card img {
    object-fit: cover;
    height: 220px;
}

.card .card-body {
    padding: 1.35rem;
}

.card .card-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--sa-text);
}

.card .card-text {
    color: var(--sa-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.card a.text-primary,
.card .text-primary {
    color: var(--sa-accent) !important;
    font-weight: 600;
}

.card-tilt {
    transform-style: flat;
    perspective: none;
}

.card-tilt .card-inner {
    transition: none;
}

.card-tilt:hover .card-inner {
    transform: none;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

.blockquote {
    border-left: 4px solid var(--sa-accent);
    padding-left: 1.15rem;
    color: var(--sa-muted);
}

/* ——— Animations scroll ——— */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.08s;
}
.animate-on-scroll.delay-2 {
    transition-delay: 0.16s;
}
.animate-on-scroll.delay-3 {
    transition-delay: 0.24s;
}
.animate-on-scroll.delay-4 {
    transition-delay: 0.32s;
}

/* ——— Événements ——— */
.events-section {
    background: var(--sa-bg-soft) !important;
}

/* Grille horizontale (flex) : cartes côte à côte, retour à la ligne si besoin */
.events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.875rem;
}

.event-card-shell {
    position: relative;
    flex: 0 0 auto;
    width: 300px;
    max-width: 340px;
}

.event-card {
    position: relative;
    background: var(--sa-bg);
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border-radius: var(--sa-radius);
    border: 1px solid var(--sa-border);
    box-shadow: var(--sa-shadow-sm);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.event-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-img {
    transform: scale(1.06);
}

.event-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: var(--sa-text);
    color: #fff;
    border: none;
    border-radius: var(--sa-radius-pill);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-content {
    padding: 15px;
    text-align: left;
    color: var(--sa-muted);
}

.event-content h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.15rem;
    color: var(--sa-text);
}

/* Actualités : mêmes blocs que Événements (.events-grid / .event-card) */
body.ri-accueil-home #news .event-content .text-primary {
    color: var(--sa-accent) !important;
}

/* ——— Partenaires ——— */
#publicites {
    background: var(--sa-bg) !important;
}

.partenaires-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 1.5rem 0;
}

.partenaires-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 2.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1.5rem 0 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    justify-content: flex-start;
}

.partenaires-scroll .partenaire-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 188px;
    max-width: 270px;
}

.partenaire-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.partenaire-item.partenaire-item--clickable {
    cursor: pointer;
}

.partenaire-item.partenaire-item--clickable:hover .partenaire-nom {
    color: var(--ri-primary);
}

.partenaire-item img {
    max-width: 160px;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(20%);
}

.partenaire-item:hover img {
    filter: grayscale(0);
}

/* Logo partenaire : initiale toujours présente ; image superposée si disponible et valide */
body.ri-accueil-home .partenaire-logo-slot {
    width: 152px;
    height: 58px;
    overflow: hidden;
    flex-shrink: 0;
}

body.ri-accueil-home .partenaire-logo-slot .partenaire-initial {
    font-size: 1.15rem;
    line-height: 1;
}

body.ri-accueil-home .partenaire-logo-img {
    object-fit: contain;
    padding: 0.35rem;
    background: #fff;
    box-sizing: border-box;
}

body.ri-accueil-home .partenaire-logo-img[src=""] {
    display: none;
}

.partenaire-item .partenaire-nom {
    font-weight: 600;
    color: var(--sa-text);
    font-size: 1rem;
}

/* ——— Crowdfunding ——— */
#crowdfunding {
    background: var(--sa-bg-soft);
    padding: 4.5rem 1.25rem;
}

.crowdfunding-badge {
    background: rgba(255, 90, 95, 0.12);
    color: var(--sa-accent);
    border-radius: var(--sa-radius-pill);
    padding: 0.4rem 0.9rem;
    font-weight: 700;
}

.crowdfunding-card {
    border-radius: var(--sa-radius);
    border: 1px solid var(--sa-border);
}

.crowdfunding-cta {
    border-radius: var(--sa-radius-pill);
    background: var(--sa-accent) !important;
}

.crowdfunding-cta:hover {
    background: var(--sa-accent-hover) !important;
}

/* ——— Contact (style page d’accueil d’origine, fond blanc + bouton vert) ——— */
.contact-section {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

.contact-form {
    width: 350px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95em;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ri-primary);
    box-shadow: 0 0 0 2px rgba(13, 110, 74, 0.2);
    outline: none;
}

.btn-submit {
    padding: 12px;
    background: var(--ri-primary);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background: var(--ri-primary-light);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.85;
    cursor: wait;
    transform: none;
}

.contact-reply-note {
    font-size: 0.9rem;
    color: var(--ri-success);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-submit .spinner-submit {
    animation: sa-contact-spin 0.8s linear infinite;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
}

.contact-info {
    width: 300px;
    max-width: 100%;
    text-align: left;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.3em;
    color: var(--sa-text);
}

.contact-info p {
    margin-bottom: 10px;
    color: #555;
}

.contact-info .footer-social {
    margin-top: 1rem;
}

/* ——— Footer (style page d’accueil d’origine, bandeau vert) ——— */
footer {
    background: #2d2c2c;
    color: #e8e8e8;
    padding: 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ri-primary);
    opacity: 1;
}

.footer-top {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.footer-col h5 {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.65rem;
}

.footer-col a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-about p {
    color: #a8a8a8;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 320px;
}

.footer-about .footer-brand {
    color: #fff !important;
    font-weight: 700;
}

.footer-about a:hover .footer-brand {
    color: var(--ri-primary) !important;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #a8a8a8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-item i {
    color: var(--ri-primary);
    margin-top: 0.25rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social a:hover {
    background: var(--ri-primary);
    color: #fff;
    transform: translateY(-2px);
    border-color: transparent;
}

.footer-bottom {
    padding: 1.35rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}

.footer-bottom a {
    color: #999;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ——— Boutons liste (Voir plus) ——— */
.btn-outline-success.btn-lg,
.btn-outline-primary.btn-lg,
.btn-outline-dark.btn-lg {
    border-radius: var(--sa-radius-pill);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
}

.btn-outline-primary.btn-lg {
    border-color: var(--sa-accent);
    color: var(--sa-accent);
}

.btn-outline-primary.btn-lg:hover {
    background: var(--sa-accent);
    border-color: var(--sa-accent);
    color: #fff;
}

.btn-outline-dark.btn-lg {
    border-color: var(--sa-text);
    color: var(--sa-text);
}

.btn-outline-dark.btn-lg:hover {
    background: var(--sa-text);
    color: #fff;
}

.marquee {
    animation: sa-marquee 28s linear infinite;
}

@media (max-width: 991px) {
    .navbar-ri .navbar-collapse {
        padding: 1rem 0;
        margin-top: 0.5rem;
        border-top: 1px solid var(--sa-border);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 5rem 0 4rem;
    }

    .stats-section {
        padding: 3rem 1rem;
    }

    .stat-number {
        font-size: 1.85rem;
    }

    .event-card,
    .event-card-shell {
        width: 100%;
        max-width: 380px;
    }

    .contact-form,
    .contact-info {
        max-width: 100%;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-logo,
    .preloader-bar-inner,
    .marquee,
    .hero-scroll-hint-icon,
    .animate-on-scroll {
        animation: none !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
