@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ############################ */
/* css global */
/* ############################ */
*{
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    list-style: none;
    scroll-behavior: smooth;
    text-decoration: none;
    outline: none;
    border: none;
    box-sizing: border-box;
}
/* Bloque tout débordement horizontal indésirable */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #ff0000; /* Si une fissure apparaît, elle sera noire et invisible */
}
body {
  padding-bottom: 40px; /* Ajuste selon la hauteur de ta barre */
}

/* Force TOUS les éléments à rester dans le cadre */
* {
    max-width: 100vw;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
h1,h2{
    color: var(--ligth);
}
.stars{
    color: rgb(255, 170, 0);
    margin-top: 0.5rem;
}
:root {
   --rouge: rgb(250, 74, 74);
   --couleur2:rgb(123,9,34);
   --text:#333;
   --ligth:#fff;
   --second:#e2e2e2;
   --box-shadow:2px 2px 10px 2px rgba(0,0,0,.2)
}
html::-webkit-scrollbar {
    width: 0.5rem;
}
html::-webkit-scrollbar-thumb {
    background: var(--rouge);
    border-radius:3rem ;
}
html::-webkit-scrollbar-track {
    background: #000;
   
}
/* logo texte */

.logo img {
    height: 60px; /* Ajuste cette valeur selon tes besoins (ex: 40px ou 60px) */
    width: auto;  /* Garde les proportions de l'image intactes */
    display: block; 
    transition: transform 0.3s ease; /* Un petit bonus pour l'effet de survol */
}
.logo img:hover {
    transform: scale(1.05);
}
section{
    padding: 50px 80px;
}
.section-heading{
    text-align: center;
    position: relative;
}
.section-heading h2{
    font-weight: 600;
    font-size: clamp(30px,4vw,50px);
    background: linear-gradient( rgb(202, 48, 48), #571212ee);
    position: relative;
    z-index: 4;
    display: inline-block;
    margin: 0 auto;
    padding: 0 1rem;
    border: 0.5rem solid var(--second);
    border-radius: 1rem;
}
.section-heading h2 span{
    color: var(--rouge);
}
.section-heading::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 2px;
    background: var(--second);
    z-index: 2;
}
button{
    padding: 5px 10px;
    border: 1px solid var(--rouge);
    background: transparent;
    color: var(--rouge);
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.5s, background-color 0.5s;
}
button:hover{
    color: var(--ligth);
    background-color: var(--rouge);
}
a{
    color: inherit;
    transition: color 0.5s;
}

header{
    background: linear-gradient(#000000ee, #571212ee, rgb(202, 48, 48));
    width: 100%;
    overflow: hidden;
}
header nav{
    padding: 30px 5% 0 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
header nav h1{
    margin: 0;
    text-transform: uppercase;
    color: var(--rouge);
    text-shadow: 2px 2px 4px #000000aa;
    
}
header nav .right {
    display: flex;
    align-items: center;
}
header nav .right p{
    margin: 0 15px 0 0;
    color: #ccc;
    display: flex;
    align-items: center;
}
header nav .right a:hover {
    color: var(--rouge);
    cursor: pointer;
}
.menu-icon{
    font-size: 2rem;
    color: var(--ligth);
    display: none;
    cursor: pointer;
}
/* --- SECTION PRÉSENTATION UNIFIÉE --- */
.presentation {
    display: flex;
    padding: 30px 5%;;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Sécurité */
    overflow: hidden; /* Empêche tout débordement ici */
}
.presentation .product-presentation {
    flex: 1;
    width: 100%;
}
.presentation .product-presentation h1{
    margin: 0;
    font-size: 4vw;
    width: 80%;
}
.presentation .product-presentation h1 span{
    margin: 0;
    font-size: 3vw;
    width: 70%;
}
.presentation .product-presentation p{
    font-weight: 300;
    color: var(--ligth);
}
.presentation .product-presentation button{
    margin-top: 20px;
    padding: 15px 20px;
    font-size: 15px;
    border: none;
    outline: none;
    border-radius: 10px;
    cursor: pointer;
}
.presentation .image-presentation {
    flex: 1;
    display: flex;
    justify-content: center;
}
.presentation .image-presentation img {
    width: 100%;       /* Elle s'adapte au container */
    max-width: 450px;  /* Mais ne dépasse jamais 500px sur PC */
    height: auto;
    display: block;
}
.presentation .image-presentation2{
    width: 100%;       /* Elle s'adapte au container */
    max-width: 350px;  /* Mais ne dépasse jamais 500px sur PC */
    height: auto;
    display: block;
}

.first .product-presentation button{
    background-color: var(--rouge);
    border: 1px solid var(--rouge);
    color: white;
    transition: background-color 0.5s, color 0.5s;
}
.first .product-presentation button:hover{
    background-color: inherit;
    color: var(--rouge);
}
.first .product-presentation .small-images {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px; /* Ajoute de l'espace entre les vignettes */
}
.first .product-presentation .small-images .small {
    padding: 10px;
    background-color: rgba(165, 104, 104, 0.4); /* Plus léger pour ne pas étouffer l'image */
    margin: 0 15px 15px 0;
    border: 1px solid var(--rouge); /* Un rappel de la couleur de marque */
    border-radius: 20px;
    transition: filter 0.5s;
    cursor: pointer;
}
.first .product-presentation .small-images .small:hover{
    filter: brightness(50%);
   
}
.first .product-presentation .small-images .small img {
    width: 120px;
}

.second {
    margin: 0;
    background-color: #1b0000ee;
}
.second .product-presentation .new {
    color: var(--rouge);
}
.second .product-presentation button{
    background-color: inherit;
    border: 1px solid var(--rouge);
    color: var(--rouge);

}
.second .product-presentation button:hover{
    background-color: var(--rouge);
    color: white;
    transition: background-color 0.5s, color 0.5s;
}
/* ############################ */
/* les avis */
/* ############################ */
section.reviews{
    background: linear-gradient( rgb(202, 48, 48), #571212ee, #000000ee);
}
.reviews-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,auto));
    gap: 1rem;
    margin-top: 2rem;
}
.reviews-box {
    background: rgba(255, 255, 255, 0.03); /* Un fond ultra-léger pour détacher du noir */
    border: 1px solid rgba(250, 74, 74, 0.2); /* Une bordure rouge très subtile */
    border-radius: 15px; /* Des coins arrondis pour le côté premium */
    transition: transform 0.3s ease, background 0.3s ease;
    justify-items: center;
    padding: 0.5rem;
}
.reviews-box:hover {
    transform: translateY(-10px); /* La boîte se soulève quand on passe dessus */
    background: rgba(250, 74, 74, 0.1); /* Elle se teinte légèrement en rouge */
    border-color: var(--rouge);
}
.reviews-box img{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.reviews-box .stars{
    color: rgb(255, 170, 0);
    margin-top: 0.5rem;
}
.reviews-box h3 {
    color: var(--rouge) !important; /* On met le nom en avant */
    margin-top: 15px;
    letter-spacing: 1px;
    margin: 1rem ;
}
.reviews-box p{
    margin: 1rem ;
    font-style: italic;
    color: #ddd;
    line-height: 1.6;
}
/* ############################ */
/* footer */
/* ############################ */

footer{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,auto));
    gap: 1.5rem;
    color: var(--ligth);
    background: var(--text);
    padding: 50px 20px;
}
footer .social{
    margin-top: 0.5rem;
    display: flex;
    column-gap: 0.5rem;
}
footer .social .bx{
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--rouge);
    transition: background.2s ease-in-out;
    cursor: pointer;
    border-radius: 50%;
}
footer .social .bx:hover{
    background: var(--couleur2);
}
footer h2{
    margin-bottom: 1rem;
    font-weight: 600;
}
footer a{
    color: var(--rouge);
}
footer a:hover{
    color: var(--couleur2);
}
footer img{
    width: 50px;
    border-radius: 5px;
    display: flex;
    margin: 5px;
}
.copy{
    padding: 1rem 0;
    text-align: center;
    font-size: 13px;
    background: var(--ligth);
    color: black;
}

/* "News Ticker" ou "Bande défilante" */
.news-ticker-container {
  width: 100%;
  overflow: hidden; 
  background: #ffffff;
  color: rgb(0, 0, 0);
  padding: 12px 0;
  display: flex;
  position: fixed; 
  bottom: 0;      
  left: 0;
  z-index: 9999;  
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2); 
}
.news-ticker-container .news-ticker-inner .news-ticker-item span{
    color: red;
}

.news-ticker-inner {
  display: flex;
  white-space: nowrap; 
  /* LE SAUVEUR EST ICI : On annule la règle globale max-width juste pour le texte défilant */
  max-width: none !important; 
}

.news-ticker-item {
  display: flex;
  flex-shrink: 0; 
  padding-right: 300px; 
  font-family: 'Montserrat', sans-serif; /* J'ai remis votre police globale pour rester cohérent */
  font-weight: 600;
  font-size: 14px;
  /* LE SAUVEUR EST ICI AUSSI : On libère la largeur et on ralentit l'animation (40s au lieu de 15s) */
  max-width: none !important;
  animation: scroll-total 40s linear infinite;
}

@keyframes scroll-total {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Pause au survol pour que le parent puisse lire tranquillement */
.news-ticker-container:hover .news-ticker-item {
  animation-play-state: paused;
  cursor: pointer;
}


/* ############################ */
/* RESPONSIVE DESIGN OPTIMISÉ */
/* ############################ */

/* Tablettes et écrans moyens */
@media (max-width: 991px) {
    section {
        padding: 40px 5%;
    }
    .presentation .product-presentation h1 {
        font-size: 3rem;
    }
}

/* Mobiles (Smartphones) */
@media (max-width: 768px) {
    /* --- Navigation Mobile --- */
    #menu-icon {
        display: block !important;
        position: relative;
        z-index: 1001; 
        color: #fff;
        font-size: 30px;
    }

    header nav .right {
        position: fixed; 
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5); /* Plus opaque pour plus d'immersion */
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0); 
        z-index: 1000; 
    }

    header nav .right.active {
        right: 0;
    }
    
    header nav .right p {
        margin: 1.5rem 0;
        font-size: 1.8rem; 
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    /* --- Hero Section --- */
    /* On empile les éléments pour un flux de lecture logique : Titre -> Image -> Bouton */
    .presentation {
        flex-direction: column;
        text-align: center;
        padding: 60px 5%; /* On utilise le padding pour l'espace, pas la margin */
        margin-top: 0;    /* ON SUPPRIME LA FISSURE ICI */
        width: 100%;
    }

    .presentation .product-presentation {
        width: 100%;
        order: 2; /* Le texte vient après l'image sur mobile */
    }
    
    .presentation .image-presentation {
        order: 1;
        width: 100%; /* Prend toute la largeur disponible sans dépasser */
        margin-bottom: 20px;
    }

    /* Le verrou final pour l'image sur mobile */
    .presentation .image-presentation img {
        width: 90%;      /* On laisse 5% de vide de chaque côté pour la sécurité */
        max-width: 320px; /* Taille parfaite pour un écran de smartphone */
        margin: 0 auto;  /* Centrage horizontal */
    }

    .presentation .product-presentation h1 {
        font-size: 8vw;
        width: 100%;    /* Empêche le titre de pousser les murs */
    }

    .presentation .product-presentation h1 span {
        font-size: 5vw;
        display: block;
        margin-top: 10px;
    }

    .first .product-presentation .small-images {
        justify-content: center;
    }

    /* --- Avis Clients --- */
    .reviews-container {
        grid-template-columns: 1fr;
    }

    /* --- Footer --- */
    footer {
        text-align: center;
    }
    footer .social, footer .paiement {
        justify-content: center;
    }
}
