/* yamato-theme — suite de style.css (découpage mécanique, règle des 500 lignes, audit 18/11/2026). Chargée juste après style.css. */
/* ═══ ESPRIT YAMATO ═══ */
.ymt-esprit-inner{
  display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center;
}
.ymt-esprit-img{
  width:100%;max-width:380px;margin:0 auto;
  filter:drop-shadow(0 0 40px rgba(232,21,27,.2));
  animation:ymt-float 8s ease-in-out infinite;
}
.ymt-esprit-txt{
  font-family:'Saira Condensed',sans-serif;font-size:16px;font-weight:300;
  color:rgba(255,255,255,.5);line-height:2;margin-top:20px;
}
.ymt-vals{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin-top:32px;}
.ymt-val{
  background:#111;padding:22px;
  border-top:3px solid transparent;transition:border-color .2s;
}
.ymt-val:hover{border-color:var(--red);}
.ymt-val-icon{font-size:22px;margin-bottom:8px;}
.ymt-val-title{
  font-family:'Bebas Neue',sans-serif;font-size:20px;
  letter-spacing:2px;color:#fff;
}
.ymt-val-desc{
  font-family:'Saira Condensed',sans-serif;font-size:13px;
  color:rgba(255,255,255,.35);margin-top:4px;line-height:1.6;
}

/* ═══ SERVICES ═══ */
.ymt-services-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:2px;
}
.ymt-service{
  background:var(--lite);padding:40px 32px;
  position:relative;overflow:hidden;transition:transform .25s;
}
.ymt-service::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--red);
}
.ymt-service:hover{transform:translateY(-4px);}
.ymt-service-num{
  font-family:'Bebas Neue',sans-serif;font-size:80px;
  color:rgba(232,21,27,.1);line-height:1;margin-bottom:8px;
}
.ymt-service-pub{
  display:inline-block;font-family:'Saira Condensed',sans-serif;
  font-size:11px;font-weight:700;letter-spacing:3px;
  text-transform:uppercase;color:var(--red);
  padding:3px 10px;background:rgba(232,21,27,.08);margin-bottom:10px;
}
.ymt-service-title{
  font-family:'Bebas Neue',sans-serif;font-size:26px;
  letter-spacing:2px;color:var(--black);margin-bottom:10px;
}
.ymt-service-desc{
  font-family:'Saira Condensed',sans-serif;font-size:14px;
  color:var(--grey);line-height:1.8;
}

/* ═══ PAGE HEADER (intérieures) ═══ */
.ymt-page-header{
  padding-top:64px;min-height:260px;
  background:var(--black);position:relative;overflow:hidden;
  display:flex;align-items:flex-end;
}
.ymt-page-header::before{
  content:'';position:absolute;inset:0;
  background:repeating-linear-gradient(
    -55deg,transparent 0,transparent 20px,
    rgba(232,21,27,.03) 20px,rgba(232,21,27,.03) 22px
  );
}
.ymt-page-header-bottom{
  position:absolute;bottom:0;left:0;right:0;height:3px;
  background:linear-gradient(to right,var(--red) 30%,transparent);
}
.ymt-page-header-inner{padding:48px 0;position:relative;z-index:1;}
.ymt-breadcrumb{
  display:flex;align-items:center;gap:8px;margin-bottom:12px;
  font-family:'Saira Condensed',sans-serif;font-size:12px;
  letter-spacing:3px;text-transform:uppercase;color:rgba(255,255,255,.25);
}
.ymt-breadcrumb a{color:rgba(255,255,255,.25);transition:color .2s;}
.ymt-breadcrumb a:hover{color:var(--red);}
.ymt-breadcrumb span{color:var(--red);}
.ymt-page-title{
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(52px,7vw,96px);
  letter-spacing:4px;color:#fff;line-height:.9;
}
.ymt-page-title span{color:var(--red);}

/* ═══ CONTENU PAGE WP ═══ */
.ymt-page-content{padding:80px 0;min-height:50vh;}
/* Toutes les couleurs issues du plugin Yamato sont préservées */
.ymt-page-content h1,.ymt-page-content h2,
.ymt-page-content h3,.ymt-page-content h4{
  font-family:'Bebas Neue',sans-serif;letter-spacing:2px;
  margin-bottom:14px;margin-top:28px;
}
.ymt-page-content h1{font-size:52px;color:var(--black);}
.ymt-page-content h2{font-size:40px;color:var(--black);}
.ymt-page-content h3{font-size:28px;color:var(--black);}
.ymt-page-content p{
  font-family:'Saira Condensed',sans-serif;font-size:16px;
  color:#444;line-height:1.9;margin-bottom:16px;
}
.ymt-page-content a{color:var(--red);transition:opacity .2s;}
.ymt-page-content a:hover{opacity:.75;}
.ymt-page-content ul,.ymt-page-content ol{
  padding-left:20px;margin-bottom:16px;
  font-family:'Saira Condensed',sans-serif;font-size:15px;
  color:#555;line-height:2;
}
.ymt-page-content ul li{list-style:disc;}
.ymt-page-content ol li{list-style:decimal;}
.ymt-page-content strong{font-weight:700;color:var(--black);}
/* Formulaires (exposant, contact) */
.ymt-page-content input[type="text"],
.ymt-page-content input[type="email"],
.ymt-page-content input[type="tel"],
.ymt-page-content input[type="number"],
.ymt-page-content select,
.ymt-page-content textarea{
  width:100%;padding:12px 16px;
  background:var(--lite);border:2px solid var(--bdr);
  font-family:'Saira Condensed',sans-serif;font-size:15px;
  color:var(--black);outline:none;transition:border-color .2s;
  margin-bottom:10px;border-radius:0;
}
.ymt-page-content input:focus,
.ymt-page-content select:focus,
.ymt-page-content textarea:focus{border-color:var(--red);background:#fff;}
.ymt-page-content input[type="submit"],
.ymt-page-content button[type="submit"]{
  background:var(--red);color:#fff;
  font-family:'Bebas Neue',sans-serif;font-size:18px;letter-spacing:4px;
  padding:14px 36px;border:none;cursor:pointer;transition:all .25s;
  clip-path:polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  width:auto;
}
.ymt-page-content input[type="submit"]:hover,
.ymt-page-content button[type="submit"]:hover{
  background:#c00;transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(232,21,27,.4);
}
.ymt-page-content label{
  font-family:'Saira Condensed',sans-serif;font-size:13px;
  font-weight:700;letter-spacing:2px;color:var(--black);
  display:block;margin-bottom:4px;text-transform:uppercase;
}
.ymt-page-content input[type="checkbox"],
.ymt-page-content input[type="radio"]{
  width:auto;margin:0 8px 0 0;accent-color:var(--red);
}
.ymt-page-content table{width:100%;border-collapse:collapse;margin-bottom:20px;}
.ymt-page-content th{
  background:var(--black);color:#fff;
  font-family:'Bebas Neue',sans-serif;font-size:15px;letter-spacing:2px;
  padding:12px 16px;text-align:left;
}
.ymt-page-content td{
  padding:12px 16px;border-bottom:1px solid var(--bdr);
  font-family:'Saira Condensed',sans-serif;font-size:14px;color:#555;
}
.ymt-page-content tr:hover td{background:var(--lite);}

/* ═══ FOOTER ═══ */
.ymt-footer{
  background:var(--black);padding:64px 0 28px;
  border-top:3px solid var(--red);
}
.ymt-footer-grid{
  display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;margin-bottom:48px;
}
.ymt-footer-logo{display:flex;align-items:center;gap:14px;margin-bottom:16px;}
.ymt-footer-logo img{
  height:50px;width:50px;object-fit:contain;
  filter:drop-shadow(0 0 8px rgba(232,21,27,.3));
}
.ymt-footer-brand{
  font-family:'Bebas Neue',sans-serif;font-size:22px;
  letter-spacing:3px;color:#fff;line-height:1.1;
}
.ymt-footer-brand em{color:var(--red);font-style:normal;display:block;}
.ymt-footer-desc{
  font-family:'Saira Condensed',sans-serif;font-size:13px;
  color:rgba(255,255,255,.28);line-height:1.9;max-width:310px;
}
.ymt-footer-soc-row{display:flex;gap:8px;margin-top:16px;}
.ymt-footer-soc{
  width:36px;height:36px;border:1px solid #252525;
  display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.25);font-size:14px;font-weight:700;
  transition:all .2s;
}
.ymt-footer-soc:hover{border-color:var(--red);color:#fff;background:var(--red);}
.ymt-footer-col-h{
  font-family:'Bebas Neue',sans-serif;font-size:15px;
  letter-spacing:4px;color:var(--red);margin-bottom:16px;
}
.ymt-footer-links a{
  display:block;font-family:'Saira Condensed',sans-serif;
  font-size:13px;letter-spacing:.5px;
  color:rgba(255,255,255,.28);padding:5px 0;transition:color .2s;
}
.ymt-footer-links a:hover{color:#fff;}
.ymt-footer-bottom{
  border-top:1px solid #181818;padding-top:22px;
  display:flex;align-items:center;justify-content:space-between;
}
.ymt-footer-copy{
  font-family:'Saira Condensed',sans-serif;font-size:11px;
  letter-spacing:2px;color:rgba(255,255,255,.15);
}
.ymt-footer-aacbs{
  font-family:'Bebas Neue',sans-serif;font-size:13px;
  letter-spacing:5px;color:rgba(255,255,255,.12);
}
.ymt-footer-aacbs em{color:var(--red);font-style:normal;}

/* ═══ ANIMATIONS ═══ */
@keyframes ymt-float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-14px);}
}

/* Contenu WordPress dans section Esprit (fond noir) */
.ymt-esprit-wp-content p {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,.5);
  line-height: 2; margin-bottom: 14px; letter-spacing: .3px;
}
.ymt-esprit-wp-content h1,.ymt-esprit-wp-content h2,
.ymt-esprit-wp-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px; color: #fff; margin-bottom: 10px;
}
.ymt-esprit-wp-content a { color: var(--red); }
.ymt-esprit-wp-content strong { color: #fff; font-weight: 700; }

/* Placeholder image événement */
.ymt-event-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(255,255,255,.2);
  transition: opacity .3s;
}
.ymt-event-card:hover .ymt-event-img-placeholder { opacity: .85; }

/* Aucun événement à venir */
.ymt-no-events {
  grid-column: 1 / -1;
  text-align: center; padding: 80px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.ymt-no-events span { font-size: 56px; }
.ymt-no-events p {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 18px; font-weight: 300; letter-spacing: 1px;
  color: var(--grey); line-height: 1.8;
}

/* ═══ RESPONSIVE ═══ */
@media(max-width:1024px){
  .ymt-services-grid{grid-template-columns:1fr 1fr;}
  .ymt-footer-grid{grid-template-columns:1fr 1fr;gap:40px;}
  .ymt-footer-grid > div:first-child{grid-column:span 2;}
}
@media(max-width:768px){
  .ymt-wrap{padding:0 24px;}
  .ymt-nav-inner{padding:0 24px;}
  .ymt-nav-links,.ymt-nav-socials{display:none;}
  .ymt-burger{display:flex;}
  .ymt-hero{grid-template-columns:1fr;}
  .ymt-hero-right,.ymt-hero-bg-red,.ymt-hero-bg-black,.ymt-hero-rings{display:none;}
  .ymt-hero-left{padding:80px 24px 60px;}
  .ymt-statsbar{flex-wrap:wrap;}
  .ymt-stat{flex:0 0 50%;border-right:none;border-bottom:1px solid #1c1c1c;}
  .ymt-stat:nth-child(odd){border-right:1px solid #1c1c1c;}
  .ymt-esprit-inner{grid-template-columns:1fr;}
  .ymt-services-grid{grid-template-columns:1fr;}
  .ymt-events-grid{grid-template-columns:1fr;}
  .ymt-footer-grid{grid-template-columns:1fr;gap:32px;}
  .ymt-footer-bottom{flex-direction:column;gap:8px;text-align:center;}
  .ymt-section{padding:70px 0;}
}

/* ═══════════════════════════════════════════════════════════════════════
 * v1.5 — RESPONSIVE RENFORCÉ (100% mobile-friendly)
 * Cible : lisibilité + cibles tactiles + pas de scroll horizontal parasite
 * ═══════════════════════════════════════════════════════════════════════ */

/* Anti-scroll horizontal global */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }

@media (max-width: 768px) {
  /* Padding wrap adapté */
  .ymt-wrap { padding: 0 16px !important; }
  .ymt-nav-inner { padding: 12px 16px !important; }

  /* Titres hero + sections : réductions douces
     v1.6 : taille suffisante pour que le -webkit-text-stroke:3px du .outline
     ne bouffe pas les courbes des lettres (le O de YAMATO devenait illisible) */
  .ymt-hero-title,
  .ymt-hero h1 { font-size: clamp(64px, 15vw, 90px) !important; line-height: .95 !important; }
  /* v1.6 : réduit le stroke sur mobile pour compenser la police plus petite */
  .ymt-hero-title .outline { -webkit-text-stroke-width: 2px !important; }
  .ymt-hero-sub,
  .ymt-hero h2 { font-size: clamp(15px, 4vw, 18px) !important; }
  .ymt-section-title,
  .ymt-section h2 { font-size: clamp(24px, 6vw, 32px) !important; line-height: 1.15 !important; }

  /* Sections : padding vertical réduit */
  .ymt-section { padding: 48px 0 !important; }

  /* Boutons : cibles tactiles confortables + pleine largeur si dans un groupe */
  .ymt-btn,
  .ymt-hero-btns .ymt-btn {
    min-height: 48px !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .ymt-hero-btns { flex-direction: column !important; gap: 10px !important; align-items: stretch !important; }

  /* Nav mobile — burger + menu overlay */
  .ymt-mobile-menu a {
    font-size: 20px !important;
    padding: 14px 0 !important;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Formulaire contact + inputs génériques du thème */
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
  input[type="password"], input[type="url"], input[type="search"], input[type="date"],
  select, textarea {
    font-size: 16px !important; /* évite le zoom iOS */
    padding: 12px !important;
    box-sizing: border-box;
    max-width: 100%;
  }

  /* Grilles génériques : forcer 1 colonne sur mobile pour tout ce qui reste */
  [class*="ymt-"][class*="-grid"] { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Cards & tuiles : padding intérieur réduit */
  .ymt-card, .ymt-tile, .ymt-event-card, .ymt-service-card {
    padding: 20px !important;
  }

  /* Contact page : mise en page fluide */
  .ymt-contact-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Fluid text pour paragraphes longs */
  .ymt-container p, .ymt-section p { font-size: 15px; line-height: 1.6; }

  /* Tables : scroll horizontal si dépasse (billetterie, etc.) */
  .ymt-container table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
}

/* Très petits écrans (iPhone SE 1re gen, Galaxy Fold fermé…) */
@media (max-width: 380px) {
  .ymt-wrap { padding: 0 12px !important; }
  .ymt-section { padding: 36px 0 !important; }
  .ymt-hero-title,
  .ymt-hero h1 { font-size: 56px !important; }
  .ymt-hero-title .outline { -webkit-text-stroke-width: 1.6px !important; }
}

/* Accessibilité tactile universelle : évite les tap ratés */
@media (hover: none) and (pointer: coarse) {
  a, button, .ymt-btn, [role="button"] {
    min-height: 44px;
    touch-action: manipulation;
  }
}
