/* ================================
   TORA TEMIMA - STYLE SOBRE & PLAT
   ================================ */

/* ----- Base générale ----- */
body {
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    margin: 0;
    padding: 0;
    color: #2c3e50;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----- En-tête ----- */
header {
    background-color: #ffffff;
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.logo {
    max-width: 180px;
    margin: 0 auto;
}

/* ----- Section Description (Bienvenue) ----- */
.description-section {
    background-color: #ffffff;
    padding: 40px 20px;
    margin: 40px auto;
    max-width: 900px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
}

.description-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.description-section p {
    font-size: 16px;
    line-height: 1.6;
    margin: 12px auto;
    max-width: 750px;
}

.description-section ul {
    list-style-position: inside;
    margin: 20px auto;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.description-section li {
    margin-bottom: 6px;
}

/* ----- Section Produits ----- */
.products-section {
    text-align: center;
    margin-top: 40px;
}

.products-section h1 {
    font-size: 30px;
    margin-bottom: 20px;
}

/* ----- Grille des produits ----- */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px 40px 20px;
}

.product {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 250px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.short-desc {
    font-size: 0.93em;
    color: #555;
    line-height: 1.4;
    margin: 6px 0 12px 0;
    text-align: left;
    flex-grow: 1;
}

.price {
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 10px;
}

.pay-btn {
    display: block;
    background-color: #2980b9;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background 0.2s ease;
    margin: 6px auto;
    width: 100%;
    max-width: 220px;  /* ← limite la largeur dans la carte */
    box-sizing: border-box;
}

.pay-btn:hover {
    background-color: #3498db;
}

/* ----- Section YouTube ----- */
.youtube-section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 20px;
    text-align: center;
}

.youtube-section h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.youtube-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.youtube-video {
    position: relative;
    width: 320px;
    padding-bottom: 56.25%; /* ratio 16:9 */
    height: 0;
    border-radius: 6px;
    overflow: hidden;
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ----- Section Contact ----- */
.contact-section {
    background-color: #ffffff;
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.contact-title h1 {
    font-size: 28px;
    margin-bottom: 25px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
    width: 100%;
    max-width: 320px;
}

.btn:hover {
    opacity: 0.9;
}

.whatsapp-btn {
    background-color: #25D366;
}

.phone-btn {
    background-color: #2980b9;
}

.email-btn {
    background-color: #c45463;
}

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

/* ----- Pied de page ----- */
footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 25px 20px;
    font-size: 14px;
}

.youtube-section {
    background-color: #fff;
    padding: 60px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 60px auto;
}


.youtube-section h2 {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 600;
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    justify-items: center;
    padding: 0 20px;
}


/* Cadre de chaque vidéo */
.youtube-video {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 9; /* gère automatiquement la hauteur */
    border-radius: 10px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Animation au survol */
.youtube-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

/* Harmonisation des sections principales */
.description-section,
.youtube-section,
.contact-section,
footer,
.products-section,
.container {
    max-width: 1100px;         /* largeur uniforme */
    margin: 0 auto;            /* centrage horizontal parfait */
    padding-left: 20px;        /* marges internes égales */
    padding-right: 20px;
}

/* Suppression des différences entre fonds blancs et gris */
.white-section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

/* Les conteneurs internes ne débordent plus */
.container {
    padding-left: 0;
    padding-right: 0;
}

/* Alignement du pied de page sur la même largeur */
footer {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* ===== SECTION GROUPES WHATSAPP ===== */
.whatsapp-groups-section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 20px;
    text-align: center;
}

.whatsapp-groups-section h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.whatsapp-groups-section p {
    font-size: 16px;
    margin-bottom: 25px;
}

.whatsapp-groups-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.whatsapp-group {
    text-align: center;
    width: 250px;
}

.whatsapp-group img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.whatsapp-group img:hover {
    transform: scale(1.03);
}

.whatsapp-group p {
    margin-top: 10px;
    font-weight: bold;
    color: #2c3e50;
}

/* Mobile : supprime tout décalage */
@media (max-width: 768px) {
    .description-section,
    .youtube-section,
    .contact-section,
    .products-section,
    .container {
        padding-left: 10px;
        padding-right: 10px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    .container {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }

    .product {
        width: 100%;
        max-width: 400px;
    }

    .product img {
        height: auto;
        max-height: 300px;
    }

    .pay-btn {
        width: 100%;
    }

    .youtube-grid {
        flex-direction: column;
        align-items: center;
    }

    .youtube-video {
        width: 100%;
        max-width: 400px;
    }

    .description-section {
        padding: 30px 15px;
        margin: 40px auto;
    }

    .description-section ul {
        text-align: left;
        padding-left: 25px;
        display: block;
    }
    .whatsapp-groups-grid {
        flex-direction: column;
        align-items: center;
    }

    .whatsapp-group {
        width: 90%;
        max-width: 350px;
    }
}