* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #ed3f27;
    --tan: #c58543;
    --tan-dark: #b8915e;
    --cream: #fdf4e3;
    --yellow: #feb21a;
    --white: #F5F5F5;
    --text-dark: #333333;
    --text-mid: #555555;
    --text-light: #888888;
}

.hidden {
    display: none;
}

/* ===================== HEADER ===================== */

header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: var(--cream);
    padding: 20px;
    position: relative;
    gap: 2rem;
    height: fit-content;
}

.empty {
    flex: 1;
}

.grosLogo {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex: 1;
}

.grosLogo:hover {
    transform: scale(1.05);
}

.logoHeader {
    height: auto;
    max-height: 75px;
    width: auto;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    right: 2rem;
    flex: 1;
}

.header-buttons a {
    text-decoration: none;
    padding: 0.65rem 1.5rem;
    border-radius: 16px;
    font-family: 'Fredoka One', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: var(--tan);
    color: white;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.header-buttons a:hover {
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    background-color: white;
    color: var(--tan);
}

/* ===================== HERO ===================== */

.hero-section {
    min-height: 40rem;
    background: var(--tan);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    position: relative;
}

.video-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e0d5c7 0%, #d4a574 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discover-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-family: 'Fredoka One', sans-serif;
    font-weight: 400;
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.discover-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    color: white;
    background-color: transparent;
}

/* ===================== CONTENU ===================== */

.content-section {
    background: #f0e6d3;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* ---- QUI SOMMES-NOUS ---- */

.who-block {
    max-width: 760px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.who-title,
.priorities-title {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.6rem;
    color: var(--red);
    margin-bottom: 0.8rem;
}

.who-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 5rem;
}

.who-priorities {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.priority-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    background: var(--white);
    border-radius: 20px;
    padding: 1.6rem 1.4rem 1.3rem;
    width: 160px;
    box-shadow: 0 6px 24px rgba(212, 165, 116, 0.18);
    border: 1.5px solid rgba(212, 165, 116, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.priority-card:hover {
    box-shadow: 0 12px 36px rgba(212, 165, 116, 0.28);
}

.priority-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fdf4e3 0%, #f5e8d0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.priority-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.priority-card span {
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tan-dark);
    text-align: center;
    line-height: 1.4;
}

.who-closing {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--tan-dark);
    font-style: italic;
    line-height: 1.7;
}

/* ---- NOS ACTIONS ---- */

.story-actions {
    padding: 4rem 2rem 6rem;
    max-width: 1100px;
    margin: 0 auto;
}

.story-actions-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.story-actions-header h2 {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.6rem;
    color: var(--red);
    margin-bottom: 0.8rem;
}

.story-actions-header p {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #888;
}

.action-scene {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.action-scene.visible {
    opacity: 1;
}

.action-scene:last-child {
    margin-bottom: 0;
}

.action-scene.reverse {
    direction: rtl;
}

.action-scene.reverse > * {
    direction: ltr;
}

.action-visual {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.action-visual .action-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    inset: 0;
}

.action-visual .action-img.loaded {
    display: block;
}

.action-text {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.action-number {
    font-family: 'Fredoka One', sans-serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--tan);
    letter-spacing: -2px;
    margin-bottom: -1rem;
}

.action-text h3 {
    font-family: 'Fredoka One', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: var(--red);
    line-height: 1.2;
}

.action-text .action-lead {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.action-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.action-pill {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    background: var(--white);
    color: var(--tan-dark);
    border: 1.5px solid rgba(212, 165, 116, 0.3);
    transition: all 0.2s ease;
}

.action-pill:hover {
    background: var(--tan);
    color: white;
    border-color: var(--tan);
}

/* ===================== PAGE MENTIONS LÉGALES ===================== */

.mentions-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
}

.mentions-h1 {
    font-family: 'Fredoka One', sans-serif;
    color: var(--red);
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.mentions-h2 {
    font-family: 'Fredoka One', sans-serif;
    color: var(--tan-dark);
    font-size: 1.3rem;
    margin: 2rem 0 0.8rem;
}

.mentions-p {
    line-height: 1.8;
}

/* ===================== PAGE DONATIONS ===================== */

body.donations-page {
    background-color: var(--tan);
    min-height: 100vh;
}

.page-wrapper {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.hero-image-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.8rem;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #c8956a 0%, #a0714a 100%);
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tagline {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 1.8rem;
    line-height: 1.3;
}

.donation-card {
    background: var(--cream);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    border: 1.5px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group:focus-within {
    border-color: var(--tan);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.input-icon {
    font-size: 1.1rem;
    color: var(--tan);
    flex-shrink: 0;
}

.input-group input,
.input-group textarea {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    width: 100%;
    resize: none;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--text-light);
}

.input-group.textarea-group {
    align-items: flex-start;
    padding-top: 0.9rem;
}

.amount-banner {
    background: var(--red);
    padding: 0.7rem 1rem;
    text-align: center;
    font-family: 'Fredoka One', sans-serif;
    font-size: 1rem;
    color: white;
    letter-spacing: 0.3px;
    border-radius: 12px 12px 0 0;
}

.amount-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--white);
    border: 1.5px solid rgba(212, 165, 116, 0.3);
    border-radius: 0 0 12px 12px;
    padding: 0.9rem 1.5rem;
    margin-bottom: 1.2rem;
}

.amount-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--tan);
    background: transparent;
    color: var(--tan-dark);
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.amount-btn:hover {
    background: var(--tan);
    color: white;
    transform: scale(1.1);
}

.amount-btn:active {
    transform: scale(0.95);
}

.amount-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Fredoka One', sans-serif;
    font-size: 2rem;
    color: var(--text-dark);
}

.amount-display .currency {
    font-size: 1.5rem;
    color: var(--text-mid);
}

.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.quick-btn {
    font-family: 'Fredoka One', sans-serif;
    font-size: 0.95rem;
    padding: 0.45rem 1rem;
    border-radius: 12px;
    border: 1.5px solid rgba(212, 165, 116, 0.35);
    background: var(--white);
    color: var(--tan-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover,
.quick-btn.active {
    background: var(--tan);
    color: white;
    border-color: var(--tan);
}

.quick-btn-other {
    border-color: rgba(237, 63, 39, 0.25);
    color: var(--red);
}

.quick-btn-other:hover,
.quick-btn-other.active {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.custom-amount-group {
    margin-bottom: 1.2rem;
}

.currency-inline {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1rem;
    color: var(--tan-dark);
    flex-shrink: 0;
}

.send-button {
    width: 100%;
    padding: 0.9rem;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(237, 63, 39, 0.35);
}

.send-button:hover {
    background: #c93420;
    box-shadow: 0 6px 20px rgba(237, 63, 39, 0.45);
}

.legal-note {
    font-size: 0.72rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.5;
}

.legal-note a {
    color: var(--tan-dark);
    text-decoration: underline;
}

.fiscal-title {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.4rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 1.5rem;
}

.fiscal-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fiscal-card h3 {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.1rem;
    color: var(--red);
    margin-bottom: 0.8rem;
}

.fiscal-card p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.fiscal-card p + p {
    margin-top: 0.6rem;
}

/* ===================== FOOTER ===================== */

footer {
    background: var(--red);
    padding: 1.8rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
    border-bottom: 6px solid #1a1a1a;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-social-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.footer-social-item img {
    width: 32px;
    object-fit: contain;
}

.footer-social-item span {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
}

.footer-social-item:hover span {
    text-decoration: underline;
}

.footer-legal a {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: white;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1024px) {
    header {
        flex-direction: column;
        gap: 1rem;
        height: fit-content;
    }
    .action-scene {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .action-scene.reverse {
        direction: ltr;
    }
}