/* =====================================================
   ESPACE MUSICAL DE LA DIGUE — styles-responsive.css
   Surcharge styles.css + Bootstrap 5
   ===================================================== */

/* ── Variables ── */
:root {
  --emd-red:      #B20000;
  --emd-red-hover:#8f0000;
  --emd-bg:       #ffffff;
  --emd-sidebar:  #f4f4f2;
  --emd-border:   #e8e8e5;
  --emd-text:     #1a1a1a;
  --emd-muted:    #666;
  --emd-faint:    #999;
  --sidebar-w:    202px;
  --header-h:     230px;
  --nav-h:        52px;
  --hero-h:       200px;
  --bandeau-h:    34px;
}

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

body {
  margin: 0; padding: 0;
  background: #c0c0c0;
}

/* =====================================================
   WRAPPER — CSS Grid
   ===================================================== */
.emd-wrapper {
  background: var(--emd-bg);
  width: 800px;
  margin: 0 auto;
}

/* ── Nav ── */
.emd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 18px;
  background: var(--emd-bg);
  border-bottom: 1px solid var(--emd-border);
}

.emd-nav__logo img {
  height: 40px;
  width: auto;
  display: block;
}

.emd-nav__links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0; padding: 0;
}
.emd-nav__links a {
  font-size: 14.5px;
  color: var(--emd-muted);
  text-decoration: none;
  font-weight: 700;
  font-family: Arial, sans-serif;
  transition: color 0.15s;
}
.emd-nav__links a:hover { color: var(--emd-red); }

.emd-nav__cta {
  font-size: 12px;
  background: var(--emd-red);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none !important;
  font-weight: 600;
  font-family: Arial, sans-serif;
  white-space: nowrap;
  transition: background 0.15s;
}
.emd-nav__cta:hover { background: var(--emd-red-hover); }

/* ── Hero (photo + bandeau) ── */
.emd-hero {
  position: relative;
}

.emd-hero__photo {
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  background: url('./images/emd01.jpg') center 35% / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.emd-hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 8, 0, 0.30);
}

.emd-hero__caption {
  position: relative;
  z-index: 1;
}
.emd-hero__caption h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.15;
  margin: 0 0 7px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.emd-hero__caption h1 em {
  font-style: italic;
  color: #ffd580;
}
.emd-hero__caption p {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.80);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  margin: 0;
}

.emd-hero__bandeau {
  height: var(--bandeau-h);
  overflow: hidden;
  border-bottom: 1px solid var(--emd-border);
   position: relative;  /* ← ajouter */
}

.emd-hero__bandeau::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 8, 0, 0.20);  /* même valeur que la photo, ajustez entre 0.20 et 0.60 */
}

.emd-hero__bandeau img {
  width: 100%;
  display: block;
  margin-top: -20px;  /* ← ajouter */
}

/* ── Zone sidebar + contenu ── */
.emd-body {
  display: flex;
  min-height: 400px;
}

/* ── Sidebar ── */
.emd-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--emd-sidebar);
  border-right: 1px solid var(--emd-border);

}

.emd-sidebar .navigation {
  position: static !important;
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  background: transparent;
  list-style: none;
}

.emd-sidebar .navigation > li > a,
.emd-sidebar .navigation > li > span {
  display: block !important;
  padding: 8px 14px !important;
  font-size: 18.5px !important;
    font-family: 'site-EMD', Impact, sans-serif !important;
  font-weight: 500 !important;
  color: #D30102 !important;
  text-decoration: none !important;
  background: transparent !important;
  border-left: 3px solid transparent !important;
  border-bottom: none !important;
  transition: color 0.15s, background 0.15s !important;
  letter-spacing: 0 !important;
}
.emd-sidebar .navigation > li > a:hover,
.emd-sidebar .navigation > li > span:hover {
  color: var(--emd-red) !important;
  background: #eaeae7 !important;
  border-left-color: var(--emd-red) !important;
}

.emd-sidebar .navigation .subMenu {
  display: none;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  background: #eaeae7;
  border-left: 3px solid var(--emd-red);
}
.emd-sidebar .navigation .subMenu a {
  display: block !important;
  padding: 5px 14px 5px 20px !important;
  font-size: 15px !important;
  font-family: Arial, sans-serif !important;
  font-weight: 400 !important;
  color: var(--emd-muted) !important;
  text-decoration: none !important;
  background: transparent !important;
}
.emd-sidebar .navigation .subMenu a:hover {
  color: var(--emd-red) !important;
  text-decoration: none !important;
}

.emd-sidebar .imagegauche { display: none !important; }

/* ── Contenu principal ── */
.emd-content {
  flex: 1;
  padding: 18px 20px 32px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--emd-text);
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  text-align: justify;
}

/* ── Bloc Actualités ── */
.emd-actu {
  float: right !important;
  width: 190px;
  margin: 0 0 16px 18px;
  background: var(--emd-sidebar);
  border: 1px solid var(--emd-border);
  border-radius: 6px;
  overflow: hidden;
}
.emd-content--has-actu { padding-right: 20px; }

.emd-actu__title {
  background: var(--emd-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 9px 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.emd-actu__body {
  padding: 12px 12px;
  font-size: 12.5px;
  font-family: Arial, sans-serif;
  color: var(--emd-muted);
  line-height: 1.6;
  text-align: center;
}
.emd-actu__body a { color: var(--emd-red); font-weight: 700; text-decoration: none; }
.emd-actu__body a:hover { text-decoration: underline; }

/* Images flottantes dans le contenu */
.imagedanstextedroite { float: right; margin: 0 0 8px 14px; }
.imagedanstextegauche { float: left;  margin: 4px 14px 8px 0; }

/* ── Footer ── */
.emd-footer {
  background: var(--emd-sidebar);
  border-top: 1px solid var(--emd-border);
  padding: 10px 18px;
  font-size: 11.5px;
  font-family: Arial, sans-serif;
  color: var(--emd-faint);
  text-align: center;
}
.emd-footer a { color: var(--emd-muted); text-decoration: none; }
.emd-footer a:hover { text-decoration: underline; }

/* ── Hamburger & mobile header : cachés sur desktop ── */
.emd-hamburger     { display: none; }
.emd-mobile-header { display: none; }
.emd-overlay       { display: none; }

/* ── Utilitaire ── */
.clearfix::after { content: ""; display: table; clear: both; }

/* Croix de fermeture : visible uniquement dans le drawer mobile */
.emd-drawer-close { display: none; }

/* =====================================================
   MOBILE  (< 768 px)
   ===================================================== */
@media (max-width: 767px) {

  body { background: #1a1a1a; }

  .emd-wrapper { width: 100%; }

  /* Barre mobile sticky */
  .emd-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--emd-bg);
    padding: 8px 14px;
    border-bottom: 2px solid var(--emd-red);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }
  .emd-mobile-header .emd-mobile-logo img { height: 36px; display: block; }

  /* Nav desktop cachée */
  .emd-nav { display: none; }

  /* Hero réduit */
  .emd-hero__photo { height: 180px; }
  .emd-hero__caption h1 { font-size: 20px; }

  /* Hamburger */
  .emd-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
  }
  .emd-hamburger:hover { background: rgba(178,0,0,0.08); }
  .emd-hamburger span {
    display: block;
    width: 26px; height: 2px;
    background: var(--emd-red);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
  }
  .emd-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .emd-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .emd-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Overlay */
  .emd-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 550;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
  }
  .emd-overlay.is-open { opacity: 1; pointer-events: auto; }

  /* Sidebar drawer */
  .emd-sidebar {
    position: fixed !important;
    top: 0; left: 0;
    width: 280px;
    height: 100dvh !important;  /* dvh = vraie hauteur fenêtre mobile */
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
    z-index: 600;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    padding-top: 56px;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  }
  .emd-sidebar.is-open { transform: translateX(0); }

  .emd-drawer-close { display: block; position: absolute; top: 10px; right: 10px; }
  .emd-drawer-close button {
    background: none; border: none; cursor: pointer;
    font-size: 22px; color: var(--emd-red); padding: 4px 8px;
  }

  /* Body en colonne */
  .emd-body { flex-direction: column; }

  .emd-content {
    padding: 16px 16px 28px;
    text-align: left;
  }

  .emd-actu {
    float: none !important;
    width: 100%;
    margin: 0 0 18px;

  }

  .imagedanstextedroite,
  .imagedanstextegauche { max-width: 40vw; }

  .emd-footer { font-size: 11px; padding: 10px 14px; }
}

/* ── Titres de section dans le contenu ── */
.emd-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: Arial, sans-serif;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #B20000;
  clear: both;
}

/* ── Encadré mis en valeur ── */
.emd-highlight {
  background: #f4f4f2;
  border-left: 4px solid #B20000;
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #1a1a1a;
  font-family: 'Lato', Arial, sans-serif;
  clear: both;
}

/* ── Cartes de valeurs (page accueil) ── */
.emd-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 4px;
  clear: both;
}
.emd-value-card {
  background: #f4f4f2;
  border-top: 3px solid #B20000;
  border-radius: 6px;
  padding: 16px 14px 14px;
  text-align: center;
}
.emd-value-icon {
  font-size: 26px;
  margin-bottom: 8px;
  display: block;
}
.emd-value-card h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: Arial, sans-serif;
  margin: 0 0 7px;
}
.emd-value-card p {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
}

@media (max-width: 767px) {
  .emd-values {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ── Partenaires ── */
.emd-partner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--emd-border);
}
.emd-partner:last-child { border-bottom: none; }

.emd-partner img {
  flex-shrink: 0;
  max-width: 150px;
  height: auto;
  display: block;
}
.emd-partner__info {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--emd-text);
  font-family: Arial, sans-serif;
}
.emd-partner__info a { color: var(--emd-red); text-decoration: none; }
.emd-partner__info a:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .emd-partner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
