
/* ================= PTA HOTFIX (peut rester en prod) ================= */

/* 0) Balise-visuelle de contrôle — retire-la quand tu veux */
body::after{
  content:"hotfix";
  position:fixed; bottom:8px; left:8px;
  background:#f06; color:#fff; font:12px/1.2 system-ui, sans-serif;
  padding:2px 6px; border-radius:4px; z-index:2147483647;
  opacity:.7; pointer-events:none;
}

/* 1) Gabarit commun */
html body .section-template-flex .stf-inner{
  max-width:1400px !important;
  margin:0 auto !important;
  padding:0 5vw !important;
}

html body .section-template-flex .section-title{
  font-family:"Playfair Display", Georgia, serif !important;
  font-weight:800 !important;
  font-size:clamp(24px,3.2vw,36px) !important;
  margin:0 0 .6rem !important;
  line-height:1.25 !important;
}

/* 2) Bloc extensible */
html body .section-template-flex details.expander{
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.04) !important;
  box-shadow:0 10px 24px rgba(0,0,0,.35) !important;
  overflow:hidden !important;
  margin-bottom:16px !important;
}
html body .section-template-flex .expander-summary{
  display:flex !important; align-items:center !important; justify-content:space-between !important;
  gap:12px !important; padding:14px 16px !important;
}
html body .section-template-flex .expander-summary::-webkit-details-marker{ display:none !important; }
html body .section-template-flex .teaser{
  font-size:clamp(18px,2.1vw,22px) !important;
  font-weight:700 !important;
  font-style:italic !important;
  line-height:1.25 !important;
}

/* 3) Bouton Lire plus / Réduire */
html body .section-template-flex .expander-cta{
  display:inline-block !important; min-width:92px !important; text-align:center !important;
  font-size:.95rem !important; line-height:1 !important;
  padding:8px 12px !important; border-radius:10px !important;
  background:#8B0000 !important; color:#fff !important;
  box-shadow:0 4px 12px rgba(139,0,0,.35) !important;
}
html body .section-template-flex .expander-cta::after{ content: attr(data-closed) !important; }
html body .section-template-flex details[open] .expander-cta::after{ content: attr(data-open) !important; }

/* Ancre le bouton en bas à droite du bloc quand ouvert */
html body .section-template-flex details.expander[open] .expander-content{
  position:relative !important; padding-bottom:64px !important;
}
html body .section-template-flex details.expander[open] .expander-cta{
  position:absolute !important; right:16px !important; bottom:16px !important; z-index:3 !important;
}
html body .section-template-flex details.expander[open] .expander-cta:hover{
  background:#a80000 !important; transform:translateY(-1px) !important;
}

/* 4) Texte intro */
html body .section-template-flex .expander-content{ padding:0 16px 14px !important; }
html body .section-template-flex .expander-content p{
  margin:.55rem 0 !important; line-height:1.65 !important; color:#fef8f0 !important;
}
html body .section-template-flex .expander-content p em,
html body .section-template-flex .expander-content p .soft{ color:#e8e1d7 !important; }

/* 5) Carrousels plein-bleed + gap serré */
html body .section-template-flex .block-carousel-standard .swiper,
html body .section-template-flex .block-carousel-universal .swiper{
  width:calc(100vw - 20px) !important;
  margin-left:calc(50% - 50vw + 10px) !important;
}
html body .section-template-flex .swiper-wrapper{ margin-right:-2px !important; }
html body .section-template-flex .swiper-slide{ margin-right:2px !important; }

/* 6) Images non arrondies */
html body .block-carousel-standard-v1 img,
html body .block-carousel-universal-v1 img,
html body .block-carousel-universal-v1-2per-row img,
html body .swiper-slide img{
  border-radius:0 !important;
}

/* 7) Mobile : tout à gauche, boutons compacts */
@media (max-width:768px){
  html body .section-template-flex .stf-inner{ text-align:left !important; }
  html body .section-template-flex .section-title,
  html body .section-template-flex .teaser,
  html body .section-template-flex .expander-summary,
  html body .section-template-flex .expander-content p{
    text-align:left !important; margin-left:0 !important; margin-right:auto !important;
  }
  html body .section-template-flex .expander-summary{ gap:10px !important; padding:12px 14px !important; }
  html body .section-template-flex .expander-cta{ font-size:.9rem !important; padding:6px 10px !important; border-radius:8px !important; }
  html body .section-template-flex details.expander[open] .expander-content{ padding-bottom:56px !important; }
  html body .section-template-flex details.expander[open] .expander-cta{ right:12px !important; bottom:12px !important; padding:9px 16px !important; border-radius:7px !important; font-size:14px !important; }
}

/* 8) Ajustements JA */
html[lang="ja"] body .section-template-flex .section-title,
html[lang="ja"] body .section-template-flex .teaser{ letter-spacing:.02em !important; }
html[lang="ja"] body .section-template-flex .expander-content p{ line-height:2 !important; word-break:keep-all !important; }

/* 1) Retirer tous les cadres/contours de debug autour des sections */
.section-template-flex .section-title,
.section-template-flex .expander,
.section-template-flex .expander-summary,
.section-template-flex .carousel-block-header {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* 2) Badge hotfix : en haut à gauche, discret mais visible */
.hotfix {
  position: fixed !important;
  top: 10px !important;
  left: 10px !important;
  bottom: auto !important;   /* annule un éventuel bottom fixé */
  z-index: 9999 !important;
  padding: 4px 8px;
  border-radius: 8px;
  background: #e11d48;       /* rouge framboise (peut rester le tien) */
  color: #fff;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  opacity: .9;
}

/* Évite le chevauchement avec les drapeaux sur mobile */
@media (max-width: 768px) {
  .hotfix { top: 46px !important; }  /* ajuste si tes drapeaux sont collés au bord */
}
/* === FORCE LES DRAPEAUX SUR UNE SEULE LIGNE === */
nav.language-selector{
  display:flex !important;
  flex-wrap:nowrap !important;   /* jamais de retour à la ligne */
  overflow-x:auto !important;    /* scroll horizontal si trop de flags */
  white-space:nowrap !important; /* ceinture + bretelles */
  gap:8px !important;
  padding:4px 6px !important;
  -webkit-overflow-scrolling:touch;
}
nav.language-selector::-webkit-scrollbar{ display:none; }

nav.language-selector a{
  flex:0 0 auto !important;      /* empêcher la contraction */
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:22px !important;         /* réduis un peu si besoin */
  height:18px !important;
  margin:0 !important;
  padding:0 !important;
}

nav.language-selector img{
  display:block !important;
  width:100% !important;
  height:auto !important;
}

/* si un style ailleurs impose un wrap via max-width du conteneur, débride-le : */
nav.language-selector{ width:100vw !important; margin-left:calc(-50vw + 50%) !important; }

/* ---- HERO: remonter la pagination Swiper (petits traits) ---- */
.swiper-pagination-horizontal {
  position: absolute !important;
  bottom: 5.5rem !important;  /* ajuste ici : entre 4rem (plus haut) et 7rem (plus bas) */
  left: 0;
  right: 0;
  z-index: 25;
  transform: translateY(0) !important;
}

/* Crée un peu d'espace visuel sous le texte pour que ce soit équilibré */
.carousel-hero .hero-caption,
[id^="hero_"] .hero-caption {
  margin-bottom: 4.5rem !important;
}

/* Style plus fin pour les bullets (optionnel, esthétique) */
.swiper-pagination-bullet {
  width: 16px !important;
  height: 3px !important;
  border-radius: 3px;
  margin: 0 5px !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

.swiper-pagination-bullet-active {
  background: #fff !important;
  opacity: 1 !important;
}

/* Version mobile — encore un peu plus haut pour dégager le texte */
@media (max-width: 480px) {
  .swiper-pagination-horizontal {
    bottom: 3.8rem !important;
  }
}
/* PTA: hide all internal carousel headers everywhere, no exceptions */
.stf-inner[data-strip="headers"] .carousel-shell header,
.carousel-shell header.block-carousel-header,
.block-carousel-header { display: none !important; }

