/* ============================================================
   FID — Festival International de Djembé et des Percussions
   Feuille de style — d'après la planche « Plan de travail SiteWeb »
   Couleurs : orange #FF6A15 · rouge #ED1C24 · rouge profond #840F1B
              noir #1C1C1C · gris texte #2D2C2C · crème #EBE5D9
   Typographies : Century Gothic (affichage) · Helvetica Neue LT Std
   ============================================================ */

@font-face {
  font-family: "Century Gothic FID";
  src: url("../fonts/GOTHIC.TTF") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue FID";
  src: url("../fonts/HELVETICANEUELTSTD-LT.OTF") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue FID";
  src: url("../fonts/HELVETICANEUELTSTD-ROMAN.OTF") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue FID";
  src: url("../fonts/HELVETICANEUELTSTD-MD.OTF") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue FID BdEx";
  src: url("../fonts/HELVETICANEUELTSTD-BDEX.OTF") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --orange: #FF6A15;
  --rouge: #ED1C24;
  --rouge-profond: #840F1B;
  --noir: #1C1C1C;
  --gris: #2D2C2C;
  --creme: #EBE5D9;
  --blanc: #FFFFFF;
  --ff-texte: "Helvetica Neue FID", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-titre: "Helvetica Neue FID BdEx", "Helvetica Neue FID", Helvetica, Arial, sans-serif;
  --ff-affichage: "Century Gothic FID", "Century Gothic", "Trebuchet MS", sans-serif;
  --largeur: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-texte);
  font-weight: 400;
  color: var(--gris);
  background: var(--noir);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.conteneur { width: min(var(--largeur), 92%); margin: 0 auto; }

/* ---------- Boutons (planche : orange, rouge à l'appui) ---------- */
.btn {
  display: inline-block;
  font-family: var(--ff-texte);
  font-weight: 500;
  font-size: 1rem;
  color: var(--blanc);
  background: var(--orange);
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover, .btn:active { background: var(--rouge); }
.btn:active { transform: scale(0.98); }
.btn-rouge { background: var(--rouge); }
.btn-rouge:hover, .btn-rouge:active { background: var(--rouge-profond); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 60;
  background: var(--noir);
  border-bottom: 1px solid rgba(255, 106, 21, 0.35);
}
.entete-inner {
  display: flex; align-items: center; gap: 1.6rem;
  width: min(1360px, 96%); margin: 0 auto;
  padding: 0.55rem 0;
}
.entete .logo img { height: 46px; width: auto; }
.nav-principale { margin-left: auto; }
.nav-principale ul { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-principale a {
  color: var(--blanc); text-decoration: none; font-size: 0.92rem; font-weight: 400;
  padding: 0.3rem 0; border-bottom: 3px solid transparent; white-space: nowrap;
}
.nav-principale a:hover { color: var(--orange); }
.nav-principale a.actif { border-bottom-color: var(--orange); color: var(--blanc); }
.btn-partenaire {
  background: var(--rouge); color: var(--blanc); text-decoration: none;
  font-weight: 500; font-size: 0.92rem; border-radius: 7px; padding: 0.55rem 1.15rem;
  white-space: nowrap; transition: background 0.2s ease;
}
.btn-partenaire:hover { background: var(--rouge-profond); }
.burger {
  display: none; margin-left: auto; background: none; border: none; cursor: pointer;
  width: 44px; height: 40px; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 26px; height: 3px; background: var(--orange);
  position: absolute; left: 9px; transition: 0.2s;
}
.burger span { top: 18px; }
.burger span::before { left: 0; top: -8px; }
.burger span::after { left: 0; top: 8px; }

/* ---------- Titres de section ---------- */
.titre-section {
  font-family: var(--ff-titre);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  color: var(--orange);
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 10px;
  margin-bottom: 1.6rem;
}
.intro-section {
  text-align: center; max-width: 640px; margin: 0 auto 2.6rem;
  font-weight: 300; font-size: 1.02rem;
}
.sur-titre {
  font-family: var(--ff-titre); color: var(--rouge-profond);
  font-size: 1rem; letter-spacing: 0.04em; margin-bottom: 0.4rem;
}

/* ---------- Héros (accueil) ---------- */
.heros {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 88% 30%, rgba(132, 15, 27, 0.85), rgba(132, 15, 27, 0) 60%),
    linear-gradient(115deg, #1C1C1C 30%, #2A1A17 62%, #57101B 100%);
  color: var(--blanc);
}
.heros .motif-o {
  position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  height: 118%; opacity: 0.5; pointer-events: none;
}
.heros-inner {
  position: relative; display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem; align-items: center; padding: 3.4rem 0 3rem;
}
.heros .logo-grand { width: min(430px, 88%); height: auto; margin-bottom: 1.7rem; }
.compte-rebours { display: flex; align-items: flex-start; gap: 0.4rem; }
.compte-rebours .groupe { text-align: center; }
.compte-rebours .valeur {
  font-family: var(--ff-affichage); font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 5.6rem); line-height: 1; color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.compte-rebours .separateur {
  font-family: var(--ff-affichage); font-size: clamp(3rem, 8.5vw, 5.6rem);
  line-height: 1; color: var(--orange);
}
.compte-rebours .libelle { color: var(--orange); font-size: 0.95rem; margin-top: 0.35rem; }
.heros .rendez-vous {
  margin-top: 1.5rem; font-family: var(--ff-titre); font-size: 1.15rem; color: var(--blanc);
}
.heros .rendez-vous strong { color: var(--orange); font-weight: 700; }
.partenaires-heros { margin-top: 1.7rem; }
.partenaires-heros .libelle-partenaires {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65); margin-bottom: 0.45rem;
}
.partenaires-heros .noms {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; align-items: baseline;
  font-family: var(--ff-affichage); font-size: 1.05rem; color: var(--blanc);
}
.partenaires-heros .noms .simandou { letter-spacing: 0.06em; }
.partenaires-heros .noms .simandou small { color: var(--orange); font-size: 0.8em; }
.partenaires-heros .noms .guinee { font-style: italic; }
.heros .texte-heros { margin-top: 1.5rem; max-width: 520px; font-weight: 300; font-size: 0.98rem; color: rgba(255,255,255,0.88); }
.heros-photo { align-self: end; position: relative; z-index: 2; }
.heros-photo img { width: 100%; max-width: 430px; margin-left: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45)); }

/* ---------- Sections sombres / crème ---------- */
.section-sombre {
  background: linear-gradient(180deg, #221D1B 0%, #1C1C1C 55%, #33131A 100%);
  color: var(--blanc); padding: 4.5rem 0 5rem; position: relative; overflow: hidden;
}
.section-sombre .intro-section { color: rgba(255,255,255,0.85); }
.section-creme {
  background: var(--creme); color: var(--gris); padding: 4.5rem 0 5rem;
  position: relative; overflow: hidden;
}
.section-creme .motif-b {
  position: absolute; left: -25px; top: 0; height: 100%; opacity: 0.55; pointer-events: none;
}
.section-creme .conteneur { position: relative; }

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; margin: 2.8rem 0 2.4rem; }
.stat img { width: 92px; height: 92px; object-fit: contain; margin: 0 auto 0.9rem; }
.stat .chiffre { font-family: var(--ff-titre); font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--orange); }
.stat .libelle-stat { font-size: 1rem; color: inherit; }
.centre { text-align: center; }

/* ---------- Cartes (actualités / programmation) ---------- */
.cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 3rem; }
.carte { display: grid; grid-template-columns: 190px 1fr; gap: 1.3rem; align-items: start; }
.carte img { width: 190px; height: 240px; object-fit: cover; border-radius: 4px; }
.carte h3 { font-family: var(--ff-titre); font-weight: 700; color: var(--orange); font-size: 1.28rem; line-height: 1.25; margin-bottom: 0.55rem; }
.carte p { font-size: 0.94rem; font-weight: 300; margin-bottom: 1rem; }
.section-sombre .carte p { color: rgba(255,255,255,0.85); }
.carte .btn { padding: 0.6rem 1.7rem; font-size: 0.92rem; }

/* ---------- Curseur actualités ---------- */
.slider { position: relative; }
.slide { display: none; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.slide.visible { display: grid; }
.slide img { width: 100%; height: 430px; object-fit: cover; border-radius: 4px; }
.slide h3 { font-family: var(--ff-titre); color: var(--orange); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin-bottom: 1rem; }
.slide p { font-weight: 300; margin-bottom: 1.1rem; }
.points { display: flex; justify-content: center; gap: 0.55rem; margin-top: 2.4rem; }
.points button {
  width: 13px; height: 13px; border-radius: 50%; border: none; cursor: pointer;
  background: #8d8578; padding: 0;
}
.section-sombre .points button { background: #6e6259; }
.points button.actif { background: var(--orange); }

/* ---------- Page intérieure : bandeau ---------- */
.bandeau {
  position: relative; overflow: hidden; color: var(--blanc);
  background:
    radial-gradient(900px 480px at 90% 20%, rgba(132, 15, 27, 0.8), rgba(132, 15, 27, 0) 60%),
    linear-gradient(115deg, #1C1C1C 35%, #57101B 110%);
  padding: 3.2rem 0 2.8rem;
}
.bandeau .motif-o { position: absolute; right: -20px; top: 50%; transform: translateY(-50%); height: 130%; opacity: 0.45; }
.bandeau h1 {
  font-family: var(--ff-titre); color: var(--orange); font-size: clamp(2rem, 5vw, 3.2rem);
  text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 10px;
  position: relative;
}
.bandeau p { position: relative; margin-top: 1.3rem; max-width: 640px; font-weight: 300; color: rgba(255,255,255,0.9); }

/* ---------- Article / événement (détail) ---------- */
.fiche { background: var(--creme); padding: 4rem 0 5rem; }
.fiche-grille { display: grid; grid-template-columns: 400px 1fr; gap: 3rem; align-items: start; }
.fiche-grille img.affiche { width: 100%; border-radius: 4px; border-bottom: 10px solid var(--orange); }
.fiche h2, .article-corps h2 { font-family: var(--ff-titre); color: var(--orange); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; margin-bottom: 1rem; }
.fiche p, .article-corps p { font-weight: 300; margin-bottom: 1rem; }
.meta-agenda {
  display: flex; flex-wrap: wrap; gap: 0 2.2rem; margin: 1.6rem 0 1.8rem;
  border-top: 1px solid rgba(45,44,44,0.25); padding-top: 1.1rem;
}
.meta-agenda .item .k { display: block; font-weight: 500; font-size: 0.9rem; }
.meta-agenda .item .v { font-family: var(--ff-titre); color: var(--rouge-profond); font-size: 1.02rem; }
.article-corps { max-width: 860px; margin: 0 auto; }
.article-corps img.banniere { width: 100%; height: 420px; object-fit: cover; border-top: 10px solid var(--orange); border-radius: 4px; margin-bottom: 2rem; }
.bloc-attente {
  border: 2px dashed rgba(255, 106, 21, 0.55); border-radius: 10px;
  padding: 1.4rem 1.6rem; font-weight: 300;
}
.section-creme .bloc-attente { background: rgba(255,255,255,0.45); }
.section-sombre .bloc-attente { background: rgba(255,255,255,0.05); }

/* ---------- Galerie ---------- */
.grille-galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grille-galerie figure { position: relative; overflow: hidden; border-radius: 6px; cursor: zoom-in; background: #111; }
.grille-galerie img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.35s ease; }
.grille-galerie figure:hover img { transform: scale(1.04); }
.grille-galerie figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 0.9rem 0.6rem;
  color: var(--blanc); font-size: 0.88rem; font-weight: 300;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
}
.visionneuse {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(10, 8, 8, 0.94); align-items: center; justify-content: center; flex-direction: column;
}
.visionneuse.ouverte { display: flex; }
.visionneuse img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.visionneuse .legende { color: var(--blanc); margin-top: 1rem; font-weight: 300; }
.visionneuse button {
  position: absolute; top: 1.1rem; right: 1.4rem; background: none; border: none;
  color: var(--blanc); font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* ---------- Formulaires ---------- */
.formulaire { max-width: 640px; }
.formulaire label { display: block; font-weight: 500; margin: 1.1rem 0 0.35rem; }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%; font-family: var(--ff-texte); font-size: 1rem; color: var(--gris);
  background: var(--blanc); border: 1px solid #c9c0ab; border-radius: 7px; padding: 0.7rem 0.85rem;
}
.formulaire textarea { min-height: 130px; resize: vertical; }
.formulaire .btn { margin-top: 1.4rem; }
.note-formulaire { margin-top: 1rem; font-size: 0.9rem; font-weight: 300; font-style: italic; }
.message-envoye { display: none; margin-top: 1.2rem; border-left: 5px solid var(--orange); background: rgba(255,255,255,0.55); padding: 0.9rem 1.1rem; font-weight: 300; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--noir); color: rgba(255,255,255,0.85);
  border-top: 3px solid var(--orange); padding: 3rem 0 2rem; font-weight: 300;
}
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.2rem; }
.pied .logo-pied { width: 92px; height: auto; margin-bottom: 0.8rem; }
.pied h4 { font-family: var(--ff-titre); color: var(--orange); font-size: 1.02rem; margin-bottom: 0.7rem; text-decoration: none; }
.pied ul { list-style: none; }
.pied li { margin-bottom: 0.4rem; }
.pied a { color: rgba(255,255,255,0.85); text-decoration: none; }
.pied a:hover { color: var(--orange); }
.pied-bas {
  border-top: 1px solid rgba(255,255,255,0.16); padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; font-size: 0.9rem;
}
.signature a { color: var(--orange); text-decoration: none; font-weight: 500; }
.signature a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-principale {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--noir); padding: 1rem 4%; border-bottom: 2px solid var(--orange);
  }
  .nav-principale.ouverte { display: block; }
  .nav-principale ul { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .burger { display: block; }
  .entete .btn-partenaire { display: none; }
  .nav-principale .btn-partenaire { display: inline-block; margin-top: 0.4rem; }
}
@media (max-width: 860px) {
  .heros-inner { grid-template-columns: 1fr; padding-top: 2.4rem; }
  .heros-photo img { margin: 0 auto; max-width: 330px; }
  .heros .motif-o { opacity: 0.3; right: -90px; }
  .cartes { grid-template-columns: 1fr; }
  .slide { grid-template-columns: 1fr; gap: 1.4rem; }
  .slide img { height: 300px; }
  .fiche-grille { grid-template-columns: 1fr; }
  .grille-galerie { grid-template-columns: repeat(2, 1fr); }
  .grille-galerie img { height: 220px; }
  .deux-colonnes { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
  .stats { gap: 1rem; }
  .stat img { width: 70px; height: 70px; }
}
@media (max-width: 560px) {
  .carte { grid-template-columns: 1fr; }
  .carte img { width: 100%; height: 220px; }
  .compte-rebours .valeur, .compte-rebours .separateur { font-size: 2.6rem; }
  .grille-galerie { grid-template-columns: 1fr; }
}

/* ---------- Recadrages (audit photos) ----------
   Points focaux par défaut des cadres fixes : les visages et les
   djembés restent entiers ; chaque image peut affiner le sien
   par un object-position en ligne. */
.carte img { object-position: 50% 20%; }
.slide img { object-position: 50% 28%; }
.article-corps img.banniere { object-position: 50% 22%; }
.grille-galerie img { object-position: 50% 26%; }

/* ---------- Affiche officielle ---------- */
.affiche-figure figcaption { font-size: 0.88rem; font-weight: 300; margin-top: 0.7rem; line-height: 1.45; }
.affiche-accueil { text-align: center; margin: 2.8rem auto 0; max-width: 330px; }
.affiche-accueil img { width: 100%; border-radius: 4px; border-bottom: 10px solid var(--orange); }
.affiche-accueil figcaption { font-size: 0.88rem; font-weight: 300; margin-top: 0.7rem; line-height: 1.45; color: rgba(255,255,255,0.8); }
.affiche-accueil figcaption a { color: var(--orange); font-weight: 500; }

/* ---------- Bloc d'information (ministère, cadre) ---------- */
.bloc-info { border: 2px solid rgba(255, 106, 21, 0.55); border-radius: 10px; padding: 1.4rem 1.6rem; font-weight: 300; background: rgba(255,255,255,0.45); }
.bloc-info p + p { margin-top: 0.8rem; }
.bloc-info .btn { margin-top: 0.4rem; }

/* ---------- Revue de presse ---------- */
.revue-presse { max-width: 860px; margin: 0 auto; }
.revue-item { display: block; text-decoration: none; padding: 1.15rem 0; border-bottom: 1px solid rgba(45,44,44,0.18); }
.revue-item:first-of-type { border-top: 1px solid rgba(45,44,44,0.18); }
.revue-item .media { font-family: var(--ff-titre); color: var(--rouge-profond); font-size: 0.95rem; letter-spacing: 0.03em; }
.revue-item .date { color: #6b6257; font-size: 0.9rem; font-weight: 300; }
.revue-item h3 { font-family: var(--ff-titre); color: var(--gris); font-size: 1.15rem; line-height: 1.3; margin: 0.25rem 0 0.3rem; }
.revue-item:hover h3 { color: var(--rouge); }
.revue-item .lire { color: var(--rouge); font-weight: 500; font-size: 0.92rem; }
