/* ===========================================================
   ELBA - UI additionnelle
   1) Mot de la Présidente (carte citation moderne)
   2) Formulaires "Agir avec nous" (don / bénévole / partenaire)
   N'affecte que les blocs ciblés.
   =========================================================== */

:root {
    --elba: #a00d60;
    --elba-dark: #7c0a4a;
}

/* =========================================================
   1) MOT DE LA PRÉSIDENTE
   ========================================================= */
.prez-section {
    position: relative;
    background-color: #f4f6f8;
    background-image:
        linear-gradient(135deg, rgba(160, 13, 96, 0.04), rgba(160, 13, 96, 0) 40%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%23dfe3e8' stroke-width='1'%3E%3Cpath d='M0 0 L70 46 L140 0'/%3E%3Cpath d='M0 140 L70 94 L140 140'/%3E%3Cpath d='M0 70 L70 24 L140 70 L70 116 Z'/%3E%3Cpath d='M-20 100 L40 70 L20 140'/%3E%3C/g%3E%3C/svg%3E");
    overflow: hidden;
}

.prez-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.prez-photo-col {
    flex: 0 0 320px;
    max-width: 340px;
    text-align: center;
}

.prez-photo-wrap {
    position: relative;
    display: inline-block;
    padding: 0 0 8px;
}

/* bloc coloré derrière la photo */
.prez-photo-wrap::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 24px;
    width: 72%;
    height: 78%;
    background: linear-gradient(145deg, var(--elba), #d6336c);
    border-radius: 14px;
    z-index: 0;
}

.prez-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 44% center;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.20);
}

.prez-name {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    color: var(--elba);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 24px;
}

.prez-quote-col {
    flex: 1 1 420px;
    min-width: 300px;
}

.prez-label {
    display: inline-block;
    color: var(--elba);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 14px;
}

.prez-quote {
    position: relative;
    background: #ffffff;
    border: 1px solid #ececf1;
    border-radius: 16px;
    padding: 46px 34px 30px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.prez-quote::before {
    content: "\201C";
    position: absolute;
    top: 2px;
    left: 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 86px;
    line-height: 1;
    color: var(--elba);
    opacity: .95;
}

.prez-quote::after {
    content: "\201D";
    position: absolute;
    right: 22px;
    bottom: -26px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 86px;
    line-height: 1;
    color: var(--elba);
    opacity: .35;
}

.prez-quote-text {
    position: relative;
    color: #3a3f47;
    font-size: 15.5px;
    line-height: 1.85;
    transition: max-height .4s ease;
}

.prez-quote-text p { margin: 0 0 14px; }
.prez-quote-text p:first-child { font-weight: 600; color: #22262c; }

.prez-quote-text.collapsed {
    max-height: 250px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}

.prez-toggle {
    margin-top: 14px;
    background: transparent;
    border: 2px solid var(--elba);
    color: var(--elba);
    font-weight: 700;
    font-size: 14px;
    padding: 9px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: all .25s ease;
}

.prez-toggle:hover {
    background: var(--elba);
    color: #ffffff;
}

.prez-toggle i { margin-left: 6px; }

@media (max-width: 767px) {
    .prez-photo-col { flex: 1 1 100%; max-width: 100%; }
    .prez-quote { padding: 42px 22px 26px; }
}

/* =========================================================
   2) FORMULAIRES "AGIR AVEC NOUS"
   ========================================================= */
.agir-form-card {
    background: #ffffff;
    border: 1px solid #ececf1;
    border-radius: 16px;
    padding: 34px 30px;
    box-shadow: 0 14px 36px rgba(16, 24, 40, 0.08);
    margin-top: 10px;
}

.agir-form-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #22262c;
    margin-bottom: 6px;
}

.agir-form-card .agir-sub {
    color: #8a8f98;
    font-size: 14px;
    margin-bottom: 22px;
}

.agir-form .form-group { margin-bottom: 18px; }

.agir-form label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #3a3f47;
    margin-bottom: 7px;
}

.agir-form .form-control,
.agir-form select.form-control,
.agir-form textarea.form-control {
    width: 100%;
    border: 1px solid #dcdfe4;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14.5px;
    color: #2b2b3a;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.agir-form .form-control:focus {
    outline: none;
    border-color: var(--elba);
    box-shadow: 0 0 0 3px rgba(160, 13, 96, 0.12);
}

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

.agir-form .btn-agir {
    background: linear-gradient(135deg, var(--elba), #d6336c);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 13px 34px;
    border-radius: 30px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 24px rgba(160, 13, 96, 0.28);
}

.agir-form .btn-agir:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(160, 13, 96, 0.36); }
.agir-form .btn-agir i { margin-left: 8px; }

.agir-alert {
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 14.5px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agir-alert i { font-size: 18px; }
.agir-alert.ok { background: #e7f7ee; color: #15794a; border: 1px solid #b6e6cc; }
.agir-alert.ko { background: #fdecec; color: #b42318; border: 1px solid #f5c2c0; }

/* =========================================================
   3) SECTIONS VISION & IMPACT (visuels courbes)
   ========================================================= */

/* --- Vision : lames diagonales + points colorés (type réf. 10) --- */
.vision-art {
    position: relative;
    width: 400px;
    max-width: 100%;
    height: 380px;
}
.vision-art .v-blade {
    position: absolute;
    top: 0;
    width: 116px;
    height: 330px;
    border-radius: 80px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.20);
    transform: rotate(-16deg);
    transform-origin: center;
}
.vision-art .b1 { left: 24px;  top: 20px; }
.vision-art .b2 { left: 150px; top: 44px; }
.vision-art .b3 { left: 276px; top: 24px; height: 300px; }
.vision-art .v-dot { position: absolute; border-radius: 50%; z-index: 3; }
.vision-art .d1 { width: 18px; height: 18px; background: #f97316; top: 6px;   left: 6px; }
.vision-art .d2 { width: 12px; height: 12px; background: #2563eb; top: 70px;  right: 8px; }
.vision-art .d3 { width: 15px; height: 15px; background: #0d9488; bottom: 26px; left: 10px; }
.vision-art .d4 { width: 11px; height: 11px; background: #a00d60; bottom: 70px; right: 30px; }

/* --- Impact : cluster de 4 photos arrondies (type réf. 9) --- */
.impact-cluster {
    position: relative;
    width: 360px;
    max-width: 100%;
    height: 360px;
    margin: 0 auto;
}
.impact-cluster .ic-tile {
    position: absolute;
    width: 186px;
    height: 186px;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 36px rgba(16, 24, 40, 0.20);
    border: 5px solid #ffffff;
}
.impact-cluster .t1 { top: 0;      left: 0;     transform: rotate(-6deg); }
.impact-cluster .t2 { top: 10px;   right: 0;    transform: rotate(6deg);  z-index: 2; }
.impact-cluster .t3 { bottom: 0;   left: 8px;   transform: rotate(7deg);  z-index: 2; }
.impact-cluster .t4 { bottom: 8px; right: 0;    transform: rotate(-7deg); }

@media (max-width: 991px) {
    .vision-art, .impact-cluster { margin: 40px auto 0; }
    .prez-quote-col { margin-top: 30px; }
}

/* Mobile : on réduit réellement les visuels courbes pour qu'ils tiennent dans l'écran */
@media (max-width: 575px) {
    .vision-art { width: 300px; height: 300px; }
    .vision-art .v-blade { width: 88px; height: 250px; border-radius: 60px; }
    .vision-art .b1 { left: 10px;  top: 16px; }
    .vision-art .b2 { left: 106px; top: 34px; }
    .vision-art .b3 { left: 202px; top: 18px; height: 230px; }

    .impact-cluster { width: 290px; height: 290px; }
    .impact-cluster .ic-tile { width: 150px; height: 150px; border-radius: 24px; }

    .prez-photo-wrap::before { left: -8px; top: 16px; }
    .prez-name { font-size: 20px; }
    .prez-quote { padding: 40px 18px 24px; }
    .prez-quote-text { font-size: 15px; }

    .agir-form-card { padding: 24px 18px; }
}

/* Très petits écrans : on réduit encore un peu */
@media (max-width: 360px) {
    .vision-art { width: 270px; }
    .vision-art .b3 { left: 182px; }
    .impact-cluster { width: 270px; height: 270px; }
    .impact-cluster .ic-tile { width: 140px; height: 140px; }
}

/* Slider d'accueil : photo indépendante, panneau éditorial et courbes vectorielles. */
.elba-home-hero { position: relative; --hero-pink: #d50065; --hero-ink: #101d46; }
.elba-home-hero .elba-hero-slide {
    position: relative;
    display: block;
    min-height: clamp(680px, 48vw, 860px);
    padding: 0;
    overflow: hidden;
    background: #fff;
    isolation: isolate;
}
.elba-home-hero .elba-hero-slide::before { display: none; }
.elba-hero-photo { position: absolute; inset: 0 0 0 31%; overflow: hidden; }
.elba-home-hero .elba-hero-photo img {
    width: 100%; height: 100%; max-width: none;
    object-fit: cover; object-position: 55% 30%;
}
.elba-hero-sweep { position: absolute; inset: 0 auto 0 0; width: 57%; height: 100%; z-index: 1; pointer-events: none; }
.elba-home-hero .elba-hero-slide::after {
    content: ''; position: absolute; inset: 0 auto auto 0; z-index: 2;
    width: 25%; height: 160px; pointer-events: none;
    background: linear-gradient(145deg, #f371ad 0%, #fbe2ef 35%, transparent 65%);
    clip-path: ellipse(90% 95% at 0 0);
}
.elba-hero-panel {
    position: relative; z-index: 3; width: 39%;
    padding: 72px 2.5vw 150px 3.2vw;
    display: flex; flex-direction: column; align-items: center;
    justify-content: space-evenly; row-gap: clamp(16px, 2vw, 34px);
    text-align: center; color: var(--hero-ink);
}
.elba-home-hero .owl-item .elba-hero-logo {
    width: clamp(170px, 17vw, 290px); height: auto; max-width: 85%;
    margin: 0 auto 8px; object-fit: contain;
}
.elba-hero-title {
    color: var(--hero-pink); font-size: clamp(42px, 4vw, 76px);
    font-weight: 800; line-height: 1.07; margin: 0 0 18px;
    overflow-wrap: anywhere;
}
.elba-hero-quote {
    position: relative; color: var(--hero-ink); font-size: clamp(18px, 1.5vw, 27px);
    line-height: 1.45; margin: 0 0 20px; padding: 0 12px 18px; width: 100%;
}
.elba-hero-quote::before, .elba-hero-quote::after { color: var(--hero-pink); font-family: Georgia, serif; font-weight: bold; }
.elba-hero-quote::before { content: '“'; margin-right: 5px; }
.elba-hero-quote::after { content: '”'; margin-left: 5px; }
.elba-hero-badges {
    position: relative; display: flex; justify-content: space-between;
    gap: 10px; width: 100%; max-width: 440px; padding-top: 16px;
}
.elba-hero-badges::before { content: ''; position: absolute; top: -8px; left: 10%; width: 28%; height: 3px; background: var(--hero-pink); }
.elba-hero-badges span { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 8px; color: var(--hero-ink); font-size: clamp(12px, 1.2vw, 20px); font-weight: 600; }
.elba-hero-badges i { display: flex; align-items: center; justify-content: center; width: clamp(48px, 4.5vw, 78px); height: clamp(48px, 4.5vw, 78px); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #ed006d, #b70058); font-size: clamp(22px, 2.2vw, 37px); }
.elba-hero-waves { position: absolute; bottom: -1px; left: 0; width: 100%; height: 155px; z-index: 4; pointer-events: none; }
.elba-hero-tagline { position: absolute; bottom: 16px; left: 10%; z-index: 5; color: #fff; font-family: 'Segoe Print', 'Comic Sans MS', cursive; font-style: italic; font-size: clamp(17px, 1.6vw, 27px); line-height: 1.35; transform: rotate(-5deg); margin: 0; }
.elba-hero-long-copy .elba-hero-title { font-size: clamp(27px, 2.35vw, 43px); }
.elba-hero-long-copy .elba-hero-quote { font-size: clamp(15px, 1.1vw, 20px); line-height: 1.5; }
.elba-hero-long-copy .elba-hero-logo { max-height: 155px; }
.elba-home-hero .owl-dots { position: absolute; bottom: 18px; right: 66px; z-index: 6; display: flex; gap: 0; margin: 0; }
.elba-home-hero .owl-dots .owl-dot { display: grid; place-items: center; width: 32px; height: 40px; background: none; border: 0; }
.elba-home-hero .owl-dots .owl-dot span { display: block; width: 13px; height: 13px; margin: 0; border-radius: 50%; background: #f5b5d3; transition: background .2s, transform .2s; }
.elba-home-hero .owl-dots .owl-dot.active span { background: var(--hero-pink); transform: scale(1.18); }
.elba-home-hero .owl-dots .owl-dot:hover span { background: #df4d91; }
.elba-home-hero .owl-dots.disabled { display: none; }
.elba-hero-pause { position: absolute; right: 18px; bottom: 18px; z-index: 6; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #edb2ce; border-radius: 50%; background: #fff8fc; color: #bc0059; font-size: 12px; }
.elba-hero-pause[hidden] { display: none; }
.elba-home-hero button:focus-visible { outline: 3px solid #101d46; outline-offset: 2px; }
@media (min-width: 1800px) { .elba-hero-panel { padding-top: 38px; } .elba-hero-waves { height: 185px; } }
@media (max-width: 991px) {
    .elba-home-hero .elba-hero-slide { min-height: 560px; }
    .elba-hero-panel { width: 45%; padding: 112px 20px 130px; }
    .elba-hero-photo { left: 35%; }
    .elba-hero-sweep { width: 66%; }
    .elba-hero-title { font-size: 40px; }
    .elba-hero-quote { font-size: 18px; padding-inline: 0; }
    .elba-hero-long-copy .elba-hero-title { font-size: 27px; }
    .elba-hero-long-copy .elba-hero-quote { font-size: 15px; }
}
@media (max-width: 640px) {
    .elba-home-hero .elba-hero-slide { min-height: 0; display: flex; flex-direction: column; }
    .elba-hero-photo { position: relative; inset: auto; order: 0; height: 260px; width: 100%; }
    .elba-home-hero .elba-hero-photo img { height: 100%; object-position: center 28%; }
    .elba-hero-sweep { display: none; }
    .elba-hero-panel { order: 1; width: 100%; padding: 16px 26px 140px; background: #fff; justify-content: flex-start; row-gap: 0; }
    .elba-hero-panel::before { content: ''; position: absolute; left: -5%; top: -27px; width: 110%; height: 44px; border-radius: 50% 50% 0 0; background: #fff; }
    .elba-home-hero .owl-item .elba-hero-logo { position: relative; width: 146px; margin-bottom: 6px; }
    .elba-hero-title { font-size: 39px; margin-bottom: 12px; }
    .elba-hero-quote { font-size: 17px; margin-bottom: 12px; padding-bottom: 12px; }
    .elba-hero-badges { max-width: 350px; }
    .elba-hero-badges span { font-size: 13px; }
    .elba-hero-badges i { width: 49px; height: 49px; font-size: 22px; }
    .elba-hero-waves { height: 120px; }
    .elba-hero-tagline { left: 7%; bottom: 35px; font-size: 16px; }
    .elba-home-hero .owl-dots { bottom: 8px; right: 54px; }
    .elba-home-hero .owl-dots .owl-dot { width: 27px; }
    .elba-hero-pause { bottom: 8px; right: 10px; width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .elba-home-hero *, .elba-home-hero *::before, .elba-home-hero *::after { transition: none !important; animation: none !important; } }
/* Navigation latérale et contenu éditorial ; indépendant du fichier photo. */
.elba-home-hero .hero-slider .owl-nav button.owl-prev,
.elba-home-hero .hero-slider .owl-nav button.owl-next {
    top: 46%; bottom: auto !important; width: 44px; height: 54px;
    margin: 0; padding: 0; border: 1px solid rgba(160,13,96,.28);
    border-radius: 6px; background: rgba(255,255,255,.16);
    backdrop-filter: blur(3px); color: #a00d60; font-size: 23px;
    display: grid; place-items: center; line-height: 1; transform: translateY(-50%);
}
.elba-home-hero .hero-slider .owl-nav button.owl-prev { left: 12px; right: auto; }
.elba-home-hero .hero-slider .owl-nav button.owl-next { right: 12px; left: auto; color: white; border-color: rgba(255,255,255,.6); text-shadow: 0 1px 5px #333; }
.elba-home-hero .hero-slider .owl-nav button:hover { background: rgba(213,0,101,.65); color: white; }
.elba-home-hero .owl-dots { right: 24px; }
.elba-hero-description::before, .elba-hero-description::after { content: none; }
.elba-hero-cta { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 10px 20px; border-radius: 24px; color: #a00d60; border: 1px solid #d50065; font-size: 14px; font-weight: 700; line-height: 1.4; }
.elba-hero-cta:hover { color: white; background: #a00d60; }
.elba-hero-cta:focus-visible { outline: 3px solid #101d46; outline-offset: 3px; }
.elba-home-hero .elba-hero-long-copy .elba-hero-logo { width: 200px; max-height: 132px; }
.elba-hero-long-copy .elba-hero-panel { padding-left: max(64px, 4.4vw); padding-right: 2vw; }
.elba-hero-long-copy .elba-hero-title { font-size: clamp(25px, 2.15vw, 39px); }
.elba-hero-long-copy .elba-hero-quote { padding: 0; margin-bottom: 18px; }
@media (max-width: 991px) and (min-width: 641px) {
    .elba-hero-long-copy .elba-hero-panel { padding-left: 64px; padding-right: 12px; }
}
@media (max-width: 640px) {
    .elba-home-hero .hero-slider .owl-nav button.owl-prev,
    .elba-home-hero .hero-slider .owl-nav button.owl-next { top: 125px; width: 40px; height: 48px; color: white; border-color: rgba(255,255,255,.6); text-shadow: 0 1px 5px #333; }
    .elba-hero-long-copy .elba-hero-panel { padding-left: 24px; padding-right: 24px; }
    .elba-home-hero .elba-hero-long-copy .elba-hero-logo { width: 145px; }
    .elba-hero-long-copy .elba-hero-title { font-size: 27px; }
    .elba-hero-long-copy .elba-hero-quote { font-size: 15px; }
    .elba-home-hero .owl-dots { right: 18px; }
}
.elba-hero-badges svg {
    display: block; width: clamp(42px, 3.6vw, 62px); height: clamp(42px, 3.6vw, 62px);
    padding: 5px; fill: none; stroke: #bd005b; stroke-width: 1.65;
    stroke-linecap: round; stroke-linejoin: round;
}
.elba-hero-badges span { gap: 10px; }
.elba-hero-waves { height: 95px; }
.elba-hero-panel { padding-bottom: 100px; }
@media(max-width:640px) { .elba-hero-waves { height: 75px; } .elba-hero-panel { padding-bottom: 100px; } }

/* Footer : paragraphe "À propos" resserré en bloc + padding réduit */
.footer-widget-wrapper.pt-50 { padding-top: 35px; }
.footer-widget-wrapper.pb-50 { padding-bottom: 25px; }
.footer-widget-box.about-us p {
    font-size: 14.5px;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    padding-right: 0;
    margin-bottom: 14px;
    hyphens: auto;
}
@media (max-width: 640px) {
    .footer-widget-box.about-us p { text-align: left; hyphens: manual; }
}

/* ===================================================================
   Header transparent au-dessus du hero (accueil) — blanc au scroll
   =================================================================== */
.header-transparent { position: absolute; inset: 0 0 auto 0; z-index: 30; }
.header-transparent::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 210px; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,29,70,.55) 0%, rgba(16,29,70,.18) 55%, transparent 100%);
}
.header-transparent .header-top { position: relative; z-index: 2; }
.header-transparent .navbar { position: relative; z-index: 1; background: transparent; box-shadow: none; }
.header-transparent .navbar .nav-link,
.header-transparent .navbar .nav-right-link,
.header-transparent .navbar .navbar-toggler-mobile-icon { color: #fff; }
.header-transparent .navbar .nav-link:hover,
.header-transparent .navbar .nav-link.active { color: #ffd1e7; }
.navbar-brand .logo-rest { display: none; }
.header-transparent .navbar:not(.fixed-top) .navbar-brand .logo-solid { display: none; }
.header-transparent .navbar:not(.fixed-top) .navbar-brand .logo-rest { display: block; }

/* Barre blanche au defilement (classe .fixed-top ajoutee par main.js au-dela de 50px) */
.header-transparent .navbar.fixed-top { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; background: #fff !important; box-shadow: 0 8px 30px rgba(16,29,70,.12); }
.header-transparent .navbar.fixed-top .nav-link,
.header-transparent .navbar.fixed-top .nav-right-link,
.header-transparent .navbar.fixed-top .navbar-toggler-mobile-icon { color: #101d46; }
.header-transparent .navbar.fixed-top .nav-link:hover,
.header-transparent .navbar.fixed-top .nav-link.active { color: #d50065; }
/* logo geré par le swap .logo-rest (blanc) / .logo-solid (couleur) */

/* Le contenu du hero ne passe pas sous le header superpose */
.elba-home-hero .elba-hero-panel { padding-top: clamp(120px, 11vw, 158px); }

/* Menu mobile ouvert : fond lisible sous le header transparent */
@media (max-width: 991.98px) {
  .header-transparent .navbar-collapse.show,
  .header-transparent .navbar-collapse.collapsing { background: rgba(16,29,70,.96); border-radius: 14px; padding: 12px 16px; margin-top: 8px; }
}
