/* ============================================
   APEX — Stylesheet CSS3
   Responsive Design Mobile-First
   ============================================ */

/* ============= VARIABLES CSS GLOBALES ============= */
:root {
    --rouge: #CC2229;
    --noir: #1A1A1A;
    --gris: #6B6B6B;
    --fond: #F8F8F8;
    --blanc: #FFFFFF;
    --gris-clair: #EEEEEE;
    --gris-accent: #6B6B6B;
    --orange: #E8A43A;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============= RESET ET BASE ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Inter', sans-serif;
    color: #333;
    background-color: var(--blanc);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', 'Oswald', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--noir);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: var(--rouge);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--noir);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============= HEADER FIXE ============= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--noir);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 70px;
    width: 70px;
    background-color: white;
    border-radius: 50%;
    padding: 10px;
    box-sizing: border-box;
    object-fit: contain;
}

.logo a {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rouge);
    font-family: 'Barlow', sans-serif;
}

nav {
    display: flex;
    gap: 3rem;
}

nav a {
    color: var(--blanc);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    border-bottom-color: var(--rouge);
    color: var(--rouge);
}

/* Menu hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--blanc);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============= MAIN CONTENT ============= */
main {
    margin-top: 70px;
}

section {
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--blanc);
}

/* ============= BUTTONS ============= */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}

.btn-primary {
    background-color: var(--rouge);
    color: var(--blanc);
}

.btn-primary:hover {
    background-color: #a01820;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blanc);
    border: 2px solid var(--blanc);
}

.btn-secondary:hover {
    background-color: var(--blanc);
    color: var(--noir);
}

.btn-outline {
    background-color: transparent;
    color: var(--rouge);
    border: 2px solid var(--rouge);
}

.btn-outline:hover {
    background-color: var(--rouge);
    color: var(--blanc);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* ============= HERO SECTION ============= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--blanc);
    overflow: hidden;
    margin-top: -70px;
    padding-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    height: 320px;
    display: block;
    margin: 0 auto 2rem auto;
    animation: fadeIn 1.5s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--blanc);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: #ddd;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: var(--blanc);
    fill: none;
    stroke-width: 2;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(15px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============= CHIFFRES CLÉS ============= */
.stats {
    background-color: var(--noir);
    color: var(--blanc);
    padding: 4rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--rouge);
    font-family: 'Barlow', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: #aaa;
    margin-top: 0.5rem;
}

/* ============= GAMMES (CARTES) ============= */
.gammes {
    background-color: var(--fond);
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--noir);
}

.gammes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gamme-card {
    background-color: var(--blanc);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
}

.gamme-card:hover {
    border-color: var(--rouge);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gamme-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gamme-card-content {
    padding: 1.5rem;
}

.gamme-card h3 {
    color: var(--rouge);
    margin-bottom: 0.5rem;
}

.gamme-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* ============= PRODUITS EN VEDETTE ============= */
.featured-products {
    background-color: var(--blanc);
    padding: 4rem 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background-color: var(--blanc);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-petite {
    background-color: #999;
    color: var(--blanc);
}

.badge-intermediaire {
    background-color: var(--orange);
    color: var(--blanc);
}

.badge-grande {
    background-color: var(--rouge);
    color: var(--blanc);
}

.badge-transmission {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--blanc);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.product-power {
    font-size: 1.5rem;
    color: var(--rouge);
    font-weight: 700;
    margin: 0.5rem 0;
}

.product-specs {
    font-size: 0.85rem;
    color: var(--gris);
    margin: 0.8rem 0;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--noir);
    margin: 0.8rem 0;
}

.product-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-buttons .btn {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.85rem;
}

.btn-catalog {
    background-color: transparent;
    color: var(--rouge);
    border: 2px solid var(--rouge);
}

.btn-catalog:hover {
    background-color: var(--rouge);
    color: var(--blanc);
}

.center-button {
    text-align: center;
    margin-top: 2rem;
}

/* ============= POURQUOI APEX ============= */
.why-apex {
    background-color: var(--fond);
    padding: 4rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-box {
    background-color: var(--blanc);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--rouge);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-box h3 {
    margin-bottom: 0.5rem;
}

.feature-box p {
    font-size: 0.95rem;
    color: #666;
}

/* ============= VIDÉO ============= */
.video-section {
    background-color: var(--noir);
    padding: 4rem 2rem;
    color: var(--blanc);
}

.video-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

/* Grille des vidéos */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-item-title {
    color: var(--blanc);
    font-size: 1.3rem;
    margin: 0;
    text-align: center;
}

.video-description {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    text-align: justify;
    font-style: italic;
}

.video-container {
    max-width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* ============= CTA BANNIÈRE ============= */
.cta-banner {
    background-color: var(--rouge);
    color: var(--blanc);
    padding: 3rem 2rem;
    text-align: center;
}

.cta-banner h2 {
    color: var(--blanc);
    margin-bottom: 1.5rem;
}

/* ============= FOOTER ============= */
footer {
    background-color: var(--noir);
    color: var(--blanc);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col h4 {
    color: var(--rouge);
    margin-bottom: 1rem;
}

.footer-col p {
    color: #aaa;
    margin-bottom: 0.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #aaa;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--rouge);
}

.footer-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-logo-link {
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: var(--rouge);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============= MODAL ============= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--blanc);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--noir);
    z-index: 10;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.modal-image img {
    width: 100%;
    height: auto;
}

.modal-specs table {
    width: 100%;
    border-collapse: collapse;
}

.modal-specs th {
    background-color: var(--fond);
    padding: 0.8rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--rouge);
}

.modal-specs td {
    padding: 0.8rem;
    border-bottom: 1px solid #ddd;
}

.modal-button {
    margin-top: 1.5rem;
    width: 100%;
}

/* ============= FORMULAIRES ============= */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--noir);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--rouge);
    box-shadow: 0 0 0 3px rgba(204, 34, 41, 0.1);
}

input.valid,
select.valid,
textarea.valid {
    border-color: #28a745;
}

input.invalid,
select.invalid,
textarea.invalid {
    border-color: var(--rouge);
}

.error-message {
    color: var(--rouge);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.radio-group,
.checkbox-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-loading {
    display: none;
    text-align: center;
    margin: 1rem 0;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--rouge);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============= reCAPTCHA ============= */
.form-group p a {
    color: var(--rouge);
}

.form-group p a:hover {
    text-decoration: underline;
}

.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============= PAGES SPÉCIFIQUES ============= */
.page-banner {
    background: linear-gradient(135deg, rgba(204, 34, 41, 0.9), rgba(26, 26, 26, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="400" fill="%23CC2229"/><rect width="1200" height="400" fill="url(%23grid)"/></svg>');
    background-size: cover;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--blanc);
    margin-top: 70px;
}

.page-banner h1 {
    color: var(--blanc);
    margin-bottom: 1rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--blanc);
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.two-column img {
    border-radius: 8px;
}

/* Filtres catalogue */
.filters {
    background-color: var(--fond);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    margin-bottom: 1rem;
    color: var(--noir);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #ddd;
    background-color: var(--blanc);
    color: var(--noir);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--rouge);
    background-color: var(--rouge);
    color: var(--blanc);
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-box input {
    flex: 1;
}

/* Tableau specs */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--blanc);
    box-shadow: var(--shadow);
}

.specs-table th {
    background-color: var(--noir);
    color: var(--blanc);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 3px solid var(--rouge);
}

.specs-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.specs-table tr:nth-child(even) {
    background-color: var(--fond);
}

.specs-table tr:hover {
    background-color: rgba(204, 34, 41, 0.05);
}

/* Carte OSM */
.map-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 66.66%;
    height: 0;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Coordonnées */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: var(--blanc);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--rouge);
    box-shadow: var(--shadow);
}

.contact-card-icon {
    font-size: 2.5rem;
    color: var(--rouge);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #666;
}

/* Bouton retour en haut */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--rouge);
    color: var(--blanc);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 500;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top:hover {
    background-color: var(--noir);
    transform: translateY(-5px);
}

.scroll-to-top.visible {
    display: flex;
}

/* ============= RESPONSIVE DESIGN ============= */

/* Tablette (768px - 1023px) */
@media (max-width: 1023px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    section {
        padding: 3rem 1.5rem;
    }

    header {
        padding: 1rem 1.5rem;
    }

    nav {
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .gammes-grid,
    .products-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }

    body {
        font-size: 14px;
    }

    section {
        padding: 2rem 1rem;
    }

    header {
        padding: 0.8rem 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    nav {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background-color: var(--noir);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        gap: 1rem;
        transition: var(--transition);
        z-index: 999;
    }

    nav.active {
        left: 0;
    }

    nav a {
        color: var(--blanc);
        border: none;
        padding: 1rem;
        border-bottom: none;
        display: block;
    }

    nav a:hover,
    nav a.active {
        background-color: var(--rouge);
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-logo {
        height: 120px;
        display: block;
        margin: 1 auto 1.5rem auto;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .gammes-grid,
    .products-grid,
    .features-grid,
    .stats-grid,
    .contact-cards,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .page-banner {
        padding: 2rem 1rem;
        margin-top: 60px;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-buttons {
        flex-direction: column;
    }

    .product-buttons .btn {
        width: 100%;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input {
        width: 100%;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ============= BOUTON WHATSAPP FLOTTANT ============= */
.whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--blanc);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 400;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* ============= BOUTON WHATSAPP RESPONSIVE ============= */
@media (max-width: 767px) {
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 80px;
        right: 20px;
        font-size: 1.8rem;
    }
}

/* Extra petits écrans (< 480px) */
@media (max-width: 479px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1rem; }

    .hero-buttons {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .container {
        padding: 0;
    }

    .hero {
        padding-top: 60px;
    }

    .page-banner {
        margin-top: 60px;
    }
}

/* Impression */
@media print {
    header,
    nav,
    .hamburger,
    .scroll-to-top,
    .cta-banner,
    footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}
