/* ==========================================================================
   Composants réutilisables (futurs widgets / templates Elementor)
   ========================================================================== */

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn--primary { background: var(--c-orange); color: var(--c-white); }
.btn--primary:hover { background: var(--c-orange-hover); box-shadow: 0 8px 20px rgba(248, 128, 8, .28); }
.btn--primary:active { transform: translateY(1px); }

/* --- Effet bulles au survol (navbar CTA) --- */
.btn--bubble {
  position: relative;
  overflow: hidden;
}
.btn--bubble > span:not(:last-child) {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  background-color: #41ac38;
  border-radius: 50%;
  pointer-events: none;
  transition: transform .6s ease;
}
.btn--bubble > span:last-child { position: relative; }
.btn--bubble > span:nth-child(1) { transform: translate(-3.3em, -4em); }
.btn--bubble > span:nth-child(2) { transform: translate(-6em,   1.3em); }
.btn--bubble > span:nth-child(3) { transform: translate(-.2em,  1.8em); }
.btn--bubble > span:nth-child(4) { transform: translate( 3.5em, 1.4em); }
.btn--bubble > span:nth-child(5) { transform: translate( 3.5em, -3.8em); }
.btn--bubble:hover > span:not(:last-child) {
  transform: translate(-50%, -50%) scale(7);
  transition: transform 1.5s ease;
}
/* Sur survol : garder le fond orange (les bulles couvrent visuellement) */
.btn--bubble.btn--primary:hover { background: var(--c-orange); box-shadow: none; }
.btn--lg { height: 51px; padding: 0 28px; font-size: 15px; line-height: 18px; }
.btn--lg.btn--primary { min-width: 222px; }
.btn--outline-light {
  height: 51px;
  padding: 0 20px 0 26px;
  border: 1.5px solid var(--c-white);
  color: var(--c-white);
  gap: 6px;
}
.btn--outline-light:hover { background: var(--c-white); color: var(--c-green-dark); }
.btn__play { width: 16px; height: 18px; }

/* ---------- Liens fléchés ---------- */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c-green);
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Pastilles ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 20px;
  background: var(--c-gray);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  transition: background-color .2s, color .2s;
}
.pill:hover { background: #e8e8e4; }
.pill.is-active,
.pill[aria-selected="true"],
.pill[aria-pressed="true"] { background: var(--c-green); color: var(--c-white); }
.pill--sm {
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  font-weight: 500;
}

/* ---------- Carte thématique (présentation) ---------- */

.theme-card {
  display: grid;
  grid-template-columns: 595fr 565fr;
  min-height: 420px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--c-gray);
}
.theme-card[hidden] { display: none; }
.theme-card.is-entering { animation: fade-in .5s var(--ease); }
.theme-card__media { position: relative; overflow: hidden; }
.theme-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.theme-card:hover .theme-card__media img { transform: scale(1.03); }
.theme-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 64px 1px 48px;
}
.theme-card__title {
  font-family: var(--f-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
}
.theme-card__text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 18px;
}
.theme-card .link-arrow { margin-top: 19px; align-self: flex-start; }

/* ---------- Recherche de circuits ---------- */

.circuit-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding: 0 32px;
  border-radius: var(--radius-xl);
  background: var(--c-green-dark);
  color: var(--c-white);
}
.circuit-search__fields { display: flex; gap: 32px; }
.circuit-search__field { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.circuit-search__label {
  color: var(--c-lime);
  font-size: 11px;
  font-weight: 600;
  line-height: 13px;
  text-transform: uppercase;
}
.circuit-search__select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-white);
  font-size: 14px;
  line-height: 17px;
  cursor: pointer;
}
.circuit-search__select:hover { color: var(--c-lime); }
.circuit-search__select option { color: var(--c-text); background: var(--c-white); }
.circuit-search__submit { width: 184px; height: 46px; border-radius: var(--radius-md); }

/* ---------- Carte « raison » ---------- */

.reason-card {
  position: relative;
  min-height: 143px;
  padding: 38px 24px 30px;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.reason-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(4, 53, 31, .08); }
/* Au repos la carte reste blanche ; au survol, la photo apparaît sous un voile orange (couleur du logo). */
.reason-card--image { transition: transform .3s var(--ease), box-shadow .3s, color .3s; }
.reason-card__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.reason-card--image::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(248, 128, 8, .7);
  z-index: -1;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.reason-card--image:hover { color: var(--c-white); }
.reason-card--image:hover .reason-card__bg { opacity: 1; transform: none; }
.reason-card--image:hover::before { opacity: 1; }
.reason-card__number,
.reason-card__text { position: relative; }
.reason-card__number {
  display: block;
  color: var(--c-lime);
  font-family: var(--f-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 20px;
}
.reason-card__text {
  margin-top: 23px;
  font-size: 14px;
  line-height: 17px;
}

/* ---------- Carte interactive ---------- */

.niger-map {
  position: relative;
  width: 744px;
  aspect-ratio: 1025 / 600;
  container-type: inline-size;
}
.niger-map__svg { width: 100%; height: 100%; overflow: visible; }
.niger-map__region {
  fill: var(--c-green);
  stroke: var(--c-white);
  stroke-width: 2;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill .25s;
  outline: none;
}
.niger-map__region:hover,
.niger-map__region:focus-visible { fill: #0b7c45; }
.niger-map__region.is-active { fill: #0e8a4e; }
.niger-map__labels text {
  fill: var(--c-white);
  font-family: Verdana, "DejaVu Sans", var(--f-body);
  font-size: 20px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.niger-map__labels text.is-small { font-size: 15.5px; }
.niger-map__line {
  stroke: #1d3b2c;
  stroke-width: 1.6;
  transition: x2 .5s var(--ease), y2 .5s var(--ease);
}
.niger-map__pin { fill: #1d3b2c; }
.niger-map__marker {
  fill: var(--c-orange);
  stroke: var(--c-white);
  stroke-width: 2.6;
  cursor: pointer;
  outline: none;
  transition: r .2s;
}
.niger-map__marker:hover,
.niger-map__marker:focus-visible { r: 13; }

.polaroid {
  position: absolute;
  left: 4.4%;
  top: 34.2%;
  width: 20.1%;
  padding: 1.05cqw 1.05cqw 1.6cqw;
  background: var(--c-white);
  box-shadow: 0 .7cqw 1.9cqw rgba(0, 0, 0, .28);
  transform: rotate(5.5deg);
  color: var(--c-text);
  transition: transform .4s var(--ease);
}
.polaroid:hover { transform: rotate(3deg) scale(1.03); }
.polaroid__photo {
  display: block;
  aspect-ratio: 173 / 142;
  background: linear-gradient(135deg, #e4efe7, #b9d3c2);
  overflow: hidden;
}
.polaroid__photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid__photo img[hidden] { display: none; }
.polaroid__title {
  display: block;
  margin-top: 2.1cqw;
  font-family: Verdana, "DejaVu Sans", var(--f-body);
  font-size: 1.72cqw;
  line-height: 1.2;
}
.polaroid__tagline {
  display: block;
  margin-top: .45cqw;
  color: #555;
  font-family: Verdana, "DejaVu Sans", var(--f-body);
  font-size: 1.12cqw;
  line-height: 1.2;
}
.polaroid__tape {
  position: absolute;
  top: -1.1cqw;
  width: 3.6cqw;
  height: 1.7cqw;
  background: rgba(244, 164, 96, .82);
}
.polaroid__tape--left { left: -.9cqw; transform: rotate(35deg); }
.polaroid__tape--right { right: -.9cqw; transform: rotate(-35deg); }

/* ---------- Carte « site » ---------- */

.site-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: var(--c-green-dark);
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.site-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(4, 53, 31, .14); }
.site-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.site-card:hover .site-card__img { transform: scale(1.05); }
/* Flou gaussien progressif sur le bas de la photo, sans voile de couleur. */
.site-card__blur {
  position: absolute; inset: 45% 0 0;
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent);
          mask-image: linear-gradient(to top, #000 35%, transparent);
}
.site-card__title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 76px 22px 20px;
  color: var(--c-white);
  font-family: var(--f-heading);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
/* Bouton rond à la croix d'Agadez, révélé au survol (toujours visible sur écran tactile). */
.site-card__btn {
  position: absolute; right: 18px; bottom: 18px;
  z-index: 1;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #8cc640;
  box-shadow: 0 6px 16px rgba(4, 53, 31, .25);
  opacity: 0;
  transform: translateY(8px) scale(.8);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.site-card__btn::before {
  content: "";
  width: 16px; height: 26px;
  background: var(--c-white);
  transform: rotate(-90deg); /* la pointe de la croix vers la droite, comme une flèche */
  -webkit-mask: url("../icons/croix-agadez.png") center / contain no-repeat;
          mask: url("../icons/croix-agadez.png") center / contain no-repeat;
}
.site-card:hover .site-card__btn,
.site-card:focus-within .site-card__btn { opacity: 1; transform: none; }
@media (hover: none) {
  .site-card__btn { opacity: 1; transform: none; }
}

/* ---------- Carte « plat » : photo carrée, panneau blanc révélé au survol ---------- */

.dish-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  background: var(--c-gray);
  overflow: hidden;
  isolation: isolate;
}
.dish-card__img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.dish-card:hover .dish-card__img { transform: scale(1.06); }
.dish-card__panel {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: 0 10px 24px rgba(4, 53, 31, .12);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.dish-card:hover .dish-card__panel,
.dish-card:focus-within .dish-card__panel { opacity: 1; transform: none; }
.dish-card__title {
  font-family: var(--f-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.dish-card__meta { margin-top: 4px; color: #6b6b68; font-size: 14px; }
/* Même bouton que les cartes « site » : croix d'Agadez en flèche. */
.dish-card__btn {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #8cc640;
}
.dish-card__btn::before {
  content: "";
  width: 15px; height: 24px;
  background: var(--c-white);
  transform: rotate(-90deg);
  -webkit-mask: url("../icons/croix-agadez.png") center / contain no-repeat;
          mask: url("../icons/croix-agadez.png") center / contain no-repeat;
}
@media (hover: none) {
  .dish-card__panel { opacity: 1; transform: none; }
}

/* ---------- Carte « événement » ---------- */

.event-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--c-gray);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(4, 53, 31, .1); }
.event-card__media { position: relative; height: 160px; background: #c9d8cc; overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.event-card:hover .event-card__media img { transform: scale(1.05); }
.date-badge {
  position: absolute;
  top: 16px; left: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 53px;
  padding: 0 6px;
  border-radius: var(--radius-md);
  background: var(--c-white);
  text-align: center;
}
.date-badge__day {
  color: var(--c-green);
  font-family: var(--f-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
}
.date-badge__month {
  margin-top: 3px;
  color: var(--c-text);
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
}
.event-card__body { padding: 19px 18px 18px; }
.event-card__title {
  font-family: var(--f-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.event-card__location {
  margin-top: 4px;
  font-size: 13px;
  line-height: 16px;
}

/* ---------- Carte « info pratique » ---------- */

.info-card {
  position: relative;
  padding: 30px 26px 30px;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(4, 53, 31, .08); }
.info-card__icon { display: flex; align-items: flex-end; min-height: 70px; }
.info-card__icon svg { flex: none; }
.info-card__title {
  margin-top: 18px;
  color: var(--c-green-dark);
  font-family: var(--f-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
}
.info-card__text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 17px;
}
/* Positions d'icônes relevées sur la maquette */
.info-card--se-loger .info-card__icon { min-height: 72px; }
.info-card--se-loger .info-card__icon svg { margin-left: 2px; }
.info-card--se-deplacer .info-card__icon { min-height: 71px; padding-bottom: 12px; }
.info-card--se-deplacer .info-card__icon svg { margin-left: 6px; }
.info-card--se-soigner .info-card__icon { padding-top: 12px; margin-bottom: 10px; }
.info-card--se-soigner .info-card__icon svg { margin-left: 14px; }
.info-card--documentation .info-card__title { margin-top: 14px; }
.info-card--besoin-d-informations .info-card__icon { padding-top: 8px; }
.info-card--besoin-d-informations .info-card__icon svg { margin-left: 13px; }

/* ---------- Chiffre clé ---------- */

.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 12px;
}
.stat + .stat { border-left: 1px solid var(--c-muted); }
/* Icône : assets/icons/{nom}.png (ou .svg), nom défini dans site.json > stats. */
.stat__icon { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; color: var(--c-text); }
.stat__icon svg,
.stat__icon img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.stat__icon [fill="#ffffff"], .stat__icon [fill="#fff"] { fill: currentColor; }
.stat__body { display: flex; flex-direction: column; }
.stat__value {
  font-family: var(--f-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Carte « actualité » ---------- */

.news-card {
  position: relative;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--c-gray);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(4, 53, 31, .1); }
.news-card__media { height: 220px; background: var(--c-news-placeholder); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 20px 20px 18px; }
.news-card__date {
  display: block;
  color: var(--c-green);
  font-size: 11px;
  font-weight: 600;
  line-height: 13px;
  text-transform: uppercase;
}
.news-card__title {
  margin-top: 11px;
  font-family: var(--f-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 26px;
}
.news-card__title a:hover { color: var(--c-green); }

/* ---------- Carte « témoignage » ---------- */

.testimonial-card {
  height: 100%;
  min-height: 142px;
  padding: 32px 28px 27px;
  border-radius: var(--radius-xl);
  background: var(--c-white);
}
.testimonial-card__quote {
  font-family: var(--f-heading);
  font-size: 15px;
  line-height: 24px;
}
.testimonial-card__author {
  margin-top: 14px;
  color: var(--c-green);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
}

/* ---------- Carte « circuit » (pages internes) ---------- */

.circuit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.circuit-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(4, 53, 31, .1); }
.circuit-card__media { height: 200px; overflow: hidden; }
.circuit-card__media img { width: 100%; height: 100%; object-fit: cover; }
.circuit-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.circuit-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--c-gray);
  color: var(--c-green-dark);
  font-size: 12px;
  font-weight: 600;
}
.tag--lime { background: #eaf4dc; }
.circuit-card__title { font-family: var(--f-heading); font-size: 18px; font-weight: 600; line-height: 26px; }
.circuit-card__text { font-size: 14px; line-height: 20px; }

/* ---------- Modale vidéo ---------- */

.video-modal {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #000;
  color: #fff;
  overflow: visible;
}
.video-modal::backdrop { background: rgba(4, 20, 12, .82); }
.video-modal[open] { animation: zoom-in .35s var(--ease); }
.video-modal__body { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.video-modal__body video,
.video-modal__body iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius-lg); }
.video-modal__body p { padding: 24px; font-size: 18px; text-align: center; }
.video-modal__close {
  position: absolute;
  top: -44px; right: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-text);
  font-size: 24px;
  line-height: 36px;
}
