/* SARL Rénovation 04 - Styles CSS */
/* Mobile-first, responsive design with CSS Grid + Flexbox */
/* WCAG 2.1 AA compliant */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-darker: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --container-max: 1200px;
    --container-padding: 1rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus management for accessibility */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Screen reader only */
.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;
}

.sr-only.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 9999;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
    color: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px; /* WCAG touch target */
    position: relative;
    overflow: hidden;
}

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

.btn--primary:hover,
.btn--primary:focus {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn--secondary:hover,
.btn--secondary:focus {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

.btn--whatsapp {
    background: #25d366;
    color: white;
}

.btn--whatsapp:hover,
.btn--whatsapp:focus {
    background: #1da851;
}

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 80px;
}

.header__logo {
    flex-shrink: 0;
}

.logo {
    width: auto;
    height: 50px;
}

.header__nav {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}

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

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

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text);
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Urgence button */
.urgence-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    padding: 0.5rem 0;
    position: sticky;
    top: 80px;
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.btn-urgence {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    width: 100%;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.btn-urgence:hover,
.btn-urgence:focus {
    background: rgba(255, 255, 255, 0.1);
}

.urgence-icon {
    font-size: 1.2rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(29, 78, 216, 0.6));
    z-index: 1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 4rem 0;
}

.hero__title {
    font-size: var(--font-size-2xl);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero__cta {
    margin-top: 2rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background: var(--bg-light);
}

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

.service-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card__title {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
    color: var(--text);
}

.service-card__desc {
    color: var(--text-light);
    line-height: 1.6;
}

/* Réalisations Section */
.realisations {
    padding: 4rem 0;
    background: var(--bg);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

.filter-btn:hover,
.filter-btn:focus,
.filter-btn.is-active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Gallery Slider */
.gallery-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.gallery-slider {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

.slide-content {
    position: relative;
    aspect-ratio: 4/3;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
}

.slide-overlay h4 {
    font-size: var(--font-size-xl);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.slide-overlay p {
    font-size: var(--font-size-base);
    opacity: 0.95;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    box-shadow: var(--shadow);
}

.slider-btn:hover,
.slider-btn:focus {
    background: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.slider-btn:active {
    transform: scale(0.95);
}

.gallery-counter {
    text-align: center;
    margin-top: 1rem;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.current-slide {
    color: var(--primary);
    font-weight: 600;
}

/* Before/After Section */
.before-after {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.ba-container {
    max-width: 800px;
    margin: 0 auto;
}

.ba {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    aspect-ratio: 16/9;
    cursor: ew-resize;
}

.ba-before,
.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-after {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    transition: clip-path 0.3s ease;
}

.ba img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-handle::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-handle-icon {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    color: var(--text);
}

/* Zone Section */
.zone {
    padding: 4rem 0;
    background: var(--bg-light);
}

.zone-description {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: 3rem;
}

.map-container {
    margin-bottom: 3rem;
    width: 100%;
    height: 400px;
    position: relative;
}

.leaflet-map,
.map-embed {
    height: 400px;
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    z-index: 1;
}

.zone-cities {
    text-align: center;
}

.zone-cities-title {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.cities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
}

.cities-list li {
    background: var(--bg);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    font-weight: 500;
    color: var(--text);
}

/* Avis Section */
.avis {
    padding: 4rem 0;
    background: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

/* Pages légales */
.page-section {
    padding: 6rem 0;
}

.page-title {
    font-size: var(--font-size-3xl);
    margin-bottom: 2rem;
    color: var(--text);
    text-align: center;
}

.last-update {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: var(--font-size-xl);
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-section h3 {
    font-size: var(--font-size-lg);
    margin: 1.5rem 0 1rem;
    color: var(--text);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.cta-section {
    margin-top: 4rem;
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
}

.cta-text {
    margin-bottom: 1.5rem;
}

/* Plan du site */
.sitemap-content {
    max-width: 800px;
    margin: 0 auto;
}

.sitemap-section {
    margin-bottom: 3rem;
}

.sitemap-section h2 {
    font-size: var(--font-size-xl);
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.sitemap-list {
    list-style-type: none;
    padding-left: 0.5rem;
}

.sitemap-list li {
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.sitemap-list a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.sitemap-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.sitemap-list ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin: 0.8rem 0 1.5rem;
}

.sitemap-list ul li {
    margin-bottom: 0.4rem;
    font-weight: normal;
}

.btn--secondary {
    background-color: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    margin-left: 1rem;
}

.btn--secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--secondary);
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial blockquote {
    font-size: var(--font-size-lg);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text);
}

.testimonial-location {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: var(--bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-subtitle {
    margin-bottom: 2rem;
    color: var(--text);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-input,
.form-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: var(--transition);
    min-height: 44px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.error-message {
    margin-top: 0.5rem;
    font-size: var(--font-size-sm);
    color: #ef4444;
    display: none;
}

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

.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.info-item strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.5rem;
}

.info-item a {
    color: var(--primary);
    text-decoration: none;
}

.info-item a:hover,
.info-item a:focus {
    text-decoration: underline;
}

.contact-map {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.footer-badge {
    display: flex;
    justify-content: center;
}

.badge-animated {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(37, 99, 235, 0.5); }
    to { box-shadow: 0 0 20px rgba(37, 99, 235, 0.8); }
}

.badge-text {
    color: white;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus {
    color: white;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.social-links a:hover,
.social-links a:focus {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

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

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design - Mobile First */

/* Map fallback styles */
.map-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    background-color: var(--bg-light);
    text-align: center;
    border-radius: var(--border-radius-lg);
}

/* Small tablets and large phones (576px and up) */
@media (min-width: 36rem) {
    :root {
        --container-padding: 1.5rem;
    }

    .hero__title {
        font-size: var(--font-size-3xl);
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-slider-container {
        max-width: 600px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-urgence {
        font-size: var(--font-size-base);
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium tablets (768px and up) */
@media (min-width: 48rem) {
    :root {
        --container-padding: 2rem;
    }

    .header__nav {
        display: block;
    }

    .menu-toggle {
        display: none;
    }

    .hero {
        min-height: 70vh;
    }

    .hero__title {
        font-size: var(--font-size-4xl);
    }

    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-slider-container {
        max-width: 700px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .leaflet-map,
    .map-embed {
        height: 500px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Large tablets and small desktops (992px and up) */
@media (min-width: 62rem) {
    .hero {
        min-height: 80vh;
    }

    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

    .gallery-slider-container {
        max-width: 800px;
    }

    .contact-content {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
}

/* Large desktops (1200px and up) */
@media (min-width: 75rem) {
    .hero__content {
        padding: 6rem 0;
    }

    .services,
    .realisations,
    .zone,
    .avis,
    .faq,
    .contact {
        padding: 6rem 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-light: var(--text);
    }

    .btn--primary {
        border: 2px solid transparent;
    }

    .btn--primary:focus {
        border-color: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .header,
    .urgence-btn,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .hero {
        min-height: auto;
        page-break-inside: avoid;
    }

    .service-card,
    .testimonial,
    .faq-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}