/* --- Variables & Reset --- */
:root {
    --primary-dark: rgb(35, 50, 62);
    --logo-red: rgb(100, 44, 62);
    --primary-accent: #00a8e8;
    --text-dark: #0f0f0f;
    --text-light: #f4f4f4;
    --font-main: 'Roboto', sans-serif;
    --font-title: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; font-size: 103%; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--logo-red) 100%);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

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

/* --- Buttons --- */
.btn-phone {
    background: #fff; color: var(--text-dark); padding: 10px 20px; border-radius: 30px;
    font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.1); font-size: 1.1rem;
}
.btn-white {
    display: inline-block; background: #fff; color: var(--text-dark); padding: 12px 30px;
    border-radius: 30px; font-weight: bold; margin-top: 20px;
}
.btn-white:hover { color: var(--primary-accent); }
.btn-white-rounded {
    display: inline-block; background: #fff; color: var(--primary-dark); padding: 12px 30px;
    border-radius: 30px; font-weight: bold; margin-top: 20px;
}
.btn-white-rounded:hover { background: var(--primary-accent); color: #fff; }

/* --- Header --- */
header {
    background: #ffffff; padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.header-logo-img { max-height: 50px; width: auto; display: block; }
.logo a { border: none; outline: none; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-size: 1.1rem; color: var(--text-dark); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-accent); }
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--text-dark); margin: 5px; transition: 0.3s; }
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* --- Hero Section --- */
.hero {
    position: relative; height: 100vh; min-height: 700px; width: 100%;
    /* Image locale de fond */
    background: url('hero-bg.jpg') center/cover no-repeat;
    display: flex; align-items: center; justify-content: flex-end; padding-top: 80px;
}
.hero-content { width: 50%; padding-right: 5%; position: relative; z-index: 2; }
.hero-text-box {
    background: rgba(60, 60, 60, 0.85); color: var(--text-light); padding: 40px; position: relative;
}
.hero-text-box h1 { font-size: 2rem; margin-bottom: 20px; font-weight: 700; line-height: 1.2; }
.hero-text-box p { font-size: 0.95rem; margin-bottom: 15px; font-weight: 300; }
.hero-text-box strong { font-weight: 700; color: var(--primary-accent); }
.arrow-down {
    display: block; color: var(--text-light); cursor: pointer; text-align: center;
    margin-top: 20px; font-size: 1.5rem; animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}
.wave-top { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 3; }
.wave-top svg { width: 100%; height: 100px; fill: #ffffff; }

/* --- Services Circles --- */
.services-circles {
    padding: 80px 0 150px; background: #ffffff; color: var(--text-dark); position: relative; z-index: 5; text-align: center; width: 100%; scroll-margin-top: 100px;
}
.circle-grid { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; }
.circle-item { width: 300px; text-align: center; }
.circle-img {
    width: 250px; height: 250px; border-radius: 50%;
    background-size: cover; background-position: center; margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); border: 5px solid #ffffff;
}
.circle-item h3 { text-transform: uppercase; font-size: 1rem; color: var(--text-dark); letter-spacing: 1px; }
.wave-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 2; }
/* Suppression de la couleur par défaut pour qu'elle s'adapte à chaque bloc */
.wave-bottom svg { width: 100%; height: 100px; }

/* --- Dark Offer & Light Service --- */
.dark-offer { background-color: var(--primary-dark); color: var(--text-light); padding: 80px 0 120px; position: relative; width: 100%; }

/* CLASSE DE BASE POUR LES SECTIONS CLAIRES */
.light-service { color: var(--text-dark); position: relative; overflow: hidden; width: 100%; }

/* CLASSE SPÉCIFIQUE : EXTÉRIEUR */
/* AJOUT DU PADDING TOP ET BOTTOM POUR LA VAGUE */
.light-service.exterieur { background: #c2c9d0; padding: 100px 0 150px; }

/* CLASSE SPÉCIFIQUE : ENGAGEMENTS */
.light-service.engagements { background: #ffffff; padding: 100px 0 150px; }

.offer-grid { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.offer-text, .service-text { flex: 1; max-width: 60%; z-index: 2; }
.service-text { flex: 1; }

.offer-text h2, .service-text h2 { font-size: 2rem; margin-bottom: 25px; line-height: 1.2; }
.offer-text p { margin-bottom: 20px; font-size: 0.95rem; color: #ccc; }
.service-text p { margin-bottom: 20px; color: var(--text-dark); font-size: 0.95rem; }
.offer-text strong { color: var(--text-light); }
.offer-text ul li { margin-bottom: 8px; color: var(--text-light); }
.service-text ul li { margin-bottom: 8px; color: var(--text-dark); }

.offer-image-box { flex: 0 0 350px; width: 350px; height: 350px; position: relative; z-index: 2; }
.square-img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: block; }
.wave-footer { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 3; }
.wave-footer svg { fill: var(--primary-dark); }

/* --- Footer --- */
footer { color: var(--text-light); width: 100%; }
.footer-top { background-color: var(--primary-dark); padding: 0 20px 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-top: -1px; position: relative; z-index: 5; }
.phone-icon { font-size: 2rem; margin-bottom: 25px; display: block; transform: rotate(90deg); color: var(--text-light); }
.footer-top h3 { font-size: 1.6rem; margin-bottom: 30px; font-weight: 400; max-width: 800px; line-height: 1.4; }
.footer-bottom { background-color: #ffffff; color: var(--text-dark); padding: 60px 0 20px; position: relative; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; text-align: center; }
.footer-col { flex: 1; min-width: 250px; margin-bottom: 30px; }
.footer-col h4 { font-size: 0.9rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-dark); }
.footer-col p { color: var(--text-dark); }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-logo-img { max-height: 70px; width: auto; display: block; margin: 0; }

.social-icon { 
    font-size: 3.5rem; 
    color: var(--primary-dark); 
    display: flex; 
    align-items: center; 
    transition: all 0.3s ease; 
}
.social-icon:hover { 
    color: var(--logo-red); 
    transform: scale(1.15); 
}

.big-phone { font-size: 1.5rem; font-weight: bold; color: var(--primary-accent); }
.copyright { text-align: center; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 20px; margin-top: 20px; font-size: 0.8rem; color: #666; }
.scroll-top { position: fixed; bottom: 50px; right: 30px; background: var(--primary-dark); color: var(--text-light); width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.scroll-top.show { opacity: 1; visibility: visible; }

/* --- RESPONSIVE --- */
@media screen and (min-width: 1921px) {
    html { font-size: 120%; }
    .container { max-width: 1600px; }
    .hero { min-height: 900px; }
    .hero-text-box { padding: 60px; max-width: 900px; }
    .circle-item { width: 400px; }
    .circle-img { width: 300px; height: 300px; }
    .offer-grid { gap: 100px; }
    .offer-image-box { flex: 0 0 500px; width: 500px; height: 500px; }
    .offer-text p, .service-text p { max-width: 800px; line-height: 1.8; }
    .footer-top h3 { font-size: 2rem; max-width: 1000px; }
    .footer-bottom { padding: 80px 0 40px; }
}
@media screen and (max-width: 1024px) {
    .nav-links { position: absolute; right: 0; top: 80px; background-color: #ffffff; display: flex; flex-direction: column; align-items: center; width: 100%; transform: translateX(100%); transition: transform 0.4s ease-in; padding: 40px 0; box-shadow: 0 10px 15px rgba(0,0,0,0.1); z-index: 900; }
    .nav-links.nav-active { transform: translateX(0%); }
    .nav-links li { margin: 20px 0; opacity: 0; animation: navLinkFade 0.5s ease forwards 0.3s; }
    @keyframes navLinkFade { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
    .burger { display: block; margin-left: 20px; z-index: 1001; }
    .nav-container { position: relative; justify-content: space-between; height: 60px; }
    .header-logo-img { max-height: 40px; margin-top: 5px; }
    .btn-phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 0.9rem; padding: 8px 15px; white-space: nowrap; margin: 0; z-index: 10; }
    .hero-content { width: 80%; padding-right: 0; margin: 0 auto; }
    .hero-text-box { text-align: center; background: rgba(60, 60, 60, 0.9); }
    .offer-grid { flex-direction: column; gap: 50px; justify-content: center; }
    .offer-text, .service-text { max-width: 100%; width: 100%; text-align: center; padding: 0; }
    .service-text { padding: 20px; }
    .offer-image-box { width: 80%; max-width: 500px; height: auto; aspect-ratio: 1/1; margin: 0 auto; }
    .circle-img { width: 180px; height: 180px; border-width: 3px; }
}
@media screen and (max-width: 768px) {
    html { font-size: 95%; }
    .container { padding: 0 15px; }
    .nav-container { position: relative; justify-content: space-between; height: 60px; }
    .header-logo-img { max-height: 40px; margin-top: 5px; }
    .btn-phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 0.9rem; padding: 8px 15px; white-space: nowrap; margin: 0; z-index: 10; }
    .burger { margin-top: 5px; }
    .hero { min-height: 600px; align-items: center; justify-content: center; padding-top: 80px; padding-bottom: 50px; }
    .hero-content { width: 100%; padding: 0 10px; }
    .hero-text-box h1 { font-size: 1.6rem; }
    .hero-text-box { margin-bottom: 20px; padding-bottom: 30px; background: rgba(60, 60, 60, 0.9); border-radius: 8px; }
    .services-circles { padding: 40px 0 180px; }
    .circle-grid { flex-direction: column; align-items: center; gap: 30px; }
    .circle-item { width: 100%; }
    .circle-img { width: 180px; height: 180px; border-width: 3px; }
    .footer-top { padding: 40px 20px; }
    .footer-top h3 { font-size: 1.3rem; }
    .footer-grid { flex-direction: column; text-align: center; }
    .footer-col { margin-bottom: 40px; width: 100%; }
    .footer-logo { flex-direction: row; margin-bottom: 15px; }
    .big-phone { font-size: 1.8rem; }
    .scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}
@media screen and (max-width: 400px) {
    .btn-phone { display: none; }
    .nav-container { justify-content: space-between; }
}
