*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Raleway', sans-serif;
    background: #fff;
    color: #222;
    min-height: 100vh;
}

/* ── Header ── */
.t-header { padding: 24px 40px; }
.t-logo    { max-height: 120px; width: auto; }
.t-logo-link { display: inline-block; }

/* ── Titre ── */
.t-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #222;
    text-transform: uppercase;
    margin-top: -100px;
    margin-bottom: 70px;
}

/* ── Grille produits ── */
.t-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.t-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.t-product-img {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.t-product-img img {
    max-height: 230px;
    max-width: 100%;
    object-fit: contain;
}

.t-product-name {
    font-size: 0.82rem;
    color: #333;
    line-height: 1.4;
    min-height: 2.5em;
    margin-bottom: 16px;
    flex: 1;
}

.t-btn-detail {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 13px 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.t-btn-detail:hover { background: #333; }

/* ── Overlay ── */
.t-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9000;
    overflow-y: auto;
    padding: 40px 20px;
}
.t-overlay.open {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ── Modale ── */
.t-modal {
    background: #fff;
    width: 100%;
    max-width: 860px;
    padding: 40px;
    position: relative;
}

.t-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.8rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #444;
    font-family: 'Raleway', sans-serif;
}
.t-modal-close:hover { color: #000; }

.t-modal-top {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.t-modal-image { flex: 0 0 42%; }
.t-modal-image img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border: 1px solid #e5e5e5;
    padding: 20px;
}

.t-modal-info { flex: 1; }

.t-modal-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #111;
}

.t-modal-weight {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.t-modal-short {
    font-size: 0.88rem;
    color: #0077a0;
    line-height: 1.5;
    margin-bottom: 18px;
}

.t-modal-ingredients {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #333;
}
.t-modal-ingredients h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111;
}

.t-modal-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    line-height: 1.65;
    color: #333;
}
.t-modal-bottom h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .t-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .t-grid      { grid-template-columns: 1fr; padding: 0 20px 60px; }
    .t-header    { padding: 16px 20px; }
    .t-modal-top { flex-direction: column; }
    .t-modal     { padding: 24px 20px; }
}
