/* style.css - CHARTE GRAPHIQUE ATS v1.3 */

/* Importation d'une police moderne pour le titre */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');

:root {
    --ats-blue: #3e6d9c;
    --ats-blue-dark: #2d5175;
    --ats-red: #d00;
    --ats-bg: #fdfdfd;
    --text-main: #333;
    --text-light: #666;
}

body { font-family: 'Segoe UI', sans-serif; margin: 0; background: var(--ats-bg); color: var(--text-main); scroll-behavior: smooth; }
* { box-sizing: border-box; }

/* HEADER STANDARDISÉ */
header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; padding: 10px 0; }
.header-content { max-width: 1200px; margin: auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }

/* BLOC MARQUE CLIQUABLE */
.brand-block { display: flex; align-items: center; text-decoration: none; color: var(--text-main); transition: opacity 0.2s; }
.brand-block:hover { opacity: 0.8; }
.brand-logo { height: 45px; width: auto; margin-right: 15px; /* Espace entre logo et texte */ }

/* NOUVEAU STYLE POUR LE TEXTE DE MARQUE */
.brand-text {
    font-family: 'Montserrat', sans-serif; /* Nouvelle police moderne */
    font-weight: 500; /* Poids moyen pour un look plus léger et élégant */
    font-size: 1.4em; /* Taille augmentée pour plus d'impact */
    color: #222;
    line-height: 1;
    white-space: nowrap; /* Force le texte sur une seule ligne */
}

/* BOUTONS STANDARDS */
.btn-site { text-decoration:none; color:var(--ats-blue); font-size:0.8em; border: 1px solid var(--ats-blue); padding: 5px 12px; border-radius: 4px; transition:0.2s; white-space: nowrap; }
.btn-site:hover { background: var(--ats-blue); color: white; }

.btn-submit { background: var(--ats-blue); color: #fff; border: none; padding: 12px; width: 100%; border-radius: 4px; font-weight: bold; cursor: pointer; text-transform: uppercase; transition: background 0.2s; }
.btn-submit:hover { background: var(--ats-blue-dark); }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }

/* UI GENERAL */
.hero { background: var(--ats-blue); color: #fff; padding: 12px 0; text-align: center; }
.hero h1 { margin: 0; font-size: 1.2em; font-weight: 400; text-transform: uppercase; display: inline-block; vertical-align: middle; }

.info-link { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.5); color: white; padding: 4px 12px; border-radius: 20px; cursor: pointer; margin-left: 15px; font-size: 0.8em; vertical-align: middle; }
.info-link:hover { background: rgba(255,255,255,0.3); }

.container { max-width: 1200px; margin: 30px auto; padding: 0 15px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.product-card { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid #e5e5e5; display: flex; flex-direction: column; transition: all 0.2s; scroll-margin-top: 80px; }
.product-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: var(--ats-blue); }

.img-container { width: 100%; height: 180px; background: #f8f8f8; position: relative; }
.product-image { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.badge { position: absolute; top: 10px; left: 10px; color: white; padding: 3px 8px; font-size: 0.65em; font-weight: bold; border-radius: 3px; text-transform: uppercase; }

.price-tag { color: var(--ats-red); font-size: 1.5em; font-weight: bold; transition: color 0.4s ease; }
.flash { color: #ff9900 !important; }

.bid-box { background: #f0f4f8; padding: 15px; border: 1px solid #d1d9e0; border-radius: 5px; font-size: 0.9em; margin-top: auto; }
.closed-msg { background: #eee; color: #777; padding: 15px; text-align: center; font-weight: bold; border-radius: 5px; margin-top: auto; }

/* FOOTER */
footer { background: #f4f4f4; padding: 40px 20px; text-align: center; font-size: 0.9em; border-top: 1px solid #ddd; color: #555; line-height: 1.8; }
footer a { color: #555; text-decoration: none; font-weight: 600; transition: color 0.2s; }
footer a:hover { color: var(--ats-blue); }

input { width: 100%; padding: 10px; margin: 6px 0 12px 0; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; box-sizing: border-box; }
input:focus { border-color: var(--ats-blue); outline: none; }
.legal-note { font-size: 0.7em; color: #999; margin-top: 10px; line-height: 1.3; text-align: center; display: block; font-style: italic; }

/* MODAL */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: white; margin: 10% auto; padding: 25px; border-radius: 8px; width: 90%; max-width: 500px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); line-height: 1.6; }
.modal-content h3 { color: var(--ats-blue); margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.close-modal { float: right; font-size: 28px; font-weight: bold; cursor: pointer; color: #aaa; }
.modal-content ul { padding-left: 20px; }
.modal-content li { margin-bottom: 10px; }

#toast { visibility: hidden; position: fixed; top: 70px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 12px 25px; border-radius: 4px; z-index: 1000; }
.show { visibility: visible !important; }

@media (max-width: 600px) { .container { grid-template-columns: 1fr; } }

/* --- AJOUT V1.4 : ZOOM IMAGE LIGHTBOX --- */

/* Indique que l'image est cliquable */
.product-image { cursor: zoom-in; transition: transform 0.2s ease; }

/* Le conteneur plein écran (caché par défaut) */
.lightbox-modal {
    display: none; /* Caché */
    position: fixed;
    z-index: 3000; /* Très haut pour passer au-dessus de tout */
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.92); /* Fond noir très opaque */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

/* L'image en grand à l'intérieur */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 95%; /* Ne dépasse pas la largeur de l'écran */
    max-height: 95vh; /* Ne dépasse pas la hauteur de l'écran */
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

/* Le bouton de fermeture (X) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3001;
}
.lightbox-close:hover { color: var(--ats-red); }

/* Petites animations d'ouverture */
@keyframes fadeIn { from {opacity: 0} to {opacity: 1} }
@keyframes zoomIn { from {transform: scale(0.9)} to {transform: scale(1)} }