/* ==========================================================================
   École de Musique Michel Dien — CSS global
   Complète les templates Elementor pour une fidélité pixel-perfect aux
   maquettes .dc.html : polices locales, hovers, nav, chips, facade carte,
   formulaire CF7. Chargé par le plugin « École Michel Dien — Site ».
   ========================================================================== */

/* ---- Archivo en local (woff2, font-display swap) ---- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-v25-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/archivo-v25-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/archivo-v25-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/archivo-v25-latin-800.woff2') format('woff2');
}

/* ---- Base (maquette) ---- */
body {
  font-family: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
}
::selection {
  background: #F5C4B0;
}
a {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}
/* Liens texte (footer, paragraphes) : soulignés au hover */
.elementor-widget-text-editor a {
  color: #E8391B;
  text-decoration: none;
}
.elementor-widget-text-editor a:hover {
  color: #B22508;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Header sticky + blur -------------------------------------------------
   Le wrapper du plugin Header Footer Elementor est neutralisé (display:contents)
   pour que SEULE la barre de nav (.md-header) reste sticky — le bandeau
   d'annonce au-dessus défile normalement, comme dans la maquette. */
header#masthead,
.hfe-header,
[data-elementor-type="wp-post"].hfe-header-content {
  display: contents;
}
.md-bandeau {
  position: relative;
  z-index: 49;
}
.md-header {
  position: sticky !important;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---- Soulignement progressif nav (trait rouge 2px, gauche → droite) ---- */
.main-nav a:not(.elementor-button) {
  background-image: linear-gradient(#E8391B, #E8391B);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: left bottom;
  transition: background-size .25s ease, color .18s ease;
  padding-bottom: 6px;
}
.main-nav a:not(.elementor-button):hover {
  background-size: 100% 2px;
}
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: #E8391B !important;
}
.md-header .main-nav ul {
  justify-content: flex-end;
  gap: 30px;
}

/* ---- Pill téléphone du header (SVG inline, contour blanc) ---- */
.md-tel-wrap {
  text-align: right;
}
.md-tel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.md-tel-pill:hover {
  background: #FFFFFF;
  color: #14100D;
}

/* ---- Boutons : micro-lift au hover (comme la maquette) ---- */
.md-btn-lift .elementor-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 21, 18, .2);
}

/* ---- Hero Accueil : dégradé exact 3 arrêts (gauche → droite) ---- */
.md-hero-home > .elementor-background-overlay {
  background: linear-gradient(90deg, rgba(15, 10, 8, .78) 0%,
              rgba(15, 10, 8, .45) 55%, rgba(15, 10, 8, .15) 100%) !important;
  opacity: 1 !important;
}

/* ---- Lift cartes ---- */
.card-lift {
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 21, 18, .12);
}
.card-lift a {
  text-decoration: none;
}

/* ---- Médaillons Enseignements : photo ronde 88px, noir & blanc ---- */
.medaillon .elementor-image-box-img {
  width: 88px;
  flex-shrink: 0;
}
.medaillon .elementor-image-box-img img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  filter: grayscale(1);
}

/* ---- Étoiles avis Google ---- */
.md-stars {
  color: #F5A623;
  letter-spacing: 2px;
}
.md-stars-lg {
  font-size: 20px;
}

/* ---- Auteur d'avis : pastille initiale + nom/centre ---- */
.md-avis-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.md-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #E8391B;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.md-avis-nom {
  line-height: 1.3;
}
.md-avis-nom strong {
  font-size: 14px;
}
.md-avis-nom small {
  font-size: 12px;
  color: #6B6156;
}

/* ---- Chips villes (texte SEO indexable) et pills instruments ---- */
.md-chip,
.md-pill {
  display: inline-block;
  border-radius: 999px;
  margin: 5px 4px;
  white-space: nowrap;
}
.md-chip {
  border: 1px solid rgba(255, 255, 255, .24);
  padding: 8px 18px;
  font-weight: 600;
  font-size: 14px;
  color: #D6CCC1;
}
.md-pill {
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 15px;
  color: #FFFFFF;
  margin: 6px 5px;
}

/* ---- Carte Google My Maps : facade chargée au clic (performance) ---- */
.md-map-facade {
  position: relative;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  background: #1E2732;
  box-shadow: 0 10px 30px rgba(26, 21, 18, .08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.md-map-load {
  background: #E8391B;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.md-map-load:hover {
  background: #FFFFFF;
  color: #14100D;
  transform: translateY(-1px);
}
.md-map-note {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
}
.md-map-facade iframe {
  width: 100%;
  height: 520px;
  border: 0;
  margin-top: -60px;
}
.md-map-facade.is-loaded {
  display: block;
}

/* ---- Réseaux sociaux footer : pastilles rondes, hover rouge ---- */
.md-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}
.md-social-label {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #B3A99D;
}
.md-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #14100D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.md-social a:hover {
  background: #E8391B;
  color: #FFFFFF;
}
.md-partners a {
  font-weight: 700;
}

/* ---- Formulaire Contact Form 7 (page Contact) --------------------------
   Grille 2 colonnes, champs crème radius 10, focus rouge, bouton pill. ---- */
.md-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.md-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #F2EDE6;
}
.md-form-grid .md-form-full {
  grid-column: 1 / -1;
}
.md-form-grid .wpcf7-form-control-wrap {
  display: block;
}
.md-form-grid input,
.md-form-grid select,
.md-form-grid textarea {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  background: #F6F1E7;
  color: #1A1512;
  box-sizing: border-box;
  width: 100%;
  transition: border-color .18s ease, outline-color .18s ease;
}
.md-form-grid textarea {
  resize: vertical;
}
.md-form-grid input:focus,
.md-form-grid select:focus,
.md-form-grid textarea:focus {
  outline: 2px solid #E8391B;
  outline-offset: 0;
  border-color: #E8391B !important;
}
.md-form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}
.md-form-footer .wpcf7-submit {
  background: #E8391B;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  padding: 16px 36px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: background-color .18s ease, color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.md-form-footer .wpcf7-submit:hover {
  background: #FFFFFF;
  color: #14100D;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 21, 18, .2);
}
.md-form-note {
  font-size: 14px;
  color: #B3A99D;
}
.wpcf7 .wpcf7-not-valid-tip {
  color: #F5A88F;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 4px;
}
.wpcf7 .wpcf7-response-output {
  border-radius: 10px;
  border-color: #E8391B;
  color: #F2EDE6;
  margin: 20px 0 0;
  padding: 12px 16px;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #4caf72;
}

/* ---- Téléphones cliquables (carte sombre page Contact) ---- */
.md-tel-link a:hover .elementor-heading-title,
.md-tel-link a:hover,
.md-tel-link:hover .elementor-heading-title {
  color: #F5A88F !important;
}

/* ---- Responsive : la maquette est desktop-first (min-width 1100px) ---- */
@media (max-width: 767px) {
  .md-form-grid {
    grid-template-columns: 1fr;
  }
  .md-social {
    justify-content: flex-start;
    border-left: none;
    padding-left: 0;
  }
  .md-map-facade {
    height: 360px;
  }
}


/* ---- Hotfix installation (2026-08-17) : largeur naturelle du logo +
   colonnes flexibles header/footer (empêche l'écrasement min-content) ---- */
.md-header .elementor-widget-image img {
  width: auto;
  height: 52px;
}
.md-header .elementor-column,
.md-footer .elementor-column {
  min-width: 0;
}


/* ---- Hotfix responsive (2026-08-17) : la maquette étant desktop-first,
   adaptations tablette/mobile (header compact, typo fluide, respirations) ---- */
@media (max-width: 1024px) {
  .md-header {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .md-header > .elementor-container {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }
  .md-header .elementor-column {
    width: auto !important;
    flex: 0 0 auto;
    min-width: 0;
  }
  .md-header .elementor-column:nth-child(2) {
    flex: 1 1 auto;
  }
  .md-hero-home h1.elementor-heading-title {
    font-size: 44px !important;
  }
}
@media (max-width: 767px) {
  /* Header compact : logo + burger + bouton S'inscrire sur une ligne */
  .md-header > .elementor-container {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }
  .md-header .elementor-column {
    width: auto !important;
  }
  .md-header .elementor-column:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
  }
  .md-header .md-tel-wrap {
    display: none;
  }
  .md-header .elementor-widget-image img {
    height: 40px;
  }
  .md-bandeau {
    padding: 8px 14px !important;
  }
  .md-bandeau p {
    font-size: 11px !important;
  }
  .md-hero-home h1.elementor-heading-title {
    font-size: 34px !important;
  }
  h1.elementor-heading-title {
    font-size: 34px !important;
  }
  h2.elementor-heading-title {
    font-size: 26px !important;
  }
  .elementor-top-section.elementor-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}


/* ---- Hotfix cartes (2026-08-17) : gouttières réelles entre cartes (le fond
   étant posé sur la colonne, le gap Elementor ne créait aucun espace),
   et carte « Nos cours » cliquable sur toute sa surface ---- */
.elementor-column.card-lift {
  position: relative;
}
.elementor-column.card-lift > .elementor-element-populated {
  margin-left: 14px;
  margin-right: 14px;
}
.elementor-column.card-lift:first-child > .elementor-element-populated {
  margin-left: 0;
}
.elementor-column.card-lift:last-child > .elementor-element-populated {
  margin-right: 0;
}
@media (max-width: 767px) {
  .elementor-column.card-lift > .elementor-element-populated {
    margin: 0 0 18px;
  }
}
.card-lift .elementor-widget-image,
.card-lift .elementor-widget-image .elementor-widget-container {
  position: static;
}
.card-lift .elementor-widget-image a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}


/* ---- Hotfix bandeau/footer (2026-08-17) : bandeau fin (marge du <p> du
   thème neutralisée) et respiration des liens partenaires du footer ---- */
.md-bandeau p,
.md-footer p {
  margin-bottom: 0;
}
.md-partners {
  padding-right: 24px;
}


/* ---- Hotfix formulaire (2026-08-17) : l'autop de CF7 enveloppe les <label>
   dans un <p> unique, ce qui cassait la grille 2 colonnes ---- */
.md-form-grid p,
.md-form-footer p {
  display: contents;
}
.md-form-grid br,
.md-form-footer br {
  display: none;
}


/* ---- Hotfix encart promo Contact (2026-08-17) : densité alignée sur la
   maquette (padding réduit, titre 17px, texte 14px) ---- */
.md-encart-promo {
  padding: 24px 28px !important;
}
.md-encart-promo .elementor-heading-title {
  font-size: 17px !important;
}
.md-encart-promo p {
  font-size: 14px !important;
  line-height: 1.55 !important;
}


/* ---- Hotfix cartes Contact (2026-08-17) : suppression du double padding des cartes
   de la colonne droite (padding géré par la section, pas par la colonne) ---- */
.md-encart-promo .elementor-element-populated,
.md-encart-promo ~ .elementor-section .elementor-element-populated {
  padding: 0 !important;
}


/* ---- Hotfix alignement + select (2026-08-17) ------------------------------
   1) Widgets côte à côte (bouton + numéro) : centrage vertical commun.
   2) Select CF7 : rendu identique sur tous les navigateurs (flèche SVG
      maison, hauteur et typo forcées — le select natif diffère sinon entre
      Chrome, Firefox, Safari et Windows). ---- */
.elementor-widget-wrap > .elementor-widget__width-auto {
  align-self: center;
}

.md-form-grid select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 14px 44px 14px 16px;
  line-height: 1.5;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #1A1512;
  background-color: #F6F1E7;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231A1512' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 9px;
  text-indent: 0;
  cursor: pointer;
}
.md-form-grid select::-ms-expand {
  display: none;
}
.md-form-grid select option {
  background-color: #F6F1E7;
  color: #1A1512;
}
.md-form-grid input,
.md-form-grid select,
.md-form-grid textarea {
  -webkit-text-fill-color: #1A1512;
}
.md-form-grid input,
.md-form-grid select {
  min-height: 54px;
}
