/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4d6d;
    --secondary-color: #2d7a9f;
    --accent-color: #e8b44d;
    --dark-text: #2c3e50;
    --light-text: #5a6c7d;
    --white: #ffffff;
    --light-bg: #f5f8fa;
    --overlay-dark: rgba(26, 77, 109, 0.85);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

header.scrolled .nav-links a {
    color: var(--dark-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
}

header.scrolled .nav-links a:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
    border-radius: 2px;
}

header.scrolled .menu-toggle span {
    background-color: var(--primary-color);
}

/* Main Content */
main {
    padding-top: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 77, 109, 0.85) 0%, rgba(45, 122, 159, 0.85) 100%), 
                url('sources/Delphine\ Epitech.jpg') center/cover no-repeat;
    position: relative;
    padding: 0 3rem;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-content {
    max-width: 1000px;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 300;
}

.hero-image {
    display: none;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 180, 77, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(232, 180, 77, 0.5);
    background-color: #f0c05a;
}

/* Sections */
section {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

section.full-width {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

section.full-width > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 3rem;
    padding-right: 3rem;
}

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

section.dark-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

section h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 1.5rem;
}

section.dark-bg h2 {
    color: var(--white);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

section h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

section.dark-bg h3 {
    color: rgba(255, 255, 255, 0.95);
}

section p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1.1rem;
    color: var(--light-text);
}

section.dark-bg p {
    color: rgba(255, 255, 255, 0.9);
}

section ul {
    margin-left: 0;
    margin-bottom: 2rem;
    list-style: none;
}

section li {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
    padding-left: 2rem;
    position: relative;
}

section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

section.dark-bg li {
    color: rgba(255, 255, 255, 0.9);
}

/* Page Title */
.page-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0;
    text-align: center;
    padding: 8rem 2rem 6rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    font-weight: 700;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Format Cards */
.format-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.format-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 5px solid var(--accent-color);
}

.format-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.format-card h2,
.format-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.format-card ul {
    margin-left: 0;
}

.format-card li {
    padding-left: 2rem;
    margin-bottom: 1.2rem;
    color: var(--light-text);
    font-size: 1.05rem;
}

.format-card li strong {
    color: var(--primary-color);
}

/* Contact Section */
.contact-info {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.contact-item span {
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 3rem auto;
    padding: 3rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f8fafb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(45, 122, 159, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-color) 0%, #f0c05a 100%);
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(232, 180, 77, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 180, 77, 0.5);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a3a4d 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    text-align: center;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-content p {
    opacity: 0.8;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Testimonials - Style Carrousel Large */
.testimonials {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f0f5 100%);
    padding: 6rem 3rem;
    margin: 0;
    position: relative;
}

.testimonials-container {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.testimonial-slide {
    display: none;
    background-color: var(--white);
    padding: 5rem 3rem 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-left: 5px solid var(--accent-color);
    position: relative;
    animation: slideIn 0.5s ease;
    margin-top: 50px;
}

.testimonial-slide.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-slide .testimonial-avatar {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f0c05a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(232, 180, 77, 0.6);
    border: 6px solid var(--white);
    z-index: 10;
}

.testimonial-slide p {
    color: var(--light-text);
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-align: left;
}

.testimonial-slide .testimonial-author {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 2rem;
    text-align: right;
    font-size: 1.05rem;
}

/* Témoignage vidéo */
.testimonial-video {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    position: relative;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.testimonial-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.testimonial-slide.has-video {
    padding: 5rem 2rem 2rem;
}

.testimonial-slide.has-video .testimonial-video {
    margin-top: 1rem;
}

/* Navigation arrows for carousel */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.carousel-arrow {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover:not(:disabled) {
    background-color: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(232, 180, 77, 0.4);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Parcours - Alignement de l'image au centre */
.parcours-intro {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 0 !important;
}

.parcours-text {
    padding-right: 2rem;
}

.parcours-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.parcours-image {
    width: 100%;
    max-width: 400px;
    height: fit-content;
}

.parcours-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parcours-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Placeholder style for image when no image is present */
.parcours-image:not(:has(img)) {
    min-height: 500px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f0f5 100%);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parcours-image:not(:has(img))::after {
    content: '[Photo de Delphine Bousquet Hazoumé]';
    color: var(--light-text);
    font-size: 1.1rem;
    text-align: center;
    padding: 2rem;
}

/* Content Wrapper for Pages */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

/* Strong text highlight */
strong {
    color: var(--primary-color);
    font-weight: 600;
}

section.dark-bg strong {
    color: var(--accent-color);
}

/* Responsive Design - Améliorations */
@media (max-width: 968px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 4rem 2rem;
    }

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

    nav {
        padding: 0 2rem;
    }
    
    .testimonial-slide {
        padding: 4rem 2rem 2rem;
    }
    
    .parcours-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .parcours-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .parcours-text {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--dark-text);
        font-size: 1.1rem;
    }

    .nav-links a::after {
        background-color: var(--accent-color);
    }

    .hero {
        padding: 0 1.5rem;
        min-height: 90vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .page-title {
        font-size: 2rem;
        padding: 6rem 1.5rem 4rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        padding: 0.9rem;
    }
    
    .btn-submit {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .footer-contact {
        flex-direction: column;
        gap: 1.5rem;
    }

    .format-cards {
        grid-template-columns: 1fr;
    }
    
    .format-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-slide {
        padding: 4rem 1.5rem 2rem;
        min-height: 350px;
    }
    
    .testimonial-slide p {
        font-size: 1.05rem;
    }
    
    .carousel-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    section {
        padding: 3rem 1.5rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    section h3 {
        font-size: 1.4rem;
    }
    
    section p, section li {
        font-size: 1rem;
    }
    
    .content-wrapper {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
    
    .testimonial-slide {
        padding: 3.5rem 1.25rem 2rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-links a {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator::before {
    content: '↓';
    color: var(--white);
    font-size: 2rem;
    opacity: 0.7;
}
