/* ===== Page Header ===== */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.page-title {
    font-family: 'Homemade Apple', cursive;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-align: center;
}

.bg-light {
    background: var(--background);
}

/* ===== Content Sections ===== */
.content-section {
    padding: 5rem 0;
}

.content-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.lead {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-light);
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin: 2rem 0;
}

.quote-large {
    font-size: 1.6rem;
    text-align: center;
    border: none;
    padding: 0;
    max-width: 800px;
    margin: 3rem auto;
}

.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-with-image.reverse {
    direction: rtl;
}

.content-with-image.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-family: 'Homemade Apple', cursive;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.content-text h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.checkmark-list {
    list-style: none;
    padding: 0;
}

.checkmark-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.checkmark-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.image-placeholder {
    background: var(--background);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--primary-color);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-card p {
    color: var(--text-light);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 5rem 0;
    background: var(--background);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cta-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.cta-card i {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.cta-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===== Team Section ===== */
.team-section {
    padding: 5rem 0;
}

.team-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-photo {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.team-member h3 {
    font-family: 'Homemade Apple', cursive;
    padding: 1.5rem 1rem 0.5rem;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-dark);
}

.team-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 1rem;
}

.team-profession {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.5rem 1rem 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.see-profile {
    margin: 0 1rem 1.5rem;
}

/* ===== Modal Profil ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.profile-title h2 {
    font-family: 'Homemade Apple', cursive;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.profile-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.info-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--text-light);
    margin: 0;
}

.profile-bio,
.profile-engagement {
    padding: 2rem;
    background: var(--background);
    border-radius: 12px;
}

.profile-bio h3,
.profile-engagement h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-bio h3 i,
.profile-engagement h3 i {
    color: var(--primary-color);
}

.profile-bio p,
.profile-engagement p {
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
}

/* ===== Contact Page ===== */
.contact-page {
    padding: 5rem 0;
}

.contact-hours {
    margin-top: 2rem;
}

.contact-hours h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-hours ul {
    list-style: none;
}

.contact-hours li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-3px);
}

.contact-cta {
    padding: 5rem 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form h2 {
    font-family: 'Homemade Apple', cursive;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.contact-form > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===== Articles Page ===== */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.article-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.article-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-content {
    padding: 2.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-category {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-card h2 {
    font-family: 'Homemade Apple', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.article-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-card .btn {
    margin-top: 1rem;
}

/* ===== Engagement Page ===== */
.engagement-block {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.engagement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.engagement-block h2 {
    font-family: 'Homemade Apple', cursive;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.engagement-block > p {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

.engagement-list {
    display: grid;
    gap: 2rem;
}

.engagement-item {
    padding: 1.5rem;
    background: var(--background);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.engagement-item h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.engagement-item h4 i {
    color: var(--success);
}

.engagement-item ul {
    list-style: none;
    padding-left: 1.5rem;
}

.engagement-item ul li {
    color: var(--text-light);
    padding: 0.5rem 0;
    position: relative;
}

.engagement-item ul li::before {
    content: "→";
    position: absolute;
    left: -1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== Participation Page ===== */
.participation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.participation-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.participation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.participation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.participation-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.participation-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.participation-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    max-width: 700px;
    margin: 3rem auto 0;
    box-shadow: var(--shadow-md);
    text-align: left;
}

.participation-form h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.contact-alternative {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.contact-alternative p {
    margin: 0.5rem 0;
}

.contact-alternative a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== Donation Page ===== */
.donation-advantages {
    margin: 4rem 0;
}

.donation-advantages h2 {
    font-family: 'Homemade Apple', cursive;
    font-weight: 400;
    margin-bottom: 2rem;
}

.legal-framework {
    margin: 4rem 0;
}

.legal-content {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.legal-block {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.legal-block h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-block h3 i {
    font-size: 1.5rem;
}

.donation-amounts {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
}

.donation-amounts h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.amount-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.amount-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.amount-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.amount-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: var(--secondary-color);
}

.amount-impact {
    background: var(--background);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-light);
    margin-top: 1rem;
}

.amount-impact i {
    color: var(--primary-color);
}

.amount-impact span {
    font-weight: 700;
    color: var(--primary-color);
}

.donation-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    max-width: 700px;
    margin: 2rem auto;
    box-shadow: var(--shadow-md);
    text-align: left;
}

.donation-form h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-notice {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.form-notice i {
    color: var(--success);
}

.other-payment-methods {
    max-width: 900px;
    margin: 3rem auto 0;
}

.other-payment-methods h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.payment-method {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.payment-method h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-method p {
    color: var(--text-light);
    margin: 0.75rem 0;
    line-height: 1.6;
}

.payment-method strong {
    color: var(--text-dark);
}

/* ===== Legal Pages ===== */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
}

.legal-intro {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.legal-intro p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-family: 'Homemade Apple', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.legal-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.legal-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1rem 0 1rem 2rem;
}

.legal-section ul li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--secondary-color);
}

.legal-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== Text Utilities ===== */
.text-center {
    text-align: center;
}

.nav-menu li a.active {
    color: var(--primary-color);
}

.nav-menu li a.active::after {
    width: 100%;
}

.nav-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-social a {
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-social a:hover {
    color: var(--primary-color);
}

/* ===== Responsive pour nouvelles sections ===== */
@media (max-width: 768px) {
    .content-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .team-photo {
        height: 350px;
    }

    .team-photo img {
        object-position: top;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .page-title {
        font-size: 2rem;
    }

    .nav-social {
        display: none;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        padding: 0;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-close {
        right: 1rem;
        top: 1rem;
    }

    .profile-header {
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .profile-bio,
    .profile-engagement {
        padding: 1.5rem;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }

    /* Engagements page mobile adjustments */
    .content-section {
        padding: 2rem 0;
    }

    .engagement-block {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .engagement-item {
        padding: 1rem;
    }

    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-title {
        font-size: 1.75rem;
        padding-top: 25px;
    }

    .article-content,
    .participation-form,
    .donation-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Expression Grid (Participer Page) ===== */
.expression-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expression-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.expression-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.expression-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.expression-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.expression-card p {
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .expression-grid {
        grid-template-columns: 1fr;
    }
}