/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c2c2c;
    background-color: #f5f3f0;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* === Layout === */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Hero === */
.hero {
    background: linear-gradient(135deg, #5a4bd1, #6c5ce7, #8e85f7);
    color: #fff;
    padding: 5rem 0 4rem;
    text-align: center;
    margin-left: 220px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}

.hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 580px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

.hero-cta {
    display: none !important;
    margin-top: 1.5rem;
    width: auto;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 0.85rem 2rem;
}

/* === Bottom Bar (sticky CTA) === */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 220px;
    right: 0;
    z-index: 999;
    background: #fff;
    padding: 0.7rem 1rem;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.bottom-bar.visible {
    transform: translateY(0);
}

.bottom-bar-cta {
    margin-top: 0 !important;
    text-align: center;
}

/* === Sidebar === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    padding: 2rem 1.2rem;
    overflow: hidden;
    z-index: 100;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.sidebar-inner {
    flex: 1;
    overflow: hidden;
}

.sidebar-logo-link {
    display: block;
    margin: -2rem -1.2rem 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #5a4bd1, #6c5ce7);
    text-align: center;
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-logo {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto;
}

.sidebar-inner h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 1rem;
}

.sidebar-inner ul {
    list-style: none;
    padding: 0;
}

.sidebar-inner li {
    margin-bottom: 0.2rem;
}

.sidebar-inner a {
    display: block;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sidebar-inner a:hover {
    background: #f0eeff;
    color: #6c5ce7;
}

.sidebar-inner a.active {
    border-left-color: #6c5ce7;
    color: #6c5ce7;
    background: #f0eeff;
    font-weight: 700;
}

.sidebar-cta {
    display: block;
    margin-top: 1rem;
    flex-shrink: 0;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, #5a4bd1, #6c5ce7);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    position: relative;
    overflow: visible;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}

.sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.45);
}

.sidebar-cta::before,
.sidebar-cta::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.sidebar-cta::before {
    background: #8e85f7;
    box-shadow:
        -18px -12px 0 0 #8e85f7,
         20px -8px 0 -1px #6c5ce7,
        -14px  14px 0 -1px #c4bffa,
         22px  10px 0 0 #8e85f7,
        -8px  -18px 0 -1px #6c5ce7,
         12px  16px 0 -1px #c4bffa;
    animation: sparkleA 2.8s ease-in-out infinite;
}

.sidebar-cta::after {
    background: #6c5ce7;
    box-shadow:
         16px -14px 0 -1px #c4bffa,
        -20px  8px 0 0 #8e85f7,
         10px  18px 0 -1px #6c5ce7,
        -16px -16px 0 0 #c4bffa,
         24px  4px 0 -1px #8e85f7,
        -6px   20px 0 0 #6c5ce7;
    animation: sparkleB 2.8s ease-in-out infinite;
    animation-delay: 1.4s;
}

@keyframes sparkleA {
    0% { opacity: 0; transform: scale(0) translate(0, 0); }
    15% { opacity: 1; transform: scale(1) translate(0, 0); }
    40% { opacity: 1; transform: scale(1) translate(-3px, -5px); }
    60% { opacity: 0.6; transform: scale(0.6) translate(-5px, -8px); }
    80%, 100% { opacity: 0; transform: scale(0) translate(-8px, -12px); }
}

@keyframes sparkleB {
    0% { opacity: 0; transform: scale(0) translate(0, 0); }
    15% { opacity: 1; transform: scale(1) translate(0, 0); }
    40% { opacity: 1; transform: scale(1) translate(3px, 5px); }
    60% { opacity: 0.6; transform: scale(0.6) translate(5px, 8px); }
    80%, 100% { opacity: 0; transform: scale(0) translate(8px, 12px); }
}

main {
    margin-left: 220px;
}

/* === Content blocks === */
.section-text {
    padding: 1.5rem 0;
}

.section-text .container {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.section-text .container > h2 {
    background: linear-gradient(135deg, #5a4bd1, #6c5ce7);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    padding: 1.1rem 2rem;
    margin: 0;
}

.section-text .container > p,
.section-text .container > ul,
.section-text .container > .cards-grid {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.section-text .container > p:first-of-type,
.section-text .container > h2 + ul {
    padding-top: 2rem;
}

.section-text .container > p:last-of-type,
.section-text .container > ul:last-of-type {
    padding-bottom: 2rem;
}

.section-text p {
    color: #444;
    margin-bottom: 1rem;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.section-text ul {
    color: #444;
    margin-top: -1.5rem;
    margin-bottom: 1rem;
    margin-left: 1rem;
    padding-left: 0;
}

.section-text li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* === Presentation grid (text + image) === */
.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 2.5rem;
    align-items: center;
}

.presentation-text {
    text-align: center;
}

.presentation-text p {
    margin: 0 0 1.2rem;
    text-align: left;
}

.btn-inscription {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: linear-gradient(135deg, #5a4bd1, #6c5ce7);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-inscription:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.presentation-image {
    text-align: center;
}

.presentation-image img {
    width: 75%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* === Cards === */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.card {
    border-radius: 16px;
    padding: 2rem 1.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-icon {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-align: center;
}

.card p {
    font-size: 0.92rem;
    line-height: 1.65;
}

.card--purple {
    background: #f0eeff;
    color: #2d2654;
}
.card--purple h3 { color: #6c5ce7; }

.card--lavender {
    background: #ede8fd;
    color: #2d2654;
}
.card--lavender h3 { color: #5a4bd1; }

.card--light {
    background: #f8f6ff;
    color: #2d2654;
}
.card--light h3 { color: #8e85f7; }

.card--violet {
    background: #e8e4f9;
    color: #2d2654;
}
.card--violet h3 { color: #4a3db0; }

.cards-grid--inner {
    margin: 1.5rem 0;
}

/* === Intro === */
.section-intro {
    padding: 3.5rem 0 2rem;
}

.section-intro .container {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.section-intro p {
    font-size: 1.1rem;
    color: #555;
    max-width: 680px;
    margin: 0 auto;
}

/* === City Grid (homepage) === */
.city-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem 2.5rem;
}

.city-card {
    display: block;
    background: #f8f6ff;
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #2d2654;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: 2px solid transparent;
}

.city-card:hover {
    background: #f0eeff;
    border-color: #6c5ce7;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.15);
    color: #6c5ce7;
}

.city-card .city-emoji {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

/* === Dual Section === */
.section-dual {
    padding: 1.5rem 0;
}

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

.dual-block {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.dual-block h2 {
    background: linear-gradient(135deg, #5a4bd1, #6c5ce7);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    padding: 1.1rem 2rem;
    margin: 0;
}

.dual-block p {
    padding: 2rem;
    color: #444;
    margin: 0;
}

/* === FAQ === */
.section-faq {
    padding: 2rem 0 3rem;
}

.section-faq .container {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.section-faq h2 {
    background: linear-gradient(135deg, #5a4bd1, #6c5ce7);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    padding: 1.1rem 2rem;
    margin: 0;
}

.section-faq .faq-item:first-of-type {
    margin-top: 1.5rem;
}

.section-faq .faq-item {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.section-faq .faq-item:last-of-type {
    margin-bottom: 1.5rem;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1.8rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #6c5ce7;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #555;
    font-size: 0.92rem;
}

/* === Verdict === */
.section-verdict {
    background: linear-gradient(135deg, #4a3db0, #5a4bd1, #6c5ce7);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.verdict-content {
    max-width: 680px;
    margin: 0 auto;
}

.section-verdict h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.section-verdict p {
    max-width: 620px;
    margin: 0 auto 2rem;
    opacity: 0.93;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* === Footer === */
footer {
    padding: 2.5rem 0 5rem;
    text-align: center;
    margin-left: 220px;
}

footer p {
    font-size: 0.78rem;
    color: #bbb;
}

/* === Responsive === */
@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    main,
    .hero,
    footer {
        margin-left: 0;
    }

    .bottom-bar {
        left: 0;
    }
}

@media (max-width: 700px) {
    html {
        font-size: 15px;
    }

    main {
        padding: 0 1rem;
    }

    .hero {
        padding: 3.5rem 1rem 3rem;
    }

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

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

    .city-grid {
        grid-template-columns: 1fr 1fr;
        padding: 1.5rem;
    }

    .dual-grid {
        grid-template-columns: 1fr;
    }

    .presentation-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        display: inline-block !important;
    }

    footer {
        padding-bottom: 5rem;
    }
}
