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

/* ==========================================
   TABLE DES MATIÈRES
   ==========================================
   1. VARIABLES CSS
   2. RÉINITIALISATION & BASE
   3. NAVIGATION
   4. HERO SECTION
   5. SECTIONS GÉNÉRALES
   6. SERVICES
   7. PRODUITS
   8. À PROPOS
   9. CONTACT
   10. PELLETS
   11. CTA BOX
   12. STATISTIQUES
   13. FOOTER
   14. UTILITAIRES
   15. RESPONSIVE (MOBILE)
   ========================================== */

/* ==========================================
   1. VARIABLES CSS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --sage: #8ba888;
    --forest: #2d5016;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-600: #525252;
    --neutral-800: #262626;
    --neutral-900: #171717;
}

/* ==========================================
   2. RÉINITIALISATION & BASE
   ========================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--neutral-800);
    line-height: 1.7;
    background: white;
    overflow-x: hidden;
}

/* ==========================================
   3. NAVIGATION
   ========================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--neutral-100);
}

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

.container-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo {
    height: 70px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--neutral-600);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #02735e;
    transition: width 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--neutral-900);
}

.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    background: #02735e;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s;
    border: 1px solid #02735e;
}

.nav-cta:hover {
    background: var(--neutral-900);
    border-color: var(--neutral-900);
    transform: translateY(-1px);
}

.nav-menu-contact {
    display: none;
}

.nav-cta-mobile {
    background: #02735e;
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    display: block;
    text-align: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--neutral-900);
    cursor: pointer;
}

/* ==========================================
   4. HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
    padding: 8rem 3rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--green-50) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-pellets{
    padding: 5rem 3rem 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--green-100);
    border-radius: 50px;
    font-size: 0.875rem;
    color: #02735e;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--green-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--neutral-600);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-h1-pellets{
    font-size: 3.5rem;
}

/* Boutons principaux */
.btn-primary {
    background: var(--neutral-900);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    text-align: center;
}

.btn-primary:hover {
    background: #02735e;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--neutral-900);
    padding: 1rem 2.5rem;
    border: 1.5px solid var(--neutral-200);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    border-color: #02735e;
    color: white;
    background: #02735e;
}

/* ==========================================
   5. SECTIONS GÉNÉRALES
   ========================================== */
.section {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--green-50);
    color: #02735e;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    color: var(--neutral-900);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   6. SERVICES
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--neutral-100);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #02735e, var(--green-500), #02735e);
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

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

.service-icon {
    width: 60px;
    height: 60px;
    background: #02735e;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.service-card p {
    color: var(--neutral-600);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ==========================================
   7. PRODUITS
   ========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4rem;
}

.product-card {
    background: white;
    border: 1px solid var(--neutral-100);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.product-image {
    height: 230px;
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(255,255,255,0.4), transparent);
}

.product-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-badge {
    display: inline-block;
    background: var(--green-50);
    color: #02735e;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: 75px;
    text-align: center;
}

.product-badges{
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-info h3 {
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.product-info p {
    color: var(--neutral-600);
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.product-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    margin-top: auto;
}

.btn-small {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.btn-small.primary {
    background: var(--neutral-900);
    color: white;
    border: none;
}

.btn-small.primary:hover {
    background: #02735e;
}

.btn-small.outline {
    background: transparent;
    color: var(--neutral-900);
    border: 1.5px solid var(--neutral-200);
}

.btn-small.outline:hover {
    border-color: #02735e;
    color: white;
    background: #02735e;
}

.buttons-pellets-bottom{
    margin-top: auto;
}

/* ==========================================
   8. À PROPOS
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image {
    height: 500px;
    background: linear-gradient(135deg, var(--green-500), #02735e);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background-image: url('/images/PelletsLouis.jpg'); 
    background-size: cover; 
    background-position: center;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

.histoire-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 25px;
}

.about-text h2 {
    color: var(--neutral-900);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-text p {
    color: var(--neutral-600);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-size: 0.8rem;
    text-align: justify;
}

/* Valeurs */
.values-container {
    background: var(--neutral-50);
    padding: 4rem;
    border-radius: 24px;
    margin-bottom: 4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

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

.value-icon {
    width: 60px;
    height: 60px;
    background: #02735e;
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-item h3 {
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.value-item p {
    color: var(--neutral-600);
    font-size: 0.9375rem;
}

/* Équipe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

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

.team-photo img{
    width:50%; 
    height:100%; 
    object-fit: contain;
}

.team-member p:first-of-type {
    font-weight: 600;
    color: var(--neutral-900);
    font-size: 1.0625rem;
}

.team-member p:last-of-type {
    color: var(--neutral-600);
    font-size: 0.9375rem;
}

/* ==========================================
   9. CONTACT
   ========================================== */
.contact-info-card {
    background: var(--neutral-50);
    padding: 2.5rem;
    border-radius: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
    text-align: center;
}

.contact-info-card h1 {
    color: var(--neutral-900);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.container-info-contact{
    display: flex;
    flex-direction: row;
    text-align: center;
    width: 100%;
    justify-content: space-around;
    margin-top: 50px;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-detail {
    margin-bottom: 1.75rem;
    flex: 1;
    min-width: 200px;
}

.contact-detail-label {
    color: var(--neutral-600);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.contact-detail-value {
    color: var(--neutral-900);
    font-size: 1rem;
}

.map-container {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 30%;
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================
   10. PELLETS
   ========================================== */
.pellets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.3rem;
    max-width: 900px; 
    margin: 0 auto; 
}

.pellets-list {
    color: var(--neutral-600);
    line-height: 1.8;
    margin-top: 1rem;
}

.product-card-p1{
    margin: 1rem 0;
}

/* Tableau caractéristiques techniques */
.caract-pellets-div-tab{
    max-width: 800px; 
    margin: 0 auto; 
    background: white; 
    border-radius: 20px; 
    overflow: hidden; 
    border: 1px solid var(--neutral-200);
}

.caract-pellets-table{
    width: 100%; 
    border-collapse: collapse;
}

.caract-pellets-tr{
    border-bottom: 1px solid var(--neutral-100); 
    background: var(--neutral-50);
}

.caract-pellets-tr1{
    border-bottom: 1px solid var(--neutral-100);
}

.caract-pellets-td1{
    padding: 1.5rem; 
    font-weight: 600; 
    color: var(--neutral-900); 
    width: 50%;
}

.caract-pellets-td{
    padding: 1.5rem; 
    color: var(--neutral-600);
}

/* Processus de fabrication */
.process-fab-container{
    max-width: 800px; 
    margin: 4rem auto 0;
}

.process-fab-container2{
    background: var(--green-50); 
    padding: 2.5rem; 
    border-radius: 20px; 
    border-left: 4px solid #02735e;
}

.process-fab-h3{
    color: var(--neutral-900); 
    margin-bottom: 1rem; 
    font-size: 1.5rem;
}

.process-fab-ol{
    color: var(--neutral-600); 
    line-height: 2;
    margin-left: 1.5rem;
}

/* ==========================================
   11. CTA BOX
   ========================================== */
.cta-box {
    background: linear-gradient(135deg, var(--neutral-800) 0%, #02735e 100%);
    color: white;
    text-align: center;
    padding: 6rem 3rem;
    border-radius: 32px;
    margin: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-box .btn-primary {
    background: white;
    color: var(--neutral-900);
}

.cta-box .btn-primary:hover {
    background: #02735e;
    color: white;
}

/* ==========================================
   12. STATISTIQUES
   ========================================== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--neutral-100);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #02735e;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--neutral-600);
    font-size: 0.9375rem;
}

/* ==========================================
   13. FOOTER
   ========================================== */
.footer {
    background: var(--neutral-900);
    color: white;
    padding: 4rem 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: var(--neutral-400);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

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

.footer-section a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #02735e;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--neutral-400);
    font-size: 0.875rem;
}

/* ==========================================
   14. UTILITAIRES
   ========================================== */
.text-center {
    text-align: center;
}

.bg-neutral {
    background: var(--neutral-50);
    border-radius: 24px;
    padding: 4rem;
}

/* ==========================================
   15. RESPONSIVE (MOBILE)
   ========================================== */
@media (max-width: 968px) {
    /* Navigation mobile */
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        display: none;
        gap: 0;
        border-bottom: 1px solid var(--neutral-100);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        text-align: center;
    }

    .nav-menu a {
        padding: 1.25rem 0;
        border-bottom: 1px solid var(--neutral-100);
        display: block;
        text-align: center;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu-contact {
        display: block;
        border-bottom: none;
    }

    .nav-menu-contact a {
        border-bottom: none;
    }

    /* Style uniforme pour le lien Contact dans le menu burger */
    .nav-cta-mobile {
        background: transparent !important;
        color: var(--neutral-600) !important;
        padding: 1.25rem 0 !important;
        border-radius: 0 !important;
        font-weight: 500;
        font-size: 0.9375rem;
    }

    .nav-cta-mobile:hover {
        color: var(--neutral-900) !important;
    }

    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero mobile */
    .hero {
        padding: 5rem 1.5rem 4rem;
    }

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

    .hero p {
        font-size: 1.125rem;
    }

    .hero-h1-pellets {
        font-size: 2.5rem;
    }

    /* Sections mobile */
    .section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Grilles mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* Pellets mobile */
    .pellets-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    /* Contact mobile */
    .container-info-contact {
        flex-direction: column;
        gap: 2rem;
        margin-top: 30px;
    }

    .contact-detail {
        min-width: 100%;
    }

    .contact-info-card {
        position: static;
        padding: 1.5rem;
    }

    .contact-info-card h1 {
        font-size: 1.25rem;
    }

    .map-container {
        padding-bottom: 60%;
    }

    /* Tableau caractéristiques mobile */
    .caract-pellets-td1,
    .caract-pellets-td {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .caract-pellets-td1 {
        width: 40%;
    }

    /* CTA Box mobile */
    .cta-box {
        margin: 2rem 1.5rem;
        padding: 4rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 2rem;
    }

    /* Values mobile */
    .values-container {
        padding: 2rem 1.5rem;
    }

    .bg-neutral {
        padding: 2rem 1.5rem;
    }

    /* Processus fabrication mobile */
    .process-fab-container2 {
        padding: 1.5rem;
    }

    .process-fab-h3 {
        font-size: 1.25rem;
    }

    .process-fab-ol {
        font-size: 0.875rem;
        line-height: 1.8;
    }
}