/*
Theme Name: Restaurant des Arts
Theme URI: https://restaurant-des-arts.groupe-coste.fr/
Author: Rémy Coste
Description: Thème sur mesure du Restaurant des Arts, Le Touquet-Paris-Plage. Table gastronomique, menu découverte en quatre, cinq ou six services.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Tous droits réservés
Text Domain: restaurant-des-arts
*/

/* ═══════════════════════════════════════════════════════════
   RESTAURANT DES ARTS · Le Touquet-Paris-Plage
   Version graphique — photo plein cadre, contrastes noir / ivoire / or.
   (La version sobre précédente est conservée dans /_version-sobre.)
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivoire:   #faf7f0;
  --ivoire-2: #f1ebdf;
  --noir:     #0f0d0b;
  --noir-2:   #1a1714;
  --encre:    #14120f;
  --encre-2:  #2a251f;
  --encre-3:  #6b6257;
  --or:       #a98d4f;
  --or-clair: #c9a961;
  --filet:    rgba(20,18,15,.14);
  --filet-n:  rgba(255,255,255,.14);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:  'Jost', 'Futura', 'Avenir Next', Helvetica, sans-serif;

  --marge: clamp(20px, 5vw, 72px);
  --large: 1240px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ivoire); color: var(--encre-2);
  font-family: var(--serif); font-size: 1.08rem; line-height: 1.8;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ═══ TYPOGRAPHIE ═══ */
.surtitre {
  display: inline-block; font-family: var(--sans); font-weight: 400;
  font-size: .66rem; letter-spacing: .38em; text-transform: uppercase; color: var(--or);
}
.titre {
  font-family: var(--serif); font-weight: 300; color: var(--encre);
  font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.08; letter-spacing: .01em;
}
.titre em { font-style: italic; color: var(--or); }
.titre--maj { text-transform: uppercase; letter-spacing: .14em; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.chapeau { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.6; color: var(--encre); font-weight: 300; }
p + p { margin-top: 1.1em; }
.mention { font-family: var(--sans); font-weight: 300; font-size: .74rem; letter-spacing: .08em; color: var(--encre-3); line-height: 2; }
.trait { display: block; width: 56px; height: 1px; background: var(--or); margin: 26px 0; }
.centre { text-align: center; }
.centre .trait { margin-left: auto; margin-right: auto; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-weight: 400; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  text-decoration: none; padding: 17px 30px; border: 1px solid currentColor;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.bouton--or { background: var(--or); border-color: var(--or); color: #fff; }
.bouton--or:hover { background: transparent; color: var(--or-clair); border-color: var(--or-clair); }
.bouton--clair { color: #fff; }
.bouton--clair:hover { background: #fff; color: var(--encre); }
.bouton--sombre { color: var(--encre); }
.bouton--sombre:hover { background: var(--encre); color: #fff; }
.boutons { display: flex; gap: 14px; flex-wrap: wrap; }
.centre .boutons { justify-content: center; }

/* ═══ STRUCTURE ═══ */
.section { padding: clamp(80px, 11vw, 150px) var(--marge); position: relative; }
.section--noir { background: var(--noir); color: rgba(255,255,255,.78); }
.section--noir .titre { color: #fff; }
.section--noir .mention { color: rgba(255,255,255,.55); }
.section--ivoire2 { background: var(--ivoire-2); }
.conteneur { max-width: var(--large); margin: 0 auto; }
.entete-section { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.entete-section .titre { margin-top: 18px; }
.entete-section p { margin-top: 22px; }

/* ═══ EN-TÊTE (fixe, transparent sur la photo, noir au défilement) ═══ */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(rgba(15,13,11,.88), rgba(15,13,11,.35) 70%, rgba(15,13,11,0));
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--marge);
  transition: background .4s ease, padding .4s ease;
}
.entete.defile { background: rgba(15,13,11,.94); padding-top: 10px; padding-bottom: 10px; backdrop-filter: blur(6px); }
.entete__logo img { height: 58px; width: auto; transition: height .4s ease; }
.entete.defile .entete__logo img { height: 44px; }
.entete__nav { display: flex; gap: clamp(18px, 2.4vw, 38px); align-items: center; }
.entete__nav a {
  font-family: var(--sans); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.92); text-decoration: none; transition: color .3s; text-shadow: 0 1px 10px rgba(0,0,0,.65);
}
.entete__nav a:hover, .entete__nav a[aria-current] { color: var(--or-clair); }
.entete__nav .bouton { padding: 11px 18px; color: #fff; }
.entete__menu { display: none; background: none; border: 0; color: #fff; cursor: pointer; font-family: var(--sans); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; }

/* ═══ HÉRO : texte sur noir, photo presque entière ═══ */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; min-height: 92svh;
  background: var(--noir); color: #fff;
}
.hero--court { min-height: 70vh; }
.hero__texte {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 130px var(--marge) 70px;
}
.hero__photo { position: relative; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__logo { width: min(440px, 80%); margin: 20px auto 6px; }
.hero .surtitre { color: var(--or-clair); }
.hero__accroche { font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: rgba(255,255,255,.86); max-width: 520px; margin: 16px auto 34px; line-height: 1.55; }
.hero .titre { color: #fff; margin: 16px 0 6px; }

/* ═══ BLOC DEUX COLONNES TEXTE / PHOTO ═══ */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; max-width: var(--large); margin: 0 auto; }
.duo--inverse .duo__photo { order: -1; }
.duo__photo { position: relative; }
.duo__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.duo__texte .titre { margin: 16px 0 6px; }


/* ═══ MENUS : trois colonnes typographiques ═══ */
.menus { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin: 0 auto; }
.menu-carte { text-align: center; padding: 10px clamp(18px, 3vw, 44px); display: flex; flex-direction: column; align-items: center; }
.menu-carte + .menu-carte { border-left: 1px solid var(--filet-n); }
.menu-carte__ruban { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--or-clair); height: 1.6em; }
.menu-carte__ruban:empty::before { content: '\00a0'; }
.menu-carte__nombre { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: .08em; color: var(--or-clair); opacity: .85; }
.menu-carte__avant { font-style: italic; font-size: 1rem; color: rgba(255,255,255,.55); margin-top: 20px; }
.menu-carte__services { white-space: nowrap; font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.6rem); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-top: 8px; }
.menu-carte__prix { font-family: var(--serif); font-size: clamp(2.3rem, 3.8vw, 3.1rem); font-weight: 400; color: #fff; margin-top: auto; padding-top: 26px; line-height: 1; }
.menu-carte__prix::before { content: ''; display: block; width: 28px; height: 1px; background: rgba(201,169,97,.55); margin: 0 auto 24px; }
.menu-carte__note { font-family: var(--sans); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 14px; line-height: 2; }

/* ═══ PRODUCTEURS (grille numérotée) ═══ */
.producteurs { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--large); margin: 0 auto; border-top: 1px solid var(--filet); }
.producteurs li { list-style: none; padding: 34px 26px 10px 0; border-right: 1px solid var(--filet); padding-left: 26px; }
.producteurs li:first-child { padding-left: 0; }
.producteurs li:last-child { border-right: 0; }
.producteurs b { display: block; font-family: var(--serif); font-weight: 300; font-size: 3rem; color: var(--or); line-height: 1; }
.producteurs span { display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--encre); margin: 16px 0 8px; }
.producteurs p { font-size: 1rem; line-height: 1.6; color: var(--encre-3); }

/* ═══ CHEF ═══ */
.chef { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: center; max-width: var(--large); margin: 0 auto; }
.chef__signature img { width: 100%; max-width: 420px; opacity: .95; }
.chef__citation { font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.5; color: #fff; margin-top: 34px; padding-left: 26px; border-left: 1px solid var(--or); }
.chef__texte .titre { margin: 14px 0 22px; }
.chef__texte strong { color: #fff; font-weight: 500; }
.distinctions { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 30px; list-style: none; }
.distinctions li { font-family: var(--sans); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--or-clair); }
.distinctions li + li::before { content: '·'; margin: 0 14px; color: rgba(201,169,97,.6); }

/* ═══ GALERIE MOSAÏQUE ═══ */
.mosaique { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: var(--large); margin: 0 auto; }
.mosaique figure { overflow: hidden; position: relative; aspect-ratio: 1 / 1; }
.mosaique figure:first-child { grid-column: span 2; grid-row: span 2; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.mosaique figure:hover img { transform: scale(1.05); }
.mosaique figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(15,13,11,.8));
  color: #fff; font-style: italic; font-size: 1rem; opacity: 0; transition: opacity .5s ease;
}
.mosaique figure:hover figcaption { opacity: 1; }
.mosaique__legende { text-align: center; margin-top: 30px; }

/* ═══ NOUS TROUVER ═══ */
.infos { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: clamp(30px, 4vw, 64px); max-width: var(--large); margin: 0 auto; }
.infos h3 { font-family: var(--sans); font-weight: 400; font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--or-clair); margin-bottom: 18px; }
.infos strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.infos address { font-style: normal; }
.infos a { color: var(--or-clair); }
.semaine { display: grid; grid-template-columns: auto repeat(7, 1fr); gap: 6px; align-items: center; margin-top: 8px; }
.semaine span { font-family: var(--sans); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); text-align: center; }
.semaine span.lib { text-align: left; padding-right: 10px; }
.semaine i { display: block; width: 16px; height: 16px; margin: 6px auto; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.semaine i.ouvert { background: var(--or); border-color: var(--or); }
.semaine__legende { display: flex; gap: 22px; margin-top: 16px; }
.semaine__legende span { font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 8px; }
.semaine__legende i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: inline-block; }
.semaine__legende i.ouvert { background: var(--or); border-color: var(--or); }

/* ═══ EXEMPLES (fil des services) ═══ */
.fil { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); max-width: var(--large); margin: 0 auto; position: relative; }
.fil::before { content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 1px; background: var(--or); opacity: .5; }
.fil li { text-align: center; padding: 0 12px; position: relative; }
.fil b { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: var(--ivoire-2); border: 1px solid var(--or); font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--or); position: relative; }
.fil span { font-size: 1.02rem; line-height: 1.5; color: var(--encre); display: block; }

/* ═══ ACCORDS ET TARIFS : colonnes séparées par un filet ═══ */
.tuiles { display: flex; justify-content: center; max-width: 980px; margin: 0 auto; }
.tuile { flex: 1; text-align: center; padding: 6px 18px; }
.tuile + .tuile { border-left: 1px solid var(--filet-n); }
.tuile b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.4rem; color: #fff; line-height: 1; }
.tuile span { display: block; font-family: var(--sans); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 14px; line-height: 1.8; }
.section:not(.section--noir) .tuile + .tuile { border-left-color: var(--filet); }
.section:not(.section--noir) .tuile b { color: var(--encre); }
.section:not(.section--noir) .tuile span { color: var(--encre-3); }

/* ═══ RÉSERVER ═══ */
.reserver { text-align: center; }
.reserver .titre { margin: 18px 0 20px; }
.reserver p { max-width: 640px; margin-left: auto; margin-right: auto; }
.reserver .boutons { margin-top: 38px; }

/* ═══ PIED DE PAGE ═══ */
.pied { background: var(--noir); color: rgba(255,255,255,.6); text-align: center; padding: 70px var(--marge) 40px; border-top: 1px solid var(--filet-n); }
.pied__logo img { height: 74px; width: auto; margin: 0 auto; }
.pied__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 30px; margin: 30px 0; }
.pied__nav a { font-family: var(--sans); font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.75); }
.pied__nav a:hover { color: var(--or-clair); }
.pied address { font-style: normal; font-size: 1rem; }
.pied address a { color: var(--or-clair); }
.pied__mentions { font-family: var(--sans); font-size: .62rem; letter-spacing: .18em; margin-top: 30px; color: rgba(255,255,255,.35); }

/* ═══ PAGE RÉSERVER ═══ */
.hero--resa { min-height: 46vh; }

/* En pratique : bandeau lisible, avant le formulaire */
.pratique { background: var(--ivoire-2); padding: clamp(60px, 8vw, 100px) var(--marge); }
.pratique__entete { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.pratique__entete .titre { margin-top: 12px; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.pratique__grille { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--large); margin: 0 auto; }
.pratique__col { padding: 0 clamp(20px, 3vw, 44px); }
.pratique__col + .pratique__col { border-left: 1px solid rgba(20,18,15,.18); }
.pratique h3 {
  font-family: var(--sans); font-weight: 500; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--encre); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--or);
}
.pratique p, .pratique li { font-size: 1.12rem; line-height: 1.6; color: var(--encre); }
.pratique .petit { font-family: var(--sans); font-size: .86rem; line-height: 1.7; color: var(--encre-2); margin-top: 14px; letter-spacing: .02em; }
.pratique a { color: #8a6f35; text-decoration: underline; text-underline-offset: 3px; }

.tarifs-liste { list-style: none; }
.tarifs-liste li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; }
.tarifs-liste li span { flex: 1; display: flex; align-items: baseline; gap: 10px; }
.tarifs-liste li span::after { content: ''; flex: 1; border-bottom: 1px dotted rgba(20,18,15,.45); transform: translateY(-5px); }
.tarifs-liste b { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--encre); }
.tarifs-liste small { display: block; font-family: var(--sans); font-size: .74rem; letter-spacing: .08em; color: var(--encre-2); }

.semaine--clair { grid-template-columns: 44px repeat(7, 1fr); gap: 8px 4px; }
.semaine--clair span { font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .06em; color: var(--encre); }
.semaine--clair i { width: 20px; height: 20px; margin: 4px auto; border: 1.5px solid rgba(20,18,15,.45); }
.semaine--clair i.ouvert { background: var(--or); border-color: var(--or); }
.legende-jours { display: flex; gap: 22px; margin-top: 12px; font-family: var(--sans); font-size: .8rem; color: var(--encre-2); }
.legende-jours span { display: inline-flex; align-items: center; gap: 8px; }
.legende-jours i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(20,18,15,.45); display: inline-block; }
.legende-jours i.ouvert { background: var(--or); border-color: var(--or); }

.pratique .notes { list-style: none; }
.pratique .notes li { position: relative; padding-left: 20px; margin-bottom: 12px; }
.pratique .notes li::before { content: ''; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--or); }

/* Le formulaire */
.resa-form { max-width: 700px; margin: 0 auto; text-align: center; }
.resa-form .titre { margin-top: 12px; }
.resa-form .trait { margin-left: auto; margin-right: auto; }
.tablee-widget { min-height: 540px; margin-top: 10px; text-align: left; }

@media (max-width: 1020px) {
  .pratique__grille { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .pratique__col:nth-child(3) { grid-column: 1 / -1; border-left: 0; }
}
@media (max-width: 860px) {
  .hero--resa .hero__photo { display: none; }
  .hero--resa .hero__texte { padding-bottom: 40px; }
  .pratique__grille { grid-template-columns: 1fr; }
  .pratique__col { padding: 0; }
  .pratique__col + .pratique__col { border-left: 0; }
}

/* ═══ APPARITIONS ═══ */
.fondu { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s ease; }
.fondu.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fondu { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ═══ ADAPTATIONS ═══ */
@media (max-width: 1020px) {
  .producteurs { grid-template-columns: repeat(2, 1fr); }
  .producteurs li:nth-child(2) { border-right: 0; }
  .producteurs li:nth-child(3) { padding-left: 0; }
  .infos { grid-template-columns: 1fr 1fr; }
  .infos > div:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .fil { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .fil::before { display: none; }
}
@media (max-width: 860px) {
  .entete__nav { position: fixed; inset: 0; background: rgba(15,13,11,.97); flex-direction: column; justify-content: center; gap: 28px; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
  .entete__nav.ouvert { opacity: 1; pointer-events: auto; }
  .entete__nav a { font-size: .8rem; }
  .entete__menu { display: block; position: relative; z-index: 60; }
  .entete__logo img { height: 46px; }
  .duo, .chef { grid-template-columns: 1fr; }
  .duo--inverse .duo__photo { order: 0; }
  .hero { grid-template-columns: 1fr; }
  .hero__texte { padding: 110px var(--marge) 50px; }
  .hero__photo { aspect-ratio: 1 / 1; }
  .hero--court .hero__photo { aspect-ratio: 4 / 3; }
  .menus { grid-template-columns: 1fr; max-width: 460px; }
  .menu-carte + .menu-carte { border-left: 0; border-top: 1px solid var(--filet-n); padding-top: 36px; margin-top: 36px; }
  .mosaique { grid-template-columns: repeat(2, 1fr); }
  .tuiles { flex-wrap: wrap; row-gap: 30px; }
  .tuile { flex: 0 0 50%; }
  .tuile:nth-child(odd) { border-left: 0 !important; }
  .chef__signature img { max-width: 280px; margin: 0 auto; }
  .distinctions { flex-direction: column; gap: 10px; }
  .distinctions li + li::before { content: none; }
}
@media (max-width: 560px) {
  .producteurs { grid-template-columns: 1fr; }
  .producteurs li { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--filet); padding-bottom: 26px; }
  .infos { grid-template-columns: 1fr; }
  .fil { grid-template-columns: repeat(2, 1fr); }
  .boutons { flex-direction: column; align-items: stretch; }
  .bouton { justify-content: center; }
}
@media print {
  .entete { display: none; }
  .fondu { opacity: 1; transform: none; }
}
