/* La Traverse — styles communs à toutes les pages.
   Mise en page « ordinateur » : copie exacte du site WEBDEV (page de 1031 px centrée, éléments placés au pixel près,
   coordonnées relevées sur latraverse42.fr, voir reference/REFERENCE.md). */

/* Polices : déclarations identiques à l'ancien site (style et graisse « normal »). Le navigateur fabrique donc
   le gras et l'italique de la même façon qu'avant : ne pas « corriger » ces déclarations. */
@font-face { font-family: 'Cinzel Decorative'; font-style: normal; font-weight: normal;
  src: local('Cinzel Decorative'), url(/static/polices/CinzelDecorative.ttf) format('truetype'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: normal;
  src: local('Cormorant Garamond'), url(/static/polices/CormorantGaramond.ttf) format('truetype'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: normal;
  src: local('DM Mono'), url(/static/polices/DMMono.ttf) format('truetype'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: normal;
  src: local('Playfair Display'), url(/static/polices/PlayfairDisplay.ttf) format('truetype'); }
@font-face { font-family: 'PlayfairDisplay-Medium Italic'; font-style: normal; font-weight: normal;
  src: local('PlayfairDisplay-Medium Italic'), url(/static/polices/PlayfairDisplay-MediumItalic.ttf) format('truetype'); }

:root {
  --or: #c9983a;
  --or-clair: #e8c46a;
  --creme: #f5efe0;
  --fond: #0e0c0a;
}

html, body { margin: 0; padding: 0; background-color: var(--fond); }
body { font: 400 13.3333px sans-serif; line-height: normal; color: #2d2d2d; -webkit-text-size-adjust: 100%; }
p { margin: 0; }
a { text-decoration: none; }

#page { position: relative; width: 1031px; margin: 0 auto; background-color: var(--fond); }
#page > * { position: absolute; }

/* ---------- En-tête ---------- */
.entete { left: 0; top: 0; width: 1031px; height: 75px; }
.entete > * { position: absolute; white-space: nowrap; }
.entete-logo { left: 6px; top: 11px; width: 176px; height: 22px;
  font-family: 'Cinzel Decorative', sans-serif; letter-spacing: 0.12em; color: #C9983A; }
.entete-sous-titre { left: 126px; top: 15px; width: 331px; height: 13px;
  font-family: 'DM Mono', sans-serif; font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(245, 239, 224, 0.70); }
.menu { left: 0; top: 52px; }
.menu a { position: absolute; top: 0; font-family: 'DM Mono', sans-serif; font-size: 14px; letter-spacing: 0.3em;
  text-transform: uppercase; color: #F5EFE0; text-align: center; }
.menu a:hover, .entete-connexion:hover, .pied-facebook:hover { color: #C9983A; }
.menu-accueil { left: 122px; }
.menu-spectacles { left: 231.2px; }
.menu-agenda { left: 384.89px; }
.menu-photos { left: 507.39px; }
.menu-apropos { left: 623.8px; }
.menu-contact { left: 746.59px; }
.menu-maintenance { left: 856.21px; }   /* visible seulement une fois connecté, comme sur l'ancien site */
.entete-connexion { left: 1018px; top: 23.5px; font-family: 'DM Mono', sans-serif; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #F5EFE0; }

/* ---------- Pied de page ---------- */
.pied { left: 0; width: 1031px; height: 169px; }
.pied > * { position: absolute; white-space: nowrap; }
.pied-logo { left: 20px; top: 25px; width: 118px; height: 22px;
  font-family: 'Cinzel Decorative', sans-serif; letter-spacing: 0.12em; color: #C9983A; }
.pied-visites { left: 405px; top: 24px; width: 96px; line-height: 1.4; color: #60491C; }
.pied-compteur { left: 506px; top: 24px; width: 69px; line-height: 1.4; font-weight: bold; color: #60491C; }
.pied-facebook { left: 806.39px; top: 25px; font-family: 'DM Mono', sans-serif; font-size: 13px; letter-spacing: 0.3em;
  text-transform: uppercase; color: #F5EFE0; }

/* ---------- Curseur (code repris tel quel de l'ancien site) ----------
   Seulement avec une souris : sur un écran tactile, le curseur normal reste et les deux ronds sont masqués. */
#curseur, #curseur-anneau { display: none; }
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
  #curseur, #curseur-anneau { display: block; }
  #curseur {
    position: fixed;
    width: 10px; height: 10px;
    background: #c9983a;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    left: -100px; top: -100px;
    transform: translate(-50%, -50%);
    transition: width .3s ease,
                height .3s ease,
                background .3s ease;
  }
  #curseur-anneau {
    position: fixed;
    width: 38px; height: 38px;
    border: 1.5px solid #c9983a;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    left: -100px; top: -100px;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    background: transparent;
    transition: width .4s cubic-bezier(.16,1,.3,1),
                height .4s cubic-bezier(.16,1,.3,1),
                background .4s ease,
                opacity .4s ease,
                border-color .4s ease;
  }
  #curseur.hover {
    width: 10px; height: 10px;
    background: #cc2200;
  }
  #curseur-anneau.hover {
    width: 70px; height: 70px;
    background: rgba(201, 152, 58, 0.18);
    border-color: #e8c46a;
    opacity: 1;
  }
}

/* ---------- Apparition en fondu (effet WEBDEV « apparition ») ----------
   Le délai et la durée sont dans data-delai / data-duree (ms, comptés depuis le chargement de la page) ;
   courbe relevée sur l'ancien site : « ease » standard (erreur d'ajustement 0,0005). */
.apparition { opacity: 0; transition-property: opacity; transition-timing-function: ease; }

/* Bouton du menu : seulement sur téléphone. */
.menu-bouton { display: none; }

/* =====================================================================================================
   TÉLÉPHONE (écran de moins de 820 px)
   La page n'est plus une maquette de 1031 px aux éléments placés au pixel : les éléments se suivent dans le
   flux, sur la largeur de l'écran. Rien de ce bloc ne s'applique sur ordinateur.
   ===================================================================================================== */
@media (max-width: 820px) {
  body { font-size: 16px; }
  /* Les blocs se suivent ; les mots d'un titre (« Nos » + « Spectacles ») restent sur la même ligne. */
  #page { width: auto !important; height: auto !important; min-height: 100vh; overflow-x: hidden;
    display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-start; }
  #page > :where(:not(.visionneuse, .fenetre-fond)) { position: relative; left: auto !important; top: auto !important;
    flex: 0 0 100%; box-sizing: border-box; }

  /* ---------- En-tête : logo, sous-titre et bouton ; le menu se déplie dessous ---------- */
  #page > .entete { position: sticky; top: 0 !important; z-index: 1000; width: auto; height: auto;
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 12px 16px;
    background: rgba(14, 12, 10, 0.96); border-bottom: 1px solid rgba(201, 152, 58, 0.35); }
  .entete > * { position: static !important; white-space: normal; }
  .entete-logo { grid-column: 1; width: auto; height: auto; font-size: 21px; line-height: 1.2; }
  .entete-sous-titre { grid-column: 1; width: auto; height: auto; font-size: 11px; letter-spacing: 0.2em;
    color: rgba(245, 239, 224, 0.85); }
  .entete > .menu-bouton { display: block; grid-column: 2; grid-row: 1 / span 2; position: relative !important; width: 48px; height: 48px;
    padding: 0; border: 1px solid rgba(201, 152, 58, 0.7); border-radius: 8px; background: transparent; cursor: pointer; }
  .menu-bouton span, .menu-bouton span::before, .menu-bouton span::after { content: ""; position: absolute; left: 12px;
    width: 22px; height: 2px; background: #e8c46a; transition: transform 0.25s ease, opacity 0.2s ease; }
  .menu-bouton span { top: 22px; }
  .menu-bouton span::before { left: 0; top: -7px; }
  .menu-bouton span::after { left: 0; top: 7px; }
  .entete.ouvert .menu-bouton span { background: transparent; }
  .entete.ouvert .menu-bouton span::before { transform: translateY(7px) rotate(45deg); }
  .entete.ouvert .menu-bouton span::after { transform: translateY(-7px) rotate(-45deg); }
  .menu, .entete-connexion { display: none; }
  .entete.ouvert .menu { display: flex; flex-direction: column; grid-column: 1 / -1; margin-top: 10px; }
  .entete.ouvert .entete-connexion { display: block; grid-column: 1 / -1; }
  .menu a, .entete-connexion { position: static !important; padding: 14px 4px; text-align: left;
    border-top: 1px solid rgba(201, 152, 58, 0.2); font-size: 16px; letter-spacing: 0.25em; }
  .entete-connexion { font-size: 13px; color: rgba(245, 239, 224, 0.85); }
  /* Page en cours en doré. */
  .page-accueil .menu-accueil, .page-spectacles .menu-spectacles, .page-agenda .menu-agenda, .page-photos .menu-photos,
  .page-apropos .menu-apropos, .page-contact .menu-contact { color: #E8C46A; }

  /* ---------- Pied de page ---------- */
  #page > .pied { display: flex !important; flex-direction: column; align-items: center; gap: 14px; width: auto; height: auto;
    margin-top: 36px; padding: 26px 16px 34px; border-top: 1px solid rgba(201, 152, 58, 0.25); background: var(--fond); }
  .pied > * { position: static !important; width: auto !important; height: auto !important; }
  .pied-logo { font-size: 18px; }
  .pied-visites, .pied-compteur { display: none; }
  .pied-facebook { padding: 10px 6px; }

  /* Filets et étoile de séparation : centrés dans le flux. */
  .separateur-filet { display: none; }
  .separateur-etoile { width: auto !important; height: auto !important; margin: 4px 0 10px; text-align: center; letter-spacing: 0; }
}
