/*
 * Refonte animations : composants internes de prototype-template.html.
 * Charger apres les styles du theme. Aucun selecteur hors de .eea.
 * Le conteneur .eea porte la largeur et les marges ; .wrap reste disponible
 * sans doubler le padding. Le header, le menu et le footer restent au theme.
 */
.eea {
  --navy: #123445;
  --orange: #f49121;
  --ink: #18333f;
  --muted: #556771;
  --line: #dce4e6;
  --paper: #f6f7f5;
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: auto;
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

/* Base locale pour les elements rendus par WordPress. */
.eea *::before,
.eea *::after {
  box-sizing: border-box;
}

.eea h1,
.eea h2,
.eea h3 {
  color: inherit;
  font-family: inherit;
  font-weight: 700;
  text-transform: none;
}

.eea button,
.eea input,
.eea select {
  margin: 0;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
}

.eea form[data-eea-filters] {
  margin: 0;
  padding: 0;
  border: 0;
}

.eea * {
  box-sizing: border-box;
}

.eea a {
  color: inherit;
}

.eea button,
.eea input,
.eea select {
  font: inherit;
}

.eea button,
.eea a,
.eea input,
.eea select,
.eea summary {
  -webkit-tap-highlight-color: transparent;
}

.eea button,
.eea a,
.eea summary {
  cursor: pointer;
}

.eea :focus-visible {
  outline: 3px solid #cf6200;
  outline-offset: 4px;
}

.eea [hidden] {
  display: none!important;
}

.eea .wrap {
  max-width: 1180px;
  margin: auto;
  padding: 0;
}

.eea .intro {
  padding: 42px 0 24px;
}

.eea .kicker {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #a75500;
  margin: 0 0 10px;
}

.eea h1,
.eea h2,
.eea h3,
.eea p {
  margin-top: 0;
}

.eea h1 {
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -.035em;
  max-width: 800px;
  margin-bottom: 18px;
}

.eea h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.eea h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.eea p {
  margin-bottom: 16px;
}

.eea .intro p:last-child {
  max-width: 750px;
  color: var(--muted);
  margin: 0;
}

.eea .controls {
  padding: 20px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}

.eea .filter {
  border: 1px solid #cbd6db;
  border-radius: 100px;
  padding: 10px 17px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  font-weight: bold;
}

.eea .filter[aria-pressed=true] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.eea .search {
  margin-left: auto;
  position: relative;
}

.eea .search input {
  border: 1px solid #cbd6db;
  border-radius: 7px;
  padding: 10px 12px;
  width: 235px;
  background: white;
  font-size: 14px;
}

.eea .sr {
  position: absolute;
  left: -10000px;
}

.eea .results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.eea .results a {
  font-weight: bold;
}

.eea .grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}

.eea .card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .16s,box-shadow .16s;
}

.eea .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 22px #12344515;
}

.eea .card-photo {
  position: relative;
}

.eea .card-photo img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
}

.eea .card-photo .type {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: white;
  border-radius: 100px;
  font-size: 11px;
  padding: 4px 10px;
  font-weight: bold;
}

.eea .card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.eea .card h3 a {
  text-decoration: none;
}

.eea .card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 12px;
}

.eea .card .tags {
  font-size: 12px;
  color: #3a5969;
  margin-bottom: 18px;
}

.eea .card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.eea .card-foot strong {
  font-size: 15px;
}

.eea .card-foot small {
  font-size: 11px;
  display: block;
  color: var(--muted);
  font-weight: normal;
}

.eea .card-foot a {
  font-size: 13px;
  text-decoration: none;
  font-weight: bold;
}

.eea .card-foot a:after {
  content: ' →';
}

.eea .bottom-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-top: 1px solid var(--line);
  margin: 40px 0 0;
  padding: 28px 0;
}

.eea .bottom-block h2 {
  font-size: 19px;
}

.eea .bottom-block p,
.eea .bottom-block a {
  font-size: 14px;
}

.eea .bottom-block p {
  color: var(--muted);
}

.eea .link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.eea .link-row a {
  font-size: 13px;
}

.eea .contact-strip {
  background: var(--navy);
  color: white;
  padding: 28px 32px;
  border-radius: 12px;
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 40px;
}

.eea .contact-strip h2 {
  font-size: 23px;
  margin-bottom: 6px;
}

.eea .contact-strip p {
  font-size: 14px;
  margin: 0;
  color: #d9e4e9;
}

.eea .btn {
  display: inline-block;
  text-decoration: none;
  background: var(--orange);
  border: 0;
  color: #162f3c;
  font-weight: bold;
  font-size: 14px;
  padding: 13px 19px;
  border-radius: 6px;
  white-space: nowrap;
}

.eea .btn.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
}

.eea .crumb {
  font-size: 13px;
  padding: 25px 0 22px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.eea .crumb a {
  text-decoration: none;
}

.eea .detail-top {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 38px;
  align-items: start;
  padding-bottom: 36px;
}

.eea .detail-top h1 {
  font-size: 41px;
}

.eea .lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
}

.eea .facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 23px 0;
}

.eea .fact {
  background: white;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.eea .fact span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.eea .fact strong {
  font-size: 15px;
}

.eea .price-line {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 24px 0;
}

.eea .price-line strong {
  font-size: 27px;
  line-height: 1.15;
}

.eea .price-line small {
  display: block;
  max-width: 260px;
  font-size: 12px;
  color: var(--muted);
}

.eea .photo-main {
  margin: 0;
}

.eea .photo-main img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.eea .photo-main figcaption {
  font-size: 11px;
  color: var(--muted);
  padding-top: 7px;
}

.eea .quicknav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 30px;
}

.eea .quicknav a {
  text-decoration: none;
  font-weight: bold;
}

.eea .detail-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 42px;
}

.eea .detail-body p,
.eea .detail-body li {
  font-size: 15px;
  color: #425b68;
}

.eea .box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.eea .box h2 {
  font-size: 20px;
}

.eea .checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eea .checklist li {
  padding: 6px 0 6px 24px;
  position: relative;
}

.eea .checklist li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #a55404;
  font-weight: bold;
}

.eea .steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 22px;
}

.eea .step span {
  font-size: 12px;
  color: #b66006;
  font-weight: bold;
}

.eea .step h3 {
  font-size: 15px;
  margin: 4px 0 8px;
}

.eea .step p {
  font-size: 13px;
  line-height: 1.5;
}

.eea .practical {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.eea .practical h2 {
  font-size: 21px;
}

.eea .fold {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  margin: 25px 0;
  overflow: hidden;
}

.eea .fold summary {
  padding: 17px 20px;
  font-weight: bold;
  font-size: 16px;
}

.eea .fold .inside {
  padding: 0 20px 20px;
}

.eea .photos {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.eea .photos img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 7px;
}

.eea .inside p {
  font-size: 13px;
  color: var(--muted);
}

.eea video {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 18px auto 0;
  background: #122c3a;
  border-radius: 8px;
}

.eea .also {
  font-size: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.eea .also p {
  margin: 0;
}

.eea .empty {
  grid-column: 1/-1;
  padding: 40px;
  background: white;
  border-radius: 10px;
  text-align: center;
}

.eea .empty p {
  margin: 0;
}

.eea .note-small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.eea .no-wrap {
  white-space: nowrap;
}

@media(max-width:900px) {
  .eea .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .eea .search {
    margin-left: 0;
  }

  .eea .search input {
    width: 220px;
  }

  .eea .detail-top {
    gap: 24px;
  }

  .eea .detail-top h1 {
    font-size: 35px;
  }

  .eea .photo-main img {
    height: 365px;
  }

  .eea .price-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .eea .detail-body {
    gap: 24px;
  }

}

@media(max-width:600px) {
  .eea .wrap {
    padding: 0;
  }

  .eea .intro {
    padding: 30px 0 22px;
  }

  .eea h1 {
    font-size: 35px;
  }

  .eea .intro p:last-child {
    font-size: 15px;
  }

  .eea .controls {
    gap: 8px;
    padding: 15px 0;
  }

  .eea .filter {
    padding: 8px 12px;
    font-size: 12px;
  }

  .eea .search {
    width: 100%;
    margin-top: 5px;
  }

  .eea .search input {
    width: 100%;
  }

  .eea .results {
    font-size: 12px;
  }

  .eea .grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .eea .card {
    display: grid;
    grid-template-columns: 110px 1fr;
  }

  .eea .card-photo img {
    height: 100%;
    min-height: 230px;
  }

  .eea .card-photo .type {
    display: none;
  }

  .eea .card-content {
    padding: 16px;
  }

  .eea .card h3 {
    font-size: 18px;
  }

  .eea .card p {
    font-size: 13px;
  }

  .eea .card .tags {
    font-size: 11px;
    margin-bottom: 11px;
  }

  .eea .card-foot {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
  }

  .eea .card-foot a {
    font-size: 12px;
  }

  .eea .bottom-block {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 24px;
  }

  .eea .contact-strip {
    padding: 24px;
    display: block;
  }

  .eea .contact-strip .btn {
    margin-top: 18px;
  }

  .eea .contact-strip h2 {
    font-size: 22px;
  }

  .eea .detail-top {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-bottom: 24px;
  }

  .eea .detail-top h1 {
    font-size: 34px;
  }

  .eea .photo-main {
    width: 100%;
  }

  .eea .photo-main img {
    height: 220px;
  }

  .eea .lede {
    font-size: 16px;
  }

  .eea .price-line {
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
  }

  .eea .price-line small {
    max-width: 245px;
  }

  .eea .detail-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .eea .steps {
    gap: 12px;
  }

  .eea .step p {
    font-size: 12px;
  }

  .eea .quicknav {
    gap: 16px;
    margin-bottom: 24px;
    font-size: 12px;
  }

  .eea .box {
    padding: 20px;
  }

  .eea .photos {
    grid-template-columns: 1fr;
  }

  .eea .photos img {
    height: 210px;
  }

  .eea .also {
    display: block;
  }

  .eea .also p {
    margin-bottom: 10px;
  }

  .eea .crumb {
    font-size: 12px;
    padding: 20px 0;
  }

  .eea .facts {
    gap: 8px;
  }

  .eea .fact {
    padding: 10px 12px;
  }

  .eea .fact strong {
    font-size: 14px;
  }

}

.eea .event-choices {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.eea .event-choice {
  text-align: left;
  background: white;
  color: var(--ink);
  border: 1px solid #cbd6db;
  border-radius: 9px;
  padding: 15px;
  min-height: 102px;
}

.eea .event-choice strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 7px;
}

.eea .event-choice span {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.eea .event-choice[aria-pressed=true] {
  border: 2px solid #be670d;
  background: #fff3e4;
  padding: 14px;
  box-shadow: inset 0 -3px #d97b16;
}

.eea .event-choice[aria-pressed=true] strong {
  color: #83450c;
}

.eea .filter-label {
  font-size: 14px;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}

.eea .refine {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eea .refine label {
  display: block;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 5px;
}

.eea .refine select,
.eea .refine input {
  width: 100%;
  border: 1px solid #cbd6db;
  border-radius: 6px;
  padding: 10px 12px;
  background: white;
  font-size: 14px;
  color: var(--ink);
  height: 43px;
}

.eea .refine-field {
  flex: 1;
  min-width: 0;
}

.eea .refine .reset {
  background: transparent;
  border: 0;
  text-decoration: underline;
  color: var(--muted);
  padding: 10px 0;
  font-size: 12px;
  white-space: nowrap;
}

.eea .selection {
  padding: 23px 0 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.eea .selection h2 {
  font-size: 25px;
  margin: 0 0 6px;
}

.eea .selection p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 750px;
}

.eea .selection .result-count {
  font-size: 12px;
  white-space: nowrap;
  padding-top: 7px;
}

.eea .public-badge {
  display: inline-block;
  font-weight: bold;
  font-size: 12px;
  border-radius: 5px;
  padding: 4px 7px;
  background: #eaf5f0;
  color: #175c4b;
  margin-bottom: 11px;
  align-self: flex-start;
}

.eea .public-enfants .public-badge {
  background: #fff0dd;
  color: #88480d;
}

.eea .public-ados .public-badge {
  background: #eef0fa;
  color: #3e4679;
}

.eea .public-adultes .public-badge {
  background: #eaf0f8;
  color: #315780;
}

.eea .exclusive {
  display: block;
  color: #315780;
  font-size: 11px;
  font-weight: bold;
  margin: -2px 0 10px;
}

.eea .context-note {
  font-size: 12px!important;
  color: #88500f!important;
  margin-bottom: 12px!important;
}

.eea .card {
  border-top: 3px solid #c1d6cf;
}

.eea .card.public-enfants {
  border-top-color: #e5b787;
}

.eea .card.public-ados {
  border-top-color: #b8bde0;
}

.eea .card.public-adultes {
  border-top-color: #a9bed6;
}

.eea .card-content {
  padding-top: 16px;
}

.eea .detail-top .public-badge {
  margin-bottom: 13px;
}

.eea .detail-top .exclusive {
  margin-bottom: 16px;
}

.eea .event-fit {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.eea .event-fit h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.eea .event-fit p {
  font-size: 13px;
  margin: 0;
}

.eea .bottom-block {
  display: block;
}

.eea .bottom-block .link-row {
  margin-top: 12px;
}

.eea .empty p {
  margin-bottom: 14px;
}

.eea .cards-grid {
  margin-bottom: 36px;
}

@media(max-width:900px) {
  .eea .event-choices {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .eea .event-choice {
    min-height: 90px;
  }

}

@media(max-width:600px) {
  .eea .intro {
    padding-bottom: 20px;
  }

  .eea .event-choices {
    gap: 8px;
    margin-bottom: 15px;
  }

  .eea .event-choice {
    padding: 12px;
    min-height: 106px;
  }

  .eea .event-choice[aria-pressed=true] {
    padding: 11px;
  }

  .eea .event-choice strong {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .eea .event-choice span {
    font-size: 11px;
  }

  .eea .refine {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0;
  }

  .eea .refine-field {
    flex: auto;
    width: 100%;
  }

  .eea .refine .reset {
    padding: 3px 0;
  }

  .eea .selection {
    gap: 10px;
    padding: 20px 0 15px;
    flex-wrap: wrap;
  }

  .eea .selection h2 {
    font-size: 23px;
  }

  .eea .selection .result-count {
    padding: 0;
  }

  .eea .public-badge {
    font-size: 11px;
    line-height: 1.4;
  }

  .eea .card {
    grid-template-columns: 90px minmax(0,1fr);
  }

  .eea .card-content {
    padding: 14px;
  }

  .eea .card-photo img {
    min-height: 260px;
  }

  .eea .exclusive {
    font-size: 10px;
  }

  .eea .card .tags {
    font-size: 11px;
  }

  .eea .context-note {
    font-size: 11px!important;
  }

  .eea .event-fit {
    margin-top: 18px;
  }

  .eea .detail-top .public-badge {
    font-size: 12px;
  }

}

/* hidden doit primer sur les grilles, les cartes flex et les notes. */
.eea[hidden],
.eea [hidden] {
  display: none !important;
}

/* Fonctionne aussi avant l'initialisation JS, grace au data-event SSR. */
.eea[data-eea-catalogue]:not([data-event="entreprise"]) .card .context-note {
  display: none !important;
}

@media (max-width: 600px) {
  .eea {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eea .card {
    transition: none;
  }

  .eea .card:hover {
    transform: none;
  }
}
