/* Le rêve de Monsieur Loyal – feuille de style (dérivée du site Destinées) */

:root {
  --nuit: #4a0a14;
  --bleu: #a3162a;
  --bleu-vif: #d99a1c;
  --ciel: #fdedc4;
  --papier: #fff9ec;
  --texte: #2a1712;
  --discret: #6b4a3c;
  --filet: #e8c98a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: 0.15em; }
a:hover { color: var(--nuit); }
a:focus-visible, .bouton:focus-visible {
  outline: 3px solid var(--bleu-vif);
  outline-offset: 3px;
}

.evitement {
  position: absolute; left: -999px; top: 0;
  background: #fff; color: var(--nuit); padding: .6rem 1rem; z-index: 100;
}
.evitement:focus { left: 0; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(74, 10, 20, .97);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.entete-interieur {
  max-width: 68rem; margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem;
  font-family: var(--sans);
}
.marque {
  color: #fff; text-decoration: none; font-family: var(--serif);
  font-size: 1.35rem; letter-spacing: .04em;
}
.entete ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.entete nav a { color: #ffe9b8; text-decoration: none; font-size: .95rem; padding: .25rem 0; }
.entete nav a:hover { color: #fff; text-decoration: underline; }

/* Bandeau d'accueil */
.heros { background: linear-gradient(160deg, var(--nuit) 0%, #1d3270 100%); color: #fff; }
.heros-interieur {
  max-width: 68rem; margin: 0 auto; padding: 3.5rem 1.25rem 4rem;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem 3rem; align-items: center;
}
.surtitre {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em;
  font-size: .8rem; color: #f5cf78; margin: 0 0 .6rem;
}
.heros h1 {
  font-size: clamp(3rem, 9vw, 5.2rem); line-height: 1; margin: 0 0 .5rem;
  font-weight: 700; letter-spacing: .02em;
}
.sous-titre { font-size: 1.4rem; margin: 0 0 1.4rem; color: #fff1d0; font-style: italic; }
.accroche { max-width: 34rem; color: #fff1d0; margin: 0 0 1.8rem; }
.bouton {
  display: inline-block; background: #fff; color: var(--nuit); text-decoration: none;
  font-family: var(--sans); font-weight: 600; padding: .75rem 1.4rem; border-radius: 999px;
}
.bouton:hover { background: var(--ciel); color: var(--nuit); }
.heros-image { margin: 0; }
.heros-image img { border-radius: .4rem; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.heros-image figcaption { font-family: var(--sans); font-size: .8rem; color: #f5cf78; margin-top: .7rem; line-height: 1.4; }

/* Blocs */
.bloc { padding: 3.5rem 1.25rem; }
.bloc > * { max-width: 44rem; margin-left: auto; margin-right: auto; }
.bloc-clair { background: var(--ciel); }
.bloc h2 {
  font-size: 2rem; margin-top: 0; margin-bottom: 1.2rem; color: var(--nuit);
  padding-bottom: .5rem; border-bottom: 2px solid var(--filet);
}
.renvoi { font-family: var(--sans); font-size: .95rem; color: var(--discret); }

/* Programme */
.programme { list-style: none; counter-reset: p; padding: 0; margin: 0 auto; }
.programme li {
  counter-increment: p; position: relative;
  padding: 1rem 0 1rem 3.2rem; border-bottom: 1px solid var(--filet);
}
.programme li::before {
  content: counter(p); position: absolute; left: 0; top: 1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--bleu); color: #fff; font-family: var(--sans); font-size: .95rem;
  display: grid; place-items: center;
}
.programme p { margin: 0; }
.compositeur { font-family: var(--sans); font-weight: 600; color: var(--bleu); }
.compositeur span { font-weight: 400; color: var(--discret); }
.detail { color: var(--discret); font-size: 1rem; }

/* Distribution */
.distribution { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.distribution div { background: #fff; border: 1px solid var(--filet); border-radius: .4rem; padding: 1rem 1.2rem; }
.distribution dt { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--discret); }
.distribution dd { margin: .2rem 0 0; font-size: 1.25rem; color: var(--nuit); }
.credits-texte { text-align: center; color: var(--discret); }

/* Photo de la première */
.bloc > .photo-large { max-width: 56rem; margin-top: 1.8rem; }
.photo-large img { border-radius: .4rem; width: 100%; }
.photo-large figcaption { font-family: var(--sans); font-size: .85rem; color: var(--discret); margin-top: .6rem; }

/* Pied de page */
.pied { background: var(--nuit); color: #ffe9b8; padding: 2.5rem 1.25rem; text-align: center; font-size: 1rem; }
.pied a { color: #fff; }
.pied p { margin: .3rem 0; }
.mentions { font-family: var(--sans); font-size: .8rem; color: #f5cf78; margin-top: 1rem; }

@media (max-width: 52rem) {
  .heros-interieur { grid-template-columns: 1fr; padding-top: 2.2rem; }
  .heros-image { max-width: 28rem; }
}
@media print {
  .entete, .bouton { display: none; }
  body { font-size: 11pt; }
}

.artistes { list-style: none; padding: 0; margin-bottom: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.artistes li { background: #fff; border: 1px solid var(--filet); border-radius: .4rem; padding: 1.1rem 1.2rem; }
.artistes h3 { margin: 0; font-size: 1.25rem; color: var(--nuit); }
.artistes .role { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--discret); margin: .2rem 0 .6rem; }
.artistes li p:last-child { margin: 0; }
.bloc > .artistes { max-width: 56rem; }
.bloc > .artistes { max-width: 44rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

.artistes .identite { display: flex; align-items: center; gap: .9rem; margin-bottom: .7rem; }
.artistes .identite img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--filet); }
.artistes .identite .role { margin-bottom: 0; }

@media (max-width: 600px) {
  .entete ul { flex-wrap: nowrap; gap: .2rem 2.2vw; justify-content: flex-start; }
  .entete nav a { font-size: 3vw; white-space: nowrap; }
}

.contact { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.contact li { margin: .3rem 0; }
@media (max-width: 600px) {
  .entete ul { gap: .2rem 1.6vw; }
  .entete nav a { font-size: 2.7vw; }
}

.contact { font-size: 1.2rem; }
.contact li { margin: .5rem 0; }

.retour { text-align: right; font-family: var(--sans); font-size: .85rem; margin-top: 1.5rem; margin-bottom: 0; }
.retour a { text-decoration: none; color: var(--bleu); }
.retour a:hover { text-decoration: underline; }
@media print { .retour { display: none; } }

.credits-texte { font-size: .85rem; line-height: 1.5; margin-top: 1rem; }

.titre-formulaire { font-family: var(--serif); font-size: 1.25rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--nuit); }
.formulaire { font-family: var(--sans); }
.formulaire p { margin: 0 0 1rem; }
.formulaire label { display: block; font-size: .9rem; margin-bottom: .3rem; color: var(--nuit); }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire select, .formulaire textarea {
  width: 100%; box-sizing: border-box; padding: .65rem .75rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--filet); border-radius: .3rem; background: #fff; color: var(--texte);
}
.formulaire input:focus-visible, .formulaire select:focus-visible, .formulaire textarea:focus-visible { outline: 2px solid var(--bleu-vif); outline-offset: 1px; }
.formulaire .consentement { display: flex; gap: .6rem; align-items: flex-start; }
.formulaire .consentement input { margin-top: .25rem; flex: none; }
.formulaire .consentement label { display: inline; margin: 0; font-size: .9rem; }
.formulaire .bouton { border: 0; cursor: pointer; background: var(--nuit); color: #fff; font: inherit; padding: .75rem 1.4rem; border-radius: .3rem; }
.formulaire .bouton:hover { background: var(--bleu); color: #fff; }
.formulaire .confidentialite { font-size: .8rem; color: var(--discret); }
@media print { .formulaire, .titre-formulaire { display: none; } }

.credits-texte { font-size: .72rem; line-height: 1.25; margin-top: .8rem; }

/* Bandeau contact flottant */
.bandeau-contact {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: .4rem 1.6rem;
  padding: .55rem 1rem; font-family: var(--sans); font-size: .95rem;
  background: var(--ciel); border-top: 1px solid var(--filet);
  box-shadow: 0 -2px 10px rgba(74, 10, 20, .18);
}
.bandeau-contact a { color: var(--nuit); text-decoration: none; white-space: nowrap; }
.bandeau-contact a:hover { text-decoration: underline; }
.bandeau-contact .bandeau-ecrire { background: var(--nuit); color: #fff; padding: .25rem .9rem; border-radius: .3rem; }
.bandeau-contact .bandeau-ecrire:hover { background: var(--bleu); text-decoration: none; }
.pied { padding-bottom: 4.5rem; }
@media (max-width: 600px) {
  .bandeau-contact { gap: .3rem .9rem; padding: .5rem .6rem; font-size: 3.3vw; }
  .bandeau-contact .bandeau-ecrire { padding: .2rem .6rem; }
}
@media print { .bandeau-contact { display: none; } }
.bandeau-contact [aria-hidden] { font-size: 1.15em; }
@media (max-width: 600px) { .bandeau-contact { font-size: 2.9vw; gap: .3rem .6rem; padding: .5rem .4rem; } }
.bandeau-contact a { color: var(--nuit); font-weight: 700; }
.bandeau-contact .bandeau-ecrire { color: #fff; }
.titre-formulaire { margin-top: 0; }

/* Habillage circassien */
.marque { font-size: 1.15rem; }
.heros { background: repeating-conic-gradient(from 0deg at 50% -20%, #9c1526 0deg 6deg, #7d0f1c 6deg 12deg); }
.heros h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); color: #ffd466; text-shadow: 0 3px 0 #3d0710; }
.heros-image img { border: 5px solid #ffd466; }
.bouton { background: #ffd466; }
.feston { height: 26px; background: radial-gradient(circle at 20px 0, #7d0f1c 19px, transparent 20px) 0 0 / 40px 26px repeat-x, var(--papier); }
.bloc-clair { background: var(--ciel); }
.bloc-piste { background: radial-gradient(ellipse at top, #24366b, #0f1638); color: #fff1d0; }
.bloc-piste h2 { color: #ffd466; border-color: #ffd466; }
.bloc-piste .retour a { color: #ffd466; }
.videos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; }
.affiche { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.6rem 1rem; background: #a3162a; color: #fff; border: 3px dashed #ffd466; border-radius: .6rem; text-decoration: none; font-family: var(--sans); }
.affiche:hover { background: #c21d34; color: #fff; }
.affiche strong { font-size: 1.35rem; }
.lecture { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #ffd466; color: #4a0a14; font-size: 1.4rem; }
.ombres { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.ombres figure { margin: 0; }
.ombres img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .4rem; }
.numero { font-size: 1.25rem; color: var(--nuit); font-weight: 700; }
.etoile { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; flex: none; border-radius: 50%; background: #a3162a; color: #ffd466; font-size: 2rem; }
blockquote { text-align: center; font-size: 1.4rem; font-style: italic; margin-top: 1.5rem; margin-bottom: 1.5rem; }
blockquote p { margin: 0; }
blockquote footer { font-size: .9rem; font-family: var(--sans); font-style: normal; color: var(--discret); }
@media (max-width: 600px) { .marque { font-size: 1rem; } }

/* Distribution : quatre cadres égaux */
.bloc > .artistes { grid-auto-rows: 1fr; }

/* Mosaïque de la première */
.bloc > .mosaique { max-width: 56rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.8rem; }
.mosaique img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .4rem; }
.mosaique img.salut { grid-column: 1 / -1; height: auto; aspect-ratio: 1800 / 934; }
.paire { display: flex; flex: none; }
.paire img + img { margin-left: -1rem; }
.marque-deposee { font-size: max(.4em, .6rem); line-height: 0; vertical-align: super; margin-left: .08em; text-shadow: none; }
.heros h1 .marque-deposee { font-size: .28em; vertical-align: top; position: relative; top: .9em; }
.artistes li.serre h3 { line-height: 1.05; margin-bottom: .2rem; }

/* Menu à trois traits sur téléphone */
.menu-bouton { display: none; }
@media (max-width: 600px) {
  .menu-bouton:not([hidden]) { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.75rem; height: 2.75rem; padding: 0 .6rem; background: none; border: 0; cursor: pointer; flex: none; }
  .menu-bouton span { display: block; height: 3px; border-radius: 2px; background: #ffd466; }
  .menu-bouton:focus-visible { outline: 3px solid #ffd466; }
  .entete.repliable .entete-interieur { flex-wrap: wrap; gap: 0 .6rem; }
  .entete.repliable .marque { flex: 1; min-width: 0; }
  .entete.repliable nav { display: none; width: 100%; }
  .entete.repliable.ouvert nav { display: block; }
  .entete.repliable ul { flex-direction: column; gap: 0; padding-top: .4rem; }
  .entete.repliable nav a { display: block; font-size: 1.05rem; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.14); }
}

/* Bandeau contact : hauteur augmentée de moitié */
.bandeau-contact { padding-top: 1.37rem; padding-bottom: 1.37rem; }
.pied { padding-bottom: 6.5rem; }
@media (max-width: 600px) { .bandeau-contact { padding-top: 1.15rem; padding-bottom: 1.15rem; } }

/* Bandeau contact, ordinateur : hauteur réduite d'un quart */
@media (min-width: 601px) { .bandeau-contact { padding-top: .76rem; padding-bottom: .76rem; } .pied { padding-bottom: 5rem; } }

/* Feston : raccord avec le fond jaune de la première rubrique */
.feston { background: radial-gradient(circle at 20px 0, #7d0f1c 19px, transparent 20px) 0 0 / 40px 26px repeat-x, var(--ciel); }
