/* YOUSG — bloc d'accueil inséré dans une page WordPress ordinaire.
   - S'adapte à la largeur de SA colonne (container queries, unités cqw), pas à celle de l'écran.
   - Proportions calquées sur la maquette 1920 px.
   - Protégé des styles du thème : tout est préfixé .yousg-accueil (classe doublée pour la priorité).
   Polices : Anton (titres, licence OFL, hébergée en local) + Helvetica Neue / Arial. */

@font-face {
  font-family: "Anton";
  src: url("fonts/anton-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.yousg-accueil.yousg-accueil {
  container: yousg / inline-size;
  display: block;
  position: relative;
  clear: both;
  margin: 0 0 1.5rem;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  overflow: hidden;
}

.yousg-accueil.yousg-accueil .yg-page {
  --w: min(100cqw, 1920px);
  --marge: calc(var(--w) * 0.021);
  --gris: #9a9a9a;
  --titres: "Anton", "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 0 calc(var(--w) * 0.04);
  overflow: hidden;
}

/* Remise à zéro de ce que les thèmes appliquent aux éléments du contenu */
.yousg-accueil.yousg-accueil .yg-page * {
  box-sizing: border-box;
  float: none;
  letter-spacing: normal;
}
.yousg-accueil.yousg-accueil img {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}
.yousg-accueil.yousg-accueil .yg-page h2,
.yousg-accueil.yousg-accueil .yg-page h1 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #fff !important;
}
.yousg-accueil.yousg-accueil .yg-page ul,
.yousg-accueil.yousg-accueil .yg-page dl,
.yousg-accueil.yousg-accueil .yg-page dd,
.yousg-accueil.yousg-accueil .yg-page dt {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  background: none;
}
.yousg-accueil.yousg-accueil .yg-page li { margin: 0; padding: 0; background: none; border: 0; }
.yousg-accueil.yousg-accueil .yg-page li::before,
.yousg-accueil.yousg-accueil .yg-page li::after { content: none; }
.yousg-accueil.yousg-accueil .yg-page a { box-shadow: none; border: 0; background: none; }

.yousg-accueil .yg-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Visuel d'ouverture ---------- */
.yousg-accueil .yg-hero { position: relative; z-index: 0; margin: 0; padding: 0; }
.yousg-accueil .yg-hero img { width: 100%; height: auto; }

/* Mots décoratifs (non cliquables) */
.yousg-accueil.yousg-accueil .yg-mots {
  position: absolute;
  z-index: 2;
  top: calc(var(--w) * 0.008);
  left: var(--marge);
  right: var(--marge);
  display: flex;
  justify-content: flex-end;
  font-family: var(--titres) !important;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6cqw, 3.25rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
  user-select: none;
}
.yousg-accueil.yousg-accueil .yg-mots li {
  color: #fff !important;
  font: inherit;
  text-transform: inherit;
  text-shadow: none;
}
.yousg-accueil .yg-mots li:first-child { margin-right: auto; }
.yousg-accueil .yg-mots li:nth-child(2) { margin-right: 16.6cqw; }

/* ---------- Contenu ---------- */
.yousg-accueil .yg-contenu {
  position: relative;
  z-index: 1;
  padding: 0 var(--marge);
}

.yousg-accueil.yousg-accueil .yg-page h2 {
  font-family: var(--titres) !important;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.9cqw, 3.6rem);
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: none;
}

/* Présentation : remonte sur le bas du visuel, comme sur la maquette */
.yousg-accueil .yg-presentation {
  margin-top: calc(var(--w) * -0.195);
  text-shadow: 0 0 0.6em #000, 0 0 1.2em #000;
}
.yousg-accueil.yousg-accueil .yg-texte {
  max-width: 93cqw;
  margin: calc(var(--w) * 0.017) 0 0;
  color: #fff;
  font-size: clamp(1rem, 2.1cqw, 2.6rem);
  line-height: 1.6;
  font-weight: 400;
}
.yousg-accueil.yousg-accueil .yg-texte p {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: inherit;
  line-height: inherit;
}
.yousg-accueil.yousg-accueil .yg-texte p + p { margin-top: 0.8em; }

/* Blog */
.yousg-accueil .yg-blog { margin-top: calc(var(--w) * 0.14); }
.yousg-accueil.yousg-accueil .yg-blog a {
  position: relative;
  display: block;
  color: #fff !important;
  text-decoration: none !important;
  padding-right: calc(var(--w) * 0.13);
}
.yousg-accueil .yg-grand {
  display: block;
  margin: calc(var(--w) * 0.012) 0 0;
  font-weight: 200;
  font-size: clamp(1.7rem, 4.4cqw, 5.4rem);
  line-height: 1.1;
  text-transform: uppercase;
}
.yousg-accueil .yg-sous-titre {
  display: block;
  margin-top: calc(var(--w) * 0.006);
  color: var(--gris);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6cqw, 2rem);
}
.yousg-accueil .yg-blog svg {
  position: absolute;
  right: calc(var(--w) * 0.075);
  top: 50%;
  width: clamp(2.2rem, 5.4cqw, 6.5rem);
  height: auto;
  transform: translateY(-40%);
  transition: transform 0.25s ease;
}
.yousg-accueil .yg-blog a:hover svg,
.yousg-accueil .yg-blog a:focus-visible svg { transform: translate(0.4rem, -48%); }
.yousg-accueil.yousg-accueil .yg-blog a:hover .yg-grand,
.yousg-accueil.yousg-accueil .yg-blog a:focus-visible .yg-grand {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}
.yousg-accueil .yg-blog a:focus-visible { outline: 2px solid #fff; outline-offset: 0.5rem; }

/* Contact */
.yousg-accueil .yg-contact { margin-top: calc(var(--w) * 0.11); }
.yousg-accueil.yousg-accueil .yg-contact dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: calc(var(--w) * 0.055);
  row-gap: calc(var(--w) * 0.01);
  margin: calc(var(--w) * 0.02) 0 0;
  font-size: clamp(0.95rem, 1.7cqw, 2.1rem);
  color: #fff;
}
.yousg-accueil.yousg-accueil .yg-contact dt { color: var(--gris); font-weight: 700; }
.yousg-accueil.yousg-accueil .yg-contact dd { margin: 0; font-weight: 300; color: #fff; }
.yousg-accueil.yousg-accueil .yg-contact a { color: #fff !important; text-decoration: none !important; }
.yousg-accueil.yousg-accueil .yg-contact a:hover,
.yousg-accueil.yousg-accueil .yg-contact a:focus-visible { text-decoration: underline !important; }

/* Feuilles décoratives en bas à droite (derrière le contenu) */
.yousg-accueil .yg-decor {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  pointer-events: none;
}
.yousg-accueil .yg-decor img { width: 100%; height: auto; }

/* ---------- Colonne étroite (téléphone, ou colonne avec barre latérale) ---------- */
@container yousg (max-width: 700px) {
  .yousg-accueil .yg-page { --marge: 1rem; padding-bottom: 2.5rem; }
  .yousg-accueil .yg-mots { top: 0.6rem; }
  .yousg-accueil .yg-mots li:nth-child(2) { margin-right: 11cqw; }
  .yousg-accueil .yg-presentation { margin-top: calc(var(--w) * -0.12); }
  .yousg-accueil.yousg-accueil .yg-texte { max-width: none; line-height: 1.55; margin-top: 0.9rem; }
  .yousg-accueil .yg-blog { margin-top: 3.5rem; }
  .yousg-accueil.yousg-accueil .yg-blog a { padding-right: 4.2rem; }
  .yousg-accueil .yg-blog svg { right: 0.2rem; width: 2.4rem; }
  .yousg-accueil .yg-grand { margin-top: 0.6rem; }
  .yousg-accueil .yg-contact { margin-top: 3.5rem; }
  .yousg-accueil.yousg-accueil .yg-contact dl { column-gap: 1.2rem; row-gap: 0.5rem; margin-top: 1rem; }
  .yousg-accueil .yg-decor { width: 56%; opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  .yousg-accueil .yg-blog svg { transition: none; }
}

/* ===== Pleine largeur : suppression de la colonne latérale (thème Griffin) =====
   Actif uniquement sur la page contenant [yousg_accueil] (classe de <body>). */
body.yousg-accueil-page #sidebar-widgets,
body.yousg-accueil-page #comments,
body.yousg-accueil-page #post-footer { display: none !important; }

body.yousg-accueil-page #content-holder.container,
body.yousg-accueil-page #content-holder {
  width: 100% !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important;
}
body.yousg-accueil-page #post-holder.row { margin: 0 !important; }
body.yousg-accueil-page #post-holder > .col-md-8,
body.yousg-accueil-page #post-holder > [class*="col-"] {
  width: 100% !important; max-width: none !important; flex: 0 0 100% !important;
  float: none !important; padding: 0 !important; margin: 0 !important;
}
body.yousg-accueil-page #post-holder article,
body.yousg-accueil-page #post-holder .post,
body.yousg-accueil-page #post-holder .page {
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
}
body.yousg-accueil-page #post-content { margin: 0 !important; padding: 0 !important; }

/* Add to Any : pas de boutons de partage sur la page d'accueil YOUSG */
body.yousg-accueil-page .addtoany_share_save_container,
body.yousg-accueil-page .addtoany_content,
body.yousg-accueil-page #post-content .a2a_kit { display: none !important; }

/* Contenu collé au menu : on retire les espaces residuels au-dessus de la page */
body.yousg-accueil-page #post-content > span,
body.yousg-accueil-page #post-content > p:empty,
body.yousg-accueil-page #post-content > .wp-block-paragraph:empty { display: none !important; }
body.yousg-accueil-page #post-holder > [class*="col-"] { padding-top: 0 !important; }
body.yousg-accueil-page .yousg-accueil.yousg-accueil { margin: 0 !important; }

/* Contenu colle au pied de page (Griffin met 50 px de marge au-dessus du <footer>) */
body.yousg-accueil-page footer { margin-top: 0 !important; }
body.yousg-accueil-page #content-holder { margin-bottom: 0 !important; padding-bottom: 0 !important; }
