/* Import de polices */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS */
:root {
    --blue-primary: #1E52AD; /* Bleu principal */
    --blue-light: #EBF2FF;
    --blue-dark: #0A3A8F;
    --blue-hover: #194990;
    --blue-50: #F0F5FF;
    --blue-100: #D6E4FF;
    --blue-600: #1E52AD;
    --blue-700: #0A3A8F;
    
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --font-playfair: 'Playfair Display', serif;
    --font-roboto: 'Roboto', sans-serif;
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-roboto);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-playfair);
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden {
    display: none !important;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo {
    font-family: var(--font-playfair);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blue-primary);
}

.header-contact {
    display: none;
}

@media (min-width: 768px) {
    .header-contact {
        display: flex;
        gap: 1.5rem;
    }
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue-primary);
}

.contact-link:hover {
    color: var(--blue-hover);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blue-primary);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: block;
    }
    
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
}

.nav-menu a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:not(.btn):hover,
.nav-menu a.active:not(.btn) {
    color: var(--blue-primary);
}

.nav-menu a:not(.btn):after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--blue-primary);
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn):hover:after,
.nav-menu a.active:not(.btn):after {
    width: 100%;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--gray-200);
}

.mobile-menu.open {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-nav-menu li:not(:last-child) {
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-menu a {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
}

.mobile-nav-menu a:hover {
    color: var(--blue-primary);
}

.mobile-nav-menu .btn {
    margin-top: 0.5rem;
    text-align: center;
}

.mobile-contact {
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--blue-primary);
    color: var(--white);
    border-radius: 15px;
}

.btn-primary:hover {
    background-color: var(--blue-hover);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--blue-primary);
}

.btn-white:hover {
    background-color: var(--blue-50);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-white-outline {
    background-color: #00132d;
    color: var(--blue-primary);
    border: 1px solid var(--blue-primary);
}

.btn-white-outline:hover {
    background-color: var(--blue-50);
}

.btn-block {
    display: block;
    width: 100%;
}

@media (hover: none) {
    .btn:active {
        transform: scale(0.95);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--blue-primary), var(--blue-dark));
    color: var(--white);
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.hero p {
    color: var(--blue-100);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
}

/* Page Hero */
.page-hero {
    background: linear-gradient(to right, var(--blue-primary), var(--blue-dark));
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--blue-100);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
}

.divider {
    width: 5rem;
    height: 0.25rem;
    background-color: var(--blue-primary);
    margin: 1rem auto;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-card h3 {
    margin: 1.5rem 1.5rem 0.5rem;
    color: var(--blue-primary);
}

.service-card p {
    padding: 0 1.5rem;
    color: var(--gray-600);
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--blue-primary);
    font-weight: 500;
    margin: 0 1.5rem 1.5rem;
}

.service-link:hover {
    color: var(--blue-hover);
}

.service-link svg {
    transition: transform 0.3s ease;
}

.service-link:hover svg {
    transform: translateX(3px);
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: var(--gray-50);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border-top: 4px solid var(--blue-primary);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-badge {
    display: inline-block;
    background-color: var(--blue-50);
    color: var(--blue-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid var(--blue-100);
}

.testimonial-text {
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: var(--blue-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
}

.testimonial-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.testimonials-more {
    text-align: center;
    margin-top: 2.5rem;
}

.testimonials-more-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--blue-primary);
    font-weight: 500;
    cursor: pointer;
}

.testimonials-more-btn:hover {
    color: var(--blue-hover);
}

.testimonials-more-btn svg {
    transition: transform 0.3s ease;
}

.testimonials-more-btn:hover svg {
    transform: translateX(3px);
}

@media (min-width: 768px) {
    .testimonials-more-btn {
        display: inline-flex;
    }
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background-color: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 82, 173, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

.success-message {
    background-color: #ECFDF5;
    color: #065F46;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid #D1FAE5;
}

/* Contact Info */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--blue-50);
    color: var(--blue-primary);
    border-radius: 9999px;
    flex-shrink: 0;
}

.info-content h4 {
    margin-bottom: 0.25rem;
}

.info-content a {
    color: var(--blue-primary);
}

.info-content a:hover {
    text-decoration: underline;
}

/* Devis Section */
.devis-section {
    padding: 4rem 0;
    background-color: var(--gray-50);
}

.devis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .devis-grid {
        grid-template-columns: 3fr 2fr;
    }
}

/* Devis Form */
.devis-form .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .devis-form .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.devis-form .form-group {
    display: flex;
    flex-direction: column;
}

.devis-form .full-width {
    grid-column: 1 / -1;
}

.devis-form label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.devis-form input,
.devis-form textarea,
.devis-form select {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.devis-form input:focus,
.devis-form textarea:focus,
.devis-form select:focus {
    border-color: var(--blue-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 82, 173, 0.1);
}

.devis-form textarea {
    resize: vertical;
}

.devis-form .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.devis-form .form-checkbox input {
    width: auto;
    margin-top: 0.25rem;
}

.devis-form .form-note {
    margin-top: 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--blue-primary);
    color: var(--white);
    border-radius: 9999px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--blue-primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }
}

.footer h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-info {
    margin-top: 1.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.macconerie {
    color: #1E52AD;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Touch device enhancements */
@media (hover: none) {
    .btn:active {
        transform: scale(0.95);
    }
}