/* ========================================
   PEFGH - Site Web Professionnel
   Couleurs: Blanc, Noir, Vert
======================================== */

:root {
    --noir: #0a0a0a;
    --noir-light: #1a1a1a;
    --blanc: #ffffff;
    --blanc-casse: #f8f9fa;
    --gris: #6c757d;
    --gris-light: #e9ecef;
    --vert: #00a86b;
    --vert-dark: #008c59;
    --vert-light: #00c77b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--blanc);
    color: var(--noir);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */

header {
    background-color: var(--noir);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--blanc);
    letter-spacing: 2px;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav ul li a {
    color: var(--blanc);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
}

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

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--vert);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--blanc);
    transition: 0.3s;
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
    background: linear-gradient(135deg, var(--noir) 0%, var(--noir-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 168, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 168, 107, 0.05) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--blanc);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--vert);
}

.hero p {
    font-size: 20px;
    color: var(--gris);
    margin-bottom: 40px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--vert-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 168, 107, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blanc);
    border: 2px solid var(--blanc);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--blanc);
    color: var(--noir);
}

/* ========================================
   SECTIONS COMMUNES
======================================== */

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--noir);
    margin-bottom: 15px;
}

.section-header h2 span {
    color: var(--vert);
}

.section-header p {
    font-size: 18px;
    color: var(--gris);
    max-width: 600px;
    margin: 0 auto;
}

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

.section-dark .section-header h2 {
    color: var(--blanc);
}

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

/* ========================================
   SERVICES / PRODUITS
======================================== */

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

.service-card {
    background-color: var(--blanc);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gris-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--vert);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--noir);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--vert);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--noir);
}

.service-card p {
    color: var(--gris);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
}

.service-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--vert);
    margin-bottom: 25px;
}

.service-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--gris);
}

.service-features {
    text-align: left;
    margin-bottom: 25px;
}

.service-features li {
    padding: 8px 0;
    color: var(--gris);
    font-size: 14px;
    border-bottom: 1px solid var(--gris-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    color: var(--vert);
    font-weight: bold;
}

/* ========================================
   ABOUT SECTION
======================================== */

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

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--noir);
}

.about-text p {
    color: var(--gris);
    margin-bottom: 20px;
    font-size: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--vert);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--gris);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    position: relative;
}

.about-image-box {
    background: linear-gradient(135deg, var(--noir) 0%, var(--noir-light) 100%);
    border-radius: 8px;
    padding: 60px;
    text-align: center;
    color: var(--blanc);
}

.about-image-box h4 {
    font-size: 28px;
    margin-bottom: 15px;
}

.about-image-box p {
    color: var(--gris);
}

/* ========================================
   CONTACT SECTION
======================================== */

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

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--blanc);
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--vert);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--blanc);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 18px;
    color: var(--blanc);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--gris);
    font-size: 15px;
}

.contact-form {
    background-color: var(--blanc);
    padding: 40px;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--noir);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gris-light);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

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

/* ========================================
   FOOTER
======================================== */

footer {
    background-color: var(--noir);
    padding: 60px 0 30px;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
    display: block;
}

.footer-brand p {
    color: var(--gris);
    font-size: 15px;
    line-height: 1.8;
}

.footer-links h4 {
    color: var(--blanc);
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.footer-links ul li a {
    color: var(--gris);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--vert);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gris);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: var(--gris);
    font-size: 13px;
}

.footer-legal a:hover {
    color: var(--vert);
}

/* ========================================
   PAGES LÉGALES
======================================== */

.legal-page {
    padding-top: 120px;
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h1 {
    font-size: 42px;
    margin-bottom: 40px;
    color: var(--noir);
    text-align: center;
}

.legal-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--noir);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--vert);
}

.legal-content h3 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--noir-light);
}

.legal-content p {
    color: var(--gris);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content ul li {
    color: var(--gris);
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-info-box {
    background-color: var(--blanc-casse);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid var(--vert);
}

.legal-info-box p {
    margin-bottom: 5px;
}

.legal-info-box strong {
    color: var(--noir);
}

/* ========================================
   PANIER / E-COMMERCE
======================================== */

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--vert);
    color: var(--blanc);
    font-size: 12px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--blanc);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    background-color: var(--noir);
    color: var(--blanc);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 18px;
}

.close-cart {
    background: none;
    border: none;
    color: var(--blanc);
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gris-light);
}

.cart-item-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.cart-item-info p {
    color: var(--vert);
    font-weight: 700;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gris);
    cursor: pointer;
    font-size: 18px;
}

.cart-item-remove:hover {
    color: #dc3545;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--gris-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.cart-total span:last-child {
    color: var(--vert);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   ALERTS & NOTIFICATIONS
======================================== */

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: rgba(0, 168, 107, 0.1);
    color: var(--vert);
    border: 1px solid var(--vert);
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--noir);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 0;
        transition: left 0.3s ease;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}
