/**
 * WebMatic Theme Main Styles
 * @package WebMatic
 */

/* ===========================
   1. VARIABLES & RESET
   =========================== */

:root {
    --color-primary: #2563eb;
    --color-secondary: #10b981;
    --color-dark: #0f0f10;
    --color-light: #f9fafb;
    --color-gray: #6b7280;
    --color-border: #e5e7eb;
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

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

/* ===========================
   2. LAYOUT
   =========================== */

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

.site-content {
    min-height: 60vh;
}

/* ===========================
   3. HEADER
   =========================== */

.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-branding img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: var(--color-dark);
}

.site-title a:hover {
    color: var(--color-primary);
}

.site-description {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin: 0;
}

/* Navigation */
.main-navigation {
    flex: 1;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-dark);
    font-weight: 500;
    padding: 0.5rem 0;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
}

.btn-phone i {
    font-size: 1.2rem;
}

.btn-devis {
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-devis:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* ===========================
   4. HERO SECTION
   =========================== */

.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%),
                url('https://images.pexels.com/photos/1181244/pexels-photo-1181244.jpeg?auto=compress&cs=tinysrgb&w=1920');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    margin-bottom: 4rem;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-image {
    margin-top: 2rem;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ===========================
   5. BUTTONS
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: #f3f4f6;
}

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

.btn-success:hover {
    background: #059669;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    color: #1d4ed8;
}

/* ===========================
   6. SECTIONS
   =========================== */

.services-section,
.realisations-section,
.testimonials-section,
.contact-section,
.devis-promo-section,
.rdv-section {
    padding: 4rem 0;
}

.rdv-section {
    padding: 3rem 0;
}

.rdv-section .section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.rdv-section .section-description {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-gray);
}

/* ===========================
   7. SERVICES
   =========================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.service-description {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.service-features li i {
    color: var(--color-secondary);
    margin-top: 0.25rem;
}

/* ===========================
   8. DEVIS PROMO
   =========================== */

.devis-promo-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.devis-promo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.devis-promo-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===========================
   9. RÉALISATIONS
   =========================== */

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.realisation-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.realisation-image {
    height: 250px;
    overflow: hidden;
}

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

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

.realisation-content {
    padding: 1.5rem;
}

.realisation-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.realisation-excerpt {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.realisation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #e0e7ff;
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===========================
   10. TÉMOIGNAGES
   =========================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar-initial {
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-author h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.author-info {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-content {
    color: #374151;
    line-height: 1.7;
}

/* ===========================
   11. CONTACT
   =========================== */

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.contact-item a {
    color: var(--color-primary);
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-hours {
    background: var(--color-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-hours h3 {
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

.form-response {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.form-response.success {
    background: #d1fae5;
    color: #065f46;
}

.form-response.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ===========================
   12. FOOTER HORIZONTAL
   =========================== */

.site-footer {
    background: var(--color-dark);
    color: white;
}

.footer-main {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-horizontal {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-brand .footer-site-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-brand .footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-brand .footer-logo img {
    max-height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-nav h4,
.footer-contact-info h4,
.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: white;
}

.contact-list-horizontal {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list-horizontal li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.contact-list-horizontal i {
    width: 20px;
    color: var(--color-primary);
}

.contact-list-horizontal a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-list-horizontal a:hover {
    color: white;
}

.footer-social .social-icons {
    display: flex;
    gap: 0.75rem;
}

.footer-social .social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-social .social-icons a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.footer-bottom-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-horizontal .copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-legal-nav a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-legal-nav a:hover {
    color: white;
}

.footer-legal-nav .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

/* ===========================
   13. RESPONSIVE
   =========================== */

@media (max-width: 992px) {
    .footer-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--color-border);
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid,
    .realisations-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer responsive */
    .footer-horizontal {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand .footer-logo img {
        margin: 0 auto;
    }
    
    .contact-list-horizontal li {
        justify-content: center;
    }
    
    .footer-social .social-icons {
        justify-content: center;
    }
    
    .footer-bottom-horizontal {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal-nav {
        justify-content: center;
    }
}

/* ===========================
   14. UTILITIES
   =========================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--color-primary);
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===========================
   15. PAGES LÉGALES
   =========================== */

.legal-page {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 200px);
}

.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-intro {
    text-align: center;
    color: var(--color-gray);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
}

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

.legal-section:last-of-type {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}

.legal-section h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

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

.legal-section li strong {
    color: var(--color-dark);
}

/* Table des durées de conservation */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.legal-table thead {
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    color: white;
}

.legal-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.legal-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    background: white;
}

.legal-table tbody tr:hover td {
    background: #f8fafc;
}

/* Droits RGPD */
.rgpd-right {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-primary);
}

.rgpd-right h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.rgpd-right h3 i {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.rgpd-note {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
    border-left: 3px solid #f59e0b;
}

.rgpd-note i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

/* Méthodes de contact */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-method {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-method i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.contact-method h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.contact-method a {
    color: var(--color-primary);
    font-weight: 500;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Info CNIL */
.cnil-info {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

/* Date de mise à jour */
.legal-date {
    text-align: center;
    color: var(--color-gray);
    font-size: 0.875rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* Responsive pages légales */
@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .legal-content h1 {
        font-size: 1.75rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .legal-table {
        font-size: 0.875rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.75rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
}
