/* ================== GLOBAL ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

main { margin-top: 0 !important; }

body {
    background-color: #f8f9fa;
    color: #333;
}

.footer-social a i,
.footer-social a:hover i,
.whatsapp-float i,
.whatsapp-float:hover i {
    text-decoration: none !important;
}

.auth-page a.flex.flex-col.items-center.gap-2.font-medium[wire\:navigate=""] {
    display: none !important;
}

/* Pagination */
.pagination-prev-disabled,
[aria-label*="Previous"][aria-disabled="true"] .w-5,
[aria-label*="Previous"][aria-disabled="true"] svg,
.pagination-next,
[aria-label*="Next"] svg {
    width: 16px !important;
    height: 16px !important;
}

/* Icône WhatsApp brute (évite soulignement) */
.fab.fa-whatsapp,
.fab.fa-whatsapp i {
    text-decoration: none !important;
}

/* ================== HEADER ================== */
header {
    background-color: #FFC107;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;          /* z-index réduit : empêche recouvrement inutile */
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.icon-sm { width: 20px; height: 20px; }

/* Bouton menu mobile */
#menu-btn {
    font-size: 1.8em;
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
}

/* Menu desktop */
#desktop-menu ul     { list-style: none; display: flex; gap: 20px; }
#desktop-menu ul li a{
    text-decoration: none;
    color: #333;
    font-size: 1em;
    padding: 8px 12px;
    transition: background .3s ease;
}
#desktop-menu ul li a:hover {
    background: #e0a800;
    border-radius: 5px;
    color: #fff;
}

/* Menu mobile */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-in-out;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #FFC107;
    z-index: 2000;
}
#mobile-menu.active        { max-height: 500px; }
#mobile-menu ul            { display: flex; flex-direction: column; gap: 10px; padding: 10px 0; margin: 0; list-style: none; }
#mobile-menu ul li a       { padding: 10px; display: block; text-decoration: none; color: #333; transition: background .3s ease; }
#mobile-menu ul li a:hover { background: #e0a800; color: #fff; }

/* Responsive (header + menu) */
@media (max-width: 768px){
    #menu-btn     { display: block; }
    #desktop-menu { display: none; }
}

/* ================== BOUTON FLOTTANT WHATSAPP ================== */
.whatsapp-float{
    position: fixed; bottom: 20px; right: 20px;
    width: 55px; height: 55px;
    background: #25D366; color: #fff;
    border-radius: 50%; font-size: 30px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,.3);
    z-index: 9999;
    transition: transform .3s ease-in-out, background .3s;
}
.whatsapp-float:hover{ transform: scale(1.1); background: #1EBE5F; }

@media (max-width: 768px){
    .whatsapp-float{ bottom: 15px; right: 15px; width: 50px; height: 50px; font-size: 26px; }
}

/* Suppression trait sous logo si <img>  */
header img,
.logo img{ border-bottom: none !important; display:block; }
.logo + hr{ display:none; }

/* ================== SLIDER ================== */
.slider-container{
    width: 100%; max-width: 1200px; margin: auto; position: relative; overflow: hidden;
}

.swiper-slide{
    display: flex; align-items: center; justify-content: center;
    height: auto;          /* valeur par défaut */
}
.slider-container .swiper-slide img{
    width: 100% !important; height: auto !important; max-height: 500px !important;
    object-fit: cover !important; background: transparent !important;
}

.slider-overlay{
    position:absolute; inset:0;
    background: rgba(0,0,0,.5);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    color:#fff; text-align:center;
}
.slider-overlay h2{ font-size:2.5rem; font-weight:bold; }
.slider-overlay p { font-size:1.2rem; margin-top:10px; }

.swiper-pagination{ position:absolute; bottom:10px; left:50%; transform:translateX(-50%); }
.swiper-button-prev, .swiper-button-next{ color:#fff; }

/* ================== BANNIÈRE (Accueil) ================== */
.banner{
    position:relative; height:500px;
    background-size:cover; background-position:center;
    display:flex; align-items:center; justify-content:center; text-align:center;
    color:#fff; padding:20px;
}
.banner::before{
    content:""; position:absolute; inset:0; background:rgba(0,0,0,.5);
}
.banner-content{ position:relative; max-width:600px; }
.banner h1{ font-size:3rem; font-weight:bold; margin-bottom:10px; }
.banner p { font-size:1.2rem; margin-bottom:15px; }

.btn-primary{
    display:inline-block; background:#FFC107; color:#333; font-weight:bold;
    padding:10px 20px; border-radius:5px; text-decoration:none;
    transition:background .3s ease-in-out;
}
.btn-primary:hover{ background:#e0a800; }

/* ================== PRÉSENTATION ================== */
.presentation{
    background:#F8F9FA; padding:80px 20px; text-align:center;
}
.presentation-container{
    display:flex; flex-wrap:wrap; gap:50px; align-items:center; justify-content:center;
    max-width:1200px; margin:auto; text-align:left;
}
.company-logo   { max-width:250px; height:auto; animation:fadeIn 1.5s ease-in-out; }
.presentation-text{ flex:1; max-width:600px; }
.presentation h2 { font-size:2.5rem; font-weight:bold; color:#333; margin-bottom:20px; }
.presentation p  { font-size:1.1rem; color:#555; line-height:1.8; margin-bottom:15px; }

@media (max-width:768px){
    .presentation-container{ flex-direction:column; text-align:center; }
    .presentation-text     { max-width:100%; }
    .company-logo          { max-width:180px; }
}

/* ================== SERVICES ================== */
.services{
    background:#FFC107; padding:60px 20px; text-align:center;
}
.services h2{ font-size:2rem; font-weight:bold; color:#333; margin-bottom:20px; }
.services p { margin-bottom:40px; }

.services-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px; max-width:1100px; margin:auto;
}
.service-card{
    background:#fff; padding:20px; border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,.1);
    transition:transform .3s, box-shadow .3s;
    text-align:center; color:inherit; text-decoration:none;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.service-card i   { font-size:3rem; color:#333; margin-bottom:15px; }
.service-card h3  { font-size:1.5rem; font-weight:bold; margin-bottom:10px; }
.service-card p   { font-size:1rem; color:#666; }

.service-card:hover{
    transform:translateY(-5px); box-shadow:0 8px 15px rgba(0,0,0,.2); background:#fff7db;
}

@media (max-width:768px){
    .services-container{ grid-template-columns:1fr; }
}

/* ================== PRODUITS (Section général) ================== */
.products{
    background:#fff; padding:60px 20px; text-align:center;
}
.products h2{ font-size:2rem; font-weight:bold; color:#333; margin-bottom:20px; }

/* Tabs */
.products-tabs{
    display:flex; overflow-x:auto; margin-bottom:20px; padding-left:10px;
    border-bottom:2px solid #ddd; scroll-padding-left:10px;
}
.products-tabs::-webkit-scrollbar{ display:none; }

.tab-btn{
    flex-shrink:0; margin-right:10px;
}
.tab-btn.active{ background:#FFC107; color:#fff; }

/* Détails produit (affichage par onglet) */
.product-details{
    display:none;                 /* caché par défaut */
    padding:20px; background:#f8f9fa; text-align:center;
    border-radius:10px; box-shadow:0 4px 10px rgba(0,0,0,.1);
    max-width:900px; margin:auto;
}
.product-details.active{ display:block; }

/* ================== PRODUITS — INDEX + GRILLE ================== */
.container{ max-width:1400px; margin:auto; padding:2rem 1.5rem; }

.description-box,
.filters-container{
    background:#fff; border-radius:12px; box-shadow:0 4px 6px rgba(0,0,0,.05);
    margin:2rem 0; width:100%; max-width:1400px; padding:2rem;
}

.category-description,
.default-description{
    font-size:1.1rem; color:#4a5568; line-height:1.6; text-align:center;
}

.filters-container{
    display:flex; flex-wrap:wrap; gap:1.5rem;
    justify-content:space-between; align-items:center;
}

.category-filter{
    display:flex; flex-wrap:wrap; gap:.8rem; align-items:center;
}
.filter-btn{
    padding:.8rem 1.5rem; border-radius:8px;
    background:#f8f9fa; color:#4a5568; border:1px solid #e2e8f0;
    font-weight:500; text-decoration:none; display:flex; align-items:center; gap:.5rem;
    transition:.3s cubic-bezier(.4,0,.2,1);
}
.filter-btn:hover,
.filter-btn.active{
    background:#FFC107; color:#1a202c; border-color:#FFC107; transform:translateY(-1px);
}

.sorting-options{ position:relative; min-width:240px; }
#sort-selector{
    width:100%; padding:.8rem 1.2rem; border-radius:8px;
    border:1px solid #e2e8f0; background:#fff; appearance:none;
    font-size:1rem; color:#4a5568; transition:border-color .3s;
}
#sort-selector:focus{
    outline:none; border-color:#FFC107; box-shadow:0 0 0 3px rgba(255,193,7,.2);
}

/* Grille produits */
.products-grid{
    display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:2rem; padding:1rem 0;
    height:auto !important; overflow:visible !important;
    animation:fadeIn .6s ease-out;
}
.product-card{
    background:#fff; border-radius:12px; overflow:hidden;
    display:flex; flex-direction:column; transition:transform .3s, box-shadow .3s;
}
.product-card:hover{ transform:translateY(-5px); box-shadow:0 10px 15px rgba(0,0,0,.1); }

.product-image     { position:relative; height:240px; overflow:hidden; }
.product-image img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.product-card:hover .product-image img{ transform:scale(1.05); }

.product-info{
    padding:1.5rem; flex-grow:1; display:flex; flex-direction:column; text-align:left;
}
.product-info h3     { font-size:1.25rem; color:#2d3748; margin-bottom:.5rem; line-height:1.3; }
.product-category    { font-size:.875rem; color:#FFC107; font-weight:600; margin-bottom:.75rem;
                       background:rgba(255,193,7,.1); padding:.25rem .75rem; border-radius:20px; display:inline-block; }
.product-excerpt     { font-size:.9375rem; color:#718096; line-height:1.5; margin-bottom:1rem; flex-grow:1; }
.product-price       { font-size:1.25rem; color:#2d3748; font-weight:700; margin-top:auto; }

/* État vide + chargement */
.no-results{ text-align:center; padding:4rem 2rem; grid-column:1/-1; color:#a0aec0; font-size:1.125rem; }
.loading-state{ display:none; text-align:center; padding:2rem; color:#a0aec0; }
.loading-state.active{ display:block; }

.view-more-container{ text-align:center; margin-top:20px; }
.view-more-btn{
    display:inline-block; background:#FFC107; color:#333; font-weight:bold;
    padding:12px 24px; border-radius:8px; text-decoration:none;
    transition:background .3s;
}
.view-more-btn:hover{ background:#e0a800; }

/* Responsive (grille + filtres) */
@media (max-width:1024px){
    .products-grid{ grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); }
}
@media (max-width:768px){
    .filters-container{ flex-direction:column; align-items:stretch; }
    .category-filter { justify-content:center; }
    .filter-btn      { flex-grow:1; justify-content:center; }
    .product-image   { height:200px; }
}
@media (max-width:480px){
    .container   { padding:1.5rem 1rem; }
    h1           { font-size:2rem; }
    .products-grid{ grid-template-columns:1fr; }
    .product-card{ margin-bottom:1rem; }
}

/* ================== PARTENAIRES ================== */
.partners{
    background:#f8f9fa; padding:60px 20px; text-align:center;
}
.partners h2{ font-size:2rem; font-weight:bold; color:#333; margin-bottom:20px; }

.partners-slider{ max-width:2000px; margin:auto; overflow:hidden; padding:20px 0; }

/* Spécifique à la section partenaires */
.partners-slider .swiper-slide{ height:160px; }

.partner-logo-container{
    height:120px; display:flex; justify-content:center; align-items:center;
    border-radius:10px; padding:10px;
}
.partner-logo{
    max-width:100%; max-height:100%; object-fit:contain;
    filter:grayscale(100%); transition:transform .3s, filter .3s;
}
.partner-logo:hover{
    transform:scale(1.1); filter:grayscale(0%);
}
@media (max-width:768px){
    .partner-logo-container{ width:100px; height:80px; }
}

/* ================== FOOTER ================== */
.footer{
    background:#333; color:#fff; padding:50px 20px; font-size:.9rem;
}
.footer-container{
    display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px; max-width:1200px; margin:auto;
}

.footer-column h3{ font-size:1.3rem; margin-bottom:15px; color:#FFC107; }
.footer-column p { color:#bbb; line-height:1.6; }
.footer-column ul{ list-style:none; padding:0; }
.footer-column ul li{ margin-bottom:8px; }
.footer-column ul li a{
    color:#ddd; text-decoration:none; transition:color .3s;
}
.footer-column ul li a:hover{ color:#FFC107; }

.footer-social{
    display:flex; gap:15px; margin-top:15px;
}
.footer-social a{
    display:flex; align-items:center; justify-content:center;
    width:40px; height:40px; background:#FFC107; color:#000;
    border-radius:50%; transition:background .3s;
}
.footer-social a:hover{ background:#e0a800; }

.footer-contact form{ display:flex; flex-direction:column; gap:10px; }
.footer-contact input,
.footer-contact textarea{
    width:100%; padding:10px; border:none; border-radius:5px;
    background:#444; color:#fff;
}
.footer-contact button{
    background:#FFC107; color:#333; font-weight:bold;
    padding:10px; border:none; border-radius:5px; cursor:pointer;
    transition:background .3s;
}
.footer-contact button:hover{ background:#e0a800; }

.footer-bottom{
    text-align:center; margin-top:30px; padding-top:15px;
    border-top:1px solid #555; font-size:.85rem; color:#bbb;
}
@media (max-width:768px){
    .footer-container{ grid-template-columns:1fr; text-align:center; }
    .footer-social   { justify-content:center; }
}

/* ================== PAGE DÉTAIL PRODUIT ================== */
.product-page .product-details{
    /* réutilise .product-details de base + visibilité directe */
    display:block;
    background:#fff; padding:30px; margin:40px auto;
    border-radius:10px; box-shadow:0 4px 6px rgba(0,0,0,.1);
    max-width:1000px;
}

.product-gallery{ display:flex; flex-direction:column; align-items:center; }
.swiper.main-slider .swiper-slide{ width:100% !important; max-width:600px; margin:auto; }
.thumbnail-slider{ display:none; }   /* caché sur mobile */

/* Responsive */
@media (max-width:768px){
    .product-page .product-details{ padding:20px; }
    .product-page .product-info h1{ font-size:22px; }
    .product-page .product-info p { font-size:14px; }
}

/* ================== PRODUIT : FICHE TECHNIQUE / OPTIONS ================== */
.product-container{ max-width:1200px; margin:auto; padding:20px; }
.card{
    background:#fff; border-radius:10px; padding:20px;
    box-shadow:0 4px 6px rgba(0,0,0,.1); margin-bottom:20px;
}
.swiper-image{
    width:100%; max-height:500px; object-fit:cover; border-radius:5px;
}

/* Points forts */
.points-grid{ display:flex; flex-wrap:wrap; gap:10px; }
.point-card{
    background:#FFC107; padding:10px; border-radius:5px; font-weight:bold;
    display:flex; align-items:center; gap:10px;
}
.point-icon{ color:green; font-size:1.2em; }

/* Caractéristiques */
.specs-list{ display:flex; flex-wrap:wrap; gap:10px; }
.spec-item { background:#f1f1f1; padding:10px; border-radius:5px; }

/* Options additionnelles */
.options-list   { list-style:none; padding:0; }
.option-item    { padding:5px; border-bottom:1px solid #ddd; }

/* ================== SECTION CONTACT ================== */
.contact-section{ padding:80px 20px; background:#f8f9fa; text-align:center; }

.section-heading{ margin-bottom:50px; }

.contact-container{
    display:flex; flex-wrap:wrap; gap:40px; justify-content:center;
    max-width:1100px; margin:auto;
}

.contact-form,
.contact-info{
    flex:1; min-width:300px;
    background:#fff; padding:30px; border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,.1);
}

/* Champs formulaire */
.form-group{ text-align:left; margin-bottom:15px; }
.form-group label{
    display:flex; align-items:center; font-weight:bold; margin-bottom:5px; color:#333;
}
.form-group label i{ margin-right:8px; color:#FFC107; }

.form-group input,
.form-group textarea{
    width:100%; padding:12px; border:1px solid #ddd; border-radius:5px; font-size:1rem;
}
.form-group input:focus,
.form-group textarea:focus{
    outline:none; border-color:#FFC107; box-shadow:0 0 8px rgba(255,193,7,.3);
}

.btn-submit{
    width:100%; background:#FFC107; color:#333; font-size:1.2rem;
    font-weight:bold; padding:12px; border:none; border-radius:5px; cursor:pointer;
    transition:background .3s;
}
.btn-submit:hover{ background:#e0a800; }

/* Infos contact */
.contact-info ul{ list-style:none; padding:0; }
.contact-info ul li{
    display:flex; align-items:center; gap:10px;
    font-size:1rem; margin-bottom:10px; color:#555;
}
.contact-info ul li i{ color:#FFC107; font-size:1.3rem; }
.contact-info ul li a{
    color:#333; text-decoration:none; font-weight:bold;
}
.contact-info ul li a:hover{ text-decoration:underline; }

/* Carte Google Maps */
.map-container{
    margin-top:20px; border-radius:10px; overflow:hidden;
    box-shadow:0 4px 10px rgba(0,0,0,.1);
}

@media (max-width:768px){
    .contact-container{ flex-direction:column; }
}

/* ================== ANIMATIONS & ACCESSIBILITÉ ================== */
@keyframes fadeIn{
    from{ opacity:0; transform:translateY(10px); }
    to  { opacity:1; transform:translateY(0); }
}

.filter-btn:focus,
#sort-selector:focus{
    outline:3px solid rgba(255,193,7,.4); outline-offset:2px;
}
