@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

/* Variables */
:root {
    --primary-color: #e60000;
    --primary-dark: #c40000;
    --secondary-color: #1a1a1a;
    --accent-color: #ff5a5a;
    --background-light: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --section-padding: 100px 0;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 120px;
    /* Account for fixed header */
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-gray {
    background-color: var(--background-light);
}

.section-white {
    background-color: var(--white);
}

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

/* Header */
.header {
    width: 98%;
    max-width: 1350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: var(--transition);
    margin-left: -10px;
    /* Move slightly left */
}

.logo {
    margin-right: 30px;
    /* Reduced spacing to prevent overflow */
}

.navbar {
    display: flex;
    gap: 40px;
    /* Increased gap for better spacing */
    align-items: center;
}

.navbar a {
    text-decoration: none;
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.navbar a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 40px;
    /* Reduced margin to prevent overflow */
}

.hamburger {
    display: none;
}

.phone-link {
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-icon-symbol {
    font-size: 24px;
    transition: var(--transition);
    color: black;
}

.phone-text {
    display: none;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
    white-space: nowrap;
}

.phone-link:hover .phone-icon-symbol {
    transform: scale(1.1);
}

/* Tooltip Styles */
.phone-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.phone-link::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent white transparent;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    border-width: 0 5px 5px 5px;
    bottom: -14px;
}

.phone-link:hover::after,
.phone-link:hover::before {
    opacity: 1;
    visibility: visible;
}

.btn-inscrire {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0 25px;
    height: 45px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-inscrire:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.4);
}

.learnmycode-btn {
    height: 45px;
    width: auto;
    /* Maintain aspect ratio */
    cursor: pointer;
    transition: var(--transition);
    border-radius: 20px;
    /* Rounded corners */
    display: block;
    /* Remove inline-block spacing issues */
}

.learnmycode-btn:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    background: var(--white);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-left {
    flex: 1;
}

.subtitle {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 14px;
}

.title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.title span {
    color: var(--primary-color);
}

.hero-cards {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    flex: 1;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.hero-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.hero-card img {
    height: 40px;
    margin-bottom: 10px;
}

.hero-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.hero-card p {
    font-size: 13px;
    color: var(--text-light);
}

.hero-right {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stats-row {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.stat-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
}

.stat-box h2 {
    font-size: 42px;
    color: var(--primary-color);
    font-weight: 800;
    margin: 10px 0;
}

.stat-box p {
    font-weight: 500;
    color: var(--text-light);
}

.quality-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.quality-badges img {
    height: 80px;
    object-fit: contain;
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-title span {
    color: var(--primary-color);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(230, 0, 0, 0.1);
}

.feature-card img {
    height: 60px;
    margin-bottom: 25px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card .btn-inscrire {
    margin-top: auto;
}

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

/* Simulator Section */
.simulator-section {
    background: #fff5f5;
    color: var(--secondary-color);
    text-align: center;
}

.simulator-section .section-title {
    color: var(--secondary-color);
}

.simulator-section .section-title::after {
    background: var(--primary-color);
}

.simulator-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
}

.simulator-content {
    flex: 1;
}

.simulator-image {
    flex: 1;
}

.simulator-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    height: 400px;
}

.simulator-section p {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .simulator-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .simulator-content .section-title {
        text-align: center !important;
    }

    .simulator-content .section-title::after {
        margin: 20px auto 0 !important;
    }

    .simulator-section p,
    .simulator-section ul {
        text-align: center !important;
    }

    .simulator-section ul {
        display: inline-block;
        text-align: left !important;
    }

    .simulator-image img {
        height: auto;
        max-height: 400px;
    }
}

.btn-white {
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Reviews Carousel */
.reviews-section {
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 350px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    border: 1px solid #eee;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--background-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.stars {
    color: #ffc107;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    font-size: 15px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-350px * 5 - 150px));
    }
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .header .container {
        padding: 0 20px;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1002;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--secondary-color);
        margin: 5px 0;
        transition: var(--transition);
    }

    .navbar {
        position: absolute;
        top: 90px;
        right: 20px;
        width: 180px;
        height: auto;
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: var(--transition);
        z-index: 1001;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: 20px;
        padding: 15px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        pointer-events: none;
    }

    .navbar.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }

    .navbar a {
        font-size: 16px;
        margin: 10px 0;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-cards {
        justify-content: center;
    }

    .hero-right {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-cards {
        flex-direction: column;
    }

    .stats-row {
        flex-direction: column;
    }

    .header-right {
        display: flex;
        margin-left: auto;
        margin-right: 20px;
        /* Space between phone and hamburger */
        gap: 10px;
    }

    .header-right .btn-inscrire,
    .header-right .learnmycode-btn {
        display: none;
    }

    .phone-icon-symbol {
        display: block;
    }

    .phone-text {
        display: none;
    }

    .phone-link::after,
    .phone-link::before {
        display: none;
        /* Hide tooltip on mobile */
    }
}

/* Decorative Elements */
.bg-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.1;
}

.shape-blob {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(80px);
}

.card-popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
    z-index: 1;
}

.price-tag {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 15px 0 25px;
    display: flex;
    align-items: flex-start;
    line-height: 1;
}

.price-tag span {
    font-size: 24px;
    margin-top: 5px;
    font-weight: 600;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
}

.feature-icon {
    color: var(--primary-color);
    font-size: 18px;
    background: rgba(230, 0, 0, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accordion Styles */
.accordion-item {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: var(--transition);
}

.accordion-header:hover {
    background: #fcfcfc;
}

.accordion-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-header h2 i {
    color: var(--primary-color);
}

.accordion-icon {
    width: 30px;
    height: 30px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fafafa;
}

.accordion-content .cards-grid {
    padding: 30px;
}

/* Promo Section Styles */
.promo-section {
    background: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.promo-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.promo-content {
    flex: 1;
    min-width: 300px;
}

.promo-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.promo-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.promo-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.btn-dark {
    background: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-dark:hover {
    background: black;
    transform: translateY(-2px);
}

.curve-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.curve-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.curve-separator .shape-fill {
    fill: rgba(230, 0, 0, 0.03);
}

/* Registration Form Styles */
.registration-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 300px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
}

.form-info-box {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.form-info-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.form-info-list {
    list-style: none;
    padding-left: 0;
    font-size: 14px;
    color: var(--text-light);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.form-submit-btn {
    width: 100%;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Mobile Responsive Styles for Form */
@media (max-width: 768px) {
    .registration-form-container {
        padding: 20px;
    }

    .form-group {
        min-width: 100%;
    }
}