@import url('fonts.css');

/* ─── Design tokens ─── */
:root {
    --navy: #0f1b2d;
    --navy-mid: #162236;
    --navy-light: #1c2d45;
    --red: #E22822;
    --red-dark: #c41e1a;
    --red-glow: rgba(226, 40, 34, 0.15);
    --sand: #f5f0eb;
    --sand-dark: #ebe4dc;
    --cream: #faf8f5;
    --text: #1a1a2e;
    --text-mid: #4a4a5a;
    --text-light: #7a7a8a;
    --sea-light: #90e0ef;
    --sea-muted: #64b5c6;
    --green: #28a745;
    --radius: 14px;
    --radius-lg: 20px;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ─── Scroll reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── Hero ─── */
.hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.5)), url('../img/sunset_index.jpg') center / cover no-repeat;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Wave divider */
.wave-divider {
    display: block;
    width: 100%;
    height: auto;
    margin-top: -1px;
}

/* ─── Content / Intro ─── */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    background: var(--cream);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-mid);
    margin-top: 0.5rem;
    font-weight: 400;
}

.intro-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 2.5rem;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 1rem;
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.intro-highlights {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    margin-top: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.intro-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intro-highlights li {
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0ece8;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    color: var(--text);
}

.intro-highlights li:last-child {
    border-bottom: none;
}

.intro-highlights li .material-symbols-outlined {
    color: var(--green);
    font-size: 1.25rem;
}

/* ─── Activities section ─── */
.activities-section {
    background: var(--navy);
    color: white;
    padding: 5rem 2rem 4rem;
    position: relative;
}

.activities-section .section-title {
    color: white;
}

.activities-section .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 3rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.activity-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.35s ease;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.15);
}

.activity-card-highlight {
    border-color: rgba(226, 40, 34, 0.35);
    background: rgba(226, 40, 34, 0.06);
}

.activity-card-highlight:hover {
    border-color: rgba(226, 40, 34, 0.55);
}

.activity-image {
    position: relative;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.activity-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: rgba(15, 27, 45, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.badge-sunset {
    background: rgba(226, 40, 34, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.activity-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.activity-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: white;
    letter-spacing: -0.01em;
}

.activity-content > p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.activity-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.activity-content li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-content li .material-symbols-outlined {
    font-size: 1rem;
    color: var(--sea-light);
}

/* ─── Pricing section ─── */
.pricing-section {
    padding: 5rem 2rem;
    background: var(--cream);
    text-align: center;
    position: relative;
}

.pricing-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.pricing-intro {
    color: var(--text-mid);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.pricing-card-featured {
    border: 2px solid var(--red);
    box-shadow: 0 4px 20px var(--red-glow);
}

.pricing-header {
    background: var(--navy);
    color: white;
    padding: 1.25rem 1.5rem;
}

.pricing-card-featured .pricing-header {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}

.pricing-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.pricing-header p {
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 0;
}

.pricing-body {
    padding: 1.5rem;
}

.pricing-body .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.pricing-card-featured .pricing-body .price {
    color: var(--red);
}

.pricing-body .price-detail {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    margin-top: 0.25rem;
}

.pricing-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pricing-body li {
    padding: 0.55rem 0;
    border-bottom: 1px solid #f5f2ee;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.pricing-body li:last-child {
    border-bottom: none;
}

.pricing-body li .material-symbols-outlined {
    color: var(--green);
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* ─── Featured product cards (carte de cours) ─── */
.carte-cours {
    max-width: 720px;
    margin: 2rem auto 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 2px dashed var(--red);
    overflow: hidden;
}

a.carte-cours-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

a.carte-cours-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--red-glow);
}

.carte-cours-arrow {
    font-size: 1.6rem;
    color: var(--red);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

a.carte-cours-link:hover .carte-cours-arrow {
    transform: scale(1.15);
}

.carte-cours-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.carte-cours-content > div:nth-child(2) {
    flex: 1;
    text-align: left;
}

.carte-cours-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.carte-cours-content p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin: 0;
}

.carte-prix {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.carte-prix .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--red);
}

.carte-prix .price-detail {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ─── Stages vacances ─── */
.stages-vacances-section {
    background: var(--sand);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
}

.stages-vacances-container {
    max-width: 760px;
    margin: 0 auto;
}

.stages-vacances-icon {
    margin-bottom: 1rem;
}

.stages-vacances-icon .material-symbols-outlined {
    font-size: 2.8rem;
    color: var(--red);
}

.stages-vacances-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.stages-vacances-intro {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-mid);
    margin-bottom: 2rem;
}

.stages-vacances-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.stages-vacances-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text);
    background: white;
    padding: 0.7rem 1.1rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.stages-vacances-item .material-symbols-outlined {
    color: var(--red);
    font-size: 1.2rem;
}

/* ─── Club CTA ─── */
.club-cta-section {
    background: var(--navy);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.club-cta-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(226, 40, 34, 0.06);
    pointer-events: none;
}

.club-cta-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.club-cta-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.club-cta-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
}

.club-cta-text .btn-primary {
    background: white;
    color: var(--text);
}

.club-cta-text .btn-primary:hover {
    background: var(--sand);
    color: var(--text);
}

/* ─── CTA final ─── */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.cta-section h2 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.cta-section > p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary {
    background: var(--red);
    color: white;
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--red-glow);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--red);
}

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

.location-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.location-info a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.location-info a:hover {
    color: var(--red);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .pricing-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .carte-cours-content {
        flex-direction: column;
        text-align: center;
    }

    .carte-cours-content > div:nth-child(2) {
        text-align: center;
    }

    .pricing-section h2,
    .activities-section .section-title {
        font-size: 1.8rem;
    }

    .stages-vacances-details {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .content-section {
        padding: 3.5rem 1.5rem 2rem;
    }

    .activities-section,
    .pricing-section,
    .stages-vacances-section,
    .club-cta-section,
    .cta-section {
        padding: 3.5rem 1.5rem;
    }
}

/* ─── Toast ─── */
.toast {
    visibility: hidden;
    min-width: 280px;
    max-width: 420px;
    background: #053A88;
    color: white;
    border-radius: var(--radius);
    padding: 0.85rem 1.2rem;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px) scale(0.96);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 8px 32px rgba(5, 58, 136, 0.3), 0 2px 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.toast-icon { font-size: 1.3rem; flex-shrink: 0; opacity: 0.9; }
.toast-message { flex: 1; line-height: 1.35; }
.toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px; width: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform-origin: left;
    transform: scaleX(0);
    border-radius: 0 0 var(--radius) var(--radius);
}
.toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}
.toast.show .toast-progress { animation: toast-timer 2.8s linear forwards; }
.toast.hide { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.97); }
.toast.toast-error { background: var(--red); }
.toast.toast-error .toast-progress { background: rgba(255, 255, 255, 0.25); }
@keyframes toast-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
