/* TEXTE D'ARTICLE : typographie et blocs de mise en page
   Une seule source pour le site public (charge apres style.css) ET pour l'editeur de l'administration (apercu
   dont le corps porte la classe .article-body). Depend uniquement de tokens.css.
   Mise en page des blocs d'articles : citations, encadres, images avec legende. */

/* ARTICLE BODY */
body.article-body {
  background: var(--blanc, #faf7f2);
  color: #2a2a2a;
  font-family: var(--font-body, 'Archivo', sans-serif);
  padding: 20px 24px;
}

.article-body a {
  color: var(--terre-texte);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--terre);
}

.article-body p {
  font-size: 1rem;
  color: #2a2a2a;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 24px;
}

.article-body p:first-child::first-letter {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--terre);
  float: left;
  line-height: 0.8;
  margin-right: 8px;
  margin-top: 6px;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--noir);
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--terre);
}

.article-body ul {
  margin: 0 0 24px;
  padding-left: 20px;
}

.article-body ul li {
  font-size: 1rem;
  color: #2a2a2a;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 8px;
}

.article-body .section-break, .section-break {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
}

.article-body .section-break::before,
.article-body .section-break::after,
.section-break::before,
.section-break::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sable);
}

.article-body .section-break span,
.section-break span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terre-texte);
  font-weight: 500;
}

/* LIVRABLES */
.livrables {
  margin: 36px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.livrable-item {
  background: var(--noir);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.livrable-icon {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terre-texte-sombre);
  font-weight: 500;
}

.livrable-label {
  font-size: 0.88rem;
  color: var(--blanc);
  font-weight: 400;
  line-height: 1.4;
}

/* PULL QUOTE */
.pull-quote, .article-body .pull-quote {
  border-left: 3px solid var(--terre);
  padding: 24px 32px;
  margin: 40px 0;
  background: rgba(196,98,45,0.04);
}

.pull-quote p, .article-body .pull-quote p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--noir);
  line-height: 1.55;
  margin-bottom: 12px !important;
}

.pull-quote p::first-letter, .article-body .pull-quote p::first-letter {
  font-size: 1.15rem !important;
  color: var(--noir) !important;
  float: none !important;
  margin: 0 !important;
}

.pull-quote cite, .article-body .pull-quote cite {
  font-size: 0.72rem;
  color: var(--terre);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 500;
}

/* WEART SPECIFIC / ATELIERS */
.ateliers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 32px 0;
}

.atelier-card {
  background: var(--noir);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}

.atelier-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--terre-texte-sombre);
  opacity: 0.75;
  line-height: 1;
}

.atelier-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--blanc);
  margin-bottom: 6px;
}

.atelier-animateur {
  font-size: 0.72rem;
  color: var(--terre-texte-sombre);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 10px;
}

/* Dans le texte d'article, « .article-body p » (couleur sombre) est plus specifique qu'une classe seule : sans le second selecteur, la
   description s'ecrivait en gris fonce sur fond sombre (illisible). */
.atelier-desc,
.article-body .atelier-desc {
  font-size: 0.85rem;
  color: var(--sable);
  line-height: 1.6;
  font-weight: 300;
}

/* DIALOGUE DU COURT */
.dialogue-section {
  background: #1a1512;
  padding: 36px;
  margin: 36px 0;
}

.dialogue-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terre-texte-sombre);
  font-weight: 500;
  margin-bottom: 16px;
}

.dialogue-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--blanc);
  margin-bottom: 12px;
}

.dialogue-desc,
.article-body .dialogue-desc {
  font-size: 0.85rem;
  color: var(--sable);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 20px;
}

.films-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.film-tag {
  font-size: 0.72rem;
  color: var(--blanc);
  background: rgba(196,98,45,0.2);
  border: 1px solid rgba(196,98,45,0.3);
  padding: 5px 14px;
  font-weight: 400;
}

/* FIGURE ET LEGENDE */
figure.article-figure, .article-figure {
  margin: 36px 0;
}

figure.article-figure img, .article-figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure.article-figure figcaption, .article-figure figcaption {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--terre-texte);
  margin-top: 10px;
  line-height: 1.45;
  font-weight: 300;
  font-style: italic;
}


/* GALERIE PHOTOS DU TEXTE : jusqu'a 8 photos, 4 colonnes (donc 2 lignes) ; 3 ou 2 colonnes au choix de la personne qui ecrit,
   toujours 2 colonnes sur telephone. Au survol (ou au focus clavier) : halo de la couleur de la marque autour de la photo, zoom,
   legende qui apparait ; les autres photos s'assombrissent. Au clic : visionneuse plein ecran (script du site). */
.article-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 36px 0;
}

.article-gallery.gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }
.article-gallery.gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }

.article-gallery figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--noir-clair);
  transition: box-shadow 0.35s var(--ease);
}

.article-gallery figure > a { display: block; width: 100%; height: 100%; }
.article-body .article-gallery a { text-decoration: none; }

.article-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.35s var(--ease);
}

.article-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 28px 12px 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
  color: var(--blanc);
  background: linear-gradient(to top, rgba(26,21,18,0.9), rgba(26,21,18,0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.article-gallery figure:hover,
.article-gallery figure:focus-within {
  z-index: 1;
  box-shadow: 0 0 0 2px var(--terre), 0 0 24px 4px rgba(196,98,45,0.55);
}

.article-gallery figure:hover img,
.article-gallery figure:focus-within img {
  transform: scale(1.07);
  filter: brightness(1.08) saturate(1.12);
}

.article-gallery figure:hover figcaption,
.article-gallery figure:focus-within figcaption {
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  .article-gallery:hover figure:not(:hover) img { filter: brightness(0.55) saturate(0.7); }
}

@media (max-width: 700px) {
  .article-gallery,
  .article-gallery.gallery-cols-3,
  .article-gallery.gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .article-gallery figure, .article-gallery img, .article-gallery figcaption { transition: none; }
  .article-gallery figure:hover img, .article-gallery figure:focus-within img { transform: none; }
}

/* TITRES, LISTES NUMEROTEES ET CITATION SIMPLE du texte : memes reperes que les titres de section existants */
.article-body h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--noir);
  margin: 28px 0 12px;
}

.article-body ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.article-body ol li {
  font-size: 1rem;
  color: #2a2a2a;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 8px;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--sable);
}

.article-body blockquote p {
  font-family: var(--font-heading);
  font-style: italic;
  margin-bottom: 12px;
}

/* pas de lettrine dans une citation ou les blocs speciaux (la regle des paragraphes d'ouverture vise tout « p:first-child ») */
.article-body blockquote p:first-child::first-letter,
.article-body .content-block-styled p:first-child::first-letter,
.article-body .callout-question p:first-child::first-letter,
.article-body .section-memo-box p:first-child::first-letter,
.article-body .atelier-card p:first-child::first-letter,
.article-body .call-docs-embed p:first-child::first-letter {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  float: none;
  line-height: inherit;
  margin: 0;
}

/* -------------------------------------------------------------
   NOUVEAUX BLOCS MODULAIRES D'APPEL & D'ARTICLE
   ------------------------------------------------------------- */

/* ENCADRE LISTE TEINTE (ex: Ce que nous cherchons) */
.content-block-styled {
  background: rgba(196, 98, 45, 0.04);
  border-left: 3px solid var(--terre, #c4622d);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 4px;
}

.content-block-styled .block-styled-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--noir, #1f1b18);
  margin-bottom: 14px;
}

.content-block-styled ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
  color: var(--noir, #2b2622);
}

.content-block-styled ul li {
  margin-bottom: 8px;
}

/* ENCADRE QUESTION D'AMORCE */
.callout-question {
  background: var(--blanc, #ffffff);
  border: 1px solid var(--sable, #e0d7cb);
  border-radius: 6px;
  padding: 22px 24px;
  margin: 26px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.callout-question-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terre, #c4622d);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.callout-question-quote {
  font-family: var(--font-heading, serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--noir, #1f1b18);
  margin: 0;
  line-height: 1.45;
}

/* BLOC TELECHARGEMENT DE DOCUMENTS OFFICIELS */
.call-docs-embed {
  background: rgba(196, 98, 45, 0.04);
  border: 1px solid rgba(196, 98, 45, 0.22);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 30px 0;
}

.call-docs-embed-title {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terre, #c4622d);
  margin: 0 0 14px;
}

.call-docs-embed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.call-docs-embed-item a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--noir, #1f1b18);
  text-decoration: none;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 4px;
  border: 1px solid var(--sable, #e0d7cb);
  transition: all 0.2s ease;
}

.call-docs-embed-item a:hover {
  background: var(--terre, #c4622d);
  color: #ffffff;
  border-color: var(--terre, #c4622d);
}

/* CALENDRIER DES ETAPES EN 2 COLONNES */
.etapes-calendrier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 32px 0;
}

.etape-item {
  background: var(--noir, #1f1b18);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 4px;
  border-left: 3px solid var(--terre, #c4622d);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.etape-date {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terre, #c4622d);
}

.etape-intitule {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #f5f2ed;
}

@media (max-width: 680px) {
  .etapes-calendrier {
    grid-template-columns: 1fr;
  }
}

/* RUBRIQUE MEMO / CRITERES / PRISE EN CHARGE */
.section-memo-box {
  background: #ffffff;
  border: 1px solid var(--sable, #e0d7cb);
  border-left: 4px solid var(--terre, #c4622d);
  padding: 22px 26px;
  margin: 28px 0;
  border-radius: 4px;
}

.section-memo-box h4 {
  font-family: var(--font-heading, serif);
  font-size: 1.15rem;
  color: var(--noir, #1f1b18);
  margin: 0 0 12px;
}

.section-memo-box p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.section-memo-box ul {
  margin: 0 0 12px;
  padding-left: 20px;
  line-height: 1.7;
}

/* BOUTON D'ACTION CANDIDATER DANS LE CORPS */
.cta-candidature-box {
  margin: 40px 0;
  text-align: center;
}

.cta-candidature-box a {
  display: inline-block;
  background: var(--terre, #c4622d);
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 15px 36px;
  border-radius: 4px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(196, 98, 45, 0.25);
  transition: all 0.25s ease;
}

.cta-candidature-box a:hover {
  background: var(--terre-dark, #a34e20);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(196, 98, 45, 0.35);
}

