/* Mise en page côte à côte fiche et formulaire contact */
.contact-content {
        display: flex;
        flex-wrap: nowrap;
        gap: 40px;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        margin: 0 auto;
}
/* Force side-by-side on desktop: each block takes ~45% */
.contact-info,
.contact-form {
        flex: 1 1 45%;
        min-width: 280px;
        max-width: 48%;
}
.contact-info {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 16px rgba(0,0,0,0.08);
        padding: 32px 24px;
        /* max-width: 340px; */
        min-width: 260px;
        margin: 0;
        font-size: 1.1em;
        color: var(--primary-dark);
        display: flex;
        flex-direction: column;
        gap: 12px;
}
@media (max-width: 900px) {
    .contact-content {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .contact-info, .contact-form {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero {
        height: 320px;
        min-height: 320px;
        padding: 8px 0;
    }

    .hero-content h2 {
        font-size: 2.4em;
    }

    .hero-content p {
        font-size: 2.6em;
    }
}  
/* Formulaire de contact moderne */
.contact-form {
    background: linear-gradient(180deg, #fff 0%, #fdf8f1 100%);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    padding: 32px 24px;
    max-width: 420px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid rgba(92,64,55,0.06);
}

/* Visual enhancements for contact info items */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05em;
    color: var(--primary-dark);
}
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg,#f5e6d3,#fff);
    color: var(--primary-brown);
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.contact-text a {
    color: var(--primary-dark);
    font-weight: 700;
}

.contact-form label {
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 4px;
    text-align: left;
}
.contact-form input,
.contact-form textarea {
    border: 1px solid #d4af37;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 1em;
    font-family: inherit;
    background: #f9f7f4;
    color: var(--primary-dark);
    transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border: 1.5px solid #b48a2c;
    outline: none;
}
.contact-form button {
    background: var(--accent-gold);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212,175,55,0.08);
    transition: background 0.2s;
}
.contact-form button:hover {
    background: #b48a2c;
}
/* Description supplémentaire filet de bûches */
.desc-supp {
    font-size: 1.1em;
    color: #5d4037;
    margin-bottom: 8px;
    font-weight: 500;
}
/* Mise en valeur des mots importants dans les descriptions produits */
.mot-important {
    font-size: 1.35em;
    font-weight: bold;
    color: #8d5c2c;
}
/* Sous-titre de la bannière héro */
.hero-content p {
    font-size: 3.6em;
    font-weight: 900;
}
.produit-filet-buches {
    /* Fond plus dense et légèrement assombri pour meilleur contraste */
    background: linear-gradient(135deg, #efe4d8 0%, #fff4e8 100%), image-set(
        url('filet-buches-1600.avif') type('image/avif'),
        url('filet-buches-1600.webp') type('image/webp'),
        url('filet-buches-1600.jpg') type('image/jpeg'),
        url('filet-buches-800.avif') type('image/avif'),
        url('filet-buches-800.webp') type('image/webp'),
        url('filet-buches-800.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
} 
/* Fonds personnalisés pour chaque carte produit */
.produit-bois {
    /* Tons bois plus chauds et légèrement assombris */
    background: linear-gradient(135deg, #e4caa2 0%, #fff2d9 100%);
} 
.produit-allumage {
    background: linear-gradient(135deg, #ffc88a 0%, #fff4db 100%);
} 
/* Nouveau style pour la carte CAISSE BOIS FIN - harmonisation visuelle */
.produit-caisse-fin {
    background: linear-gradient(135deg, #e4caa2 0%, #fff2d9 100%);
    /* removed left border for visual consistency across product cards */
    border-left: none;
}  
.produit-caisse-fin .product-illustration img {
    border: 1px solid rgba(92,64,55,0.06);
    border-radius: 12px;
}
/* Centrage de la liste des avantages dans la présentation */
.center-list {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 480px;
    width: 100%;
    padding-left: 0;
}

.center-list li {
    display: block;
    margin: 0 0 8px 0;
    border-bottom: none;
}
.center-list li:last-child {
    margin-bottom: 0;
}
}
}
/* ---- MOVED FROM index.html: mobile and product-card overrides ---- */

/* Inline override: mobile banner framing + centered text + tablet rules */
@media (max-width: 900px) {
    /* Mobile: raise banner text toward the top of the available area */
    .hero {
        background-position: center 20% !important; /* remonter fortement le fond d'écran */
        background-size: cover !important;
        min-height: 160px !important;
        height: auto !important;
        padding: 6px 0 12px 0 !important; /* more space at bottom to leave room */
        display: flex !important;
        align-items: flex-start !important; /* place content at the top */
        justify-content: center !important;
    }
    .hero-content {
        position: relative !important;
        /* raise the content slightly without using negative margins */
        transform: translateY(-18px) !important;
        max-width: 92% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        text-align: center !important;
        display: block !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    .hero-phone { font-size: 2.4em !important; margin-top: 0 !important; }
    /* Title kept visually fixed and above background */
    .hero-content h2 { font-size: 2.4em !important; line-height: 1.02 !important; margin-bottom: 4px !important; position: relative !important; z-index: 2 !important; }
    /* Push the descriptive line slightly upward to sit closer to the title */  
    .hero-content p { font-size: 1.2em !important; margin-top: 0px !important; margin-bottom: 8px !important; transform: translateY(-6px) !important; }
    /* Small breathing room before the phone number for balance */
    .hero-content .hero-phone { margin-top: 12px !important; }
    .hero-phone { font-size: 3.8em !important; margin-top: 8px !important; display: block !important; width: 100% !important; text-align: center !important; line-height: 1 !important; padding: 4px 0 !important; }
    /* Make the digits extra-large and prominent */
    .hero-phone .phone-digits { font-size: 1.6em !important; font-weight: 900 !important; color: var(--accent-gold) !important; letter-spacing: 0.06em !important; text-shadow: 0 0 12px rgba(212,175,55,0.8) !important; display: inline-block !important; }
    /* Center the header title properly on mobile */
    .logo h1 { transform: none !important; align-items: center !important; text-align: center !important; margin: 0 auto !important; }

    /* Harmonize section headings */
    .presentation h2,
    .products h2,
    .services h2,
    .contact h2 { font-size: 1.9em !important; }

    /* Pull up the 'Qui sommes-nous' section to reduce empty space on mobile */
    .presentation { margin-top: -112px !important; padding-top: 88px !important; }

    /* 'Qui sommes-nous' and intro strong reduced */
    .presentation-content p:first-child strong { font-size: 0.9em !important; }
    .presentation-list li { font-size: 1.15em !important; }

    /* Compact header on mobile: reduce title and make menu fit, display submenu centered under title */
    .logo { width: 100% !important; justify-content: center !important; gap: 0px !important; flex-wrap: wrap !important; }
    .logo-img { height: 72px !important; width: 72px !important; margin-right: -2px !important; }
    .logo .site-title-main { font-size: 0.95em !important; }
    .logo .site-title-sub  { font-size: 0.8em !important; }
    /* Shift title slightly more left to sit closer to the logo */
    .logo h1 { transform: translateX(-24px) !important; text-align: left !important; }
    .header-content { gap: 12px !important; flex-wrap: wrap !important; align-items: center !important; }

    /* Show the nav directly under the title, centered and horizontal (compact spacing) */
    .nav { width: 100% !important; order: 3 !important; display: flex !important; justify-content: center !important; }
    .nav ul { display: flex !important; flex-direction: row !important; gap: 8px !important; justify-content: center !important; padding: 0 !important; margin: 2px 0 0 !important; list-style: none !important; flex-wrap: nowrap !important; }
    .nav a { font-size: 0.95em !important; padding: 4px 6px !important; font-weight: 700 !important; text-align: center !important; color: var(--cream) !important; white-space: nowrap !important; }
    .nav a:hover { border-bottom-color: transparent !important; transform: none !important; }

    /* Remove quick submenu (hamburger) on mobile */
    .nav-toggle { display: none !important; }

    /* Very small screens: allow wrapping but keep compact spacing */
    @media (max-width: 480px) {
        .nav ul { gap: 6px !important; }
        .nav a { font-size: 0.9em !important; padding: 6px 6px !important; }
        .nav ul { flex-wrap: wrap !important; justify-content: center !important; }
    }
}

/* Tablet rules: intermediate sizes for devices ≤768px */
@media (max-width: 768px) {
    .hero {
        min-height: 480px !important; /* slightly taller on tablets */
        padding: 30px 12px !important;
        background-position: center var(--hero-y-mobile, var(--hero-y)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .hero-content h2 { font-size: 2.0em !important; }
    .hero-content p { font-size: 1.2em !important; }
    .hero-phone { font-size: 1.6em !important; }
    .presentation h2,
    .products h2,
    .services h2,
    .contact h2 { font-size: 1.8em !important; }
    .presentation-content p:first-child strong { font-size: 1.12em !important; }
    .presentation-list li { font-size: 1.18em !important; }
} 

@media (max-width: 480px) {
    .hero {
        background-position: center 18% !important; /* remonter fortement sur très petit écran */
        background-size: cover !important;
        min-height: 140px !important; /* reduced on very small screens */
        padding: 6px 0 12px 0 !important; /* top small, bottom more to keep room */
        display: flex !important;
        align-items: flex-start !important; /* place content at the top */
        justify-content: center !important;
    }
    .hero-content {
        transform: translateY(-26px) !important; /* raise more on very small screens */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    .hero-phone { font-size: 2.2em !important; margin-top: 0 !important; }
    /* Keep the title visually above the background and push the description downward */
    .hero-content h2 { font-size: 1.8em !important; margin-bottom: 6px !important; position: relative !important; z-index: 2 !important; }
    .hero-content p { font-size: 1.0em !important; margin-top: 14px !important; margin-bottom: 12px !important; }
    .hero-phone { font-size: 3.6em !important; margin-top: 8px !important; display: block !important; width: 100% !important; text-align: center !important; line-height: 1 !important; padding: 4px 0 !important; }
    .presentation h2,
    .products h2,
    .services h2,
    .contact h2 { font-size: 1.6em !important; }

    /* Mobile: tighten the gap above presentation on very small screens */
    .presentation { margin-top: -96px !important; padding-top: 64px !important; }
    .presentation-content p:first-child strong { font-size: 0.75em !important; }
} 

/* Product-card spacing overrides (moved from index.html) */
@media (max-width: 900px) {
    .product-card { display: block !important; min-height: auto !important; padding-top: 4px !important; padding-bottom: 4px !important; }
    .product-card .product-illustration { margin: 0 0 6px 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; }
    .product-card .product-illustration img { display: block !important; width: 100% !important; height: auto !important; max-height: none !important; margin: 0 !important; padding: 0 !important; object-fit: cover !important; }
    .product-card .product-content { padding-top: 0 !important; margin-top: 0 !important; }
    .product-card .product-content h3 { margin: 6px 0 6px 0 !important; padding: 0 !important; }
    .product-card .product-content p { margin-top: 0 !important; }
    /* remove potential pseudo-element spacing */
    .product-card::before, .product-card::after { display: none !important; }
}
@media (max-width: 480px) {
    .product-card { padding-top: 2px !important; padding-bottom: 2px !important; }
    .product-card .product-illustration { margin: 0 0 4px 0 !important; }
    /* allow images to be taller to reduce empty space under them */
    .product-card .product-illustration img { max-height: none !important; width: 100% !important; height: auto !important; }
    .product-card .product-content { padding-top: 0 !important; }
    .product-card .product-content h3 { margin: 4px 0 4px 0 !important; font-size: 1.6em !important; }
}

/* End moved block */

/* Icône photo produit dans la carte produit */
.product-photo-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border: 2px solid var(--primary-brown);
    background: #fff;
}
/* Variables de couleurs - Thème Bois */
:root {
    --primary-dark: #2c1810;
    --primary-brown: #5d4037;
    --accent-gold: #d4af37;
    --light-wood: #a1887f;
    --cream: #f5e6d3;
    --text-dark: #1a0f0a;
    /* Vertical position of the hero background (easy tuning) */
    --hero-y: 51%; /* ajustement demandé */
    --hero-y-mobile: 51%; /* réglage mobile */
    /* Background scaling: reset to default (no zoom) */
    --hero-scale: 100%;
    --hero-scale-mobile: 100%;
} 

/* Reset et styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #f9f7f4;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bannière héro — background géré ici pour faciliter media queries et éviter le scaling inline */
.hero {
    /* Prefer AVIF / WebP 2400 when available, fallback to 1600/800 */
    background-image: image-set(
        url('hero-bg-2400.avif') type('image/avif') 3x,
        url('hero-bg-2400.webp') type('image/webp') 3x,
        url('hero-bg-2400.jpg') type('image/jpeg') 3x,
        url('hero-bg-1600.avif') type('image/avif') 2x,
        url('hero-bg-1600.webp') type('image/webp') 2x,
        url('hero-bg-1600.jpg') type('image/jpeg') 2x,
        url('hero-bg-800.webp') type('image/webp') 1x,
        url('hero-bg-800.jpg') type('image/jpeg') 1x
    );
    background-size: var(--hero-scale, 100%);
    background-position: center var(--hero-y, 50%);
    background-repeat: no-repeat;
    background-color: #24120e;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* En-tête */
.header {
    background: linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 50%, #3a3a3a 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.14);
    border-bottom: 2px solid var(--accent-gold);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0px;
    justify-content: flex-start;
    text-align: left;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.logo-img {
    height: 140px;
    width: 140px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    margin-right: 0px;
    margin-left: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .logo-img { height: 80px; width: 80px; margin-right: 2px; }
    .logo .site-title-main, .logo .site-title-sub { font-size: 0.95em; }
}  

/* Mobile: réduire le titre pour laisser de la place au menu et éviter le débordement */
@media (max-width: 900px) {
    .logo-img { height: 70px; width: 70px; margin-right: 6px; }
    .logo .site-title-main { font-size: 1.0em; }
    .logo .site-title-sub { font-size: 0.85em; }
    .header-content { gap: 12px; flex-wrap: wrap; align-items: center; }
    .nav a { font-size: 1.0em; padding: 6px 8px; }
}

/* Très petits écrans: encore plus compact */
@media (max-width: 480px) {
    .logo-img { height: 64px; width: 64px; margin-right: 4px; }
    .logo .site-title-main { font-size: 0.95em; }
    .logo .site-title-sub { font-size: 0.8em; }
    .nav a { font-size: 0.95em; padding: 6px 8px; }
}  

.logo h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: var(--accent-gold);
    position: relative;
    z-index: 2;
    transform: translateX(-10px);
}
.logo .site-title-main,
.logo .site-title-sub {
    font-size: 1.2em;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.4);
    color: var(--accent-gold);
    margin: 0;
}
.logo .site-title-sub {
    font-style: normal;
    margin-top: -0.12em;
}
.logo .tagline {
    display: none;
}
@media (max-width:480px) {
    .logo h1 { transform: translateX(-6px); }
}   

/* Force horizontal nav on larger screens */
.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
    font-size: 1.2em;
}

.nav a:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.08);
    color: var(--cream);
    padding: 8px 12px;
    font-size: 1.4em;
    border-radius: 8px;
    cursor: pointer;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: var(--accent-gold);
    color: #111;
    z-index: 2000;
    border-radius: 6px;
}

/* Small screens: show horizontal nav above hero and hide hamburger */
@media (max-width: 800px) {
    /* Display navigation inline (single row) and center it */
    .nav {
        width: 100%;
        order: 3;
        display: flex;
        justify-content: center;
    }
    .nav ul {
        display: flex;
        flex-direction: row;
        gap: 12px;
        justify-content: center;
        padding: 0;
        margin: 2px 0 0;
        list-style: none;
        flex-wrap: nowrap;
    }
    .nav a {
        font-size: 0.95em;
        padding: 6px 8px;
        font-weight: 700;
        color: var(--cream);
        white-space: nowrap;
    }
    /* Remove hamburger toggle on small screens since menu is visible */
    .nav-toggle {
        display: none;
    }
} 

/* Bannière Héro */
.hero {
    background: linear-gradient(rgba(44, 24, 16, 0.32), rgba(44,24,16,0.32)), image-set(url('hero-bg-1600.webp') type('image/webp'), url('hero-bg-800.jpg') type('image/jpeg')), url('hero-bg.jpg');
    background-repeat: no-repeat;
    /* Slight zoom to show more detail and reduce visible pixelation */
    background-size: var(--hero-scale, 110%);
    /* Use CSS variable for vertical position to enable quick tuning */
    background-position: center var(--hero-y, 50%);
    background-attachment: scroll;
    min-height: 520px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 0;
}

@media (min-width: 1200px) {
    .hero { background: linear-gradient(rgba(44,24,16,0.32), rgba(44,24,16,0.32)), image-set(url('hero-bg-1600.webp') type('image/webp'), url('hero-bg-800.jpg') type('image/jpeg')), url('hero-bg.jpg'); background-attachment: fixed; }
}

@media (max-width: 900px) {
    .hero { min-height: 320px; height: 320px; padding: 8px 0; background-position: center var(--hero-y, 50%) !important; background-size: var(--hero-scale-mobile, 110%) !important; background-attachment: scroll; }
}  
@media (min-width: 1200px) {
    .hero {
        min-height: 520px;
        height: auto;
        padding: 0;
    }
    .contact {
        background: linear-gradient(rgba(10,8,6,0.45), rgba(10,8,6,0.45)), image-set(
            url('contact-fond-1600.avif') type('image/avif'),
            url('contact-fond-1600.webp') type('image/webp'),
            url('contact-fond-1600.jpg') type('image/jpeg'),
            url('contact-fond-800.avif') type('image/avif'),
            url('contact-fond-800.webp') type('image/webp'),
            url('contact-fond-800.jpg') type('image/jpeg')
        );
        background-size: cover;
        background-position: center;
    }
} 

.hero-content h2 {
    font-size: 4.2em;
    margin-bottom: 18px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6), 0 0 18px rgba(212, 175, 55, 0.28);
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #fff;
}

.hero-content p {
    font-size: 3.6em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

.hero-phone {
    font-size: 4.8em !important;
    font-weight: bold !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    color: #fff !important;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.45);
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    opacity: 1 !important;
    display: inline-block;
}

/* Responsive: réduire légèrement la taille du numéro sur petits écrans */
@media (max-width: 900px) {
    .hero-phone {
        font-size: 3.2em !important;
    }
    /* Augmenter la taille des chiffres dans la bannière d'accueil uniquement */
    .hero-phone .phone-digits {
        font-size: 1.6em !important;
        font-weight: 900 !important;
        color: var(--accent-gold) !important;
        letter-spacing: 0.04em !important;
        text-shadow: 0 0 12px rgba(212, 175, 55, 0.8) !important;
        display: inline-block !important;
    }
}

/* Icônes téléphone autour du numéro */
.hero-phone .phone-icon { display: inline-flex; align-items: center; justify-content: center; transition: transform 0.12s ease; }
.hero-phone .phone-icon svg { height: 0.85em; width: auto; display: inline-block; vertical-align: middle; margin: 0 10px; fill: var(--accent-gold); }
.hero-phone:hover .phone-icon { transform: translateY(-3px); }

.hero-phone a { color: var(--accent-gold); text-decoration: none; transition: all 0.3s ease; text-shadow: 0 0 8px rgba(212, 175, 55, 0.6), 1px 1px 4px rgba(0, 0, 0, 0.45); }

.hero-phone a:hover { color: var(--accent-gold); transform: scale(1.08); text-shadow: 0 0 12px rgba(212, 175, 55, 0.8), 1px 1px 6px rgba(0, 0, 0, 0.55); }

.hero-phone a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 
        0 0 8px rgba(212, 175, 55, 0.6),
        1px 1px 4px rgba(0, 0, 0, 0.45);
}

.hero-phone a:hover {
    color: var(--accent-gold);
    transform: scale(1.08);
    text-shadow: 
        0 0 12px rgba(212, 175, 55, 0.8),
        1px 1px 6px rgba(0, 0, 0, 0.55);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    background: var(--accent-gold);
    color: var(--text-dark);
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: #e5c158;
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.cta-btn.secondary:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
}

/* Section Présentation */
.presentation {
    /* Fond harmonisé et éclairci */
    background: linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 50%, #3a3a3a 100%);
    padding: 60px 20px;
    text-align: center;
    border-top: 2px solid var(--accent-gold);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: inset 0 20px 40px rgba(0,0,0,0.18);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

/* Texture bois discrète en overlay (pseudo-élément) */
.presentation::before {
    content: "";
    position: absolute;
    inset: 0;
    /* SVG généré en ligne : bruit/grain léger pour effet bois discret */
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cfilter id='grain'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='%23ffffff' filter='url(%23grain)' opacity='0.08'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.06; /* plus discret */
    mix-blend-mode: multiply;
    pointer-events: none;
}

.presentation h2 {
    color: #fff8ec; /* clair et chaleureux pour le contraste */
    font-size: 2.2em;
    margin-bottom: 30px;
}

.presentation-content {
    max-width: 800px;
    margin: 0 auto;
}

.presentation-content p {
    font-size: 1.35em;
    color: #fff6ec; /* texte clair sur fond sombre */
    line-height: 1.9;
    margin-bottom: 20px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

.presentation-content p:first-child {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--accent-gold);
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    margin-bottom: 25px;
}

/* Mettre en avant les mots en gras : conserver le gras mais retirer les rectangles sauf pour le titre */
.presentation-content strong {
    font-size: 1.5em;
    color: var(--accent-gold);
    font-weight: 900;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: inline;
    letter-spacing: 0.2px;
    transition: none;
}

/* Style spécifique pour le titre "Qui sommes-nous ?" — couleur dorée sans fond */
.presentation-content p:first-child strong {
    color: var(--accent-gold);
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline;
    box-shadow: none;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.presentation-list {
    list-style: none;
    margin-top: 25px;
    text-align: left;
    display: inline-block;
}

.presentation-list li {
    font-size: 1.5em;
    color: rgba(255,255,255,0.92);
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-weight: bold;
}

.presentation-list li:last-child {
    border-bottom: none;
}

/* Produits */
.products {
    /* Fond remplacé : utiliser l'image 'fond-carte2' */
    background: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)), url('fond-carte2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    padding: 60px 20px;
    border-top: 2px solid var(--accent-gold);
}   

.products h2 {
    text-align: center;
    color: #fff; /* harmonisé avec le titre de la bannière */
    font-size: 2.8em; /* légèrement plus grand */
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

.product-card {
    background: linear-gradient(135deg, rgba(241, 230, 211, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-left: none; /* removed brown left border as requested */
    padding: 40px 30px 40px 30px;
    border-radius: 14px;
    min-height: 260px;
    display: flex;
    flex-direction: row; /* illustration left, content right */
    align-items: flex-start;
    gap: 24px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    position: relative;
    overflow: hidden;
} 

.product-illustration {
    flex: 0 0 340px; /* allocate more space for the product image */
    max-width: 380px;
}
.product-illustration img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.16);
    border: 1px solid rgba(92,64,55,0.06);
    display: block;
}

/* Larger displays: make the image taller and wider */
@media (min-width: 1200px) {
    .product-illustration {
        flex: 0 0 380px;
        max-width: 420px;
    }
    .product-illustration img {
        height: 320px;
    }
}
.product-content { flex: 1 1 auto; }
.product-content h3 { margin: 0 0 6px 0; }

@media (max-width: 900px) {
    .product-card { flex-direction: column; min-height: auto; text-align: center; }
    .product-illustration { width: 100%; max-width: 600px; margin: 0 auto 16px; }
    .product-illustration img { width: 100%; height: auto; max-width: 520px; }
    .product-card { padding: 20px; }
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


/* Overlay : éclaircir le voile sur les cartes produit pour laisser transparaître le gris */
.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.03); /* léger voile clair pour éclaircir les fonds gris */
    pointer-events: none;
    z-index: 0;
    border-radius: 14px;
    transition: background 0.18s ease;
}
.product-card:hover::before {
    background: rgba(0,0,0,0.06); /* léger assombrissement au hover pour contraste */
} 

/* Règles spécifiques pour forcer des fonds plus visibles et sombres sur chaque carte produit */
.product-card.produit-bois {
    background: linear-gradient(135deg, #c79a67 0%, #f3e0bf 100%) !important;
} 
.product-card.produit-filet-buches {
    /* Harmonisé et assombri pour meilleure lisibilité */
    background: linear-gradient(135deg, #c79a67 0%, #f3e0bf 100%) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
} 
..product-card.produit-allumage {
    /* Harmonisation: même palette que les autres cartes produit */
    background: linear-gradient(135deg, #c79a67 0%, #f3e0bf 100%) !important;
} 
.product-card.produit-caisse-fin {
    background: linear-gradient(135deg, #c79a67 0%, #f3e0bf 100%) !important;
}

/* Uniformisation des fonds pour toutes les cartes produit */
.product-card.produit-bois,
.product-card.produit-filet-buches,
.product-card.produit-allumage,
.product-card.produit-caisse-fin {
    /* Fond gris unifié pour s'aligner sur la couleur grise du site (header) */
    background: linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 100%) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Taille spécifique pour la mention de disponibilité dans la CAISSE DE BOIS FIN */
.product-card.produit-caisse-fin .price {
    font-size: 1.9em; /* augmenté pour meilleur impact */
}

/* Garantir que le contenu reste au-dessus de l'overlay */
.product-card > * {
    position: relative;
    z-index: 1;
}



.product-card h3 {
    font-family: inherit;
    color: #fff; /* blanc pour contraste sur fonds assombris */
    font-size: 2.4em; /* inchangé */
    font-weight: 900;
    letter-spacing: 0.6px;
    margin-bottom: 14px; /* ajusté */
    text-shadow: 0 2px 8px rgba(0,0,0,0.45); /* ombre pour lisibilité */
    display: inline-block; /* pour que la ligne ne s'étende que sous le titre */
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(212,175,55,0.95); /* liseré doré plus subtil */
}  

.product-card p,
.product-card .desc-supp {
    color: var(--cream); /* crème claire pour contraste doux sur fonds chauds */
    margin-bottom: 15px;
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.45;
    text-shadow: 0 1px 0 rgba(0,0,0,0.12);
} 

.product-card .price {
    font-size: 1.7em;
    font-weight: 800;
    color: var(--accent-gold);
    text-shadow: 0 2px 6px rgba(0,0,0,0.45); /* ombre plus marquée pour contraste */
}  

/* Assurer que les spans .price à l'intérieur des descriptions ont la même échelle et style */
.product-card .desc-supp .price,
.product-card .desc-supp span.price {
    font-size: 1.6em;          /* même taille que .product-card .price */
    font-weight: 800;         /* même graisse */
    color: var(--accent-gold);/* même couleur */
    display: inline-block;    /* évite héritage de taille de ligne */
    vertical-align: middle;
    margin-left: 6px;         /* léger espacement si nécessaire */
}

/* Styles spécifiques pour CAISSE BOIS FIN (harmonisés) */
.product-card.produit-caisse-fin {
    /* inherit background from .produit-bois for exact match; left border removed for consistency */
    border-left: none;
} 
.product-card.produit-caisse-fin h3 {
    font-family: inherit;
    color: #fff; /* rendu identique aux autres titres */
    font-size: 2.4em;
    font-weight: 900;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(212,175,55,0.95);
}
.product-card.produit-caisse-fin .desc-supp,
.product-card.produit-caisse-fin .price {
    color: var(--cream); /* harmonisé avec les autres cartes */
    font-weight: 700;
    line-height: 1.45;
    text-shadow: 0 1px 0 rgba(0,0,0,0.12);
}
.product-card.produit-caisse-fin .price {
    color: var(--accent-gold);
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.product-card.produit-caisse-fin .product-illustration img {
    border: 1px solid rgba(92,64,55,0.06);
    border-radius: 12px;
}
.product-card.produit-caisse-fin:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
} 

/* Services */
.services {
    /* Fond identique à l'en-tête pour harmonisation */
    background: linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 50%, #3a3a3a 100%);
    padding: 60px 20px;
    color: white;
    border-top: 2px solid var(--accent-gold);
}

.services h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--accent-gold);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.service-item h3 {
    color: var(--accent-gold);
    margin-bottom: 14px;
    font-size: 1.6em; /* augmenté pour meilleure lisibilité */
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(0,0,0,0.12);
}

.service-item p {
    color: var(--cream);
    font-size: 1.2em; /* légèrement plus grand pour une meilleure lisibilité */
    line-height: 1.6;
    font-weight: 600;
}

/* Ajustements responsive pour petits écrans */
@media (max-width: 900px) {
    .service-item h3 { font-size: 1.4em; }
    .service-item p { font-size: 1.05em; }
}

/* Contact (avec image de fond + overlay pour lisibilité) */
.contact {
    background: linear-gradient(rgba(10,8,6,0.12), rgba(10,8,6,0.12)), image-set(
        url('contact-new-800.avif') type('image/avif'),
        url('contact-new-800.webp') type('image/webp'),
        url('contact-new-800.jpg') type('image/jpeg'),
        url('contact-new.jpg') type('image/jpeg')
    ) , url('contact-new.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--accent-gold);
} 

/* overlay (double couche pour contraste) */
.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35));
    z-index: 0;
}

/* Mettre le contenu au-dessus de l'overlay */
.contact > .container,
.contact-section { position: relative; z-index: 1; }

.contact h2 {
    text-align: center;
    color: #fff; /* titre blanc pour contraste */
    font-size: 2.5em;
    margin-bottom: 50px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    background: var(--cream);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-brown);
}

.contact-info h3 {
    color: var(--primary-dark);
    font-size: 1.5em;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-info a {
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-gold);
}

/* Pied de page */
.footer {
    /* Fond harmonisé et légèrement éclairci */
    background: linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 50%, #3a3a3a 100%);
    color: var(--cream);
    padding: 30px 20px;
    text-align: center;
    border-top: 2px solid var(--accent-gold);
}

.footer p {
    margin-bottom: 5px;
}

.footer p:last-child {
    font-style: italic;
    opacity: 0.9;
}

/* Lien dans le pied de page : même couleur que le texte, hover ton or */
.footer a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
}
.footer a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-content {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .contact-info, .contact-form {
        max-width: 100%;
        margin: 0 auto 0 auto;
    }
}
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 2.6em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Force side-by-side on desktop (>=900px) */
@media (min-width: 900px) {
    .contact-section {
        display: flex;
        gap: 36px;
        align-items: stretch;
        align-items: flex-start;
    }
    /* Agrandir la zone d'information sur desktop */
    .contact-left {
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 340px;
    }
    /* Réduire légèrement la largeur du formulaire pour compenser */
    .contact-right {
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 360px;
    }
}

/* Contact section visual */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto; /* center the block on page */
    padding: 8px 12px;
}
.contact-left {
    background: linear-gradient(180deg, #fff8ef 0%, #fbf1e2 100%);
    padding: 40px 32px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(92,64,55,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertically center content */
    height: 100%;
}
.contact-left h3 {
    font-size: 2.6em;
    margin-bottom: 14px;
    color: var(--primary-dark);
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: inherit;
}
/* Make icon and text the same visual size and font */
.contact-list li {
    display:flex;
    align-items:center;
    gap:16px;
    font-size:1.5em;
    color:var(--primary-dark);
    font-weight:700;
} 
.contact-icon {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:64px;
    height:64px;
    border-radius:12px;
    background: linear-gradient(135deg,#f3e0c8,#fff);
    color:var(--primary-brown);
    font-size:1.35em; /* match text size */
    box-shadow:0 4px 12px rgba(0,0,0,0.10);
    margin-right:16px;
}
.contact-list .contact-text,
.contact-list .contact-text a {
    color: var(--primary-dark);
    font-weight:700;
    text-decoration:none;
    font-size:1.35em; /* match icon */
}
/* Mobile adjustments */
@media (max-width: 900px) {
    .contact-left h3 { font-size: 1.9em; }
    .contact-list li { font-size: 1.2em; }
    .contact-icon { width:48px; height:48px; font-size:1.15em; }
    .info-value { font-size:1.25em; }
}
.contact-list .contact-text a { color: var(--primary-dark); font-weight:800; text-decoration:none; font-size:1.2em; }
.contact-icon { display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:10px; background: linear-gradient(135deg,#f3e0c8,#fff); color:var(--primary-brown); font-size:1.4em; box-shadow:0 4px 12px rgba(0,0,0,0.10); margin-right:14px; }
.contact-list li { display:flex; align-items:center; gap:14px; font-size:1.25em; color:var(--primary-dark); }

@media (max-width: 900px) {
    .contact-left h3 { font-size: 1.6em; }
    .contact-list li { font-size: 1.05em; }
    .contact-icon { width:48px; height:48px; font-size:1.15em; }
}
.contact-right {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertically center form to match left */
}
.contact-right .contact-form {
    padding: 32px 26px;
    background: linear-gradient(180deg, #fff, #fffef8);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(212,175,55,0.06);
}
.form-note { color: #6b4a36; font-size:0.95em; opacity:0.9; }

.form-message {
    background: #e8f6ec;
    border: 1px solid #b6e0c8;
    color: #1a5a3a;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.form-message.error {
    background: #fdecea;
    border-color: #f5c6cb;
    color: #7a1f19;
}

.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
/* New contact info card styles */
.contact-info-card { margin-top: 8px; }
.contact-intro { color: #6b4a36; margin-bottom: 14px; font-weight: 600; }
.info-row { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 8px; transition: background 0.15s ease; }
.info-row:not(:last-child) { margin-bottom: 8px; }
.info-row:hover { background: rgba(244,235,224,0.6); }
.info-icon { width:48px; height:48px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; background: linear-gradient(135deg,#f7e9d6,#fff); color:var(--primary-brown); font-size:1.2em; box-shadow:0 3px 10px rgba(0,0,0,0.06); }
.info-text { display:flex; flex-direction:column; }
.info-label { font-size:1.0em; color:#8d5c2c; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; }
.info-value { font-size:1.45em; color:var(--primary-dark); font-weight:800; }
.info-value a { color: var(--primary-dark); text-decoration:none; }
/* Make buttons more visible */
.contact-form button {
    background: linear-gradient(135deg, var(--accent-gold), #b48a2c);
    color: #fff;
    border-radius: 8px;
    padding: 12px 20px;
    border: none;
}

/* Responsive: stack vertically under 900px */
@media (max-width: 900px) {
    .contact-section { flex-direction: column; }
    .contact-left, .contact-right { max-width: 100%; min-width: 0; }
}

/* Enforce side-by-side on wider screens (override later rules) */
@media (min-width: 900px) {
    .contact-section {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 36px !important;
        align-items: flex-start !important;
    }
    .contact-left {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        min-width: 320px !important;
    }
    .contact-right {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        min-width: 320px !important;
    }
}

    .products-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .presentation-list {
        text-align: center;
    }


/* Small screen hero tweaks — keep the same background image, only adjust sizing */
@media (max-width: 480px) {
    .hero {
        min-height: auto !important; /* allow content to define height */
        height: auto !important;
        padding: 4px 8px !important; /* much tighter vertical space on very small screens */
        background-position: center var(--hero-y-mobile, var(--hero-y)); /* keep focal point visible */
        background-attachment: scroll; /* better performance on mobile */
    }
    .hero-content {
        max-width: 92%;
        margin: 0 auto;
        margin-top: 0 !important; /* remove extra top margin */
        padding-top: 0 !important;
    }
    .hero-content h2 {
        font-size: 2.2em;
        line-height: 1.05;
        margin-top: 0 !important; /* ensure title hugs the top */
        margin-bottom: 4px !important;
    }
    .hero-content p {
        font-size: 1.6em;
        line-height: 1.1;
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }
    .hero-phone {
        font-size: 2.2em !important;
        margin-top: 6px !important; /* small breathing room */
        margin-bottom: 4px !important; /* reduced space to bottom of banner */
    }
    .nav a { font-size: 1em; }
    .contact {
        /* Mobile: utiliser une seule image optimisée pour réduire les téléchargements */
        background: linear-gradient(rgba(10,8,6,0.25), rgba(10,8,6,0.25)), url('contact-new-400.jpg');
        background-attachment: scroll;
        background-position: center var(--hero-y-mobile, var(--hero-y));
        background-size: cover; /* garantir que l'image couvre l'espace */
    }

    /* Descendre le numéro de téléphone légèrement sur mobile */
    .hero-phone { margin-top: 12px !important; }

}  

/* Tighten spacing for specific product cards on mobile */
@media (max-width: 900px) {
    .product-card.produit-bois .product-illustration,
    .product-card.produit-filet-buches .product-illustration {
        margin: 0 auto 8px !important; /* smaller gap under image */
    }
    .product-card.produit-bois .product-content,
    .product-card.produit-filet-buches .product-content {
        padding-top: 6px !important;
    }
    .product-card.produit-bois,
    .product-card.produit-filet-buches {
        padding-top: 10px !important;
    }
}


/* === Mobile: force proper banner flow and scale texts to avoid layout issues === */
@media (max-width: 900px) {
    .hero {
        min-height: 320px !important; /* mobile banner height reduced */
        height: auto !important; /* allow content to define height */
        padding: 8px 8px !important; /* tighter padding on mobile */
        /* show more of the logs (lower part of image) on narrow screens */
        background-position: center var(--hero-y, 50%) !important;
        background-size: var(--hero-scale-mobile, 110%) !important;
        background-attachment: scroll !important; /* better performance on mobile */
        display: flex !important;
        align-items: center !important; /* center vertically */
        justify-content: center !important;
    }
    .hero-content {
        position: relative !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        max-width: 92%;
        margin: 0 auto;
        padding: 0 !important;
        text-align: center;
        display: block;
        box-sizing: border-box;
        overflow: visible;
    }
    .hero-content h2 {
        font-size: 2.4em !important;
        line-height: 1.05 !important;
        margin: 0 0 8px 0 !important;
    }
    .hero-content p {
        font-size: 1.25em !important;
        margin: 0 0 24px 0 !important;
        line-height: 1.15 !important;
    }
    .hero-phone {
        font-size: 6.5em !important;
        margin-top: 12px !important;
        margin-bottom: 12px !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        line-height: 1 !important;
        padding: 6px 0 !important;
    }
    .hero-phone .phone-digits {
        font-size: 1.25em !important;
        font-weight: 900 !important;
        color: var(--accent-gold) !important;
        letter-spacing: 0.06em !important;
        text-shadow: 0 0 12px rgba(212,175,55,0.8) !important;
        display: inline-block !important;
    }

    /* Reduce "Qui sommes-nous ?" size slightly */
    .presentation-content p:first-child strong { font-size: 0.9em !important; }
    .presentation-list li { font-size: 1.15em !important; }
}

/* Tablet breakpoint: intermediate sizes for devices ≤768px */

/* Tablet breakpoint adjustments remain unchanged */

/* Tablet breakpoint: intermediate sizes for devices ≤768px */
@media (max-width: 768px) {
    .hero {
        min-height: 480px !important; /* slightly taller on tablets */
        padding: 30px 12px !important;
        background-position: center var(--hero-y-mobile, var(--hero-y)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .hero-content h2 { font-size: 2.4em !important; }
    .hero-content p { font-size: 1.3em !important; transform: translateY(-6px) !important; }
    .hero-phone { font-size: 1.3em !important; }
    .presentation h2, .products h2, .services h2, .contact h2 { font-size: 1.8em !important; }
    .presentation-content p:first-child strong { font-size: 0.85em !important; }
    .presentation-list li { font-size: 1.18em !important; }
}  

@media (max-width: 480px) {
    .hero {
        padding: 8px 12px !important; /* much tighter equal top/bottom spacing */
        /* focus more on the lower area (bûches) on very small screens */
        background-position: center var(--hero-y, 50%) !important;
    }
    .hero-content h2 { font-size: 2.2em !important; margin-top: 0 !important; }
    .hero-content p { font-size: 1.15em !important; margin-top: 8px !important; margin-bottom: 8px !important; }
    .hero-phone { font-size: 1.4em !important; padding: 6px 10px !important; margin-bottom: 6px !important; }

    /* Tight spacing for all product cards on small screens */ 
    .product-card { display: block !important; min-height: auto !important; padding-top: 4px !important; padding-bottom: 4px !important; }
    .product-card .product-illustration { margin: 0 0 6px 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; }
    .product-card .product-illustration img { display: block !important; width: 100% !important; height: auto !important; max-height: none !important; margin: 0 !important; padding: 0 !important; object-fit: cover !important; }
    .product-card .product-content { padding-top: 0 !important; margin-top: 0 !important; }
    .product-card .product-content h3 { margin: 6px 0 6px 0 !important; padding: 0 !important; }
    .product-card .product-content p { margin-top: 0 !important; }
    .product-card::before, .product-card::after { display: none !important; }
}   

/* Mobile phone sizing overrides: slightly smaller, consistent on breakpoints */
@media (max-width:900px){
    /* Slightly smaller and nudged down */
    .hero .hero-phone { font-size: 1.3em !important; margin-top: -2px !important; transform: translateY(-4px) !important; }
    .hero .hero-phone .phone-digits { font-size: 1.10em !important; }
}
@media (max-width:480px){
    /* Very small screens: reduce a bit more */
    .hero .hero-phone { font-size: 1.2em !important; margin-top: -4px !important; transform: translateY(-6px) !important; }
    .hero .hero-phone .phone-digits { font-size: 1.05em !important; }
}

/* Increase hero phone size on other viewports */
.hero .hero-phone { font-size: 6.4em !important; }
@media (max-width:900px){
    /* Mobile: use a readable size for phones and small tablets */
    .hero .hero-phone { font-size: 1.6em !important; }
}

/* Mobile override: emphasized phone sizing for #accueil */
@media (max-width:900px){
    /* target the accueil hero specifically to avoid overrides */
    /* Raise and slightly enlarge the phone number */
    #accueil .hero-phone, #accueil .hero .hero-phone { margin-top: -12px !important; transform: translateY(-16px) !important; font-size: 2.0em !important; }
    #accueil .hero-phone .phone-digits, #accueil .hero .hero-phone .phone-digits { font-size: 1.4em !important; }
    /* Raise the hero title and make it a bit larger for emphasis */
    #accueil .hero-content h2 { transform: translateY(-56px) !important; font-size: 2.4em !important; margin-bottom: 4px !important; } 
    /* Slightly larger descriptive line */
    #accueil .hero-content p { font-size: 1.5em !important; margin-top: 0px !important; transform: translateY(-8px) !important; }
} 
@media (max-width:480px){
    /* Very small screens: raise and slightly enlarge the phone */
    #accueil .hero-phone, #accueil .hero .hero-phone { margin-top: -14px !important; transform: translateY(-20px) !important; font-size: 1.9em !important; }
    #accueil .hero-phone .phone-digits, #accueil .hero .hero-phone .phone-digits { font-size: 1.2em !important; }
    /* Larger title and further upward shift */
    #accueil .hero-content h2 { transform: translateY(-66px) !important; font-size: 2.2em !important; margin-bottom: 4px !important; }
    #accueil .hero-content p { font-size: 1.4em !important; margin-top: 0px !important; transform: translateY(-10px) !important; }
}  
}

/* Final mobile subtitle adjustments — ensure subtitle sits close to the title */
@media (max-width: 900px) {
    /* Only target the first paragraph (subtitle) so phone number and title are unaffected */
    #accueil .hero-content > p:first-of-type,
    .hero-content > p:first-of-type {
        font-size: 1.5em !important;
        margin-top: 0px !important;
        transform: translateY(-28px) !important;
    }
}    
@media (max-width: 480px) {
    #accueil .hero-content > p:first-of-type,
    .hero-content > p:first-of-type {
        font-size: 1.4em !important;
        margin-top: 0px !important;
        transform: translateY(-32px) !important;
    }
}     
  
/* Desktop-only: slightly reduce the hero phone number size (web version) */
@media (min-width: 900px) {
    /* Target only the accueil hero phone so the phone elsewhere is unaffected */
    #accueil .hero-phone, #accueil .hero .hero-phone {
        font-size: 5.2em !important; /* reduced from ~6.5em */
        margin-top: 28px !important; /* moved down for better spacing with subtitle */
    }
    /* Increase phone digits on desktop for accueil */
    #accueil .hero-phone .phone-digits, #accueil .hero .hero-phone .phone-digits {
        font-size: 0.80em !important;
    }
} 
/* Slightly larger on very wide screens for balance */
@media (min-width: 1200px) {
    #accueil .hero-phone, #accueil .hero .hero-phone {
        font-size: 5.6em !important;
        margin-top: 36px !important; /* slightly more space on very wide screens */
    }
    /* Slightly increase phone digits on very wide screens */
    #accueil .hero-phone .phone-digits, #accueil .hero .hero-phone .phone-digits {
        font-size: 0.90em !important;
    }
}

/* Force phone and icons to remain on the same line on all viewports */
.hero-phone {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}
.hero-phone .phone-icon { flex: 0 0 auto !important; }
.hero-phone .phone-digits { white-space: nowrap !important; }

/* Mobile: keep phone line and icons on same line and center with the hero title */
@media (max-width: 900px) {
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 0.25rem !important;
    }
    .hero .hero-phone {
        display: inline-flex !important;
        width: auto !important;
        justify-content: center !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
    }
    .hero .hero-phone .phone-digits,
    .hero .hero-phone .phone-icon {
        display: inline-flex !important;
        align-items: center !important;
    }
    /* Slightly reduce phone digits on very narrow screens to avoid overflow */
    @media (max-width: 480px) {
        .hero .hero-phone .phone-digits { font-size: 1.05em !important; }
    }
} 
