/* RESET SIMPLE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* ===== HEADER FIXE ===== */

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: #e9e9e9; /* fond gris au scroll */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

/* Logo à gauche */
.header-left img {
    height: 48px;
    display: block;
}

/* Menu central */
.header-nav {
    flex: 1;
    text-align: center;
}

.header-nav ul {
    list-style: none;
    display: inline-flex;
    gap: 20px;
}

.header-nav a {
    text-decoration: none;
    color: #060101;
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
}

.header-nav a:hover {
    text-decoration: underline;
}
/* ==========================
   HERO DEPARTEMENT
========================== */

.hero-dept{
  position: relative;

  /* Image hero */
  background-image: url("/IMG/hero-1140x350.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Dimensions */
  min-height: 350px;

  /* Style visuel */
  border-radius: 10px;
  overflow: hidden; /* IMPORTANT pour l’arrondi */
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);

  /* Espacement */
  margin: 20px auto 30px auto;
}

/* Overlay + positionnement du texte */
.hero-overlay{
  position: absolute;
  inset: 0;

  display: flex;
  align-items: flex-end;   /* TEXTE EN BAS */
  justify-content: center;

  padding: 20px;

  /* léger dégradé pour lisibilité du texte */
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.15),
    transparent
  );
}
/* Texte SEO dans le hero */
.hero-seo{
  max-width: 1000px;  
  min-height:350px;
  margin: 0;

  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;

  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hero-dept{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.hero-dept{
  background-image: url("/IMG/hero-1140x350.jpg");
}

/* Bouton mon compte à droite */
.header-right {
    display: flex;
    justify-content: flex-end;
    min-width: 150px;
}

.btn-compte {
    background-color: #7d0909;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

.btn-compte:hover {
    background-color: #a40c0c;
}

/* ===== LAYOUT DE LA PAGE ===== */

.page-departement {
    max-width: 1140px;
    margin: 0 auto;
    padding: 90px 15px 40px; /* 90px pour compenser le header fixe */
}


/* Titre H1 */

.section-titre {
    text-align: center;
    margin-bottom: 20px;
}

.section-titre h1 {
    font-family: "Aclonica", Arial, sans-serif;
    font-size: 24px;
    color: #000000;
}

/* ===== BARRE DE RECHERCHE ===== */

.section-recherche {
    margin-bottom: 30px;
}

.form-recherche {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.form-group label {
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group select,
.form-group input[type="text"] {
    padding: 7px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.form-group.form-submit {
    flex: 0 0 auto;
    min-width: 120px;
}

.form-group.form-submit button {
    padding: 9px 16px;
    border-radius: 4px;
    border: none;
    background-color: #7d0909;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.form-group.form-submit button:hover {
    background-color: #a40c0c;
}

/* ===== LISTE DES ENSEIGNES ===== */

.section-enseignes {
    margin-top: 30px;
}

.carte-enseigne {
    display: flex;
    gap: 15px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 15px;
    margin-bottom: 15px; /* espace de 15px entre chaque enseigne */
}

/* Colonne logo (150px) */
.ens-col.ens-logo {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ens-col.ens-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

/* Colonne centrale : nom + description */
.ens-col.ens-desc {
    flex: 1;
}

.ens-nom {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

.ens-texte {
    font-size: 14px;
    color: #555;
}

/* Colonne droite : contacts */
.ens-col.ens-contact {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
}

.ens-contact-ligne {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ens-contact-ligne a {
    color: #7d0909;
    text-decoration: none;
}

.ens-contact-ligne a:hover {
    text-decoration: underline;
}

/* Petits icônes minimalistes (tu pourras les remplacer par de vraies images si tu veux) */
.icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.icon-tel {
    border: 2px solid #7d0909;
}

.icon-mail {
    border: 2px solid #060101;
}

.icon-web {
    border: 2px solid #555;
}

/* Aucune enseigne */
.aucun-resultat {
    font-size: 14px;
    color: #777;
    text-align: center;
    padding: 20px 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .header-nav {
        order: 3;
    }

    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-right {
        order: 2;
    }

    .page-departement {
        padding: 100px 10px 30px;
    }

    .carte-enseigne {
        flex-direction: column;
        align-items: flex-start;
    }

    .ens-col.ens-logo,
    .ens-col.ens-contact {
        flex: 0 0 auto;
        width: 100%;
    }

    .ens-col.ens-contact {
        align-items: flex-start;
    }
}

/* ===== MODAL CONTACT ENSEIGNE ===== */

.contact-modal {
    position: fixed;          /* se détache du flux + reste sur l'écran */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;            /* masqué par défaut */
    z-index: 9999;            /* au-dessus du reste */
}

/* Fond semi-transparent derrière la boîte */
.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Boîte centrale */
.contact-modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* centre exact */
    background: #ffffff;
    padding: 20px;
    max-width: 500px;
    width: 92%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-radius: 8px;
    box-sizing: border-box;
}

/* Bouton de fermeture (croix) */
.contact-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

/* Messages de retour dans le formulaire */
.form-message {
    margin-top: 10px;
    font-size: 0.9rem;
}

.form-message.envoi {
    color: #666;
}

.form-message.ok {
    color: #0a8a0a;
}

.form-message.erreur {
    color: #b00000;
}

/* Un peu de style pour les champs du modal */
#form-contact-enseigne .form-group {
    margin-bottom: 10px;
}

#form-contact-enseigne label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

#form-contact-enseigne input[type="text"],
#form-contact-enseigne textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.95rem;
}

/* Champ honeypot anti-spam (invisible pour l'utilisateur) */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sr-only{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* =========================
   SECTION TITRE (ajustements)
========================= */
.section-titre p.dept-intro,
.section-titre p {
  font-size: 12px;           /* plus petit, H1 inchangé */
  line-height: 1.45;
}

/* =========================
   CARDS SEO (nouveau design)
========================= */
.seo-cards {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.seo-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  padding: 14px 16px;
}

.seo-card h2 {
  margin: 0 0 10px 0;
  text-align: center;
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.seo-card p,
.seo-card li {
  font-family: Verdana, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.45;
}

.seo-card h3 {
  margin: 0 0 10px 0;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

/* Liste en 2 colonnes */
.seo-ul-2cols {
  columns: 2;
  column-gap: 24px;
  margin: 10px 0 0 0;
  padding-left: 18px;
}

.seo-ul-2cols li {
  break-inside: avoid;
  margin: 0 0 6px 0;
}

/* Lien SEO sur activité (on garde <strong>) */
.seo-act-link {
  text-decoration: none;
}

.seo-act-link strong {
  text-decoration: underline;
}

/* Mobile : repasse en 1 colonne */
@media (max-width: 700px) {
  .seo-ul-2cols { columns: 1; }
}

/* =========================================================
   CARTES ENSEIGNES - Refonte visuelle commune
   Pages concernées : accueil, recherche, départements
   ========================================================= */

.section-enseignes {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.carte-enseigne {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr) 250px;
    gap: 18px;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid rgba(16, 75, 95, 0.12);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.carte-enseigne:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.11);
    border-color: rgba(16, 75, 95, 0.24);
}

.ens-col {
    min-width: 0;
}

.ens-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #f8fbfc, #eef6f8);
    border-radius: 14px;
    padding: 12px;
}

.ens-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ens-logo img {
    width: 100%;
    max-width: 105px;
    height: 105px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 14px;
    padding: 8px;
    border: 1px solid rgba(16, 75, 95, 0.10);
}

.dept-badge {
    font-size: 0.82rem;
    font-weight: 700;
}

.dept-badge a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #0f5f78;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ens-desc {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ens-nom {
    margin: 0 0 8px 0 !important;
    font-size: 1.18rem;
    line-height: 1.25;
}

.ens-nom a {
    color: #12343f;
    text-decoration: none;
}

.ens-nom a:hover {
    color: #0f7896;
    text-decoration: underline;
}

.ens-texte {
    margin: 0;
    color: #3f4f55;
    line-height: 1.55;
    font-size: 0.96rem;
}

.ens-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fbfc;
}

.ens-contact-ligne {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #263f46;
    font-size: 0.94rem;
    word-break: break-word;
}

.ens-contact-ligne a {
    color: #0f5f78;
    font-weight: 700;
    text-decoration: none;
}

.ens-contact-ligne a:hover {
    text-decoration: underline;
}

.btn-mail-enseigne {
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    background: #0f7896;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
    transition: background 0.18s ease, transform 0.18s ease;
}

.btn-mail-enseigne:hover {
    background: #0b6078;
    transform: translateY(-1px);
}

.aucun-resultat {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    border: 1px dashed rgba(16, 75, 95, 0.25);
    color: #3f4f55;
}

/* Responsive tablette */
@media (max-width: 980px) {
    .carte-enseigne {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .ens-contact {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* Responsive mobile */
@media (max-width: 640px) {
    .section-enseignes {
        gap: 14px;
    }

    .carte-enseigne {
        grid-template-columns: 1fr;
        padding: 15px;
        border-radius: 16px;
    }

    .ens-logo {
        align-items: flex-start;
    }

    .ens-logo img {
        max-width: 92px;
        height: 92px;
    }

    .ens-contact {
        padding: 12px;
    }

    .btn-mail-enseigne {
        width: 100%;
    }
}


/* =========================================================
   CONTACT ENSEIGNE - Icônes plus parlantes
   Remplace les anciennes pastilles rondes devant téléphone/site.
   ========================================================= */

.ens-contact-ligne {
    gap: 9px;
}

.icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    border: none !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    color: #7d0909;
    font-size: 17px;
    line-height: 1;
}

.icon::before {
    display: inline-block;
    font-weight: 700;
    line-height: 1;
}

.icon-tel::before {
    content: "☎";
    color: #7d0909;
    font-size: 18px;
}

.icon-mail::before {
    content: "✉";
    color: #0f7896;
    font-size: 17px;
}

.icon-web::before {
    content: "🌐";
    font-size: 17px;
}

/* Le lien du site est rendu plus proche d'un bouton/lien d'action. */
.ens-contact-ligne .icon-web + a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: #0f5f78;
    font-weight: 800;
    text-decoration: none;
}

.ens-contact-ligne .icon-web + a:hover {
    color: #7d0909;
    text-decoration: underline;
}

/* Le bouton fiche reste l'action principale, propre et lisible. */
.ens-contact-ligne .btn-fiche {
    min-width: 128px;
    text-align: center;
}
