/* Rubrique « Découvrir le Maroc ».
   Univers clair du site (parchemin), carte posée sur un panneau zellige
   sombre pour faire ressortir la terre cuite et le safran. */

.dec { --dec-nuit: var(--vert-fonce); --dec-terre: #2C4A3B;
       --dec-sable: #EADFC9; }

/* --- LA SCÈNE : intro + carte -------------------------------------------- */
.dec__scene {
  max-width: var(--contenu); margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--p4) clamp(2rem, 5vw, 4rem);
  display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
@media (min-width: 900px) {
  .dec__scene { grid-template-columns: 0.85fr 1fr; }
}

.dec__intro { max-width: 42ch; }
.dec__kicker {
  font-family: var(--police); font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--rouge);
}
.dec__titre {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.02;
  letter-spacing: -.015em; margin: .5rem 0 0; color: var(--noir);
  text-wrap: balance;
}
.dec__lede {
  margin-top: 1rem; color: var(--gris-texte);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.6;
}
.dec__indice {
  margin-top: 1.4rem; font-family: var(--police); font-size: .82rem;
  font-weight: 600; letter-spacing: .04em; color: var(--saffron);
  display: inline-flex; align-items: center; gap: .5rem;
}
.dec__indice::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--rouge); animation: dec-pulse 2.4s ease-in-out infinite;
}
@keyframes dec-pulse { 0%,100% { opacity: .35; transform: scale(.8); }
                       50% { opacity: 1; transform: scale(1.25); } }

/* --- LA CARTE (satellite Leaflet) --------------------------------------- */
.dec__carte {
  position: relative; border-radius: var(--r-carte);
  box-shadow: var(--ombre-carte); overflow: hidden; border: 1px solid var(--bord);
}
.dec__map {
  width: 100%; height: clamp(380px, 62vh, 640px);
  background: #0A1F18; z-index: 0;
}

/* Marqueur : une pastille terracotta, safran quand la ville est ouverte. */
.dec-pin { background: none; border: 0; }
.dec-pin__point {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--rouge); border: 2.5px solid #fff; cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,.5); transition: transform .15s, background .15s;
}
.dec-pin:hover .dec-pin__point { transform: scale(1.25); }
.dec-pin.est-actif .dec-pin__point {
  background: var(--saffron); transform: scale(1.45);
  box-shadow: 0 0 0 6px rgba(218,142,51,.35), 0 1px 6px rgba(0,0,0,.5);
}

/* Infobulle Leaflet, aux couleurs du site. */
.leaflet-tooltip.dec-tip {
  background: var(--noir); color: var(--gris-clair); border: 0;
  font-family: var(--police); font-weight: 600; font-size: .82rem;
  padding: .3rem .6rem; border-radius: 8px; box-shadow: var(--ombre-douce);
}
.leaflet-tooltip.dec-tip::before { border-top-color: var(--noir); }

.dec.est-zoome .dec__intro { opacity: .4; }

.dec__retour {
  position: absolute; top: 12px; left: 12px; z-index: 500;  /* au-dessus de Leaflet */
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--police); font-size: .86rem; font-weight: 600;
  padding: .5rem .9rem; border: 0; border-radius: var(--r-pilule);
  background: rgba(244,236,221,.96); color: var(--noir); cursor: pointer;
  box-shadow: var(--ombre-carte); transition: transform .2s, background .2s;
}
.dec__retour:hover { transform: translateX(-3px); background: #fff; }

/* Overlay « arrivée » : la photo emblème surgit sur la carte en fin de vol. */
.dec__arrivee {
  position: absolute; inset: 0; z-index: 400; overflow: hidden; cursor: pointer;
  opacity: 0; transition: opacity .55s ease;
}
.dec__arrivee.visible { opacity: 1; }
.dec__arrivee img { width: 100%; height: 100%; object-fit: cover;
                    display: block; transform: scale(1.14); }
.dec__arrivee.visible img { animation: dec-kenburns 7s ease-out forwards; }
@keyframes dec-kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.dec__arrivee-bas {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: .6rem 1rem; padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(20,12,6,.85), rgba(20,12,6,.1) 70%, transparent);
}
.dec__arrivee-nom {
  font-family: var(--display); font-weight: 500; line-height: 1;
  font-size: clamp(1.8rem, 5vw, 3.2rem); color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.dec__arrivee-cta {
  font-family: var(--police); font-weight: 700; font-size: .9rem;
  letter-spacing: .02em; color: var(--noir); white-space: nowrap;
  background: rgba(244,236,221,.96); padding: .6rem 1.1rem;
  border-radius: var(--r-pilule); box-shadow: var(--ombre-carte);
  transition: transform .2s, background .2s;
}
.dec__arrivee:hover .dec__arrivee-cta { transform: translateY(-2px); background: #fff; }
.dec__arrivee--sans-photo {
  background: radial-gradient(120% 100% at 70% 10%, #234739, var(--vert-fonce) 70%);
}
@media (prefers-reduced-motion: reduce) {
  .dec__arrivee.visible img { animation: none; transform: scale(1.02); }
}

/* --- LE CONTENU D'UNE VILLE ---------------------------------------------- */
.dec__villes { max-width: var(--contenu); margin: 0 auto;
               padding: 0 var(--p4) clamp(2rem, 6vw, 5rem); }

.dec__ville[hidden] { display: none; }
.dec__ville {
  animation: dec-apparait .5s cubic-bezier(.2,.8,.2,1) both;
  border-top: 1px solid var(--bord); padding-top: clamp(1.5rem, 4vw, 3rem);
}
@keyframes dec-apparait { from { opacity: 0; transform: translateY(18px); }
                          to { opacity: 1; transform: none; } }

.dec__ville-region {
  font-family: var(--police); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--saffron);
}
.dec__ville-nom {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.02em;
  margin: .35rem 0 0; color: var(--noir);
}
.dec__accroche {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem); color: var(--rouge);
  margin: .6rem 0 0;
}

/* Bannière « emblème » en tête de ville (la même photo que l'arrivée). */
.dec__hero {
  position: relative; border-radius: var(--r-carte); overflow: hidden;
  box-shadow: var(--ombre-carte); aspect-ratio: 16 / 8; margin-bottom: 1.6rem;
}
@media (max-width: 640px) { .dec__hero { aspect-ratio: 3 / 2; } }
.dec__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dec__hero-texte {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(1rem, 3vw, 2.2rem);
  background: linear-gradient(to top, rgba(20,12,6,.82), rgba(20,12,6,.12) 62%, transparent);
}
.dec__ville-region--photo { color: var(--saffron); }
.dec__ville-nom--photo { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.dec__accroche--photo { color: var(--gris-clair);
                        text-shadow: 0 1px 12px rgba(0,0,0,.55); }

.dec__presentation {
  display: grid; gap: clamp(1.2rem, 3vw, 2.5rem); margin-top: 1.4rem;
}
@media (min-width: 760px) {
  .dec__presentation { grid-template-columns: 1.5fr 1fr; align-items: start; }
}
.dec__texte { color: var(--corps); font-size: 1.06rem; line-height: 1.7;
              max-width: 52ch; }
.dec__atouts h3 {
  font-family: var(--police); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gris-texte);
  margin: 0 0 .7rem;
}
.dec__atouts ul { list-style: none; margin: 0; padding: 0;
                  display: flex; flex-wrap: wrap; gap: .5rem; }
.dec__atouts li {
  font-size: .92rem; font-weight: 500; color: var(--vert);
  background: var(--rouge-voile); border: 1px solid var(--bord-tenu);
  padding: .4rem .8rem; border-radius: var(--r-pilule);
}

/* Segments d'annonces */
.dec__segment { margin-top: clamp(1.8rem, 4vw, 3rem); }
.dec__segment-tete {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.dec__segment-tete h3 {
  font-family: var(--display); font-weight: 500; font-size: 1.5rem;
  color: var(--noir); margin: 0;
}
.dec__voir-tout {
  font-family: var(--police); font-size: .9rem; font-weight: 600;
  color: var(--rouge); text-decoration: none; white-space: nowrap;
}
.dec__voir-tout span { color: var(--gris-texte); }
.dec__voir-tout:hover { color: var(--rouge-fonce); text-decoration: underline; }

.dec__aucune { color: var(--gris-texte); font-style: italic; margin-top: 1rem; }

/* --- PAGE DÉDIÉE D'UNE VILLE -------------------------------------------- */
.dec--article .dec__villes { padding-top: clamp(1.2rem, 4vw, 2.5rem); }
.dec--article .dec__ville { border-top: 0; padding-top: 0; animation: none; }
.dec__retour-lien {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.4rem;
  font-family: var(--police); font-size: .9rem; font-weight: 600;
  color: var(--rouge); text-decoration: none;
}
.dec__retour-lien:hover { color: var(--rouge-fonce); }
.dec__hero--grand { aspect-ratio: 16 / 7; }
@media (max-width: 640px) { .dec__hero--grand { aspect-ratio: 4 / 3; } }

/* Crédit photo, discret dans le coin de la couverture */
.dec__credit {
  position: absolute; bottom: 8px; right: 10px; z-index: 2; max-width: 62%;
  font-family: var(--police); font-size: .68rem; text-align: right;
  color: rgba(255,255,255,.72); text-shadow: 0 1px 5px rgba(0,0,0,.75);
}

/* Chapô de l'article */
.dec__chapo {
  font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.4; color: var(--corps); max-width: 60ch; margin: 1.6rem 0 0;
}

/* Blocs de texte (histoire, à voir) */
.dec__bloc { margin-top: clamp(1.8rem, 4vw, 2.8rem); max-width: 68ch; }
.dec__bloc > h2, .dec__info > h2 {
  font-family: var(--display); font-weight: 500; font-size: 1.5rem;
  color: var(--noir); margin: 0 0 .7rem;
}
.dec__bloc > p { color: var(--corps); font-size: 1.02rem; line-height: 1.7; }

/* Infos pratiques : « comment y arriver » | (la mer + bon à savoir) */
.dec__infos { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
              margin-top: clamp(1.8rem, 4vw, 2.8rem); }
@media (min-width: 780px) {
  .dec__infos { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
.dec__info-cote { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.dec__info > p { color: var(--corps); line-height: 1.65; }

.dec__acces { list-style: none; margin: 0; padding: 0;
              display: flex; flex-direction: column; gap: .9rem; }
.dec__acces li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .75rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--bord-tenu);
}
.dec__acces li:last-child { border-bottom: 0; padding-bottom: 0; }
.dec__acces-type {
  flex: 0 0 auto; white-space: nowrap;
  font-family: var(--police); font-size: .7rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: #fff;
  background: var(--vert); padding: .3rem .65rem; border-radius: var(--r-pilule);
}
.dec__acces-nom { font-weight: 600; color: var(--noir); }
.dec__acces-detail { flex-basis: 100%; color: var(--gris-texte); font-size: .92rem; }

/* À voir : pastilles */
.dec__atouts-liste { list-style: none; margin: 0; padding: 0;
                     display: flex; flex-wrap: wrap; gap: .5rem; }
.dec__atouts-liste li {
  font-size: .95rem; font-weight: 500; color: var(--vert);
  background: var(--rouge-voile); border: 1px solid var(--bord-tenu);
  padding: .45rem .85rem; border-radius: var(--r-pilule);
}

@media (prefers-reduced-motion: reduce) {
  .dec__indice::before { animation: none; }
  .dec__ville { animation: none; }
}
