/* ==========================================================================
   1. RESET & STRUCTURE GLOBALE (Indispensable pour le Sticky Footer)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Nécessaire pour le calcul du min-height */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Le site occupe au moins toute la hauteur de l'écran */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fff;
    color: #000;
    line-height: 1.5;
}

/* Pousse le footer vers le bas si le contenu est trop court */
main {
    flex: 1 0 auto;
    width: 100%;
}

/* Empêche le footer de se réduire */
footer {
    flex-shrink: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. SECTION HERO (Accueil)
   ========================================================================== */
.hero {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    display: flex;
    align-items: flex-end; /* Aligne le contenu en bas */
    padding: 50px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 8rem); /* Taille fluide selon l'écran */
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-content h1 span {
    font-weight: 400;
    font-size: 0.75em;
    display: block;
}

.btn-more {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid white;
    color: white;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-more:hover {
    background: white;
    color: black;
}

/* Overlay sombre pour la lisibilité du texte sur l'image */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    z-index: 1;
}

/* ==========================================================================
   3. GRILLE PRODUITS (Accueil)
   ========================================================================== */
.product-grid-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 650px;
}

.product-card-home {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    text-transform: uppercase;
    overflow: hidden;
    cursor: pointer;
}

.product-card-home h2 {
    position: absolute;
    bottom: 40px;
    left: 40px;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin: 0;
    z-index: 2;
}

.product-card-home::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0);
    transition: 0.4s;
}

.product-card-home:hover::before {
    background: rgba(0,0,0,0.3);
}

/* ==========================================================================
   4. SECTION INFOS (À propos)
   ========================================================================== */
.info-section {
    padding: 120px 10%;
    background: #fff;
    text-align: center;
}

.info-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.info-columns {
    display: flex;
    gap: 60px;
    text-align: justify;
    max-width: 1200px;
    margin: 0 auto;
}

.info-columns p {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

/* ==========================================================================
   5. RESPONSIVE (Tablettes & Mobiles)
   ========================================================================== */

@media (max-width: 1024px) {
    .info-columns { gap: 30px; }
}

@media (max-width: 768px) {
    /* Accueil Hero */
    .hero { padding: 30px; }

    /* Grille Produits */
    .product-grid-home {
        grid-template-columns: 1fr;
        height: auto;
    }
    .product-card-home {
        height: 450px;
    }
    .product-card-home h2 {
        bottom: 25px;
        left: 25px;
        font-size: 2.5rem;
    }

    /* Section Infos */
    .info-section { padding: 80px 5%; }
    .info-columns {
        flex-direction: column;
        gap: 40px;
    }
    .info-section h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.5rem; }
    .btn-more { width: 100%; text-align: center; }
}