/* ==========================================
   CSS Variables - Easy Color Customization
   ========================================== */
:root {
    --primary-color: #6B46C1;
    --secondary-color: #553C9A;
    --accent-color: #805AD5;
    --dark-color: #1A1A1A;
    --light-color: #FFFFFF;
    --gray-color: #6B6B6B;
    --light-gray: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

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

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

/* ==========================================
   Container & Layout
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-top: -40px;
    margin-bottom: 60px;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px; /* Taille augmentée de 40px à 50px */
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px; /* Taille augmentée sur mobile de 35px à 40px */
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

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

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

.btn-nav {
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 6px;
}

.btn-nav:hover {
    background-color: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   Icons
   ========================================== */
.icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(94, 142, 62, 0.1);
    border-radius: 12px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.service-card,
.why-card {
    text-align: center;
}

.addon-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 2rem;
}

.addon-item .icon {
    margin: 0 1.5rem 0 0;
    flex-shrink: 0;
}

.addon-content {
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .addon-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .addon-item .icon {
        margin: 0 auto 1rem;
    }
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    margin: 0 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--light-color);
    text-align: center;
    padding: 0 40px;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 4;
    color: white;
    text-decoration: none;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-down-arrow {
    display: block;
    width: 30px;
    height: 30px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.scroll-down-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
    display: block;
    opacity: 0.8;
}

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

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 24px;
    color: var(--light-color);
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 65vh;
        min-height: 400px;
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 350px;
        margin: 0 5px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="none" width="1200" height="600"/><g opacity="0.1"><circle cx="100" cy="100" r="80" fill="white"/><circle cx="1100" cy="500" r="100" fill="white"/><circle cx="600" cy="300" r="60" fill="white"/></g></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

/* ==========================================
   Services Section
   ========================================== */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* ==========================================
   Add-ons Section
   ========================================== */
.addons-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.addon-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    transition: var(--transition);
}

.addon-item:hover {
    background-color: #EBEBEB;
    transform: translateX(8px);
}

.addon-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.addon-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.addon-content p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* ==========================================
   Portfolio Section
   ========================================== */
.portfolio {
    background-color: var(--light-gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(100%);
    transition: var(--transition);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

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

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.7);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    margin: 0 0 4px 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.portfolio-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ==========================================
   Why Choose Section
   ========================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.why-card {
    text-align: center;
    padding: 30px;
}

.why-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.why-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    background-color: var(--light-gray);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.error-message {
    display: block;
    color: #E74C3C;
    font-size: 0.9rem;
    margin-top: 6px;
    min-height: 20px;
}

.success-message {
    display: none;
    background-color: #D4EDDA;
    color: #155724;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
}

.success-message.show {
    display: block;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 30px 0;
}

.footer p {
    opacity: 0.8;
}

/* ==========================================
   Responsive Design - Tablet
   ========================================== */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

    .addon-item {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--light-color);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: var(--transition);
    }

    .nav-links.active {
        max-height: 400px;
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .btn-nav {
        display: block;
        width: 100%;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* ==========================================
   Responsive Design - Mobile
   ========================================== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .service-card,
    .addon-item {
        padding: 24px 20px;
    }

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

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}