/* ===== Couleurs et polices du site ===== */
:root {
  --fleuve: #0f3d4c;       /* bleu profond du Mékong */
  --fleuve-clair: #1f6f7a;
  --or: #c9a14a;           /* or, clin d'œil au Cambodge */
  --sable: #f7f4ec;        /* fond clair */
  --texte: #1d2a30;
  --gris: #5b6b72;
  --titre: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --corps: "Source Sans 3", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 18px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--sable);
}

.conteneur { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.etroit { max-width: 760px; }
.centre { text-align: center; }

h1, h2, h3 { font-family: var(--titre); color: var(--fleuve); line-height: 1.1; }
h2 { font-size: 2.6rem; margin: 0 0 1.2rem; position: relative; padding-bottom: .6rem; }
h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 60px; height: 3px; background: var(--or);
}
.centre h2::after { left: 50%; transform: translateX(-50%); }

/* ===== Menu ===== */
.menu {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 61, 76, .96);
  backdrop-filter: blur(6px);
}
.menu-interieur { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-family: var(--titre); font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; }
.logo span { color: var(--or); }
nav { display: flex; gap: 24px; align-items: center; }
nav a { color: #e6eef0; text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--or); }

/* Sélecteur de langue */
.langues { display: flex; gap: 2px; border: 1px solid rgba(201,161,74,.6); border-radius: 4px; overflow: hidden; }
.langues a { color: #e6eef0; text-decoration: none; font-size: .85rem; padding: 5px 10px; }
.langues a:hover { background: rgba(201,161,74,.25); }
.langues a.actif { background: var(--or); color: var(--fleuve); font-weight: 600; }
.nom-traduit { font-size: 1.5rem; margin: 0 0 .3rem; color: #fff; letter-spacing: .05em; }

/* ===== Polices khmer et chinois ===== */
:lang(km) body, body:lang(km) {
  font-family: "Noto Sans Khmer", "Khmer Sangam MN", var(--corps);
  line-height: 1.9;
}
:lang(km) h2, :lang(km) h3, :lang(km) .lieu-ville, :lang(km) .edition, :lang(km) .heure {
  font-family: "Noto Serif Khmer", "Khmer MN", var(--titre);
  line-height: 1.5;
}
:lang(zh-Hans) body, body:lang(zh-Hans) {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", var(--corps);
}
:lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(zh-Hans) .lieu-ville, :lang(zh-Hans) .edition {
  font-family: "Songti SC", "STSong", "Noto Serif SC", var(--titre);
}
:lang(km) .surtitre, :lang(zh-Hans) .surtitre,
:lang(km) .lieu-pays, :lang(zh-Hans) .lieu-pays { text-transform: none; letter-spacing: .05em; }
.langues a:lang(km) { font-family: "Noto Sans Khmer", "Khmer Sangam MN", sans-serif; }
[lang="fr"] { font-family: inherit; }
h1[lang="fr"], .logo { font-family: var(--titre); }

/* ===== Accueil ===== */
.accueil {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 110px 0 170px;
  background:
    radial-gradient(circle at 20% 20%, rgba(201,161,74,.18), transparent 45%),
    linear-gradient(160deg, var(--fleuve) 0%, var(--fleuve-clair) 100%);
}
.surtitre { text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; color: var(--or); margin: 0; }
.accueil h1 { color: #fff; font-size: clamp(3rem, 9vw, 6rem); margin: .3em 0 .1em; }
.edition { font-family: var(--titre); font-style: italic; font-size: 1.6rem; margin: 0 0 1.5rem; color: #f0e3c2; }
.infos-cles { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 1.15rem; }
.separateur { width: 8px; height: 8px; background: var(--or); transform: rotate(45deg); }
.compte-a-rebours { display: flex; justify-content: center; gap: 28px; margin: 2rem 0; font-size: .95rem; color: #d9e6e8; }
.compte-a-rebours b { display: block; font-family: var(--titre); font-size: 2.4rem; color: #fff; line-height: 1; }
.bouton {
  display: inline-block; background: var(--or); color: var(--fleuve);
  padding: 12px 28px; border-radius: 4px; font-weight: 600; text-decoration: none;
  transition: transform .2s;
}
.bouton:hover { transform: translateY(-2px); }
.vagues { position: absolute; bottom: 0; left: 0; width: 100%; height: 120px; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.fond-clair { background: #fff; }
.intro { font-size: 1.2rem; }
.sous-titre { color: var(--gris); margin-top: -.5rem; }
.note { color: var(--gris); font-style: italic; }

/* Repères « à compléter » : à supprimer une fois le contenu fourni */
.a-completer {
  background: #fff7e0; border-left: 4px solid var(--or);
  padding: 10px 16px; color: #7a5b12; font-size: .95rem; border-radius: 0 4px 4px 0;
}
.a-completer-inline { color: #9a7420; font-size: .85rem; }

/* ===== Programme ===== */
.programme { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--or); }
.programme li { display: flex; gap: 24px; padding: 14px 0 14px 24px; position: relative; }
.programme li::before {
  content: ""; position: absolute; left: -7px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--fleuve);
}
.heure { font-family: var(--titre); font-weight: 700; font-size: 1.3rem; color: var(--fleuve); min-width: 70px; }

/* ===== Lieu ===== */
.carte-lieu { background: #fff; border-radius: 8px; padding: 32px; box-shadow: 0 6px 24px rgba(15,61,76,.08); }
.lieu-ville { font-family: var(--titre); font-size: 2.2rem; font-weight: 700; color: var(--fleuve); }
.lieu-pays { color: var(--gris); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }

/* ===== Organisateurs ===== */
.organisateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.organisateur { background: var(--sable); border-radius: 8px; padding: 32px; text-align: center; }
.pastille {
  width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fleuve); color: var(--or);
  font-family: var(--titre); font-weight: 700; font-size: 1.4rem;
}
.organisateur h3 { font-size: 1.6rem; margin: 0 0 .6rem; }

/* ===== Pied de page ===== */
.pied { background: var(--fleuve); color: #cfdde0; text-align: center; padding: 36px 0; font-size: .95rem; }
.pied p { margin: .3rem 0; }
.pied strong { color: #fff; }

/* ===== Téléphone ===== */
@media (max-width: 1000px) {
  nav { display: none; }
}
@media (max-width: 760px) {
  .logo { font-size: 1.2rem; }
  .langues a { padding: 5px 7px; }
  h2 { font-size: 2rem; }
  .section { padding: 64px 0; }
  .accueil { padding: 80px 0 140px; }
}

/* =====================================================
   PHOTOS
   ===================================================== */

/* --- Accueil : diaporama de 3 photos en fondu --- */
.accueil { overflow: hidden; background: var(--fleuve); }
.accueil > .conteneur { position: relative; z-index: 2; }
.accueil .vagues { z-index: 2; }
.diaporama { position: absolute; inset: 0; z-index: 0; }
.diaporama::after {                     /* voile bleu pour lire le texte */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,40,52,.55) 0%, rgba(10,40,52,.45) 50%, rgba(10,40,52,.75) 100%);
}
.diapo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; animation: fondu 21s infinite;
}
.d1 { background-image: url("images/14_phnom_penh_barques_couchant.jpg"); animation-delay: 0s; }
.d2 { background-image: url("images/12_phnom_penh_crepuscule.jpg");       animation-delay: 7s; }
.d3 { background-image: url("images/08_phnom_penh_skyline_fleuve.jpg");   animation-delay: 14s; }
@keyframes fondu {
  0%   { opacity: 0; transform: scale(1.08); }
  8%   { opacity: 1; }
  33%  { opacity: 1; }
  41%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .diapo { animation: none; }
  .d1 { opacity: 1; }
}

/* --- Sections sur fond photo : un panneau clair par-dessus --- */
#presentation {
  background-image: linear-gradient(rgba(247,244,236,.90), rgba(247,244,236,.90)), url("images/04_mekong_pecheur.jpg");
  background-size: cover; background-position: center;
}
#programme {
  background-image: linear-gradient(rgba(15,61,76,.55), rgba(15,61,76,.70)), url("images/15_colloque_auditorium_asie.jpg");
  background-size: cover; background-position: center;
}
#lieu {
  background-image: linear-gradient(rgba(15,61,76,.25), rgba(15,61,76,.45)), url("images/09_phnom_penh_palais_royal.jpg");
  background-size: cover; background-position: center;
}
#organisateurs {
  background-image: linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)), url("images/13_universite_phnom_penh_diplome.jpg");
  background-size: cover; background-position: center 30%;
}
#contact {
  background-image: linear-gradient(rgba(15,61,76,.50), rgba(15,61,76,.70)), url("images/02_mekong_barge_bois.jpg");
  background-size: cover; background-position: center;
}
#programme > .conteneur,
#lieu > .conteneur,
#contact > .conteneur {
  background: rgba(247,244,236,.96);
  border-radius: 10px;
  padding: 44px 48px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
#lieu { padding: 160px 0; }
#lieu .carte-lieu { box-shadow: none; padding: 0; background: transparent; }
.organisateur { background: rgba(247,244,236,.94); box-shadow: 0 6px 24px rgba(15,61,76,.10); }

/* --- Galerie : mosaïque du Mékong, de l'amont à l'aval --- */
.galerie { background: var(--fleuve); }
.galerie h2 { color: #fff; }
.mosaique {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 10px;
}
.mosaique figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.mosaique figure:hover img { transform: scale(1.06); }
.mosaique figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 12px 8px; font-size: .85rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}
@media (min-width: 761px) {
  .mosaique {
    grid-template-areas:
      "a a b e"
      "f c b e"
      "f d d e"
      "g g g g";
  }
  .g1 { grid-area: a; } .g2 { grid-area: b; } .g3 { grid-area: c; } .g4 { grid-area: d; }
  .g5 { grid-area: e; } .g6 { grid-area: f; } .g7 { grid-area: g; }
  .g7 img { object-position: center 60%; }
}

/* --- Crédits photos --- */
.credits { font-size: .75rem; opacity: .7; margin-top: 1rem !important; }
.credits a { color: inherit; }

@media (max-width: 760px) {
  #programme > .conteneur, #lieu > .conteneur, #contact > .conteneur {
    padding: 28px 22px; margin: 0 16px; width: auto;
  }
  #lieu { padding: 90px 0; }
  .mosaique { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g1, .g6, .g7 { grid-column: span 2; }
  .infos-cles { flex-direction: column; gap: 4px; }
  .separateur { display: none; }
}

/* =====================================================
   PROGRAMME DÉTAILLÉ, THÈME, LOGOS, CONTACT
   ===================================================== */

/* Thème dans l'accueil */
.theme {
  max-width: 720px; margin: 0 auto 1.6rem;
  font-family: var(--titre); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.3;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

/* Les trois panels (section L'événement) */
.panels-titre { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.panels-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.panels-liste li {
  background: #fff; border-left: 3px solid var(--or); border-radius: 0 6px 6px 0;
  padding: 12px 16px; font-family: var(--titre); font-size: 1.2rem; line-height: 1.3; color: var(--fleuve);
}
.panels-liste li span {
  display: block; font-family: var(--corps); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .12em; color: #9a7420; margin-bottom: 2px;
}

/* Programme */
.prog { list-style: none; padding: 0; margin: 0 0 1rem; border-left: 2px solid rgba(201,161,74,.6); }
.prog li { display: grid; grid-template-columns: 118px 1fr; gap: 16px; padding: 10px 0 10px 20px; position: relative; font-size: 1rem; line-height: 1.5; }
.prog li::before {
  content: ""; position: absolute; left: -6px; top: 17px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--fleuve);
}
.prog .heure { font-family: var(--corps); font-weight: 600; font-size: .95rem; color: var(--fleuve); min-width: 0; white-space: nowrap; }
.prog li.pause { color: var(--gris); font-style: italic; }
.prog li.pause::before { background: var(--or); }
.prog li.interv strong { display: block; color: var(--fleuve); }
.prog q { display: block; margin-top: 2px; color: var(--texte); font-style: italic; quotes: "« " " »"; }
:lang(en) .prog q { quotes: "“" "”"; }
:lang(km) .prog q { quotes: "«" "»"; font-style: normal; }
:lang(zh-Hans) .prog q { quotes: "《" "》"; font-style: normal; }
.tbc { color: #9a7420; font-size: .85em; white-space: nowrap; }
.prog-groupe {
  font-family: var(--corps); font-size: .8rem; text-transform: uppercase; letter-spacing: .15em;
  color: #9a7420; margin: 1.8rem 0 .4rem;
}
:lang(km) .prog-groupe, :lang(zh-Hans) .prog-groupe { text-transform: none; letter-spacing: .05em; font-size: .95rem; }
.panel-tete {
  margin: 2rem 0 .6rem; padding: 18px 22px; border-radius: 8px;
  background: var(--fleuve); color: #e6eef0;
}
.panel-num { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--or); }
.panel-tete h3 { color: #fff; font-size: 1.45rem; margin: .3rem 0 .5rem; line-height: 1.25; }
.moderateur { margin: 0; font-size: .92rem; }
.moderateur strong { color: #fff; }
.panel-tete .tbc { color: #e8cf8f; }

/* Organisateurs : logos et soutiens */
.org-logo { display: block; height: 72px; width: auto; max-width: 100%; margin: 12px auto 18px; }
.organisateur h3 { font-size: 1.4rem; }
.soutiens { margin-top: 28px; text-align: center; color: var(--texte); font-size: 1rem; }
.soutiens p { margin: .2rem 0; }

/* Contact */
.contact-mails { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 1rem; }
.contact-mails a {
  color: var(--fleuve); font-weight: 600; text-decoration: none;
  border: 1px solid var(--or); border-radius: 4px; padding: 8px 16px; background: #fff;
}
.contact-mails a:hover { background: var(--or); }

/* Bandeau de logos, discret, au-dessus du pied de page */
.logos-bandeau { background: #fff; border-top: 1px solid #e7e1d2; padding-block: 18px; }
.logos-bandeau .conteneur { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.logos-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gris); }
:lang(km) .logos-label, :lang(zh-Hans) .logos-label { text-transform: none; letter-spacing: .05em; }
.logo-bandeau { height: 40px; width: auto; opacity: .85; transition: opacity .2s; }
.logo-bandeau:hover { opacity: 1; }
.logo-texte { font-family: var(--titre); font-weight: 700; font-size: 1.2rem; color: var(--fleuve); opacity: .85; }

@media (max-width: 760px) {
  .prog li { grid-template-columns: 1fr; gap: 2px; }
  .panel-tete h3 { font-size: 1.25rem; }
}

/* Emblème URDSE (plus haut que large) */
.org-logo-urdse { height: 110px; margin-top: 0; margin-bottom: 12px; }
.logo-bandeau-urdse { height: 52px; }
.org-logo:not(.org-logo-urdse) { margin: 22px auto 28px; }   /* aligne les deux cartes */

/* Lieu : adresse, salle, lien carte */
.lieu-adresse { margin: 1rem 0 .2rem; font-size: 1.05rem; }
.lieu-salle { margin: 0 0 1rem; color: #9a7420; font-style: italic; }
:lang(km) .lieu-salle, :lang(zh-Hans) .lieu-salle { font-style: normal; }
.lieu-carte {
  display: inline-block; color: var(--fleuve); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--or); padding-bottom: 2px;
}
.lieu-carte:hover { color: #9a7420; }

/* Volets d'une intervention à deux voix */
.prog .volet { display: block; margin-top: 4px; font-size: .9em; color: var(--gris); }
