:root {
  --lila: #b371e1;
  --jaune: #FFCC00;
  --gris-clair: #f5f7fb;
  --texte: #222222;
}

/* RESET & BASE TYPO */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* FOND GLOBAL AVEC FRISE */
body {
  color: var(--texte);
  line-height: 1.6;

  /* Motif de frise en fond */
  background-image: url('/Bulletin/JPO/img/frise-oeuvres.png'); /* adapte le nom si besoin */
  background-repeat: repeat;
  background-size: 2500px auto;
  background-position: center top;
  background-color: var(--gris-clair);

  position: relative;
}

/* Voile léger au-dessus de la frise pour ne pas gêner la lisibilité */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(245, 247, 251, 0.55);
  pointer-events: none;
  z-index: -1;
}

/* HEADER AVEC PHOTO DE FOND */
header {
  position: relative;
  color: white;
  text-align: center;

  background-image: url('/Bulletin/JPO/img/archimede2.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 25% 55%;

  height: 32vh;
  min-height: 240px;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  overflow: hidden;
}

/* voile sombre pour lisibilité du texte du header */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.169),
    rgba(0, 0, 0, 0.099)
  );
  z-index: 0;
}

header h1,
header span {
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 38px;
  font-weight: bold;
  text-shadow:
    0.5px 0.5px 0 white,
    -0.5px 0.5px 0 white,
    0.5px -0.5px 0 white,
    -0.5px -0.5px 0 white;
}

header span {
  font-size: 20px;
  opacity: 0.9;
}

/* Header cliquable sans effet de lien */
.header-link a,
.header-link a:visited,
.header-link a:hover,
.header-link a:active,
.header-link a:focus {
  text-decoration: none;
  color: inherit;
  display: block;
  outline: none;
}

/* Couleur du titre conservée */
.header-link h1 {
  color: var(--lila);
}



/* BLOC CENTRAL BLANC PAR-DESSUS LA FRISE */
main {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
  padding: 1.5rem 1.5rem 2rem;

  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* NAVIGATION PRINCIPALE */
.main-nav {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 0.6rem 1.5rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.main-nav li {
  position: relative;
}

.nav-link,
.nav-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--texte);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-btn:hover {
  background: rgba(179,113,225,0.08);
  border-color: rgba(179,113,225,0.3);
  transform: translateY(-1px);
}

.nav-btn-rdv {
  background: var(--jaune);
  border-color: var(--jaune);
  color: #000;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.nav-btn-rdv:hover {
  background: #ffd633;
}

.nav-link-po {
  background: #c053f2;
  color: #000000;
  font-weight: 700;
  border: 1px solid var(--lila);
  box-shadow: 4px 4px 4px rgba(174, 0, 255, 0.502);
}

.nav-link-po:hover {
  background: #b549f8;
}


/* Sous-menu "Qui nous sommes ?" */
.has-submenu > .nav-btn::after {
  content: " ▾";
  font-size: 0.72rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.has-submenu.open > .nav-btn::after {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  list-style: none;
  padding: 0.4rem 0;
  min-width: 230px;
  z-index: 20;

  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    max-height 0.2s ease,
    visibility 0.2s ease;
}

.has-submenu.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 500px;
}

.submenu li a {
  display: block;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--texte);
  white-space: normal;
}

.submenu li a:hover {
  background: rgba(179,113,225,0.08);
}

/* Pastilles de mots-clés */
.tag {
  display: inline-block;
  background: rgba(0, 51, 153, 0.06);
  color: var(--lila);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  margin: 0.2rem 0.2rem;
}

/* FOOTER */
footer {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: #666;
}

footer a {
  color: var(--lila);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* POP-UP / MODAL RDV */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  max-width: 500px;
  width: 90%;
  border-radius: 16px;
  padding: 1.5rem 1.7rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.modal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--lila);
}

.modal-content p {
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

.modal-actions {
  margin-top: 1.2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-modal {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-modal-secondary {
  background: #f3f3f7;
  color: #333;
}

.btn-modal-secondary:hover {
  background: #e5e5ee;
}

.btn-modal-primary {
  background: var(--jaune);
  color: #000;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.btn-modal-primary:hover {
  background: #ffd633;
}

/* ===== Bloc Domicile & Priorités ===== */
.info-domicile-priorite {
  margin: 2.5rem 0;
}

.info-domicile-priorite h2 {
  color: var(--lila);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.info-domicile-priorite p {
  margin-bottom: 0.8rem;
}

.intro-situations {
  margin-top: 1.2rem;
}

/* ===== Fond du contenu déroulé ===== */
.accordion details > *:not(summary) {
  background: rgba(179,113,225,0.06); /* violet très léger */
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  margin-top: 0.5rem;
}

/* Ajustement listes internes */
.accordion details > ul {
  padding-left: 1.4rem;
}

/* Évite effet "bloc écrasé" sur mobile */
@media (max-width: 600px) {
  .accordion details > *:not(summary) {
    padding: 0.55rem 0.65rem;
  }
}


/* ===== Accordéon ===== */
.accordion details {
  border: 1px solid rgba(179,113,225,0.35);
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.6rem;
  background: #ffffff;
}

.accordion summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.accordion summary::marker {
  display: none;
}

.accordion details[open] summary {
  color: var(--lila);
}

.accordion details p,
.accordion details ul {
  margin-top: 0.6rem;
}

.accordion ul {
  padding-left: 1.2rem;
}

/* ===== Icônes ===== */
.accordion .icon {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
}

.accordion details[open] .icon {
  opacity: 1;
}

/* ===== Encadré attention ===== */
.warning {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  background: rgba(255,204,0,0.15);
  padding: 0.6rem;
  border-radius: 8px;
}


/* RESPONSIVE GLOBAL */
@media (max-width: 900px) {
  header h1 {
    font-size: 28px;
  }

  header span {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .main-nav ul {
    justify-content: flex-start;
  }
}
.jpo-page ul {
    margin-left: 1rem;
    padding-left: 1.5rem;
}

/* Image à gauche, texte à droite */
.flex-left {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.flex-left img {
  max-width: 48%;
  border: 1px solid #b371e1;
  border-radius: 12px;
}

/* Liste à gauche, image à droite */
.flex-right {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.flex-right img {
  max-width: 48%;
  border: 1px solid #b371e1;
  border-radius: 12px;
}

.flex-right ul {
  flex: 1;
}

.video-container {
  width: 100%;
  max-width: 800px; /* tu peux augmenter ou diminuer */
  margin: 0 auto 1.5rem; /* centre + espace en bas */
  border-radius: 12px;
  overflow: hidden;      /* arrondit la vidéo elle-même */
  border: 1px solid #b371e1; /* bordure violet ISJ */
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}
/* ===== Encarts concours (page d'accueil) ===== */
.concours-home {
  margin-top: 1rem;
}

.concours-badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(255, 204, 0, 0.25);
  border: 1px solid rgba(255, 204, 0, 0.6);
  color: #222;
}

.concours-badge-closed {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
  color: #555;
}

/* Colonne droite = 2 blocs empilés, pas symétriques */
.po-column{
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* WEBINAIRES : petit bloc */
.webinaire-box{
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(179,113,225,0.6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);

  /* 👉 petit (prend moins de hauteur) */
  flex: 0.6;
}

.webinaire-title{
  text-align: center;
  font-size: 1.15rem;
  color: var(--lila);
  margin-bottom: 0.35rem;
}

.webinaire-text{
  text-align: center;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.webinaire-actions{
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Confirmation forte (immersion) ===== */
.flash{
  border-radius: 18px;
  padding: 1.2rem 1.2rem;
  margin: 1rem 0 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 2px solid transparent;
}

.flash-success{
  background: #e8f7ee;
  border-color: #2e9d5b;
}

.flash h2{
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.flash-lead{
  font-size: 1.05rem;
  margin: 0 0 0.9rem;
}

.flash-recap{
  background: rgba(255,255,255,0.75);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 0.8rem;
}

.flash-row{
  display: flex;
  gap: 0.8rem;
  padding: 0.25rem 0;
}

.flash-key{
  min-width: 140px;
  font-weight: 700;
  color: #1f6f41;
}

.flash-val{
  flex: 1;
}

.flash-note{
  margin: 0.6rem 0 0.8rem;
  color: #333;
}

.flash-cta{
  display: inline-block;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 700;
  background: var(--jaune);
  color: #000;
  border: 1px solid rgba(0,0,0,0.12);
}

.flash-cta:hover{
  background: #ffd633;
}

/* PORTES OUVERTES : plus grand bloc */
.po-box-tall{
  /* 👉 grand (prend plus de hauteur) */
  flex: 1.4;
}

#btn-webinaire {
  background: #b271e1a2;
  color: #000000;
  font-weight: 700;
  border: 1px solid rgba(179,113,225,0.8);
  box-shadow: 2px 2px 6px rgba(179,113,225,0.4);
}
.flag-nl {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.35em;

  vertical-align: -0.15em; /* aligne comme un emoji */
  background-size: cover;
  background-repeat: no-repeat;

  /* SVG drapeau Pays-Bas (rouge / blanc / bleu) */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'>\
<rect width='3' height='2' fill='%2321468B'/>\
<rect width='3' height='1.333' fill='%23FFFFFF'/>\
<rect width='3' height='0.666' fill='%23AE1C28'/>\
</svg>");
}

