/* Le Bureau des Rêves : charte 2014 (voir charte-2014/README.md) */
:root {
  --orange: #c9502a;
  --orange-fonce: #a8401f;
  --gris: #7a7a7a;
  --anthracite: #333333;
  --beige: #d8c0a0;
  --papier: #faf6ef;
  --blanc: #ffffff; /* texte et logo sur les bandeaux terre battue, comme sur le site de 2014 */
  --papier-2: #f1e8da;
  --titres: 'Oswald', 'Arial Narrow', sans-serif;
  --texte: 'Source Sans 3', Helvetica, Arial, sans-serif;
  --colonne: 44rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--anthracite); font: 1.1rem/1.65 var(--texte); }
img { max-width: 100%; display: block; }
a { color: var(--orange); }
h1, h2, h3 { font-family: var(--titres); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
h2 { color: var(--orange); font-size: 2rem; text-align: center; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.centre { text-align: center; }
.intro { max-width: var(--colonne); margin: 0 auto 2rem; color: #555; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 1.25rem; background: var(--orange); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.marque { display: flex; align-items: center; gap: .75rem; }
.marque .picto { height: 44px; }
.marque .titre { height: 22px; }
.entete nav { display: flex; gap: 1.25rem; }
.entete nav a { font-family: var(--titres); text-transform: uppercase; color: var(--blanc); text-decoration: none; font-size: .95rem; letter-spacing: .04em; border-bottom: 2px solid transparent; }
.entete nav a:hover { border-bottom-color: var(--blanc); }

/* Bandeaux photo */
.hero, .bandeau { background: var(--anthracite) center / cover no-repeat; color: var(--papier); }
.hero { min-height: 82vh; display: flex; align-items: flex-end; }
.bandeau { min-height: 58vh; display: flex; align-items: flex-end; }
.voile { width: 100%; padding: 6rem 1.25rem 2.5rem; background: linear-gradient(transparent, rgba(20, 20, 20, .78)); }
.voile > * { max-width: 56rem; margin-left: auto; margin-right: auto; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: .25rem auto 1rem; }
.bandeau h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: .25rem auto .5rem; }
.surtitre, .numero { font-family: var(--titres); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--beige); margin: 0 auto; }
.meta { color: #ddd; margin-top: 0; }
.hero p { font-size: 1.2rem; }

.bouton { display: inline-block; padding: .6rem 1.3rem; border: 2px solid var(--orange); background: var(--orange); color: var(--papier); font-family: var(--titres); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.bouton:hover { background: var(--orange-fonce); border-color: var(--orange-fonce); }

/* Sections */
section { padding: 4rem 1.25rem; }
.colonne { max-width: var(--colonne); margin: 0 auto; }
.projet .chapeau { font-size: 1.35rem; font-style: italic; text-align: center; color: var(--orange-fonce); }
blockquote { margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; border-left: 4px solid var(--orange); font-family: var(--titres); text-transform: uppercase; font-size: 1.3rem; line-height: 1.3; }
blockquote cite { display: block; font: normal .95rem var(--texte); text-transform: none; color: var(--gris); margin-top: .3rem; }
.voyage { background: var(--papier-2); }
.equipe { background: var(--papier-2); }

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; max-width: 64rem; margin: 0 auto 2.5rem; text-align: center; }
.chiffres strong { display: block; font-family: var(--titres); font-weight: 400; font-size: 2rem; color: var(--orange); }
.chiffres span { font-size: .95rem; color: #555; }

.carte-interactive { max-width: 64rem; margin: 0 auto 3rem; border: 3px solid var(--orange); background: var(--beige); }
.carte-interactive iframe { display: block; width: 100%; height: 460px; border: 0; }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; max-width: 72rem; margin: 0 auto; }
.carte-troncon { background: var(--papier); color: var(--anthracite); text-decoration: none; border-bottom: 4px solid var(--orange); transition: transform .15s; }
.carte-troncon:hover { transform: translateY(-3px); }
.carte-troncon img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.carte-troncon > div { padding: 1rem 1.1rem 1.2rem; }
.carte-troncon .numero { color: var(--orange); }
.carte-troncon h3 { margin: .2rem 0 .3rem; }
.carte-troncon .meta { color: #666; font-size: .95rem; margin: 0 0 .6rem; }
.etiquettes { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.etiquettes span { font-size: .8rem; padding: .1rem .5rem; border: 1px solid var(--beige); }
.etiquettes .vide { color: var(--gris); border-style: dashed; }

/* Vidéos */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--anthracite); margin: 2rem 0; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; }
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.lecture { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--papier); }
.lecture::after { content: ''; position: absolute; left: 29px; top: 22px; border-left: 22px solid var(--papier); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video.a-venir { display: flex; align-items: center; justify-content: center; background: var(--papier-2); border: 2px dashed var(--beige); }
.video.a-venir p { font-family: var(--titres); text-transform: uppercase; color: var(--gris); }
/* Même grille que les cartes des tronçons */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; max-width: 72rem; margin: 0 auto 2rem; }
.videos > div { background: var(--papier-2); border-bottom: 4px solid var(--orange); }
.videos h3 { margin: 0; padding: .8rem 1.1rem 1rem; font-size: 1.1rem; order: 2; }
.videos > div { display: flex; flex-direction: column; }
.videos .video { margin: 0; }

/* Récit */
.recit h2 { text-align: left; font-size: 1.6rem; margin-top: 2.5rem; }
.recit h3 { color: var(--orange-fonce); }
.recit .photo { margin: 1.5rem 0; }
.recit.a-venir { font-style: italic; color: #555; }
.brouillon { padding: .6rem 1rem; border: 2px dashed var(--orange); color: var(--orange-fonce); font-style: italic; }
.photo a { display: block; cursor: zoom-in; }
.photo img { width: 100%; }
@media (min-width: 60rem) {
  .recit .photo.gauche { float: left; width: 55%; margin: .4rem 1.5rem 1rem -6rem; }
  .recit .photo.droite { float: right; width: 55%; margin: .4rem -6rem 1rem 1.5rem; }
  .recit h2 { clear: both; }
}
.recit::after { content: ''; display: block; clear: both; }

.photos { background: var(--papier-2); }
.galerie { columns: 3 16rem; column-gap: .75rem; max-width: 72rem; margin: 0 auto 2rem; }
.galerie .photo { margin: 0 0 .75rem; break-inside: avoid; }

.suite { display: flex; justify-content: space-between; gap: 1rem; max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.suite a { text-decoration: none; color: var(--anthracite); font-family: var(--titres); text-transform: uppercase; }
.suite a span { display: block; color: var(--orange); font-size: .85rem; }
.suite .droite { text-align: right; }

/* Équipe */
.photos-equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; max-width: 64rem; margin: 0 auto 2.5rem; }
.photos-equipe figure { margin: 0; }
.photos-equipe img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 4px solid var(--orange); }
.photos-equipe figcaption { text-align: center; font-size: .95rem; color: var(--gris); margin-top: .5rem; font-style: italic; }
.portraits { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; max-width: 64rem; margin: 0 auto; }
.portrait { background: var(--papier); padding: 1.5rem; border-top: 4px solid var(--orange); }
.portrait h3 { margin-top: 0; color: var(--orange); font-size: 1.6rem; }
.portrait dt { font-family: var(--titres); text-transform: uppercase; font-size: .85rem; color: var(--gris); margin-top: .8rem; }
.portrait dd { margin: 0; }

/* Pied */
.pied { background: var(--orange); color: var(--blanc); text-align: center; padding: 3rem 1.25rem; }
.pied .picto { height: 64px; margin: 0 auto 1.25rem; }
.pied a { color: var(--blanc); }
.citation { font-family: var(--titres); text-transform: uppercase; font-size: 1.3rem; max-width: 40rem; margin: 0 auto 1rem; }
.citation span { display: block; font-size: .9rem; opacity: .85; margin-top: .3rem; }
.petit { font-size: .9rem; opacity: .85; }

/* Visionneuse */
.visionneuse { position: fixed; inset: 0; z-index: 50; background: rgba(15, 15, 15, .94); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.visionneuse[hidden] { display: none; }
.visionneuse img { max-height: 88vh; width: auto; }
.visionneuse .fermer { position: absolute; top: .5rem; right: 1rem; background: none; border: 0; color: var(--papier); font-size: 2.5rem; cursor: pointer; }
.visionneuse .source { position: absolute; bottom: 1rem; color: var(--beige); }

@media (max-width: 44rem) {
  .entete { flex-direction: column; align-items: flex-start; gap: .3rem; padding: .5rem 1rem; }
  .entete nav { gap: .9rem; flex-wrap: wrap; }
  .entete nav a { font-size: .85rem; }
  .marque .picto { height: 34px; }
  .marque .titre { height: 17px; }
  section { padding: 3rem 1rem; }
  .carte-interactive iframe { height: 340px; }
}
