*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,sans-serif;color:#172033;background:#e9eef3}body{display:flex;flex-direction:column;min-height:100dvh}header{min-height:112px;background:#07090b;color:white;padding:12px clamp(16px,4vw,64px);display:flex;align-items:center;justify-content:space-between;gap:24px}.marque{display:flex;align-items:center;gap:18px;text-decoration:none;color:white;font-weight:700;letter-spacing:.04em;line-height:1.4}.marque img{width:125px;height:82px;object-fit:contain}.marque span{font-size:clamp(15px,1.6vw,23px)}nav{display:flex;gap:8px;flex-wrap:wrap}nav a{padding:14px 16px;color:white;text-decoration:none;border-radius:5px}nav a:hover,nav a[aria-current=page]{background:#303c49}main{flex:1;min-width:0}.page[hidden]{display:none!important}.surface{width:min(900px,calc(100% - 32px));margin:36px auto;background:#ffffffed;border:1px solid #d7dfe8;border-radius:12px;padding:clamp(20px,4vw,46px);box-shadow:0 10px 35px #23334912}h1{font-size:30px;margin-top:0}h2{font-size:20px}p,li{line-height:1.65}form{background:#f4f7fa;padding:22px;border-radius:8px;margin-top:24px}.grille{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:block;font-weight:600;margin-bottom:14px}input:not([type=checkbox]),select,textarea{display:block;width:100%;font:inherit;padding:11px;margin-top:7px;border:1px solid #aab7c7;border-radius:5px;background:white;color:#172033}textarea{resize:vertical}.accord{font-size:13px;font-weight:400;line-height:1.6}.accord input{margin-right:7px}button{font:inherit;background:#1e4873;color:white;padding:12px 22px;border:0;border-radius:5px;cursor:pointer}button:disabled{opacity:.55;cursor:wait}.secondaire{margin-top:20px;background:white;color:#1e4873;border:1px solid #1e4873}.discret,.notice{color:#4a596d;font-size:13px}.carte-page{height:calc(100dvh - 160px);min-height:480px}iframe{border:0;width:100%;height:100%;display:block}footer{display:flex;justify-content:center;gap:24px;padding:14px;background:#fff;font-size:12px}a{color:#174d80}:focus-visible{outline:3px solid #dc9b00;outline-offset:3px}.sr-only,.evitement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.evitement:focus{clip-path:none;width:auto;height:auto;background:white;padding:12px;z-index:100} [role=status]{white-space:pre-wrap} .erreur{color:#a01e28}@media(max-width:760px){header{flex-direction:column;gap:6px;padding:10px}.marque img{width:90px;height:60px}.marque span{font-size:15px}nav a{padding:10px}.grille{grid-template-columns:1fr;gap:0}.surface{margin:18px auto;padding:20px}form{padding:14px}.carte-page{height:calc(100dvh - 190px)}footer{flex-wrap:wrap;gap:8px}}

/* Ajustement du bandeau et de l'espace disponible pour la carte. */
body {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
header {
  min-height: 0;
  padding: 6px 20px;
  gap: 16px;
}
.marque { gap: 12px; }
.marque img {
  width: 86px;
  height: 54px;
}
.marque span {
  white-space: nowrap;
  font-size: clamp(14px, 1.7vw, 22px);
}
nav a { padding: 10px 12px; }
main {
  min-height: 0;
  overflow: auto;
}
.carte-page {
  height: 100%;
  min-height: 0;
}
footer {
  padding: 7px 12px;
  gap: 18px;
  font-size: 11px;
}
@media (max-width: 760px) {
  header { padding: 5px 10px; gap: 3px; }
  .marque img { width: 68px; height: 44px; }
  .marque span { font-size: 14px; }
  nav a { padding: 7px 10px; font-size: 13px; }
  footer { gap: 6px 14px; }
}

/* BANDEAU SELON LA PAGE — V1 */

/* Pages autres que l'accueil : navigation sur l'espace restant. */
header .marque {
  flex: 0 0 auto;
}
header nav {
  flex: 1 1 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}
header nav a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Accueil : titre seul, centré sur toute la largeur. */
body.page-accueil header {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 76px;
  padding: 12px 20px;
}
body.page-accueil header nav {
  display: none;
}
body.page-accueil header .marque {
  justify-content: center;
  gap: 0;
  width: 100%;
  text-align: center;
}
body.page-accueil header .marque img {
  display: none;
}
body.page-accueil header .marque span {
  font-size: clamp(20px, 3.2vw, 36px);
  line-height: 1.2;
  white-space: nowrap;
}

/* Sur écran étroit, le menu reste réparti sur sa propre ligne. */
@media (max-width: 760px) {
  header nav {
    flex: 0 0 auto;
    width: 100%;
  }
  body.page-accueil header {
    min-height: 66px;
    padding: 12px 10px;
  }
  body.page-accueil header .marque span {
    font-size: clamp(16px, 4.6vw, 28px);
  }
}


/* Titre tricolore : bleu, blanc, rouge. */
header .marque .titre-festival > span {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
header .marque .mot-festival {
  color: #579dff;
}
header .marque .mot-des {
  color: #ffffff;
}
header .marque .mot-finances {
  color: #ff5b63;
}


/* Accueil : logo à gauche, titre centré sur le bandeau. */
body.page-accueil header {
  position: relative;
}
body.page-accueil header .marque {
  position: static;
  width: 100%;
  min-height: 54px;
  padding-inline: 100px;
  box-sizing: border-box;
  justify-content: center;
}
body.page-accueil header .marque img {
  display: block;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 86px;
  height: 54px;
  object-fit: contain;
}
body.page-accueil header .marque > .titre-festival {
  font-size: clamp(18px, 3.2vw, 36px);
  white-space: nowrap;
}
@media (max-width: 760px) {
  body.page-accueil header .marque {
    min-height: 44px;
    padding-inline: 74px;
  }
  body.page-accueil header .marque img {
    left: 10px;
    width: 68px;
    height: 44px;
  }
  body.page-accueil header .marque > .titre-festival {
    font-size: clamp(10px, 2.8vw, 21px);
  }
}

/* RECHERCHE UNIFIEE DES COMMUNES V1 */
.recherche-communes{margin-bottom:14px}
.recherche-communes label{display:block;font-weight:600;margin-bottom:6px}
.recherche-communes input,.recherche-communes select{box-sizing:border-box;width:100%;font:inherit;padding:9px;border:1px solid #aab7c7;border-radius:5px;background:#fff;color:#172033;margin:0}
.recherche-communes input{margin-bottom:6px}
.recherche-communes select{margin-top:4px}
.recherche-communes select[hidden]{display:none!important}
.recherche-communes option{padding:5px 3px}
.recherche-statut{font-size:12px;line-height:1.4;margin:6px 0;color:#475569}

/* Accueil : masquer le select technique, sans modifier son fonctionnement. */
#accueil-form #commune-accueil {
  display: none !important;
}

/* Conserver un espace sous la recherche à la place du champ supprimé. */
#accueil-form #recherche-accueil {
  margin-bottom: 58px;
}
