/* =========================================
   1. RESET & CONFIGURATION GLOBALE
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #555;
    background-color: #f9f9f9; /* Fond très légèrement grisé pour faire ressortir les cartes */
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased; /* Meilleur rendu du texte sur Mac/iOS */
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   2. HEADER
   ========================================= */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
    position: sticky; /* Le header reste en haut au scroll */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 50px; /* Taille optimale */
}

.top-nav ul {
    display: flex;
    gap: 25px;
}

.top-nav a {
    color: #7a8fa6;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.top-nav a:hover { color: #2659a4; }
.top-nav i { font-size: 1.1rem; }

/* =========================================
   3. INTRO & MAP
   ========================================= */
.intro-container {
    max-width: 1280px;
    margin: 40px auto 30px;
    padding: 0 20px;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

.map-section {
    max-width: 1280px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.main-map-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* =========================================
   4. STORES GRID (Grille Magasins)
   ========================================= */
.stores-section {
    max-width: 1280px;
    margin: 0 auto 60px; /* Marge en bas avant le footer */
    padding: 0 20px;
}

.stores-grid {
    display: grid;
    /* Par défaut (Grand écran) : 3 colonnes */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.store-card {
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Assure que le contenu s'aligne bien */
    height: 100%;
}

.store-card:hover {
    transform: translateY(-5px); /* Petit effet de levée au survol */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #2b4b9b;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px 25px 15px 25px;
}

.badge {
    background-color: #2b4b9b;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.store-card h2 {
    color: #2b4b9b;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}

.card-body {
    padding: 0 25px;
    flex-grow: 1; /* Pousse le bas de carte vers le bas */
    display: flex;
    flex-direction: column;
}

address {
    font-style: normal;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
    padding-left: 51px; /* Alignement propre */
}

/* Bloc téléphone */
.phone-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-left: 10px;
}

.phone-block i {
    color: #e83e58;
    font-size: 1.1rem;
    border: 1px solid #e83e58;
    border-radius: 6px;
    padding: 6px 8px;
    background: rgba(232, 62, 88, 0.05);
}

.phone-block span {
    font-weight: 800;
    color: #333;
    font-size: 1.05rem;
}

/* HORAIRES */
.hours-block {
    margin-top: auto; /* Pousse les horaires vers le bas */
}

.hours-block h3 {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hours-table {
    margin-bottom: 25px;
    font-size: 0.9rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}

.hours-table .row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    color: #555;
    font-weight: 600;
}

.hours-table .row:nth-child(odd) { background-color: #f8f9fa; }
.hours-table .row:nth-child(even) { background-color: #fff; }

/* BOUTON SELECTION */
.btn-critizr {
    width: 100%;
    background-color: #fff;
    border: 2px solid #2b4b9b;
    color: #2b4b9b;
    padding: 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-critizr:hover {
    background-color: #2b4b9b;
    color: #fff;
    box-shadow: 0 5px 15px rgba(43, 75, 155, 0.3);
}

.critizr-icon {
    font-family: serif;
    font-weight: bold;
    font-size: 1.2rem;
    transform: rotate(-20deg);
}

/* =========================================
   5. FOOTER
   ========================================= */
.site-footer {
    background-color: #2659a4;
    color: #fff;
    padding: 60px 0 30px;
    font-size: 0.9rem;
    margin-top: 80px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    /* Par défaut : 4 colonnes inégales */
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-col h4 {
    color: #abc4ff;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { opacity: 0.9; }
.footer-col ul li a:hover { opacity: 1; text-decoration: underline; }

.brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-logo { width: 160px; margin-bottom: 25px; }

.footer-map-img {
    width: 140px;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.footer-map-img:hover { opacity: 1; }

.social-actions {
    grid-column: 4;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    width: 100%;
    max-width: 260px;
    justify-content: center;
    background: rgba(255,255,255,0.05);
}
.social-btn:hover {
    background: #fff;
    color: #2659a4;
}

/* =========================================
   6. GESTION DU RESPONSIVE (MEDIA QUERIES)
   ========================================= */

/* --- TABLETTES & PETITS LAPTOPS (Max 1024px) --- */
@media (max-width: 1024px) {
    .stores-grid {
        grid-template-columns: repeat(2, 1fr); /* Passage à 2 colonnes */
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr; /* Footer en 2x2 colonnes */
    }
    
    .social-actions {
        grid-column: auto; /* Remise en flux normal */
        align-items: flex-start;
    }
}

/* --- TABLETTES PORTRAIT & GRANDS MOBILES (Max 768px) --- */
@media (max-width: 768px) {
    /* Header Stacké */
    .header-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .top-nav ul {
        flex-wrap: wrap; /* Permet aux liens de passer à la ligne */
        justify-content: center;
        gap: 15px 20px;
    }
    
    .top-nav a {
        font-size: 0.75rem; /* Texte un peu plus petit sur mobile */
    }

    /* Grille Magasins : 1 seule colonne */
    .stores-grid {
        grid-template-columns: 1fr;
        max-width: 500px; /* Limite la largeur pour ne pas être trop étiré */
        margin-left: auto;
        margin-right: auto;
    }

    /* Footer Centré */
    .footer-container {
        grid-template-columns: 1fr; /* Tout en 1 colonne */
        text-align: center;
        gap: 40px;
    }

    .brand-col, .social-actions {
        align-items: center; /* Centre les logos et boutons */
    }

    address {
        padding-left: 0; /* Réaligne l'adresse au centre ou à gauche selon pref */
        text-align: center;
    }
    
    .card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .phone-block {
        justify-content: center;
        padding-left: 0;
    }
}

/* --- PETITS MOBILES (Max 480px) --- */
@media (max-width: 480px) {
    .header-logo { height: 40px; }
    
    .top-nav ul {
        gap: 10px;
    }
    
    .top-nav a span {
        display: none; /* Cache le texte, garde l'icone si besoin, ou réduit la taille */
    }
    
    /* Si tu veux garder le texte, utilise plutôt : */
    .top-nav a { font-size: 0.7rem; }

    .intro-container { font-size: 0.9rem; }
    
    .hours-table .row {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}