/* ============================================================
   APRCENCIEL – CSS responsive (remplacement complet)
   Breakpoints : mobile < 768px | tablet 768–1199px | desktop ≥ 1200px
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Fonts ────────────────────────────────────────────────── */
.bbh-hegarty-regular  { font-family: "BBH Hegarty", sans-serif; font-weight: 400; }
.alfa-slab-one-regular{ font-family: "Alfa Slab One", serif;    font-weight: 400; }
.akshar-regular       { font-family: "Akshar", sans-serif;      font-optical-sizing: auto; font-weight: 400; }

/* ── Utils ────────────────────────────────────────────────── */
.text-shadow-v1 { text-shadow: 0px 1px 4px rgba(0,0,0,.25); }

/* ── Body ─────────────────────────────────────────────────── */
body {
    background-color: #AEA094;
    width: 100%;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
    height: 80px;
    background-color: #CABAAC;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.logo h1 {
    line-height: 1.3;
    font-weight: bold;
    font-size: clamp(28px, 5vw, 64px); /* s'adapte à la largeur */
}
.logo .sarl { font-size: clamp(10px, 1.5vw, 20px); }
.title-color { color: #7F7268; }

/* ══════════════════════════════════════════════════════════
   SECTIONS – base commune
══════════════════════════════════════════════════════════ */
section {
    padding: 60px 20px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
}

/* ══════════════════════════════════════════════════════════
   ACCUEIL
══════════════════════════════════════════════════════════ */
.accueil-container {
    padding: 0 20px;
    text-align: left;
}
#titre-accueil {font-size: clamp(32px, 5vw, 64px);}
.accueil-container h1 { font-size: clamp(32px, 5vw, 64px); }
.accueil-container p  { font-size: clamp(18px, 2.5vw, 32px); font-weight: bold; margin-top: 20px; }
.sub-title            { font-size: clamp(14px, 2vw, 24px); font-weight: bold; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
#hero {
    padding: 0;
    margin-top: 10px;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;

}
#hero img {
    width: 100%;
    height: clamp(220px, 45vw, 666px);
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #000;
    display: block;
}
.compare {
    position: relative;
    width: 100%;
    height: clamp(220px, 45vw, 666px);
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #000;
    cursor: col-resize;
}

.compare .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare .before {
    z-index: 1;
}

.compare .after {
    z-index: 2;
    clip-path: inset(0 50% 0 0); /* démarre au milieu */
}

.compare .slider {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: col-resize;
    margin: 0;
}
.compare-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.compare-line {
    width: 3px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

.compare-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 50px;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    letter-spacing: 4px;
    white-space: nowrap;
}
/* ══════════════════════════════════════════════════════════
   INTRO
══════════════════════════════════════════════════════════ */
.intro-conainer h2 { font-size: clamp(24px, 4vw, 48px); }
.intro-conainer p  {
    font-size: clamp(16px, 2vw, 32px);
    font-weight: bold;
    margin-top: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* ══════════════════════════════════════════════════════════
   SERVICES – "Voyez la différence"
   Desktop  : layout Z avec position absolute
   Tablet   : colonnes côte à côte
   Mobile   : colonne simple
══════════════════════════════════════════════════════════ */
#services {
    padding: 80px 20px;
    overflow: hidden;
}
#services > h2 {
    color: #FFFFFF !important;
    font-weight: 200 !important;
    text-align: left;
    margin-left: clamp(10px, 5vw, 70px);
    margin-bottom: 60px;
    font-size: clamp(24px, 4vw, 48px);
}

/* --- Blocs Z (desktop) ---------------------------------- */
.z_image_1,
.z_image_2,
.z_image_3 {
    position: relative;
    max-width: 1320px;
    min-height: 730px;
    margin: 0 auto 80px auto;
}

.z_image_1_av ,
.z_image_2_av ,
.z_image_3_av ,
.z_image_1_ap,
.z_image_2_ap,
.z_image_3_ap {
    width: 60%;
    max-width: 823px;
    height: clamp(220px, 35vw, 550px);
    position: absolute;
    object-fit: cover;
    border-radius: 12px;
}


.z_image_1_arrow ,
.z_image_2_arrow ,
.z_image_3_arrow  {
    width: 60%;
    max-width: 823px;
    /* height: clamp(240px, 35vw, 530px); */
    position: absolute;
    object-fit: cover;
}


#services p {
    width: clamp(200px, 30vw, 430px);
    line-height: 1.6;
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: bold;
    color: #fff;
}
/* Bloc 1 */
.z_image_1_av   { left: 0;  top: 0;   z-index: 1; }
.z_image_1_ap   { right: 0; top: 200px; z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.z_image_1_arrow{ position: absolute; top: 50px; right: -300px; }
.z_image_1 h3,
.z_image_1 p    { position: absolute; left: 20px; top: 650px; text-align: left; }

/* Bloc 2 */
.z_image_2_av   { right: 0; top: 0;   z-index: 1; }
.z_image_2_ap   { left: 0;  top: 200px; z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.z_image_2_arrow{ position: absolute; left: 270px; top: 50px; z-index: 5; }
.z_image_2 h3   { position: absolute; left: 850px; top: 510px; text-align: left; }
.z_image_2 p    { position: absolute; left: 850px; top: 610px; text-align: left; }

/* Bloc 3 */
.z_image_3_av   { left: 0;  top: 0;   z-index: 1; }
.z_image_3_ap   { right: 0; top: 200px; z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.z_image_3_arrow{ position: absolute; left: 830px; top: 50px; z-index: 4; }
.z_image_3 h2,
.z_image_3 p    { position: absolute; left: 20px; text-align: left; }
.z_image_3 h3   { top: 580px;position: absolute; left: 20px; text-align: left;}
.z_image_3 p    { position: absolute; top: 610px; }

/* Textes communs */
#services h3 {
    position: absolute;
    color: #7F7268;
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: bold;
    width: clamp(200px, 35vw, 500px);
    top: 560px;
    z-index: 800;
}


/* .left-title { text-align: left; margin-left: 20px;} */
/* .right-title { text-align: left; margin-left: 850px;} */



/* ══════════════════════════════════════════════════════════
   ÉCHANTILLONS
══════════════════════════════════════════════════════════ */
#echantillons { max-width: 1400px; }
#echantillons h2 { font-size: clamp(22px, 4vw, 48px); margin-bottom: 40px; }

#echantillons .container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
}

#echantillons img {
    width: 100%;
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(127,114,104,.7));
}

#echantillons p {
    font-size: clamp(16px, 2vw, 32px);
    max-width: 960px;
    margin: 40px auto 0;
}

/* ══════════════════════════════════════════════════════════
   AVIS CLIENTS
══════════════════════════════════════════════════════════ */
#avis_clients {
    padding: 60px 20px;
    max-width: 60%;
}
#avis_clients h2 {
    font-size: clamp(22px, 4vw, 48px);
    text-align: left;
    margin-left: clamp(10px, 5vw, 260px);
    margin-bottom: 30px;
}
.testimonials-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.testimonial-card {
    background: #fff;
    width: clamp(220px, 28vw, 280px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-card p { color: #000; font-size: 14px; line-height: 1.4; margin-bottom: 20px; }
.author { color: #000; display: flex; align-items: center; gap: 10px; margin-top: auto; }
.author img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; }
.author span { font-size: 13px; font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   DEVIS
══════════════════════════════════════════════════════════ */
#devis { display: flex; flex-direction: column; align-items: center; gap: 20px; }
#devis h2 { font-size: clamp(22px, 3vw, 40px); }
#devis p  { font-size: clamp(14px, 2vw, 24px); font-weight: bold; }

#contactButton {
    width: clamp(130px, 15vw, 168px);
    height: 60px;
    background-color: #7F7268;
    color: #fff;
    font-size: clamp(16px, 1.5vw, 24px);
    font-weight: bold;
    border: none;
    border-radius: 12px;
    margin: 40px auto;
    cursor: pointer;
    transition: background .2s;
}
#contactButton:hover { background-color: #6a5f56; }

#devis img { width: clamp(100px, 12vw, 173px); height: auto; }

#floatingDevisButton {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
    width: 140px;
    height: 50px;
    background-color: #7F7268;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}

#floatingDevisButton:hover {
    background-color: #6a5f56;
    transform: translateY(-2px);
}

#floatingDevisButton.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
}
.modal-content {
    width: min(1250px, 95vw);
    max-height: 90vh;
    background: #CABAAC;
    border-radius: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: row;
}
.modal-left {
    flex: 1;
    padding: clamp(20px, 4vw, 60px) clamp(20px, 6vw, 120px);
    display: flex;
    flex-direction: column;
}
.modal-left h2 { font-size: clamp(22px, 3vw, 40px); }
.modal-left h3 { font-size: clamp(14px, 1.5vw, 20px); font-weight: bold; }
hr { border: none; height: 3px; background: #E8DACD; margin: 20px 0 30px; }
.modal-right { width: 40%; flex-shrink: 0; }
.modal-right img { width: 100%; height: 100%; object-fit: cover; }

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.modal-content input,
.modal-content textarea {
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
}
.modal-content textarea { min-height: 140px; resize: none; }

#devisButton {
    width: clamp(120px, 15vw, 168px);
    height: 40px;
    background-color: #7F7268;
    color: #fff;
    font-size: clamp(16px, 1.5vw, 24px);
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s;
    align-self: flex-start;
}
#devisButton:hover { background-color: #6a5f56; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer {
    background-color: #fff;
    padding: 20px;
    color: #000;
}
footer .container { width: min(70%, 900px); margin: 0 auto; }
.footer h3 { font-size: 16px; font-weight: bold; }
.footer p  { font-size: 16px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE – TABLET (768px – 1199px)
══════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    #services > h2 { margin-left: 0; text-align: center; }
    /* Services : passe en colonne simple, plus de Z layout */
    .z_image_1,
    .z_image_2,
    .z_image_3 {
        position: static;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 60px;
    }

    .z_image_1 img,
    .z_image_2 img,
    .z_image_3 img {
        position: static;
        width: 100%;
        max-width: 600px;
        height: auto;
    }



    .z_image_1 h3, .z_image_1 p,
    .z_image_2 h3, .z_image_2 p,
    .z_image_3 h3, .z_image_3 p {
        position: static;
        width: 100%;
        max-width: 600px;
        text-align: left;
        top: auto !important;
        left: auto !important;
    }
    .z_image_1 p {
        margin-top: 80px;
        font-size: 20px !important;
    }
    .z_image_2 p,
    .z_image_3 p {
        margin-top: 50px;
        font-size: 20px !important;
    }
    /* Échantillons : 4 colonnes */
    #echantillons .container {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Modal : cache l'image déco */
    .modal { padding: 0; align-items: flex-center; }
    .modal-right { display: none; }
    .modal-content { flex-direction: column; }
       /* ── Flèches : cachées sous 1100px ─────────────────────── */
    .z_image_1_arrow,
    .z_image_2_arrow,
    .z_image_3_arrow { display: none; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE – MOBILE (< 768px)
══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Navbar */
    .navbar { height: 70px; }

    /* Sections */
    section { padding: 40px 16px; }

    /* Hero */
    #hero img { border-radius: 6px; }

    /* Services */
    #services > h1 { margin-left: 0; text-align: center; }
    #services > h2 { margin-left: 0; text-align: center; }
    #services > h3 { margin-left: 0; text-align: center; }
    .z_image_1 p {

        font-size: 16px !important;
    }
    .z_image_2 p,
    .z_image_3 p {

        font-size: 16px !important;
    }

    /* Échantillons : 2 colonnes */
    #echantillons .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Avis clients : une carte par ligne */
    .testimonial-card { width: 100%; max-width: 340px; }

    /* Modal plein écran */
    .modal { padding: 0; align-items: flex-center; }
    .modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
    }
    .modal-left {
        padding: 24px 20px;
    }
    .modal-right { display: none; }

    /* Footer */
    footer .container { width: 90%; }

        /* ── Flèches : cachées sous 1100px ─────────────────────── */
    .z_image_1_arrow,
    .z_image_2_arrow,
    .z_image_3_arrow { display: none; }
}
