/* =============================================================
   HYDROCONTROL — Style Premium (fond blanc, Helvetica Neue)
   ============================================================= */

/* === VARIABLES === */
:root {
    --blue:        #007bff;
    --blue-dark:   #0056b3;
    --blue-light:  #e8f2ff;
    --green:       #2a9d5c;
    --green-light: #eaf7ef;
    --grey-100:    #f8f9fa;
    --grey-200:    #e9ecef;
    --grey-400:    #ced4da;
    --grey-600:    #6c757d;
    --text:        #1a1a2e;
    --text-soft:   #4a5568;
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:   0 6px 24px rgba(0,0,0,0.10);
    --shadow-lg:   0 16px 48px rgba(0,0,0,0.12);
    --radius:      12px;
    --radius-sm:   8px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === HEADER STICKY 1 LIGNE === */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.navbar-brand img {
    height: 50px;
    display: block;
    transition: opacity 0.2s;
}
.navbar-brand img:hover { opacity: 0.8; }

/* Sur mobile : passe en 2 lignes */
@media (max-width: 767px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        gap: 10px;
    }
    .product-nav-tabs {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

/* === PRODUCT SWITCHER === */
.product-nav-tabs {
    display: flex;
    gap: 6px;
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    padding: 4px;
}

.btn-product {
    background: transparent;
    border: none;
    color: var(--grey-600);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn-product:hover {
    color: var(--blue);
    background: rgba(0,123,255,0.07);
}
.btn-product.active {
    background: #ffffff;
    color: var(--blue);
    box-shadow: var(--shadow-sm);
}

/* === BOUTON CONTACT === */
.btn-primary {
    background: var(--blue);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 9px 20px;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,123,255,0.25);
}
.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,123,255,0.35);
}

/* === HERO AREA === */
.container.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.75rem !important;
    position: relative;
    padding-bottom: 16px;
}
h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 4px;
    background: var(--blue);
    border-radius: 2px;
}

/* === TITRES === */
h2, h3, h4, h5, h6 { font-weight: 700; }

h3 {
    color: var(--blue-dark) !important;
    font-size: 1.05rem !important;
    letter-spacing: -0.01em;
}

/* === IMAGE FIXE PRODUIT === */
.product-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--grey-100);
}
.product-img-wrap img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    display: block;
}

/* === MEDIA PANEL (carousel / vidéo) === */
.col-md-6:first-child .carousel,
.youtube-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.carousel-inner img,
.carousel-inner video {
    max-height: 380px;
    width: 100%;
    object-fit: contain;
    background: var(--grey-100);
    border-radius: var(--radius);
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 10px;
    opacity: 1;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--blue);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 14px;
    height: 14px;
    filter: invert(0);
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(1);
}

/* === YOUTUBE === */
.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    background: #000;
}
.youtube-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* === CARTE CONFORMITÉ === */
.mt-3.p-3.border.rounded.bg-light {
    background: #ffffff !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-md);
    padding: 28px !important;
    margin-top: 0 !important;
    position: relative;
    overflow: hidden;
}
.mt-3.p-3.border.rounded.bg-light::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--blue), var(--green));
    border-radius: var(--radius) 0 0 var(--radius);
}

.mt-3.p-3.border.rounded.bg-light h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 16px;
    padding-left: 4px;
}

/* Texte conformité */
#conformiteText p,
#conformiteText li,
#conformiteText119 p,
#conformiteText119 li {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-soft);
}
#conformiteText strong,
#conformiteText119 strong {
    color: var(--text);
    font-weight: 600;
}
#conformiteText ul,
#conformiteText119 ul {
    list-style: none;
    padding: 0;
}
#conformiteText ul li,
#conformiteText119 ul li {
    padding: 5px 0 5px 18px;
    position: relative;
    border-bottom: 1px solid var(--grey-100);
    margin-bottom: 0;
}
#conformiteText ul li:last-child,
#conformiteText119 ul li:last-child { border-bottom: none; }
#conformiteText ul li::before,
#conformiteText119 ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Collapsible */
.conformite-collapsed {
    max-height: 220px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.45s ease;
}
.conformite-collapsed::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 70px;
    background: linear-gradient(to bottom, transparent, #ffffff);
}
.conformite-open { max-height: 1200px; }
.conformite-open::after { display: none; }

/* Bouton Voir plus — centré */
.btn-voir-plus-wrap {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.btn-voir-plus-wrap .btn-outline-primary,
#btnVoirPlus,
#btnVoirPlus119 {
    border: 1.5px solid var(--blue);
    color: var(--blue);
    background: transparent;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 24px;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}
.btn-voir-plus-wrap .btn-outline-primary:hover,
#btnVoirPlus:hover,
#btnVoirPlus119:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.25);
}

/* CTA bas de carte */
.mt-3.p-3.border.rounded.bg-light p.mt-auto {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-top: 20px !important;
    padding-top: 16px;
    border-top: 1px solid var(--grey-200);
    text-align: center;
}

/* === DIVIDER === */
hr.my-5 {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--grey-200), transparent);
    margin: 2.5rem 0 !important;
}

/* === TABS === */
.tabs-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.nav-tabs {
    border-bottom: 2px solid var(--grey-200) !important;
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tabs .nav-link {
    color: var(--grey-600);
    background: transparent;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 12px 18px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}
.nav-tabs .nav-link:hover {
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 6px 6px 0 0;
}
.nav-tabs .nav-link.active {
    color: var(--blue) !important;
    font-weight: 700 !important;
    background: transparent !important;
    border-bottom: 3px solid var(--blue) !important;
}

.tab-content.p-4.border.border-top-0 {
    border: 1px solid var(--grey-200) !important;
    border-top: none !important;
    border-radius: 0 0 var(--radius) var(--radius) !important;
    padding: 32px !important;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.tab-pane h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--grey-200);
    font-size: 1rem !important;
}
.tab-pane h3:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
.tab-pane p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-soft);
    margin-bottom: 1.25rem;
}

/* Boutons téléchargement */
.tab-pane .btn-outline-primary {
    border: 1.5px solid var(--blue);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px 22px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tab-pane .btn-outline-primary:hover {
    background: var(--blue);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(0,123,255,0.25);
}

/* Tabs scroll hint */
.tabs-scroll-wrapper::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 48px; height: 100%;
    pointer-events: none;
    background: linear-gradient(to left, #fff, transparent);
}
.tabs-scroll-wrapper::before {
    content: "›";
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--blue);
    font-weight: bold;
    pointer-events: none;
    opacity: 0.7;
    z-index: 1;
}

/* === FOOTER === */
footer.bg-dark {
    background: #1a1a2e !important;
    border-top: 3px solid var(--blue);
    padding: 28px !important;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}
footer a { transition: color 0.2s; }
footer a:hover { color: #7ec8ff !important; }

/* === MODAL === */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.modal-header {
    background: var(--blue);
    color: #fff;
    border-bottom: none;
    padding: 20px 24px;
}
.modal-title { font-weight: 700; font-size: 1rem; }
.modal-header .btn-close { filter: invert(1); opacity: 0.85; }
.modal-body { padding: 24px; }
.modal-body p { margin-bottom: 10px; font-size: 0.9rem; }
.modal-body a { color: var(--blue); font-weight: 600; text-decoration: none; }
.modal-body a:hover { text-decoration: underline; }
.modal-footer { border-top: 1px solid var(--grey-200); padding: 14px 24px; }

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.product-section { animation: fadeInUp 0.4s ease both; }
h1 { animation: fadeInUp 0.4s ease 0.05s both; }
.row.align-items-stretch { animation: fadeInUp 0.45s ease 0.1s both; }

/* === TABLES === */
.table tbody tr { height: 60px; vertical-align: middle; }
.table td, .table th { padding: 1rem; vertical-align: middle; }

/* === MISC === */
.cee-highlight { font-weight: 700; color: var(--green); }
.certif-img { height: 70px; max-width: 150px; width: 100%; object-fit: contain; }
.certifications {
    display: flex; justify-content: center; align-items: center;
    gap: 20px; flex-wrap: nowrap;
}

.container { overflow-x: hidden; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container { padding-left: 15px; padding-right: 15px; }
    .container.py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

    h1 { font-size: 1.4rem !important; line-height: 1.25; }
    h1::after { width: 40px; height: 3px; }
    h3 { font-size: 0.95rem !important; }

    .row.align-items-stretch { gap: 16px; }

    .carousel-inner img, .carousel-inner video {
        max-height: 260px !important;
        object-fit: contain;
        margin-bottom: 0;
    }

    .mt-3.p-3.border.rounded.bg-light {
        padding: 18px !important;
        margin-top: 0 !important;
    }
    .mt-3.p-3.border.rounded.bg-light h5 { font-size: 0.88rem !important; }

    #conformiteText p, #conformiteText li,
    #conformiteText119 p, #conformiteText119 li { font-size: 0.82rem; }

    #btnVoirPlus, #btnVoirPlus119 {
        width: 100%;
        justify-content: center;
    }
    .btn-voir-plus-wrap { margin-top: 10px; }

    .nav-tabs .nav-link { font-size: 0.78rem; padding: 10px 12px; }
    .tab-content.p-4.border.border-top-0 { padding: 18px !important; }
    .tab-pane h3 { font-size: 0.92rem !important; }
    .tab-pane p { font-size: 0.85rem; }

    footer { font-size: 13px; }
    hr.my-5 { margin: 1.5rem 0 !important; }

    .btn-product { font-size: 0.78rem; padding: 6px 12px; }

    .certifications {
        display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
        justify-items: center; text-align: center;
    }
    .certif-img { height: 60px; max-width: 120px; }
}

/* === ONE-PAGE : séparation visuelle entre sections === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* compense le header sticky */
}

.product-section--alt {
    background: #f8fafc;
    border-top: 3px solid var(--grey-200);
}

/* Les ancres du header switcher */
.btn-product[href] {
    text-decoration: none;
    display: inline-block;
}
