/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F5F0EB;
    color: #3D3429;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* ===== COULEURS ===== */
:root {
    --beige: #F5F0EB;
    --dore: #C8A96E;
    --dore-fonce: #B8985A;
    --marron: #2C2416;
    --creme: #FBF8F4;
    --texte: #3D3429;
    --texte-secondaire: #6B5E4F;
    --ombre: rgba(44, 36, 22, 0.08);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--dore);
    color: #fff;
}
.btn-primary:hover {
    background: var(--dore-fonce);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 110, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--marron);
    border: 2px solid var(--dore);
}
.btn-secondary:hover {
    background: var(--dore);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(251, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--ombre);
    padding: 10px 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--marron);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span {
    color: var(--dore);
}
.logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--texte);
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dore);
    transition: width 0.3s;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover {
    color: var(--dore);
}

.btn-phone {
    background: var(--dore);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-phone:hover {
    background: var(--dore-fonce);
    transform: scale(1.05);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    width: 28px;
    height: 2.5px;
    background: var(--marron);
    border-radius: 3px;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--beige);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content .badge {
    display: inline-block;
    background: rgba(200, 169, 110, 0.15);
    color: var(--dore);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--marron);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--texte-secondaire);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image .img-placeholder,
.hero-img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8e0d8 0%, #d5cdc4 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--texte-secondaire);
    box-shadow: 0 20px 60px var(--ombre);
    position: relative;
    overflow: hidden;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    background: #fff;
    padding: 14px 22px;
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--ombre);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}
.floating-badge:nth-child(2) {
    animation-delay: 1.5s;
}

.floating-badge.top-right {
    top: -10px;
    right: -10px;
}
.floating-badge.bottom-left {
    bottom: 20px;
    left: -20px;
}

.floating-badge .stars {
    color: var(--dore);
    font-size: 0.9rem;
}
.floating-badge .number {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--marron);
}
.floating-badge .label {
    font-size: 0.8rem;
    color: var(--texte-secondaire);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===== SECTION TITRE ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--marron);
}
.section-title h2 span {
    color: var(--dore);
}
.section-title p {
    color: var(--texte-secondaire);
    margin-top: 8px;
    font-size: 1.05rem;
}

/* ===== CARROUSEL DE RÉALISATIONS ===== */
.realisations {
    padding: 80px 0;
    background: var(--creme);
}

.carousel-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease-in-out;
}

.card {
    min-width: calc(33.333% - 20px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--ombre);
    transition: all 0.3s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--ombre);
}

.card-image {
    height: 220px;
    background: linear-gradient(135deg, #e8e0d8, #d5cdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--texte-secondaire);
    font-size: 0.9rem;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-image i {
    font-size: 2.5rem;
    color: var(--dore);
    opacity: 0.4;
    margin-right: 10px;
}

.card-body {
    padding: 20px;
}
.card-body .badge-cat {
    display: inline-block;
    background: rgba(200, 169, 110, 0.12);
    color: var(--dore);
    padding: 2px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.card-body h3 {
    margin: 10px 0 6px;
    font-size: 1.1rem;
}
.card-body p {
    color: var(--texte-secondaire);
    font-size: 0.9rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--dore);
    color: var(--marron);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--ombre);
    z-index: 10;
    transition: all 0.3s;
}
.carousel-btn:hover {
    background: var(--dore);
    color: #fff;
}
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d5cdc4;
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active {
    background: var(--dore);
    width: 24px;
    border-radius: 10px;
}

/* ===== COMMENT ÇA MARCHE ===== */
.steps {
    padding: 80px 0;
    background: var(--beige);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--ombre);
    transition: all 0.3s;
    position: relative;
}
.step:hover {
    transform: translateY(-4px);
}

.step .number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dore);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step .icon {
    font-size: 2.4rem;
    color: var(--dore);
    margin: 12px 0 10px;
}
.step h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.step p {
    color: var(--texte-secondaire);
    font-size: 0.9rem;
}

/* ===== FORMULAIRE DEVIS ===== */
.devis {
    padding: 80px 0;
    background: var(--creme);
}

.devis-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 8px 40px var(--ombre);
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--marron);
}
.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e0d8;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.3s;
    background: var(--beige);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dore);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group .hint {
    font-size: 0.8rem;
    color: var(--texte-secondaire);
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: var(--dore);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-submit:hover {
    background: var(--dore-fonce);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 110, 0.35);
}

.alert {
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== À PROPOS ===== */
.about {
    padding: 80px 0;
    background: var(--beige);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8e0d8, #d5cdc4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--texte-secondaire);
    font-size: 0.9rem;
    overflow: hidden;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-image i {
    font-size: 3rem;
    color: var(--dore);
    opacity: 0.4;
    margin-right: 12px;
}

.about-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.about-content p {
    color: var(--texte-secondaire);
    margin-bottom: 12px;
}
.about-content .mention {
    background: rgba(200, 169, 110, 0.1);
    padding: 12px 18px;
    border-radius: 10px;
    border-left: 4px solid var(--dore);
    font-weight: 500;
    color: var(--dore-fonce);
}

/* ===== TÉMOIGNAGES ===== */
.testimonials {
    padding: 80px 0;
    background: var(--creme);
}

.testimonial-card {
    min-width: calc(33.333% - 20px);
    background: #fff;
    padding: 28px 28px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--ombre);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-card .stars {
    color: var(--dore);
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.testimonial-card .comment {
    font-style: italic;
    color: var(--texte);
    margin-bottom: 16px;
}
.testimonial-card .author {
    font-weight: 600;
}
.testimonial-card .city {
    color: var(--texte-secondaire);
    font-size: 0.85rem;
}

/* ===== FAQ ===== */
.faq {
    padding: 80px 0;
    background: var(--beige);
}

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

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--ombre);
}

.faq-question {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.faq-question:hover {
    background: rgba(200, 169, 110, 0.05);
}
.faq-question .icon {
    font-size: 1.2rem;
    color: var(--dore);
    transition: transform 0.3s;
}
.faq-question.active .icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
    color: var(--texte-secondaire);
}
.faq-answer.open {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--marron);
    color: #d5cdc4;
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 1.1rem;
}
.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer a {
    color: #d5cdc4;
    transition: color 0.3s;
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.footer a:hover {
    color: var(--dore);
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    transition: all 0.3s;
    font-size: 1.2rem;
    margin-bottom: 0;
}
.footer-social a:hover {
    background: var(--dore);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
/* ===== SECTION AVANT / APRÈS ===== */
.before-after-section {
    padding: 80px 0;
    background: var(--beige);
}

.ba-container {
    position: relative;
    max-width: 800px;
    height: 450px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--ombre);
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.ba-before {
    border-right: 3px solid var(--dore);
    z-index: 2;
}

.ba-after {
    z-index: 1;
}

.ba-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
    margin: 0;
}

.ba-badge {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(44, 36, 22, 0.75);
    color: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 4;
    backdrop-filter: blur(5px);
    pointer-events: none;
}
.ba-badge-before { left: 20px; }
.ba-badge-after { right: 20px; }

/* Poignée de déplacement */
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.ba-handle::before {
    content: '⇔';
    font-size: 1.3rem;
    color: var(--dore);
    font-weight: 700;
}

/* Boutons de navigation */
.ba-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--dore);
    color: var(--marron);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-nav-btn:hover {
    background: rgba(200, 169, 110, 0.15);
}

.ba-nav-btn.active {
    background: var(--dore);
    color: #fff;
    border-color: var(--dore);
}

/* Responsive */
@media (max-width: 768px) {
    .ba-container {
        height: 280px;
    }
    .ba-handle {
        width: 40px;
        height: 40px;
    }
}
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .card, .testimonial-card { min-width: calc(50% - 15px); }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(251, 248, 244, 0.98);
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 10px 40px var(--ombre);
        position: absolute;
        top: 70px;
        right: 20px;
        min-width: 220px;
        gap: 16px;
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }

    .card, .testimonial-card { min-width: 100%; }
    .steps-grid { grid-template-columns: 1fr; }
    .devis-form { padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .carousel-btn.prev { left: -10px; }
    .carousel-btn.next { right: -10px; }
    .footer-grid { grid-template-columns: 1fr; }
}