/* --- VARIABLES & RESET --- */
:root {
    --primary: #0d47a1;       /* Bleu Lapis-lazuli */
    --secondary: #cbf0ff;     /* Bleu très clair */
    --accent: #0f1b2c;        /* Texte sombre / Noir mat */
    --bg-color: #f4f7fa;      /* Fond général très léger */
    --white: #ffffff;
    --text-color: #0f1b2c;
    --font-main: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(13, 71, 161, 0.08);
}

html { scroll-behavior: smooth; }

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

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

/* --- TYPOGRAPHY --- */
h1, h2, h3 { color: var(--primary); font-weight: 800; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
p { margin-bottom: 1.5rem; color: #444; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- BUTTONS --- */
.btn {
    display: inline-block; padding: 14px 30px; background-color: var(--primary); color: var(--white);
    text-decoration: none; border-radius: 50px; font-weight: 700; transition: all 0.3s ease; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}
.btn:hover { background-color: #08306b; transform: translateY(-2px); }
.btn-outline {
    display: inline-block; padding: 12px 30px; background-color: transparent; border: 2px solid var(--primary);
    color: var(--primary); text-decoration: none; border-radius: 50px; font-weight: 700; transition: all 0.3s ease;
}
.btn-outline:hover { background-color: var(--primary); color: var(--white); }
.btn-full { width: 100%; font-size: 1.1rem; padding: 18px; }

/* --- HEADER --- */
header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
}

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
.nav-links a:hover { color: var(--primary); }

.header-btn { padding: 10px 25px; font-size: 0.9rem; }

/* Style par défaut du bouton flottant (Caché sur PC) */
.floating-btn-mobile { display: none; }

/* --- HERO --- */
.hero {
    height: 85vh; min-height: 600px;
    background: linear-gradient(rgba(13, 71, 161, 0.7), rgba(15, 27, 44, 0.8)), url('1.png');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.hero h1 { color: var(--white); font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero p { color: #f0f0f0; font-size: 1.25rem; max-width: 700px; margin: 0 auto 2.5rem; }

/* --- SECTIONS --- */
section { padding: 100px 0; }
.about { background-color: var(--white); }
.about-content { display: flex; align-items: center; gap: 60px; }
.about-img { flex: 1; }
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text { flex: 1; }

/* --- SERVICES (Cards) --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.service-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-10px); }
.service-card img { width: 100%; height: 300px; object-fit: cover; }
.service-info { padding: 35px; }
.service-list { list-style: none; margin-top: 15px; }
.service-list li { margin-bottom: 8px; padding-left: 20px; position: relative; color: #555; }
.service-list li::before { content: '✓'; color: var(--primary); position: absolute; left: 0; font-weight: bold; }

/* --- PORTFOLIO (Infinite Scroll) --- */
.portfolio { background-color: var(--bg-color); overflow: hidden; padding-bottom: 50px; }
.slider { height: 400px; margin: auto; position: relative; width: 100%; display: grid; place-items: center; overflow: hidden; }
.slide-track { display: flex; width: calc(450px * 8 + 30px * 8); animation: scroll 40s linear infinite; }
.slide { height: 350px; width: 450px; margin-right: 30px; padding: 10px; }
.slide img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-450px * 4 - 30px * 4)); } }

/* --- SECTION RASSURANCE & AVIS (NOUVEAU) --- */
.reassurance-section {
    background: linear-gradient(135deg, var(--accent) 0%, #1a2f4b 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden; /* Important pour le carrousel */
}
.reassurance-intro { max-width: 800px; margin: 0 auto 50px; }
.reassurance-intro h2 { color: var(--secondary); }
.reassurance-intro p { color: #ccc; font-size: 1.1rem; }
.big-text { font-size: 1.5rem; color: var(--white) !important; margin-bottom: 2rem; }

/* Carrousel Avis */
.reviews-wrapper { overflow: hidden; width: 100%; padding: 20px 0; }
.reviews-track {
    display: flex; gap: 30px; 
    animation: scroll-reviews 35s linear infinite;
    width: max-content; /* S'adapte au contenu */
}
.review-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: var(--radius);
    width: 350px;
    flex-shrink: 0;
    text-align: left;
}
.review-card .stars { color: #FFD700; margin-bottom: 15px; font-size: 1.2rem; }
.review-card .review-text { color: #eee; font-style: italic; font-size: 1rem; margin-bottom: 20px; }
.review-card .review-author { color: var(--secondary); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }

@keyframes scroll-reviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Défilement de la moitié si doublé */
}

/* --- PRICING --- */
.pricing { background: url('5.png') center/cover no-repeat; position: relative; }
.pricing::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.95); }
.pricing .container { position: relative; z-index: 1; }
.table-responsive { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; min-width: 600px;}
.price-table th, .price-table td { padding: 20px 25px; text-align: left; border-bottom: 1px solid #eee; }
.price-table th { background-color: var(--primary); color: var(--white); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }

/* --- CONTACT --- */
.contact-form-container {
    max-width: 700px; margin: 0 auto; background: var(--white); padding: 50px;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 15px; border: 2px solid #eaeff5; border-radius: 8px;
    background-color: #fcfcfc; font-size: 1rem; transition: border 0.3s; font-family: inherit;
}
.form-group textarea { height: 150px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; }

/* --- FOOTER --- */
footer { background-color: var(--accent); color: var(--white); padding: 60px 0; text-align: center; }
footer p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 10px; }
.footer-logo { display: block; margin-bottom: 20px; color: var(--white); }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
    
    /* 1) On cache uniquement le menu */
.nav-links { 
    display: none !important; 
}
.btn.header-btn{
    display:none !important;
  }

    /* --- AJUSTEMENTS GLOBAUX MOBILE --- */
    .about-content { flex-direction: column; }
    .hero h1 { font-size: 2.5rem; }
    section { padding: 60px 0; }
    
    /* Tableaux & Carrousels responsive */
    .price-table, .price-table thead, .price-table tbody, .price-table th, .price-table td, .price-table tr { display: block; }
    .price-table thead tr { position: absolute; top: -9999px; left: -9999px; }
    .price-table tr { margin-bottom: 20px; border: 1px solid #eee; background: #fff; padding: 15px; border-radius: 12px; }
    .price-table td { border: none; border-bottom: 1px solid #f0f0f0; position: relative; padding-left: 50%; text-align: right; padding-top: 10px; padding-bottom: 10px; }
    .price-table td::before { content: attr(data-label); position: absolute; left: 0; width: 45%; font-weight: 800; text-align: left; color: var(--primary); }
    
    .slide { width: 300px; height: 250px; }
    .slide-track { width: calc(300px * 8 + 30px * 8); }
    @keyframes scroll { 100% { transform: translateX(calc(-300px * 4 - 30px * 4)); } }
    .review-card { width: 280px; padding: 20px; }
}