/* ==========================================================================
   MAT&GO — Styles principaux
   ========================================================================== */
:root {
    --primary: #1B4D6E;
    --primary-light: #2A6F9E;
    --primary-hover: #153D57;
    --accent: #E07B39;
    --accent-hover: #C96A2E;
    --secondary: #1A2332;
    --text-main: #2D3748;
    --text-muted: #64748B;
    --bg-light: #F4F7FA;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --success: #059669;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --radius: 10px;
    --header-height: 80px;
}

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

#contact,
#contact-form {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.65;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.25;
}

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

ul { list-style: none; }

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

.section-padding { padding: 90px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--secondary); }
.bg-primary { background-color: var(--primary); }
.text-white h1, .text-white h2, .text-white h3, .text-white p { color: var(--bg-white); }
.text-white .text-muted { color: rgba(255,255,255,0.75); }

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 12px;
}

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

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.grid { display: grid; gap: 28px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-white);
    border-color: var(--accent);
}

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

.btn-secondary {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--secondary);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-dark:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-large { padding: 15px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 18px 0;
}

#header.scrolled,
#header.header-solid {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

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

#header.scrolled .logo,
#header.header-solid .logo { color: var(--secondary); }

.nav-list {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-link {
    color: var(--bg-white);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
}

#header.scrolled .nav-link,
#header.header-solid .nav-link { color: var(--secondary); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.bar {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--bg-white);
    transition: var(--transition);
    border-radius: 2px;
}

#header.scrolled .bar,
#header.header-solid .bar { background-color: var(--secondary); }

/* ==========================================================================
   HERO
   ========================================================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #1A2332 0%, #1B4D6E 50%, #2A6F9E 100%);
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 35, 50, 0.92) 40%, rgba(27, 77, 110, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
    max-width: 720px;
    padding: 60px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(224, 123, 57, 0.2);
    border: 1px solid rgba(224, 123, 57, 0.4);
    color: #FDBA74;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 20px;
    color: var(--bg-white);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 36px;
    opacity: 0.92;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Category hero (pages catégories) */
.page-hero {
    padding: 140px 0 70px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--bg-white);
    position: relative;
}

.page-hero h1 {
    color: var(--bg-white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 640px;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: 0.6; }

/* ==========================================================================
   CATEGORIES
   ========================================================================== */
.categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.category-card-image {
    height: 160px;
    overflow: hidden;
    background: var(--bg-light);
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-image img { transform: scale(1.05); }

.category-card-icon {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light), #E8EEF4);
    font-size: 3rem;
    color: var(--primary);
}

.category-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.category-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
    flex: 1;
}

/* ==========================================================================
   STEPS (Comment ça marche)
   ========================================================================== */
.steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    counter-reset: step;
}

.step-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}

.step-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   ADVANTAGES (Pourquoi MAT&GO)
   ========================================================================== */
.advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.advantage-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.advantage-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.advantage-item i {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.advantage-item h3 {
    font-size: 1rem;
    color: var(--bg-white);
    margin-bottom: 6px;
}

.advantage-item p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
}

/* ==========================================================================
   AUDIENCE (Particuliers / Pro)
   ========================================================================== */
.audience-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.audience-card {
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.audience-card:hover { box-shadow: var(--shadow-md); }

.audience-card.pro {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    color: var(--bg-white);
}

.audience-card.pro h3,
.audience-card.pro p { color: var(--bg-white); }

.audience-card .tag {
    display: inline-block;
    background: rgba(224, 123, 57, 0.15);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.audience-card.pro .tag {
    background: rgba(255,255,255,0.2);
    color: var(--bg-white);
}

.audience-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.audience-card > p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.audience-card ul {
    margin-bottom: 28px;
}

.audience-card ul li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.audience-card.pro ul li { color: rgba(255,255,255,0.85); }

.audience-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

.audience-card.pro ul li::before { color: #FDBA74; }

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.product-category {
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 12px;
    flex: 1;
}

.product-features {
    margin-bottom: 12px;
}

.product-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 3px 0;
    padding-left: 18px;
    position: relative;
}

.product-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.product-price {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.product-price strong {
    font-size: 1.4rem;
    color: var(--accent);
    font-family: var(--font-heading);
}

.product-availability {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 14px;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

/* ==========================================================================
   ZONE
   ========================================================================== */
.zone-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.zone-text h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.zone-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-tag {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.city-tag:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.zone-map iframe {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.contact-info-block { margin-bottom: 24px; }

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.info-item .icon {
    width: 48px;
    height: 48px;
    background: rgba(27, 77, 110, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.info-item p, .info-item a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-item a:hover { color: var(--accent); }

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group { margin-bottom: 16px; }

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #FAFBFC;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 77, 110, 0.12);
    background: var(--bg-white);
}

.input-group input.error,
.input-group select.error,
.input-group textarea.error {
    border-color: #DC2626;
}

.error-message {
    color: #DC2626;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

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

.form-success {
    display: none;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    text-align: center;
}

.form-success.show { display: block !important; }

.form-error {
    display: none;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    text-align: center;
}

.form-error.show { display: block !important; }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--bg-white);
}

.cta-banner h2 {
    color: var(--bg-white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
}

.cta-banner p {
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   TIPS (Conseils catégories)
   ========================================================================== */
.tips-section {
    background: var(--bg-light);
    padding: 50px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.tips-section h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.tips-section ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-muted);
}

.tips-section ul li::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-size: 0.85rem;
}

/* ==========================================================================
   RELATED CATEGORIES
   ========================================================================== */
.related-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.related-categories a {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.related-categories a:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--secondary);
    color: #94A3B8;
    padding: 70px 0 24px;
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 36px;
    margin-bottom: 50px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--bg-white);
}

.footer-desc {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.social-links { display: flex; gap: 10px; }

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 0.9rem; }
.footer ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}

.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { text-decoration: underline; }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--accent);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary); transform: translateY(-4px); }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 20px 80px;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin: 32px 0 12px;
    color: var(--primary);
}

.legal-content p, .legal-content li {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active { opacity: 1; transform: none !important; }
.fade-up { transform: translateY(40px); }
.fade-left { transform: translateX(-40px); }
.fade-right { transform: translateX(40px); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .zone-content { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section-padding { padding: 48px 0; }
    .container { padding: 0 22px; }
    .section-header { padding: 0 4px; margin-bottom: 36px; }
    .section-header h2 { font-size: clamp(1.45rem, 6vw, 2rem); }
    .section-header p { font-size: 0.95rem; }

    .header-container {
        position: relative;
        gap: 8px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1102;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 8px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-sizing: border-box;
    }

    #header.scrolled .hamburger,
    #header.header-solid .hamburger {
        background: var(--bg-light);
        border-color: var(--border-color);
    }

    .hamburger .bar {
        width: 18px;
        height: 2px;
        margin: 2.5px 0;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); background-color: var(--secondary); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background-color: var(--secondary); }

    /* Menu déroulant (tiroir) sous le header — pas plein écran */
    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        width: min(300px, calc(100vw - 28px));
        height: auto;
        max-height: min(70dvh, 520px);
        display: block;
        align-items: stretch;
        justify-content: flex-start;
        background: var(--bg-white);
        border-radius: 14px;
        border: 1px solid var(--border-color);
        box-shadow: 0 16px 40px rgba(26, 35, 50, 0.18);
        z-index: 1100;
        padding: 10px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .nav-menu.active {
        left: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 2px;
        width: 100%;
        max-width: none;
        text-align: left;
    }
    .nav-link {
        color: var(--secondary) !important;
        font-size: 0.95rem;
        display: block;
        padding: 12px 14px;
        min-height: 44px;
        border-radius: 10px;
        text-align: left;
    }
    .nav-link::after { display: none; }
    .nav-link:hover,
    .nav-link.active {
        background: rgba(27, 77, 110, 0.08);
    }
    .nav-link.active {
        color: var(--accent) !important;
        font-weight: 700;
    }
    .header-cta { display: none; }
    .logo { font-size: 1.3rem; }

    #hero {
        min-height: auto;
        padding: calc(var(--header-height) + 24px) 0 48px;
    }
    .hero-content {
        padding: 0 4px;
        text-align: left;
    }
    .hero-content h1 {
        font-size: clamp(1.55rem, 6.5vw, 2.1rem);
        line-height: 1.2;
        margin-bottom: 12px;
    }
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 20px;
        max-width: 36ch;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: none;
        padding: 12px 18px;
        font-size: 0.95rem;
    }

    .categories-grid,
    .products-grid {
        gap: 14px !important;
    }

    .category-card-image,
    .category-card-icon {
        height: 110px;
    }
    .category-card-icon { font-size: 2rem; }
    .category-card-body {
        padding: 14px 14px 16px;
    }
    .category-card-body h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    .category-card-body p {
        font-size: 0.82rem;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .category-card .btn-sm {
        padding: 8px 12px;
        font-size: 0.8rem;
        align-self: flex-start;
    }

    .product-card-image { height: 140px; }
    .product-info { padding: 14px; }
    .product-info h3 { font-size: 1rem; }
    .product-desc {
        font-size: 0.82rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-card .card-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    .product-card .btn-sm {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 22px 16px; }
    .steps-grid,
    .audience-grid,
    .advantages-grid { grid-template-columns: 1fr !important; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer h4::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }

    body { padding-bottom: 0; }
    .back-to-top { bottom: 30px; right: 16px; }

    .tips-section { padding: 24px 16px; }
    .page-hero { padding: 110px 0 36px; }
    .page-hero h1 { font-size: clamp(1.45rem, 6vw, 2rem); }
    .page-hero p { font-size: 0.95rem; }

    .cta-banner .btn { width: 100%; max-width: 360px; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .categories-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: 1fr; }
    .category-card-image,
    .category-card-icon { height: 96px; }
    .product-card-image { height: 120px; }
}

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.partner-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.partner-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}
.partner-card a { color: inherit; text-decoration: underline; }


/* Options produit : consommables synchronisés avec l’option sélectionnée */
.product-option-linked{
  display:block;
  margin-top:5px;
  font-size:.78rem;
  color:#667783;
  line-height:1.4;
}
.product-option-linked strong{
  color:#29404e;
}
