/* ===================================================================
   Page d'accueil — mise en page / typographie / animations modernisées.
   Les COULEURS d'origine de chaque élément sont conservées.
   Tout est porté sous #accueil pour ne pas impacter les autres pages.
   =================================================================== */

/* ---------- Caroussel (Flickity) ---------- */

.flickity-enabled {
    position: relative;
}

.flickity-enabled:focus {
    outline: none;
}

.flickity-viewport {
    overflow: hidden;
    position: relative;
    height: 100%;
}

.flickity-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.flickity-enabled.is-draggable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.flickity-enabled.is-draggable .flickity-viewport {
    cursor: move;
    cursor: -webkit-grab;
    cursor: grab;
}

.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

.flickity-prev-next-button {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--blue-theme);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.flickity-prev-next-button:hover {
    background: var(--orange-theme);
}

.flickity-prev-next-button:active {
    filter: alpha(opacity=60);
    opacity: 0.6;
}

.flickity-prev-next-button.previous {
    left: 10px;
}

.flickity-prev-next-button.next {
    right: 10px;
}

.flickity-rtl .flickity-prev-next-button.previous {
    left: auto;
    right: 10px;
}

.flickity-rtl .flickity-prev-next-button.next {
    right: auto;
    left: 10px;
}

.flickity-prev-next-button:disabled {
    filter: alpha(opacity=30);
    opacity: 0.3;
    cursor: auto;
}

.flickity-prev-next-button svg {
    position: absolute;
    left: 20%;
    top: 20%;
    width: 60%;
    height: 60%;
}

.flickity-prev-next-button .arrow {
    fill: white;
}

.flickity-prev-next-button.no-svg {
    color: white;
    font-size: 26px;
}

.flickity-page-dots {
    position: absolute;
    width: 100%;
    bottom: -25px;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    line-height: 1;
}

.flickity-rtl .flickity-page-dots {
    direction: rtl;
}

.flickity-page-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 8px;
    background: var(--blue-theme);
    border-radius: 50%;
    filter: alpha(opacity=25);
    opacity: 0.25;
    cursor: pointer;
}

.flickity-page-dots .dot.is-selected {
    filter: alpha(opacity=100);
    opacity: 1;
}


/* ---------- Hero ---------- */

#accueil .cover {
    position: relative;
    height: 100vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    text-align: left;
    background:
        linear-gradient(110deg, rgba(20, 20, 20, .55) 0%, rgba(20, 20, 20, .2) 60%),
        url("../img/couverture.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#accueil .cover .encadre {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    top: auto;
    padding: 90px 5% 0;
    background: transparent;
}

#accueil .cover .encadre p {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.02em;
    color: white;
    max-width: 18ch;
}

.js #accueil .cover .encadre {
    opacity: 0;
    transform: translateY(26px);
    animation: accueilHeroIn .9s var(--ease) .15s forwards;
}

@keyframes accueilHeroIn {
    to {
        opacity: 1;
        transform: none;
    }
}


/* ---------- Contenu ---------- */

#accueil .content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

#accueil .accueil-partie {
    display: block;
    margin: 90px 0;
}

#accueil .accueil-partie-title {
    width: 100%;
    text-align: center;
    margin: 0 0 30px;
}

#accueil .title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--blue-theme);
}

#accueil .accueil-partie-subtitle {
    width: 100%;
    text-align: center;
}


/* ---------- Boutons (couleurs d'origine, plein) ---------- */

#accueil .btn {
    font-family: var(--font-display);
    border: none;
    border-radius: 10px;
    background: var(--blue-theme);
    box-shadow: var(--shadow-sm);
}

#accueil .btn:hover {
    transform: translateY(-3px);
    background: var(--orange-theme);
    box-shadow: var(--shadow-md);
}

#accueil .voir-plus {
    width: 100%;
    margin: 44px 0 0;
    text-align: center;
}


/* ---------- Caroussel ---------- */

#accueil .caroussel {
    height: 500px;
}

#accueil .caroussel .gallery {
    background: transparent;
    width: 100%;
}

#accueil .caroussel .gallery-cell {
    width: 46%;
    height: 460px;
    margin-right: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#accueil .caroussel .g2 {
    background: url("../img/realisations/cab_exterieur_2.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#accueil .caroussel .g6 {
    background: url("../img/realisations/cab_interieur_6.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#accueil .caroussel .g9 {
    background: url("../img/realisations/cab_interieur_9.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#accueil .caroussel .g10 {
    background: url("../img/realisations/cab_interieur_10.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#accueil .caroussel .g13 {
    background: url("../img/realisations/cab_interieur_13.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


/* ---------- Familles de produits (cartes) ---------- */

#accueil .list-produits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
    width: 100%;
    margin: 40px 0 0;
    padding: 0;
}

#accueil .list-produits .produit {
    margin: 0;
}

#accueil .list-produits .produit a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

#accueil .list-produits .produit a:hover {
    transform: translateY(-8px);
    border-color: var(--steel);
    box-shadow: var(--shadow-lg);
}

#accueil .list-produits .img-ronde {
    width: 100%;
    height: 190px;
    border-radius: 0;
    object-fit: cover;
}

#accueil .list-produits .nom-produit {
    margin: 0;
    padding: 16px 18px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
    color: var(--blue-theme);
}


/* ---------- Chiffres clés (couleurs d'origine) ---------- */

#accueil .cadre-chiffres {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#accueil .cadre-chiffres .item-chiffre {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    padding: 56px 40px;
    border: solid 1px whitesmoke;
}

#accueil .cadre-chiffres .item-chiffre i {
    font-size: 40px;
    color: var(--orange-theme);
}

#accueil .cadre-chiffres .item-chiffre p .chiffre {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 800;
    color: var(--blue-theme);
}

#accueil .cadre-chiffres .item-chiffre p .chiffre-detail {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
}


/* ---------- Contact (couleurs d'origine) ---------- */

#accueil .contact-content .img-ronde {
    width: 300px;
    border-radius: 50%;
}

#accueil .contact-horaires {
    width: 100%;
    margin: 30px 0;
    text-align: center;
}


/* ---------- Responsive ---------- */

@media screen and (max-width: 990px) {

    #accueil .cover {
        min-height: 520px;
        background-attachment: scroll;
    }

    #accueil .cover .encadre {
        padding-top: 120px;
    }

    #accueil .accueil-partie {
        margin: 60px 0;
    }

    #accueil .caroussel {
        height: 350px;
    }

    #accueil .caroussel .gallery-cell {
        width: 100%;
        height: 300px;
    }

    #accueil .list-produits {
        grid-template-columns: repeat(2, 1fr);
    }

    #accueil .cadre-chiffres {
        flex-direction: column;
    }

    #accueil .cadre-chiffres .item-chiffre {
        padding: 36px;
    }

    #accueil .contact-content {
        flex-direction: column;
        text-align: center;
    }

    #accueil .contact-content .img-ronde {
        display: none;
    }

}

@media screen and (max-width: 560px) {

    #accueil .list-produits {
        grid-template-columns: 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {

    .js #accueil .cover .encadre {
        animation: none;
        opacity: 1;
        transform: none;
    }

    #accueil .cover {
        background-attachment: scroll;
    }

}
