/*========================================
=                 GLOBAL                 =
========================================*/
section { background-color: #ffffff; }
.sec-1 { margin-top: 5rem; }
h2 { color: #495057; }

/*========================================
=           ADMIN TABLE PREMIUM          =
========================================*/
.admin-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.admin-thead {
    background: #f8f9fa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.admin-row { transition: .2s ease; }
.admin-row:hover {
    background: #f5f7ff;
    transform: translateY(-1px);
}

.admin-img {
    max-height: 70px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Actions */
.btn-outline-warning, .btn-outline-danger {
    border-radius: 8px;
    padding: 6px 10px;
}
.btn-outline-warning:hover { background: #fff3cd; }
.btn-outline-danger:hover { background: #f8d7da; }

/* Mobile actions */
@media (max-width: 768px) {
    .btn {
        padding: 12px 18px;
        font-size: 1rem;
    }
}

/*========================================
=                 NAVBAR                 =
========================================*/
:not(.admin-navbar).navbar {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    height: 14vh;
    z-index: 1000;
}

.navbar-collapse {
    background: #ffffff;
    padding: 1rem;
    border-radius: 12px;
}
.navbar-toggler { position: relative; z-index: 2000; }
.navbar-collapse.show { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.nav-link {
    position: relative;
    transition: color .25s ease, transform .25s ease;
}
.nav-link:hover {
    color: #0d6efd;
    transform: translateY(-2px);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #C49A6C;
    transition: width .25s ease;
}
.nav-link.active {
    color: #C49A6C !important;
    font-weight: 600;
}
.nav-link.active::after { width: 100%; }

/* Liens agrandis */
.navbar-nav .nav-link {
    font-size: 1.15rem;
    padding: 14px 22px !important;
    margin: 0 6px;
}
.navbar-nav .nav-item { margin: 0 4px; }

/* CTA */
.contact-cta {
    background: #C49A6C;
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: .25s ease;
}
.contact-cta:hover {
    background: #b0895f;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

/*========================================
=                  HERO                  =
========================================*/
.hero-pro {
    background-image: url("/assets/img/asdistrib-ac-8.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 85vh;
    position: relative;
    padding: 7rem 0;
    color: #fff;
}

.hero-pro::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.35));
    backdrop-filter: blur(1px);
}

.hero-pro .container { position: relative; z-index: 2; }

.hero-pro h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

.hero-pro p {
    color: #C49A6C;
    font-size: 1.4rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    background: rgba(0,0,0,0.35);
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/*========================================
=                 BUTTONS                =
========================================*/
.hero-btn,
.btn-primary {
    background-color: #1a4b8ccc !important;
    border-color: #8c631a00 !important;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background-color: #163f75 !important;
    border-color: #163f75 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.btn-info-small {
    background: transparent;
    border: none;
    color: #1a4b8c;
    font-size: .85rem;
    padding: 0;
    margin-bottom: .5rem;
    text-decoration: underline;
    cursor: pointer;
}
.btn-info-small:hover { color: #163f75; }

/*========================================
=                  STATS                 =
========================================*/
.stats-section {
    background-color: #ffffff;
    padding: 50px 0;
    border-top: 3px solid #C49A6C;
    border-bottom: 3px solid #C49A6C;
}

.stats-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform .2s ease, border-color .2s ease;
}
.stats-card:hover {
    transform: translateY(-4px);
    border-color: #dcdcdc;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #0d6efd;
}

/*========================================
=             ICONS & LOGOS              =
========================================*/
.logo-box {
    width: 48px;
    height: 48px;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.logo-box i {
    color: #fff;
    font-size: 1.6rem;
}

.brand-text {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: .7px;
    color: #111;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: #000;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}
.icon-circle i {
    color: #fff;
    font-size: 2.2rem;
}

/*========================================
=             RECONDITIONNÉ              =
========================================*/
#neuf, #recond, #mise { display: none; }

.icon-feature {
    width: 70px;
    height: 70px;
    background: #C49A6C;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}
.icon-feature i {
    color: #fff;
    font-size: 2rem;
}

.cta-card-flat {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}
.cta-card-flat:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.cta-card-flat a.btn {
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
}

/*========================================
=                PRODUCTS                =
========================================*/
.products-page { margin-top: 20vh; }

.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.product-card h3 {
    font-size: 1.3rem;
    margin-top: 15px;
}
.product-card p { margin: 0; }

.model-text {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #555;
}

/*========================================
=               CARROUSEL                =
========================================*/
.carousel-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    margin-bottom: 15px;
}

.carousel {
    display: flex;
    gap: 12px;
}

.carousel-img {
    width: 100%;
    max-width: 260px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.single-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Large carousel */
.carousel-container-large {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 10px;
}

.carousel-large {
    display: inline-flex;
    gap: 10px;
}

.carousel-img-large {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Product carousel */
.product-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.product-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.product-carousel-track::-webkit-scrollbar { height: 6px; }

.product-carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    text-align: center;
}

.product-carousel-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.product-carousel-indicators {
    text-align: center;
    margin-top: 8px;
}

.indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 3px;
    transition: 0.3s;
}
.indicator.active { background: #0d6efd; }

/*========================================
=                 MACHINE                =
========================================*/
.single-img-large {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.carousel-container-large {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    margin-bottom: 15px;
}

.carousel-large {
    display: flex;
    gap: 12px;
}

.carousel-img-large {
    width: 100%;
    max-width: 350px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.machin-page { padding-top: 120px; }

.btn-return {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all .2s ease;
}
.btn-return:hover {
    background: #e9ecef;
    border-color: #ccc;
    color: #000;
}

.contact-machine {
    background: #f5f5f5;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #1a4b8c;
}
.contact-machine h5 {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}
/*========================================
=           OPTIONS MACHINE              =
========================================*/


.toggle-chip {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid #ddd;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 1.05rem;
    transition: 0.2s;
    user-select: none;
    background: #fff;
}

.toggle-chip:hover {
    border-color: #0d6efd;
}

.toggle-chip.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/*========================================
=          CARROUSEL MACHINE — FIX       =
========================================*/

/* Image principale du carrousel */
.machine-main-img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

/* Miniatures */
.machine-thumbs img {
    width: 90px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    cursor: pointer;
    opacity: .7;
    transition: .2s ease;
    border: 2px solid transparent;
}

@media (max-width: 768px) {
    .machine-thumbs {
        gap: 6px;
        justify-content: center;
    }

    .machine-thumbs img {
        width: 60px;
        height: 50px;
        padding: 3px;
        border-radius: 6px;
    }
}

.machine-thumbs img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.machine-thumbs .active-thumb {
    opacity: 1;
    border-color: #0d6efd;
}

/* Flèches custom visibles */
.custom-arrow {
    width: 70px;
    height: 70px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: .2s ease;
    font-size: 2.4rem;
    color: #fff;
    z-index: 10;
}

.custom-arrow:hover {
    background: rgba(0,0,0,0.85);
}


/* Arrondi du cadre du carrousel */
.carousel-inner {
    border-radius: 18px;
    overflow: hidden;
}

/* Désactivation des anciens styles conflictuels */
.carousel-img-large,
.single-img-large {
    all: unset;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none !important;
}



/*========================================
=                IMG ZOOM                =
========================================*/
.zoomable {
    cursor: zoom-in;
    transition: .2s ease;
}
.zoomable:hover { opacity: .9; }

.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    z-index: 9999;
}

.zoom-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

/*========================================
=             MISE A DISPO               =
========================================*/
/* Fix texte compacté sur mobile pour mise_a_dispo */

@media (max-width: 768px) {

    .machin-page {
        padding-left: 18px;
        padding-right: 18px;
        padding-top: 80px; /* un peu moins haut sur mobile */
    }

    /* Titres */
    .machin-page h2 {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 12px;
    }

    /* Paragraphes */
    .machin-page p {
        font-size: 1rem;
        line-height: 1.55;
        text-align: left; /* évite l'effet compacté */
    }

    /* Listes */
    .machin-page ul {
        padding-left: 20px;
    }

    /* Badge disponibilité */
    .machin-page .badge {
        font-size: 1rem;
        padding: 8px 14px;
    }

    /* Bloc contact */
    .contact-machine {
        padding: 20px;
        border-radius: 12px;
        font-size: 1rem;
        line-height: 1.5;
        margin-top: 25px;
    }
}



/* Card pleine largeur */
.fullwidth-card {
    width: 100%;
    margin: 0 auto 40px auto;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Carrousel pleine largeur */
.carousel-fullwidth {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

/* Track horizontal */
.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Slide */
.carousel-item-fw {
    flex: 0 0 100%;
    scroll-snap-align: center;
    text-align: center;
}

/* Image */
.carousel-item-fw img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
}


/* Centrage carrousel */
.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*========================================
=             PAGES LÉGALES              =
========================================*/
.cookies-container {
    max-width: 900px;
    margin: 16vh auto 60px;
    background: #ffffff;
    padding: 50px 55px;
    border-radius: 14px;
    border-left: 5px solid #C49A6C;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.cookies-container h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.cookies-container h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #444;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #C49A6C;
}

.cookies-container p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.cookies-container ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.cookies-container li {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #444;
}

.cookies-container a {
    color: #C49A6C;
    font-weight: 500;
    text-decoration: none;
}

.cookies-container a:hover {
    text-decoration: underline;
}

/* BLOCS IMPORTANTS (ex : coordonnées) */
.cookies-container strong {
    color: #333;
}

/* CARTES OPTIONNELLES */
.cookies-card {
    background: #fafafa;
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 4px solid #C49A6C;
    margin-bottom: 25px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cookies-container {
        padding: 30px 20px;
    }

    .cookies-container h1 {
        font-size: 2rem;
    }

    .cookies-container h2 {
        font-size: 1.4rem;
    }
   .hero-pro {
    
        background-attachment: scroll;   /* obligatoire sur mobile */
        background-size: cover;        /*   ou contain si tu veux moins de zoom */
        background-position: center 13vh; /*meilleur cadrage */
        min-height: 60vh;
        margin: 0;
        padding: 0;
    }
    .hero-pro .container {
            margin-top: 15vh;
    }
    .hero-pro p {
        font-size: 1rem;
    }
    .hero-pro h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .hero-pro h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    }

}


/* --- FOOTER --- */

footer {
    margin-top: 60px;
    padding: 30px 0;
    background: #f2f3f5;
    text-align: center;
    color: #555;
    border-top: 1px solid #ddd;
    font-size: 15px;
}

footer .footer-links {
    margin-top: 10px;
}

footer .footer-links a {
    color: #0d6efd;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    padding: 15px 0;
    font-size: 0.95rem;
    color: #666;
    background: #f7f7f7;
    border-top: 2px solid #C49A6C;
    margin-top: 40px;
}
footer a {
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/*---------
CONTACT
____________*/


/* Hero */
.contact-hero {
    
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    padding: 40px 0;
    margin-top: 10vh;
    border-bottom: 4px solid #C49A6C;
}

.contact-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #333;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #555;
}

/* Formulaire */
.contact-card {
    padding: 40px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.form-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 25px 0 15px;
    color: #333;
}

.required::after {
    content: " *";
    color: #C49A6C;
    font-weight: bold;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 1rem;
    transition: border-color .2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #C49A6C;
    box-shadow: 0 0 0 0.1rem rgba(196,154,108,0.25);
}

/* Boutons */
.btn-send {
    background-color: #C49A6C;
    border: none;
    padding: 16px;
    font-size: 1.15rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all .25s ease;
}

.btn-send:hover {
    background-color: #b3875d;
    transform: translateY(-2px);
}

.btn-mail {
    display: block;
    text-align: center;
    background: #fff;
    border: 2px solid #C49A6C;
    color: #C49A6C;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all .25s ease;
}

.btn-mail:hover {
    background: #C49A6C;
    color: #fff;
    transform: translateY(-2px);
}

.mail-help {
    display: block;
    text-align: center;
    margin-top: 6px;
    font-size: .85rem;
    color: #777;
}

/* Confirmation */
.contact-confirm {
    margin-top: 14vh;
    padding: 25px;
    font-size: 1.15rem;
    border-radius: 12px;
    background: #e8f7e8;
    color: #2f6b2f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Coordonnées */
.contact-info-card {
    padding: 30px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}


/*---------
MEDIA QUERY
____________*/
@media (max-width: 768px) {
    .products-page {
        margin-top: 16vh;
    }
}
