/*
Theme Name: Fondation Allam
Theme URI: https://fondation-allam.fr/
Author: WebPrime
Author URI: https://webprime.fr/
Description: Theme custom pour la Fondation Allam - Association caritative en Essonne. Reprise pixel-perfect du site HTML original avec integration WordPress, Paid Member Subscriptions et Stripe.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fondation-allam
Tags: charity, ngo, non-profit, food-bank, association
*/
:root {
    --primary-color: #b8923a;
    --primary-dark: #8e6e26;
    --secondary-color: #111111;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-border: #e0e0e0;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 42px;
    font-size: 18px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 85px;
    width: auto;
}

.logo-text {
    color: var(--secondary-color);
}

.logo-91 {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.header-cta {
    padding: 12px 24px;
    font-size: 14px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 115px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.hero-title {
    font-family: 'Allura', cursive;
    font-size: 6rem;
    font-weight: 400;
    line-height: 1;
    color: #e8c878;
    margin-bottom: 20px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.impact {
    padding: 60px 0;
    background-color: var(--white);
}

.impact-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.impact-card {
    text-align: center;
}

.impact-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.impact-plus {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-left: -10px;
}

.impact-label {
    font-size: 1.2rem;
    color: var(--text-light);
    display: block;
    margin-top: 5px;
}

.impact-section {
    padding: 100px 0;
    background-color: var(--white);
}

.impact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.impact-text .section-title {
    text-align: left;
    margin-bottom: 15px;
}

.section-subtitle-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.impact-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.impact-stat-highlight {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--gray-light);
    border-radius: 15px;
    display: inline-block;
}

.stat-big {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.impact-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.impact-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.services {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: rgba(184, 146, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.service-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.services-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--gray-border);
}

.services-stat {
    text-align: center;
    max-width: 300px;
}

.services-stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.services-stat-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

.services-stat-desc {
    color: var(--text-light);
    line-height: 1.6;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-content .btn {
    margin-top: 20px;
}

.about-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.stat-box {
    background-color: var(--gray-light);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    background-color: var(--primary-color);
}

.stat-box:hover .stat-number,
.stat-box:hover .stat-label {
    color: var(--white);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    transition: var(--transition);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 5px;
    transition: var(--transition);
}

.news {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    gap: 10px;
}

.news-cta {
    text-align: center;
}

.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.8;
}

.cta-banner .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta-banner .btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.faq {
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-border);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: left;
    font-family: inherit;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.donation {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.donation-header {
    text-align: center;
    margin-bottom: 40px;
}

.donation-header .section-title {
    color: var(--secondary-color);
}

.donation-type-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    background-color: var(--white);
    border-radius: 50px;
    padding: 5px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow);
}

.donation-type-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-light);
}

.donation-type-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.donation-type-btn:hover:not(.active) {
    color: var(--primary-color);
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.donation-amounts.three-cards {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.amount-card {
    background-color: var(--white);
    border: 2px solid var(--gray-border);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.amount-card:hover,
.amount-card.selected {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.amount-card.selected {
    background-color: rgba(184, 146, 58, 0.05);
}

.amount-card.popular {
    border-color: var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.amount-value span {
    font-size: 1.5rem;
}

.amount-period {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.amount-impact {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.amount-after-tax {
    font-size: 13px;
    color: var(--text-light);
}

.amount-after-tax strong {
    color: var(--secondary-color);
}

.custom-amount {
    text-align: center;
    margin-bottom: 30px;
}

.custom-amount label {
    display: block;
    margin-bottom: 15px;
    color: var(--text-light);
}

.custom-amount-input {
    display: inline-flex;
    align-items: center;
    background-color: var(--white);
    border: 2px solid var(--gray-border);
    border-radius: 50px;
    padding: 5px 20px;
    transition: var(--transition);
}

.custom-amount-input:focus-within {
    border-color: var(--primary-color);
}

.custom-amount-input input {
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    width: 150px;
    text-align: center;
    font-family: inherit;
}

.custom-amount-input .currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

.donation-submit {
    text-align: center;
    margin-bottom: 50px;
}

.tax-benefits {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto 50px;
    box-shadow: var(--shadow);
}

.tax-benefits-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tax-benefits-header svg {
    width: 40px;
    height: 40px;
    color: #28a745;
}

.tax-benefits-header h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.tax-benefits > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
}

.tax-examples {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tax-example {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--gray-light);
    padding: 15px 25px;
    border-radius: 10px;
}

.tax-don {
    color: var(--text-color);
    font-weight: 500;
}

.tax-arrow {
    color: var(--primary-color);
    font-weight: bold;
}

.tax-result {
    color: var(--text-light);
}

.tax-result strong {
    color: #28a745;
}

.tax-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.why-donate {
    max-width: 1000px;
    margin: 0 auto;
}

.why-donate h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.why-donate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-item {
    text-align: center;
    padding: 20px;
}

.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: rgba(184, 146, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.why-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.why-item p {
    color: var(--text-light);
    font-size: 14px;
}

.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(184, 146, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-text p {
    color: var(--text-light);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--gray-light);
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

.contact-page {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-info-card h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(184, 146, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-info-item h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-info-item a {
    color: var(--text-light);
    transition: var(--transition);
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

.contact-social {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-border);
}

.contact-social h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
}

.social-link svg {
    width: 22px;
    height: 22px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.social-link:hover svg {
    color: var(--white);
}

.contact-form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form-card h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.contact-form-card .contact-form {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form-card .btn {
    width: 100%;
    margin-top: 10px;
}

.newsletter {
    padding: 60px 0;
    background-color: var(--gray-light);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.newsletter-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    max-width: 350px;
    padding: 15px 25px;
    border: 2px solid var(--gray-border);
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cta-entraide {
    padding: 80px 0;
    background: var(--gray-light);
}

.cta-entraide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.cta-entraide-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cta-entraide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.cta-entraide-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.cta-entraide-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.cta-entraide-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 700;
}

.cta-entraide-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.cta-entraide-card .btn {
    min-width: 200px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .cta-entraide-grid {
        grid-template-columns: 1fr;
    }
}

.sponsors {
    padding: 80px 0;
    background-color: var(--white);
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sponsor-item {
    background-color: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.sponsor-item img {
    max-height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: var(--transition);
}

.sponsor-item:hover img {
    opacity: 0.8;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 150px 0 80px;
    text-align: center;
    color: var(--white);
}

.page-title {
    font-family: 'Allura', cursive;
    font-size: 5.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.8;
}

.distribution-intro {
    padding: 60px 0;
    background-color: var(--white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.gallery-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.distribution-impact {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

.impact-stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
}

.impact-stat-card {
    background-color: var(--gray-light);
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
}

.impact-stat-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(184, 146, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.impact-stat-icon svg {
    width: 35px;
    height: 35px;
    color: var(--primary-color);
}

.impact-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.impact-stat-label {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
    display: block;
    margin-top: 10px;
}

.impact-message {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.support-section {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.support-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.support-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.support-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.support-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.support-content .btn {
    margin-top: 20px;
}

.carousel-section {
    padding: 60px 0;
    background-color: var(--white);
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.carousel-item {
    flex-shrink: 0;
    width: 300px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.transformed-lives {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.transformed-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.transformed-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1.3;
}

.transformed-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.transformed-content strong {
    color: var(--primary-color);
}

.transformed-stats {
    margin-top: 30px;
}

.transformed-stat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.transformed-stat-icon {
    font-size: 1.5rem;
}

.transformed-stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.transformed-stat-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.transformed-images {
    position: relative;
    height: 500px;
}

.transformed-img {
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s ease;
}

.transformed-img:hover {
    transform: scale(1.02);
    z-index: 10;
}

.transformed-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transformed-img-1 {
    width: 280px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.transformed-img-1:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

.transformed-img-2 {
    width: 200px;
    height: 250px;
    top: 0;
    right: 0;
    z-index: 2;
}

.transformed-img-3 {
    width: 220px;
    height: 280px;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.human-support {
    padding: 100px 0;
    background-color: var(--white);
}

.human-support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.human-support-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.human-support-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.human-support-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.human-support-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.human-support-content strong {
    color: var(--primary-color);
}

.human-support-content .btn {
    margin-top: 20px;
}

.our-mission {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-content .section-title {
    margin-bottom: 30px;
}

.mission-text {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 75px;
    width: auto;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-logo .logo-91 {
    color: var(--secondary-color);
}

.footer-about p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    opacity: 0.9;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom a:hover {
    opacity: 0.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .donation-amounts.three-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-donate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .impact-text .section-title {
        text-align: center;
    }

    .services-stats {
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .support-content .section-title {
        text-align: center;
    }

    .transformed-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .transformed-images {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }

    .human-support-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .human-support-content .section-title {
        text-align: center;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 72px;
    }

    .footer-logo-img {
        height: 55px;
    }

    .hero {
        margin-top: 102px;
        height: auto;
        min-height: 580px;
        padding: 40px 0;
    }

    .nav {
        position: fixed;
        top: 102px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 102px);
        background-color: var(--white);
        transition: var(--transition);
        padding: 40px 20px;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-quote {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content .section-title {
        text-align: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        max-width: 100%;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .impact-grid {
        gap: 40px;
    }

    .impact-number {
        font-size: 3rem;
    }

    .donation-amounts {
        grid-template-columns: 1fr 1fr;
    }

    .donation-amounts.three-cards {
        grid-template-columns: 1fr 1fr;
    }

    .donation-type-toggle {
        max-width: 100%;
    }

    .donation-type-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .tax-benefits {
        padding: 25px;
    }

    .tax-examples {
        flex-direction: column;
        gap: 15px;
    }

    .why-donate-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .services-stats {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .services-stat {
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .page-hero {
        padding: 120px 0 60px;
    }

    .page-title {
        font-size: 4rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .impact-stats-grid {
        flex-direction: column;
        gap: 30px;
    }

    .impact-stat-card {
        padding: 30px;
    }

    .impact-stat-number {
        font-size: 2.5rem;
    }

    .sponsors-grid {
        gap: 30px;
    }

    .sponsor-item {
        padding: 15px 20px;
    }

    .sponsor-item img {
        max-height: 50px;
        max-width: 120px;
    }

    .carousel-item {
        width: 250px;
        height: 300px;
    }

    .transformed-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .transformed-images {
        height: 350px;
    }

    .transformed-img-1 {
        width: 220px;
        height: 280px;
    }

    .transformed-img-2 {
        width: 150px;
        height: 180px;
    }

    .transformed-img-3 {
        width: 160px;
        height: 200px;
    }

    .human-support-image img {
        height: 350px;
    }

    .mission-text {
        font-size: 1rem;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .services,
    .about,
    .donation,
    .contact,
    .sponsors,
    .faq {
        padding: 50px 0;
    }

    .cta-entraide {
        padding: 50px 0;
    }

    .cta-entraide-card {
        padding: 25px 20px;
    }

    .cta-entraide-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .cta-entraide-icon svg {
        width: 30px;
        height: 30px;
    }

    .cta-banner {
        padding: 40px 0;
    }

    .impact-section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 10px;
    }

    .section-subtitle {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 62px;
    }

    .nav {
        top: 92px;
        height: calc(100vh - 92px);
    }

    .hero {
        margin-top: 92px;
        min-height: 510px;
    }

    .footer-logo-img {
        height: 45px;
    }

    .hero-quote {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 16px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-box {
        padding: 25px 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .contact-form {
        padding: 25px;
    }

    .donation-amounts {
        grid-template-columns: 1fr;
    }

    .donation-amounts.three-cards {
        grid-template-columns: 1fr;
    }

    .amount-card {
        padding: 25px 15px;
    }

    .services-stat-number {
        font-size: 3rem;
    }

    .amount-value {
        font-size: 2rem;
    }

    .why-donate-grid {
        grid-template-columns: 1fr;
    }

    .why-item {
        padding: 15px;
    }

    .tax-benefits-header {
        flex-direction: column;
        text-align: center;
    }

    .tax-benefits-header h3 {
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 3rem;
    }

    .support-image img {
        height: 300px;
    }

    .carousel-item {
        width: 200px;
        height: 250px;
    }

    .transformed-images {
        height: 300px;
    }

    .transformed-img-1 {
        width: 180px;
        height: 230px;
    }

    .transformed-img-2 {
        width: 120px;
        height: 150px;
    }

    .transformed-img-3 {
        width: 130px;
        height: 160px;
    }

    .transformed-title {
        font-size: 1.5rem;
    }

    .human-support-image img {
        height: 280px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }

    .contact-info-icon {
        width: 45px;
        height: 45px;
    }

    .contact-info-icon svg {
        width: 20px;
        height: 20px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

.hp-wrap {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}


/* ============================================ */
/* === AJOUTS THEME : grille 9 cartes de dons === */
/* ============================================ */
.donation-amounts.nine-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

@media (max-width: 900px) {
    .donation-amounts.nine-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 560px) {
    .donation-amounts.nine-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* ============================================================ */
/* === AMELIORATIONS UI/UX - WebPrime - 2026-06-03 =========== */
/* Bloc additif non destructif. Backup : style.css.bak-20260603 */
/* ============================================================ */

/* --- 1. Focus clavier visible (accessibilite / RGAA) --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.donation-type-btn:focus-visible,
.faq-question:focus-visible,
.social-link:focus-visible,
.mobile-menu-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 3px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* --- 2. Contraste : dore en TEXTE sur fond clair -> primary-dark (WCAG AA) --- */
.news-link,
.amount-impact,
.section-subtitle-large,
.tax-arrow,
.transformed-content strong,
.human-support-content strong,
.contact-text a:hover,
.contact-info-item a:hover,
.nav-link:hover,
.nav-link.active,
.donation-type-btn:hover:not(.active) {
    color: var(--primary-dark);
}
.faq-icon,
.service-icon svg,
.why-icon svg,
.contact-icon svg,
.contact-info-icon svg,
.impact-stat-icon svg {
    color: var(--primary-dark);
}

/* --- 3. Respect de prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .carousel-track { animation: none !important; }
    .animate-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* --- 4. Ancres : compense le header fixe (~115px) --- */
section[id],
.impact-section,
.services,
.about,
.news,
.faq,
.donation,
.contact,
.sponsors {
    scroll-margin-top: 130px;
}

/* --- 5. FAQ : plus de coupure des reponses longues --- */
.faq-answer {
    transition: max-height 0.35s ease;
}
.faq-item.active .faq-answer {
    max-height: 1000px;
}

/* --- 6. Hero : hauteur dynamique (tablette/desktop, evite saut barre URL) --- */
@media (min-width: 769px) {
    .hero { height: 100svh; }
}
@supports (height: 100dvh) {
    @media (min-width: 769px) {
        .hero { height: 100dvh; }
    }
}

/* --- 7. Transitions ciblees (remplace le 'all' couteux) --- */
.btn,
.service-card,
.news-card,
.stat-box,
.amount-card,
.cta-entraide-card,
.sponsor-item,
.social-link {
    transition-property: transform, box-shadow, color, background-color, border-color, opacity;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* --- 8. Retour tactile au clic (:active) --- */
.btn:active {
    transform: translateY(0);
    box-shadow: none;
}
.amount-card:active,
.service-card:active,
.cta-entraide-card:active {
    transform: translateY(-2px);
}

/* --- 9. Surlignage de selection aux couleurs de la marque --- */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- 10. Etats de validation visibles sur les formulaires --- */
.form-group input:user-invalid,
.form-group textarea:user-invalid,
.form-group select:user-invalid {
    border-color: #d64545;
}
.form-group input:user-valid,
.form-group textarea:user-valid {
    border-color: #28a745;
}

/* --- 11. Confort tactile : cibles plus larges sur mobile --- */
@media (max-width: 768px) {
    .nav-link { padding: 8px 0; }
    .footer-links a { display: inline-block; padding: 4px 0; }
}


/* ============================================================ */
/* === ENRICHISSEMENT VISUEL - WebPrime - 2026-06-03 ========= */
/* Boutons, cartes, icones, apparitions en cascade            */
/* ============================================================ */

/* --- Boutons primaires : degrade + ombre doree + brillance --- */
.btn-primary {
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 14px rgba(184, 146, 58, 0.35);
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(184, 146, 58, 0.45);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
.btn-primary:hover::before {
    left: 130%;
}
/* Le bouton blanc inverse de la banniere CTA garde son fond blanc */
.cta-banner .btn-primary {
    background-image: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* --- Cartes : ombre doree + lisere d'accent au survol --- */
.service-card,
.cta-entraide-card {
    position: relative;
    overflow: hidden;
}
.service-card:hover,
.news-card:hover,
.cta-entraide-card:hover,
.impact-stat-card:hover {
    box-shadow: 0 16px 36px rgba(184, 146, 58, 0.20);
}
.service-card::after,
.cta-entraide-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover::after,
.cta-entraide-card:hover::after {
    transform: scaleX(1);
}

/* --- Icones rondes : zoom + remplissage au survol de la carte --- */
.service-icon,
.cta-entraide-icon,
.why-icon {
    transition: transform 0.35s ease, background-color 0.35s ease;
}
.service-card:hover .service-icon,
.cta-entraide-card:hover .cta-entraide-icon,
.why-item:hover .why-icon {
    transform: scale(1.12) rotate(-6deg);
}
.service-card:hover .service-icon {
    background-color: rgba(184, 146, 58, 0.22);
}

/* --- Apparition au scroll : effet un peu plus marque --- */
.animate-on-scroll {
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Cascade (stagger) dans les grilles --- */
.services-grid .animate-on-scroll:nth-child(2),
.news-grid .animate-on-scroll:nth-child(2),
.why-donate-grid .animate-on-scroll:nth-child(2),
.cta-entraide-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.10s;
}
.services-grid .animate-on-scroll:nth-child(3),
.news-grid .animate-on-scroll:nth-child(3),
.why-donate-grid .animate-on-scroll:nth-child(3),
.cta-entraide-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.20s;
}
.services-grid .animate-on-scroll:nth-child(4),
.why-donate-grid .animate-on-scroll:nth-child(4) {
    transition-delay: 0.30s;
}
.sponsors-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.sponsors-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.sponsors-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }


/* ============================================================ */
/* === PAGES DE CONTENU / MENTIONS LEGALES - 2026-06-03 ====== */
/* ============================================================ */
.entry-content,
.legal-content {
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
}
.legal-content h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 38px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-border);
}
.legal-content h2:first-of-type {
    margin-top: 0;
}
.legal-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}
.legal-content ul {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}
.legal-content li {
    margin-bottom: 8px;
    color: var(--text-light);
}
.legal-content a {
    color: var(--primary-dark);
    text-decoration: underline;
}
.legal-content a:hover {
    color: var(--primary-color);
}
.legal-updated {
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 30px !important;
}

.footer-legal {
    font-size: 0.82rem;
    opacity: 0.85;
    margin-top: 12px !important;
    line-height: 1.6;
}


/* ============================================================ */
/* === FOOTER (titre texte) + ICONE INSTAGRAM FLOTTANTE ====== */
/* ============================================================ */
.footer-about-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--white);
}

.instagram-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1500;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    line-height: 0;
}
.instagram-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.instagram-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
@media (max-width: 480px) {
    .instagram-float {
        width: 50px;
        height: 50px;
        right: 14px;
        bottom: 14px;
    }
}


/* ============================================================ */
/* === SECTION "COMMENT CA MARCHE" + 2e CLIC = PAIEMENT ====== */
/* ============================================================ */
.how-it-works {
    max-width: 950px;
    margin: 10px auto 50px;
    text-align: center;
}
.how-it-works > h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 35px;
}
.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.how-step {
    background: var(--white);
    border-radius: 15px;
    padding: 32px 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.how-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.how-step-num {
    width: 50px;
    height: 50px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
}
.how-step h4 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.how-step p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}
.how-insta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-image: linear-gradient(135deg, #833ab4 0%, #c13584 35%, #fd1d1d 70%, #fcb045 100%);
    box-shadow: 0 6px 18px rgba(193, 53, 132, 0.35);
}
.how-insta-btn:hover {
    box-shadow: 0 10px 26px rgba(193, 53, 132, 0.45);
}
.how-insta-btn::before {
    display: none;
}
.how-insta-btn svg {
    width: 22px;
    height: 22px;
}

/* Indice "Cliquez pour payer" sur la carte armee (apres 1er clic) */
.amount-card.ready {
    border-color: var(--primary-dark);
    box-shadow: 0 10px 28px rgba(184, 146, 58, 0.30);
}
.amount-pay-hint {
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    background: var(--primary-dark);
    border-radius: 20px;
    padding: 6px 14px;
    display: inline-block;
    animation: payHintPulse 1.3s ease-in-out infinite;
}
@keyframes payHintPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@media (max-width: 768px) {
    .how-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Rehausse legere de l icone Instagram flottante */
.instagram-float { bottom: 28px; }
@media (max-width: 480px) { .instagram-float { bottom: 24px; } }


/* ============================================================ */
/* === FOOTER ENRICHI - 2026-06-03 =========================== */
/* ============================================================ */
.footer {
    position: relative;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fcb045, #fd1d1d, #c13584, #833ab4);
}
.footer-grid {
    grid-template-columns: 1.7fr 1fr 1.1fr 1.5fr;
    gap: 40px;
}
.footer h4 {
    position: relative;
    padding-bottom: 12px;
}
.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Reseaux sociaux */
.footer-social {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}
.footer-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.footer-social-link svg {
    width: 20px;
    height: 20px;
    color: var(--white);
    transition: color 0.3s ease;
}
.footer-social-link:hover {
    background: var(--white);
    transform: translateY(-3px);
}
.footer-social-link:hover svg {
    color: var(--primary-dark);
}

/* Contact avec icones */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-contact-list li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    opacity: 0.95;
    line-height: 1.5;
}
.footer-contact-list svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--white);
}
.footer-contact-list a {
    color: var(--white);
    transition: opacity 0.3s ease;
}
.footer-contact-list a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* Bouton Faire un don */
.footer-don-btn {
    display: inline-block;
    margin-top: 22px;
    background: var(--white);
    color: var(--primary-dark);
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.footer-don-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    color: var(--secondary-color);
}

/* Responsive footer 4 colonnes */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-about {
        grid-column: 1 / -1;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* ============================================================ */
/* === ENCART IDENTITE ASSOCIATION (page A propos) =========== */
/* ============================================================ */
.association-identity {
    max-width: 640px;
    margin: 45px auto 0;
    background: var(--white);
    border-radius: 16px;
    padding: 30px 35px;
    box-shadow: var(--shadow);
    text-align: left;
}
.association-identity h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 22px;
    text-align: center;
}
.identity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.identity-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-border);
    flex-wrap: wrap;
}
.identity-list li:last-child {
    border-bottom: none;
}
.identity-list span {
    color: var(--text-light);
    font-weight: 500;
}
.identity-list strong {
    color: var(--secondary-color);
    text-align: right;
}
@media (max-width: 480px) {
    .association-identity { padding: 25px 22px; }
    .identity-list li { gap: 4px; }
    .identity-list strong { text-align: left; }
}

/* ============================================================ */
/* === HELLOASSO (confiance / dons) ========================== */
/* ============================================================ */
.helloasso-trust {
    text-align: center;
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--text-light);
}
.helloasso-trust a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: underline;
}
.identity-helloasso {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--gray-border);
    text-align: center;
}
.identity-helloasso p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}
.btn-helloasso {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #16557a;
    color: #fff;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(22, 85, 122, 0.30);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.btn-helloasso:hover {
    background: #0f405d;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(22, 85, 122, 0.40);
    color: #fff;
}
.btn-helloasso svg {
    width: 20px;
    height: 20px;
}

/* Boutons du hero (cote a cote + HelloAsso) */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-buttons .btn-helloasso {
    padding: 18px 36px;
    font-size: 17px;
}
.hero-buttons .btn-helloasso svg {
    width: 22px;
    height: 22px;
}
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

/* Boutons hero mobile : largeur du contenu, pas pleine largeur */
@media (max-width: 480px) {
    .hero-buttons .btn { width: auto; max-width: 100%; }
}

/* Badge "Paiements securises via HelloAsso" */
.helloasso-secure {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}
.helloasso-secure img {
    height: 30px;
    width: auto;
    display: inline-block;
}

/* ============================================================ */
/* === DON UNIQUE = MONTANT LIBRE (1 bloc) =================== */
/* ============================================================ */
.donation-free {
    display: block;
}
.free-donation-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--gray-border);
    border-radius: 20px;
    padding: 45px 40px;
    text-align: center;
    box-shadow: var(--shadow);
}
.free-donation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 22px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.free-donation-icon svg {
    width: 38px;
    height: 38px;
    color: #fff;
}
.free-donation-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 14px;
}
.free-donation-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 auto 28px;
    max-width: 460px;
}
@media (max-width: 480px) {
    .free-donation-card { padding: 35px 24px; }
}

/* Icone HelloAsso dans les boutons de don */
.btn-with-ha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-ha-ico {
    width: 24px;
    height: 24px;
    display: inline-block;
    flex-shrink: 0;
}

/* Icone HelloAsso en haut a gauche des cartes de don */
.card-ha-ico {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 22px;
    height: 22px;
    opacity: 0.9;
    pointer-events: none;
}

/* ============================================================ */
/* === ICONE HELLOASSO SUR TOUS LES BOUTONS DE DON =========== */
/* Cible les boutons vers #don (hors hero/don-libre qui ont deja l'icone) */
/* ============================================================ */
a.btn[href*="#don"]:not(.btn-with-ha)::before,
.footer-don-btn::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: -0.3em;
    background: url('assets/images/icone-hello.png') center / contain no-repeat;
}

/* FIX : l'icone de don partageait le ::before du shimmer .btn-primary (position absolute/left -120%).
   On annule ces proprietes pour que l'icone s'affiche bien en ligne avant le texte. */
a.btn[href*="#don"]:not(.btn-with-ha)::before,
.footer-don-btn::before {
    position: static;
    left: auto;
    top: auto;
    transform: none;
}
