/**
 * Seventy5 — adaptations WordPress.
 * Complète style.css (copie conforme de la maquette) : menus WordPress,
 * menu mobile, pages intérieures, contenu éditorial, accessibilité.
 */

/* ---------- Accessibilité ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none;
  height: auto; width: auto;
  margin: 0;
  left: 16px; top: 16px;
  z-index: 100000;
  background: #fff; color: var(--ink);
  padding: 14px 22px;
  font-weight: 800; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Barre d'administration ---------- */
.admin-bar .topnav { top: 32px; }
@media (max-width: 782px) { .admin-bar .topnav { top: 46px; } }

/* ---------- Navigation (menus WordPress) ---------- */
.topnav ul.nav-links { list-style: none; margin: 0; padding: 0; align-items: center; }
.topnav .nav-links li { margin: 0; }
.topnav .brand-link,
.topnav .nav-toggle { position: relative; z-index: 2; }
.nav-toggle { display: none; }

/* ---------- Boutons ---------- */
/* Remplace le style en ligne de la maquette, qui rendait le texte invisible au survol. */
.btn-light.is-muted { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.9); }
.btn-light.is-muted:hover { border-color: #fff; color: var(--ink); }

/* ---------- Cartes : panneaux rendus côté serveur ---------- */
.menu-panel[hidden] { display: none; }

/* Montant deux fois plus grand ; la devise garde sa taille */
.menu-item .p { font-size: clamp(48px, 4vw, 64px); }

/* Devise plus discrète que le montant */
.menu-item .p .cur {
  font-family: 'Garet', sans-serif;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: 0.35em;
  margin-right: 2px;
  opacity: 0.75;
}

/* Bouton de téléchargement de la carte */
.menu-panel .menu-download {
  grid-column: 1 / -1;
  margin: 30px 0 0;
  text-align: center;
}

/* ---------- Images du contenu : apparition au défilement ---------- */
.s75-media-reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(14px);
  transition:
    opacity 1.1s cubic-bezier(.22,.61,.36,1),
    transform 1.1s cubic-bezier(.22,.61,.36,1),
    filter 1.1s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform, filter;
}
.s75-media-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .s75-media-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ---------- Le Restaurant ---------- */
.restaurant .restaurant-more { margin: 44px 0 0; }

/* Macaron « Ambassadeur » : plus de rotation, une apparition au défilement */
.restaurant .gallery .badge {
  animation: none;
  opacity: 0;
  transform: scale(0.4);
  transition:
    transform 0.7s cubic-bezier(.34,1.56,.64,1),
    opacity 0.5s ease;
}
.restaurant .gallery.in .badge,
.restaurant .gallery.is-visible .badge {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.35s;
}
@media (prefers-reduced-motion: reduce) {
  .restaurant .gallery .badge { opacity: 1; transform: none; transition: none; }
}

/* Chiffres repris dans une page (blocs natifs) */
.entry-content .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 56px 0;
  padding-top: 44px;
  border-top: 1px solid var(--rule);
}
.entry-content .stat .n {
  display: block;
  margin: 0;
  font-family: 'Alexander', cursive;
  color: var(--gold);
  font-size: clamp(56px, 5vw, 78px);
  line-height: 0.9;
}
.entry-content .stat .l {
  display: block;
  margin: 10px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #666;
  font-weight: 800;
}
@media (max-width: 760px) {
  .entry-content .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Carrousel d'événements (bloc) ---------- */
.s75-events-slider { background: var(--paper-warm); }
.s75-slider { position: relative; }
.s75-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 80px) / 3);
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.s75-slider__track::-webkit-scrollbar { display: none; }
.s75-slider__track > * { scroll-snap-align: start; }
.s75-slider__track:focus-visible { outline: 1px solid var(--gold); outline-offset: 10px; }

.s75-slider__nav { display: flex; justify-content: center; gap: 12px; margin-top: 44px; }
.s75-slider__nav button {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
}
.s75-slider__nav button:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: #fff; }
.s75-slider__nav button:disabled { opacity: 0.3; cursor: default; }
.s75-slider.is-static .s75-slider__nav { display: none; }

/* Introduction sous le titre de section */
.section-intro {
  max-width: 680px;
  margin: 26px auto 0;
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}
.menus .section-intro { color: rgba(255,255,255,0.7); }

/* Dans une page, les liens du contenu sont soulignés : pas ceux des blocs du thème */
.entry-content .btn,
.entry-content .news-card,
.entry-content .s75-events-slider a,
.entry-content .s75-cartes a { text-decoration: none; }
.entry-content .news-card { color: var(--ink); }
.entry-content .news-card:hover { color: var(--ink); }

/* Le bloc placé dans une page : pleine largeur et typographie de la maquette */
.entry-content > .s75-events-slider {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.entry-content .s75-events-slider .section-head h2 {
  font-family: 'Alexander', cursive;
  font-weight: 400;
  color: var(--gold);
  font-size: clamp(78px, 11vw, 184px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.entry-content .s75-events-slider .news-card h3 {
  font-family: 'Garet', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 14px;
}

@media (max-width: 1280px) {
  .s75-slider__track { grid-auto-columns: calc((100% - 40px) / 2); }
}
@media (max-width: 760px) {
  .s75-slider__track { grid-auto-columns: 86%; gap: 22px; }
  .s75-slider__nav { margin-top: 32px; }
}

/* ---------- Actualités ---------- */
.news-more { text-align: center; margin: 80px 0 0; }
.empty-state { text-align: center; color: #555; }

/* Page « Événements » : grille régulière de 6 cartes */
.news-archive .news-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (min-width: 761px) and (max-width: 1280px) {
  .news-archive .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .news-archive .news-grid { grid-template-columns: 1fr; }
}
.events-intro { max-width: 620px; margin: 26px auto 0; color: #555; font-size: 16px; line-height: 1.8; }
.events-intro p { margin: 0; }

/* ---------- Infos ---------- */
.infos .card + .card { margin-top: 20px; }
.infos .card .address {
  margin: 0 0 10px;
  font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 12px;
}
.infos .card .access { margin: 0; color: #555; font-size: 14px; line-height: 1.7; }
.infos .card .access a { color: var(--gold); text-decoration: none; font-weight: 800; letter-spacing: 0.06em; }

/* ---------- Pied de page : liens légaux ---------- */
.footer-bot .legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.footer-bot .legal-links li + li::before { content: '·'; padding: 0 0.9em; }

/* ---------- Pages intérieures ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 190px 56px 40px;
  background: var(--paper);
  text-align: center;
}
.page-hero .worldmap-bg { opacity: 0.05; }
.page-hero .section-head { margin-bottom: 0; }
.page-hero .section-head h1 {
  font-family: 'Alexander', cursive;
  color: var(--gold);
  font-size: clamp(64px, 9vw, 150px);
  margin: 0;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.page-hero.is-404 { padding-bottom: 160px; }

/* Image mise en avant en bandeau derrière le titre */
.page-hero.has-cover {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 60vh;
  padding: 220px 56px 70px;
  background: #050403;
  color: #fff;
}
.page-hero__media { position: absolute; inset: 0; overflow: hidden; }
.page-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: s75-cover-in 2.6s cubic-bezier(.22,.61,.36,1) both;
}
.page-hero.has-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.8) 100%);
}
.page-hero.has-cover .section-head,
.page-hero.has-cover .article-head {
  position: relative;
  z-index: 1;
  animation: s75-cover-title 1.2s cubic-bezier(.22,.61,.36,1) 0.45s both;
}
.page-hero.has-cover .section-head h1 { color: var(--gold-soft); }
.page-hero.has-cover .article-title { color: #fff; }
.page-hero.has-cover .article-lead { color: rgba(255,255,255,0.8); }
.page-hero.has-cover .meta { color: var(--gold-soft); }
.page-hero.has-cover .meta .dot { background: var(--gold-soft); }
.page-hero.has-cover .events-intro { color: rgba(255,255,255,0.78); }

@keyframes s75-cover-in {
  0% { transform: scale(1.14); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes s75-cover-title {
  0% { opacity: 0; transform: translateY(26px); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__media img,
  .page-hero.has-cover .section-head,
  .page-hero.has-cover .article-head { animation: none; }
}
@media (max-width: 760px) {
  .page-hero.has-cover { min-height: 46vh; padding: 130px 22px 50px; }
}
.page-hero .lost { max-width: 520px; margin: 30px auto 44px; color: #555; font-size: 16px; line-height: 1.7; }

.news-archive { padding-top: 100px; }

.article-head { position: relative; max-width: 900px; margin: 0 auto; }
.article-head .meta {
  display: inline-flex; gap: 16px; align-items: center;
  margin-bottom: 26px;
  font-size: 10.5px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--gold); font-weight: 800;
}
.article-head .meta .dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.article-title {
  font-family: 'Garet', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin: 0;
}
.article-lead { max-width: 680px; margin: 26px auto 0; color: #4a4a4a; font-size: 18px; line-height: 1.7; }

.article-cover { max-width: 1292px; margin: 40px auto 0; padding: 0 56px; }
.article-cover img { width: 100%; height: auto; max-height: 720px; object-fit: cover; }

.article-foot { text-align: center; padding: 0 56px 140px; }

/* ---------- Contenu éditorial ---------- */
.entry-wrap { padding: 90px 56px 120px; }
/* Accueil composé de blocs : les sections gèrent elles-mêmes leurs marges hautes et basses. */
.entry-wrap--front { padding-top: 0; padding-bottom: 0; }
.entry-content { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.85; color: #2a2a2a; }
.entry-content::after { content: ''; display: table; clear: both; }
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content h2 {
  font-family: 'Alexander', cursive; font-weight: 400;
  color: var(--gold); font-size: clamp(44px, 5vw, 68px);
  line-height: 1; margin: 1.3em 0 0.5em;
}
.entry-content h3 { font-weight: 800; font-size: 22px; line-height: 1.3; color: var(--ink); margin: 1.8em 0 0.6em; }
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-weight: 800; font-size: 12px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--gold); margin: 2em 0 0.8em;
}
.entry-content a { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--ink); }
.entry-content strong, .entry-content b { font-weight: 800; }
.entry-content img { height: auto; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
  margin: 2em 0; padding: 0 0 0 30px;
  border-left: 1px solid var(--gold);
  font-size: 20px; font-style: italic; color: var(--ink);
}
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .entry-content .wp-caption-text { margin-top: 10px; font-size: 13px; color: #777; text-align: center; }
.entry-content hr { border: 0; height: 1px; background: var(--rule); margin: 3em 0; }
.entry-content .alignwide { margin-left: calc(50% - min(590px, 50vw - 56px)); margin-right: calc(50% - min(590px, 50vw - 56px)); max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none; }
.entry-content .alignleft { float: left; margin: 0.3em 1.6em 1em 0; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.6em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .wp-block-button__link {
  display: inline-flex; padding: 18px 34px; border-radius: 0;
  background: var(--gold); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
  transition: background 0.5s ease;
}
.entry-content .wp-block-button__link:hover { background: var(--ink); color: #fff; }

/* ---------- Tableaux : épurés, sans bordure ---------- */
.entry-content .wp-block-table { margin: 2.2em 0; }
.entry-content .wp-block-table table { margin: 0; }
.entry-content table {
  width: 100%;
  margin: 2.2em 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}
.entry-content table th,
.entry-content table td { border: 0; }
.entry-content table th {
  padding: 12px 28px 18px 0;
  text-align: left;
  font-family: 'Garet', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.entry-content table td {
  padding: 15px 28px 15px 0;
  color: #2a2a2a;
  vertical-align: top;
}
.entry-content table tr > *:last-child { padding-right: 0; }
.entry-content table tbody tr { transition: background 0.3s ease, box-shadow 0.3s ease; }
.entry-content table tbody tr:hover {
  background: var(--paper-warm);
  /* prolonge la bande au survol au-delà des bords du tableau */
  box-shadow: -14px 0 0 var(--paper-warm), 14px 0 0 var(--paper-warm);
}
.entry-content table caption,
.entry-content .wp-block-table figcaption {
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #777;
  text-align: left;
}

/* ---------- FAQ Yoast (accordéon, dépliée au clic) ---------- */
.schema-faq { margin: 2.2em 0; border-top: 1px solid var(--rule); }
.schema-faq-section { border-bottom: 1px solid var(--rule); }
.schema-faq-question {
  position: relative;
  display: block;
  padding: 28px 44px 28px 0;
  font-family: 'Garet', sans-serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: color 0.4s ease;
}
.schema-faq-answer { font-size: 15.5px; line-height: 1.75; color: #4a4a4a; }

/* Replié : uniquement quand le script est actif (sinon tout reste lisible) */
.s75-faq .schema-faq-question { cursor: pointer; }
.s75-faq .schema-faq-question:hover,
.s75-faq .schema-faq-section.is-open .schema-faq-question { color: var(--gold); }
.s75-faq .schema-faq-question:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.s75-faq .schema-faq-question::before,
.s75-faq .schema-faq-question::after {
  content: '';
  position: absolute;
  top: 50%;
  background: var(--gold);
  transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
}
.s75-faq .schema-faq-question::before { right: 2px; width: 24px; height: 1px; transform: translateY(-50%); }
.s75-faq .schema-faq-question::after { right: 13px; width: 1px; height: 24px; transform: translateY(-50%); }
.s75-faq .schema-faq-section.is-open .schema-faq-question::after { transform: translateY(-50%) scaleY(0); }
.s75-faq .schema-faq-answer {
  max-height: 0;
  margin: 0;
  padding: 0 44px 0 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s cubic-bezier(.22,.61,.36,1), padding 0.5s ease, opacity 0.4s ease;
}
.s75-faq .schema-faq-section.is-open .schema-faq-answer {
  max-height: 900px;
  padding-bottom: 30px;
  opacity: 1;
}

@media (max-width: 760px) {
  .entry-content table { display: block; overflow-x: auto; }
  .schema-faq-question { font-size: 15px; padding: 22px 40px 22px 0; }
}

/* ---------- Pagination ---------- */
.pagination { margin-top: 90px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.pagination .page-numbers {
  min-width: 46px; height: 46px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 12px; letter-spacing: 0.1em;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.pagination .page-numbers.current,
.pagination a.page-numbers:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Responsive ---------- */
body.nav-locked { overflow: hidden; }

@media (max-width: 760px) {
  /* Menu mobile (la maquette masquait simplement les liens). */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; padding: 0;
    color: inherit; cursor: pointer;
  }
  .nav-toggle .bars,
  .nav-toggle .bars::before,
  .nav-toggle .bars::after { display: block; width: 24px; height: 1px; background: currentColor; }
  .nav-toggle .bars { position: relative; transition: background 0.3s ease; }
  .nav-toggle .bars::before,
  .nav-toggle .bars::after { content: ''; position: absolute; left: 0; transition: transform 0.4s cubic-bezier(.22,.61,.36,1); }
  .nav-toggle .bars::before { top: -7px; }
  .nav-toggle .bars::after { top: 7px; }

  .topnav .nav-links {
    display: flex;
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center;
    gap: 34px;
    background: var(--paper-dark);
    color: #fff;
    font-size: 13px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  .topnav.menu-open .nav-links { opacity: 1; visibility: visible; }
  /* backdrop-filter crée un bloc conteneur : on le coupe pour que l'overlay couvre l'écran. */
  .topnav.menu-open {
    background: transparent; box-shadow: none; color: #fff;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .topnav.menu-open .brand { filter: invert(1); }
  .topnav.menu-open .nav-cta { color: var(--gold-soft) !important; }
  .topnav.menu-open .nav-toggle .bars { background: transparent; }
  .topnav.menu-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
  .topnav.menu-open .nav-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

  .page-hero { padding: 140px 22px 30px; }
  .page-hero.is-404 { padding-bottom: 110px; }
  .news-archive { padding-top: 70px; }
  .article-cover { padding: 0 22px; }
  .article-foot { padding: 0 22px 100px; }
  .entry-wrap { padding: 50px 22px 80px; }
  .entry-content .alignwide { margin-left: calc(50% - 50vw + 22px); margin-right: calc(50% - 50vw + 22px); }
  .entry-content .alignleft,
  .entry-content .alignright { float: none; margin: 0 0 1.4em; }
}

/* ---------- Encart « carte » mis en avant (page Groupe) ---------- */
.entry-content .s75-carte-pdf {
  margin: 3em 0;
  padding: 48px 40px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  text-align: center;
}
.entry-content .s75-carte-pdf > * { margin-top: 0; margin-bottom: 0.9em; }
.entry-content .s75-carte-pdf .kicker {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
}
.entry-content .s75-carte-pdf h2 { margin-top: 0; }
.entry-content .s75-carte-pdf .wp-block-buttons { justify-content: center; margin: 1.6em 0 0; }
@media (max-width: 760px) {
  .entry-content .s75-carte-pdf { padding: 36px 22px; }
}
