/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette de couleurs */
    --primary-color: #4d7c8a;
    --primary-dark: #345d69;
    --primary-light: #6899a8;
    --secondary-color: #8ab6a3;
    --accent-color: #e8ae68;
    --dark-color: #2f3e46;
    --light-color: #f7f9f9;
    --gray-color: #e0e0e0;
    --gray-dark: #7c7c7c;
    
    /* Typographie */
    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Raleway', sans-serif;
    
    /* Ombres et arrondis */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Overlay de motif */
.overlay-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><path d="M0 20 L20 0 L40 20 L20 40 Z" fill="none" stroke="%23e8ae68" stroke-opacity="0.05" stroke-width="1"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo h1 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin: 0;
    color: var(--dark-color);
}

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

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

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

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
}

.header-contact a {
    color: var(--dark-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding-top: 120px;
    position: relative;
    background: linear-gradient(135deg, #f7f9f9 0%, #e6f5fa 100%);
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content h2 span {
    color: var(--primary-color);
    display: block;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray-dark);
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.hero-image-container {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45%;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: url('img/1.png');
    background-size: cover;
    background-position: center left;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.shape-divider .shape-fill {
    fill: #FFFFFF;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img-container {
    height: 500px;
    width: 100%;
    background-image: url('img/2.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
}

.about-accent-shape {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 80%;
    height: 80%;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    opacity: 0.2;
    z-index: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.about-features {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature {
    display: flex;
    gap: 15px;
}

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

.feature-icon i {
    font-size: 1.2rem;
}

.feature-text h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    padding: 100px 0;
    background-color: #f5f7fa;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray-dark);
    font-size: 1.1rem;
}

.benefits-wrapper {
    position: relative;
}

.benefits-wrapper::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.1;
    right: -100px;
    top: -100px;
    z-index: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.benefit-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    height: 60px;
    width: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.benefit-icon i {
    font-size: 1.5rem;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit-card p {
    color: var(--gray-dark);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== COURSES SECTION ===== */
.courses-section {
    padding: 100px 0;
    background-color: white;
}

.courses-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.course-card {
    flex: 1;
    max-width: 350px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.course-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--accent-color);
    z-index: 2;
}

.course-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.course-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.course-header h3 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.course-body {
    padding: 30px 20px;
}

.course-body ul {
    margin-bottom: 25px;
}

.course-body ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-color);
    display: flex;
    align-items: center;
}

.course-body ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    margin-right: 10px;
}

.course-btn {
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.course-btn:hover {
    background-color: var(--primary-dark);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 100px 0;
    background-color: #f5f7fa;
}

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

.testimonials-container h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.testimonials-wrapper {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    position: relative;
}

.testimonial::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-content {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--dark-color);
}

.author-info {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 0;
    background-color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

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

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form-container {
    background-color: #f5f7fa;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(77, 124, 138, 0.2);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
}

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

.copyright {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--light-color);
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1100px) {
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .about-grid,
    .contact-wrapper {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: auto;
        padding: 150px 0 100px;
    }
    
    .hero-image-container {
        position: relative;
        width: 100%;
        height: 400px;
        margin-top: 50px;
    }
    
    .hero-image {
        clip-path: none;
    }
    
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-container {
        flex-direction: column;
        align-items: center;
    }
    
    .course-card {
        width: 100%;
        max-width: 400px;
    }
    
    .course-card.featured {
        transform: none;
    }
    
    .course-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .header-contact {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-header h2,
    .about-content h2,
    .contact-info h2,
    .testimonials-container h2 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-img-container {
        height: 350px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}