/*
Theme Name: Spots de plongée
Description: Thème sur mesure de spots-de-plongee.fr : fiches de spots, destinations, carte, guides, Stay22.
Version: 0.1.0
Author: Kaviar Creative
Text Domain: spots-plongee
*/

/* ------------------------------------------------------------------ */
/* Jetons                                                              */
/* ------------------------------------------------------------------ */
:root {
    --encre: #112633;
    --bleu-profond: #0b3954;
    --bleu: #1b6ca8;
    --bleu-clair: #d9eaf6;
    --turquoise: #22a7b5;
    --turquoise-clair: #d4f1f3;
    --ecume: #f3f8fa;
    --sable: #f6efe3;
    --corail: #ef6c4d;
    --corail-sombre: #d5573a;
    --gris: #5f6f7a;
    --gris-clair: #e9eff3;
    --ligne: #dbe5ec;
    --blanc: #ffffff;
    --police-titre: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --police-texte: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --rayon: 14px;
    --ombre: 0 10px 30px rgba(11, 57, 84, .10);
    --ombre-legere: 0 2px 10px rgba(11, 57, 84, .08);
    --entete-hauteur: 64px;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--police-texte);
    font-size: 17px;
    line-height: 1.6;
    color: var(--encre);
    background: var(--blanc);
}
img { max-width: 100%; height: auto; display: block; }
iframe, video, svg { max-width: 100%; }
body { overflow-x: clip; }
a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--bleu-profond); }
h1, h2, h3, h4 { font-family: var(--police-titre); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--bleu-profond); }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
dl { margin: 0; }
:focus-visible { outline: 3px solid var(--corail); outline-offset: 2px; }
.sp-evitement { position: absolute; left: -999px; top: 8px; background: var(--blanc); padding: 8px 12px; z-index: 100; }
.sp-evitement:focus { left: 8px; }
.sp-contenant { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sp-ico svg { width: 22px; height: 22px; vertical-align: -5px; margin-right: 8px; color: var(--turquoise); }
.sp-ext { cursor: pointer; }
small { font-size: .85em; color: var(--gris); }

/* ------------------------------------------------------------------ */
/* En-tête                                                             */
/* ------------------------------------------------------------------ */
.sp-entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.sp-entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--entete-hauteur); flex-wrap: wrap; }
.sp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bleu-profond); font-family: var(--police-titre); font-weight: 700; font-size: 1.25rem; }
.sp-logo__icone svg { width: 30px; height: 30px; color: var(--turquoise); }
.sp-nav__bouton { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--ligne); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .95rem; cursor: pointer; }
.sp-nav__barres { width: 18px; height: 2px; background: var(--encre); box-shadow: 0 -6px 0 var(--encre), 0 6px 0 var(--encre); }
.sp-nav { display: none; width: 100%; }
.sp-nav.est-ouvert { display: block; }
.sp-nav__liste { list-style: none; margin: 0; padding: 8px 0 12px; display: flex; flex-direction: column; gap: 4px; }
.sp-nav__liste a { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--encre); }
.sp-nav__liste a:hover { background: var(--ecume); color: var(--bleu); }
.sp-nav__ico { display: inline-flex; color: var(--turquoise); }
.sp-nav__ico svg { width: 18px; height: 18px; }
@media (min-width: 1024px) {
    .sp-nav__bouton { display: none; }
    .sp-nav { display: block; width: auto; }
    .sp-nav__liste { flex-direction: row; gap: 2px; padding: 0; }
    .sp-nav__liste a { padding: 8px 12px; }
}

/* ------------------------------------------------------------------ */
/* Bandeau                                                             */
/* ------------------------------------------------------------------ */
.sp-hero { position: relative; background: linear-gradient(135deg, var(--bleu-profond), var(--bleu) 70%, var(--turquoise)); color: var(--blanc); margin-bottom: 28px; overflow: hidden; }
.sp-hero__contenu { position: relative; z-index: 2; padding: 36px 0 32px; }
.sp-hero--image { min-height: 380px; display: flex; align-items: flex-end; }
.sp-hero--image .sp-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sp-hero--image::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8, 32, 48, .88) 0%, rgba(8, 32, 48, .35) 55%, rgba(8, 32, 48, .05) 100%); }
.sp-hero--image .sp-hero__contenu { width: 100%; padding-top: 120px; }
.sp-hero__titre { color: var(--blanc); margin-bottom: .25em; text-wrap: balance; }
.sp-hero__sous-titre { font-size: 1.15rem; max-width: 720px; margin-bottom: .5em; opacity: .95; }
.sp-hero__puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.sp-hero__puces > * { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--blanc); text-decoration: none; }
.sp-hero__puces a:hover, .sp-hero__puces a:focus-visible { background: rgba(255, 255, 255, .32); color: var(--blanc); }
.sp-hero__puce--pays { background: var(--turquoise); border-color: var(--turquoise); }
.sp-drapeau { display: inline-block; width: 21px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); vertical-align: -2px; margin-right: 7px; }
.sp-hero__puces .sp-drapeau { margin-right: 8px; vertical-align: -3px; }
.sp-hero__puces a.sp-hero__puce--pays:hover { background: var(--bleu); border-color: var(--bleu); }
.sp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
/* Bouton "©" posé sur une image : il ouvre la modale des crédits. */
.sp-credit-btn { position: absolute; z-index: 3; width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; background: rgba(0, 0, 0, .45); color: #fff; font: 700 .9rem/1 inherit; font-family: inherit; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(2px); transition: background .15s ease; }
.sp-credit-btn:hover, .sp-credit-btn:focus-visible { background: rgba(0, 0, 0, .75); }
.sp-hero__credit { right: 14px; bottom: 12px; }
.sp-galerie__credit { right: 10px; bottom: 10px; }
.sp-modale { border: 0; border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); color: var(--bleu-profond); }
.sp-modale::backdrop { background: rgba(10, 30, 50, .55); }
.sp-modale__corps { position: relative; padding: 24px 24px 20px; max-height: 80vh; overflow: auto; }
.sp-modale__fermer { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--gris-clair); color: var(--bleu-profond); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sp-modale__titre { margin: 0 40px 14px 0; font-size: 1.25rem; }
.sp-credits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sp-credits__item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid var(--ligne); }
.sp-credits__item.est-cible { background: var(--ecume); border-color: var(--turquoise); }
.sp-credits__vignette { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.sp-credits__legende { margin: 0 0 2px; font-size: .9rem; }
.sp-credits__auteur { margin: 0; font-size: .84rem; color: var(--gris); }
.sp-credits__pied { margin: 14px 0 0; font-size: .8rem; color: var(--gris); }
.sp-hero--accueil { min-height: 520px; }
.sp-hero--accueil .sp-hero__titre { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 820px; }
@media (min-width: 768px) { .sp-hero--image { min-height: 460px; } .sp-hero--accueil { min-height: 600px; } }

/* ------------------------------------------------------------------ */
/* Fil d'Ariane, boutons, puces                                        */
/* ------------------------------------------------------------------ */
.sp-fil { font-size: .88rem; padding: 12px 0 10px; color: var(--gris); }
.sp-fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-fil li + li::before { content: "›"; margin-right: 6px; color: var(--gris); }
.sp-fil a { color: var(--gris); text-decoration: none; }
.sp-fil a:hover { color: var(--bleu); text-decoration: underline; }
.sp-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.sp-bouton svg { width: 18px; height: 18px; }
.sp-bouton--plein { background: var(--bleu); color: var(--blanc); }
.sp-bouton--plein:hover { background: var(--bleu-profond); color: var(--blanc); }
.sp-bouton--accent { background: var(--corail); color: var(--blanc); }
.sp-bouton--accent:hover { background: var(--corail-sombre); color: var(--blanc); }
.sp-bouton--contour { background: transparent; color: var(--bleu); border-color: var(--bleu); }
.sp-bouton--contour:hover { background: var(--bleu-clair); }
.sp-bouton--clair { background: rgba(255, 255, 255, .14); color: var(--blanc); border-color: rgba(255, 255, 255, .6); }
.sp-bouton--clair:hover { background: rgba(255, 255, 255, .26); color: var(--blanc); }
.sp-puce { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--ecume); border: 1px solid var(--ligne); color: var(--bleu-profond); text-decoration: none; font-size: .92rem; font-weight: 600; }
.sp-puce:hover { background: var(--bleu-clair); }
.sp-puce--accent { background: var(--bleu); color: var(--blanc); border-color: var(--bleu); }
.sp-puce--accent:hover { background: var(--bleu-profond); color: var(--blanc); }

/* ------------------------------------------------------------------ */
/* Grilles et cartes                                                   */
/* ------------------------------------------------------------------ */
.sp-grille { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); margin: 0 0 8px; }
@media (min-width: 600px) { .sp-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .sp-grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sp-grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-carte { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-legere); border: 1px solid var(--ligne); transition: transform .15s, box-shadow .15s; }
.sp-carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.sp-carte__lien { display: block; color: inherit; text-decoration: none; height: 100%; }
.sp-carte__media { position: relative; aspect-ratio: 3 / 2; background: var(--bleu-clair); overflow: hidden; }
.sp-carte__image { width: 100%; height: 100%; object-fit: cover; }
.sp-carte__vide { width: 100%; height: 100%; display: grid; place-items: center; color: var(--bleu); }
.sp-carte__vide svg { width: 44px; height: 44px; opacity: .5; }
.sp-carte__numero { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--corail); color: var(--blanc); font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.sp-carte__texte { padding: 14px 16px 16px; }
.sp-carte__surtitre { margin: 0 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--turquoise); font-weight: 700; }
.sp-carte__titre { font-size: 1.12rem; margin: 0 0 6px; color: var(--bleu-profond); }
.sp-carte__meta { margin: 0; font-size: .88rem; color: var(--gris); display: flex; flex-wrap: wrap; gap: 6px; }
.sp-carte__meta i { font-style: normal; }
.sp-carte__extrait { margin: 8px 0 0; font-size: .93rem; color: var(--encre); }

/* ------------------------------------------------------------------ */
/* Bandes de l'accueil                                                 */
/* ------------------------------------------------------------------ */
.sp-bande { padding: 44px 0; }
.sp-bande--sable { background: var(--sable); }
.sp-bande--ecume { background: var(--ecume); }
.sp-bande--sombre { background: var(--bleu-profond); color: var(--blanc); }
.sp-bande--sombre .sp-bande__titre, .sp-bande--sombre a { color: var(--blanc); }
.sp-bande__titre { text-align: center; margin-bottom: 26px; }
.sp-bande__suite { text-align: center; margin: 18px 0 0; font-weight: 700; }
.sp-accueil__intro { max-width: 820px; text-align: center; font-size: 1.12rem; }
/* Centré dans la bande : la prose garde ses marges de titre et de paragraphe, on retire la première et la dernière. */
.sp-accueil__intro > :first-child { margin-top: 0 !important; }
.sp-accueil__intro > :last-child { margin-bottom: 0 !important; }
.sp-accueil__intro h2 { margin-bottom: 14px; }

/* ------------------------------------------------------------------ */
/* Fiche                                                               */
/* ------------------------------------------------------------------ */
.sp-fiche { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 72px; }
.sp-fiche__aside, .sp-fiche__corps { min-width: 0; }
@media (min-width: 1024px) { .sp-fiche { grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; } .sp-fiche__aside { order: 2; } }
.sp-fiche__aside { display: flex; flex-direction: column; gap: 18px; }
.sp-fiche__chapo { font-size: 1.22rem; line-height: 1.5; color: var(--bleu-profond); font-family: var(--police-titre); margin-bottom: 1.2em; }
.sp-section { margin: 0 0 34px; }
.sp-section__titre { font-size: 1.45rem; margin-bottom: 14px; display: flex; align-items: center; }
.sp-section--carte .sp-section__titre { justify-content: flex-start; }

.sp-encart { background: var(--ecume); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px 20px; }
.sp-encart__titre { font-size: 1.15rem; margin: 0 0 12px; display: flex; align-items: center; }
.sp-encart__liste > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--ligne); font-size: .95rem; }
.sp-encart__liste > div:first-child { border-top: 0; }
.sp-encart__liste dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--gris); font-weight: 700; padding-top: 3px; }
.sp-encart__liste dd { margin: 0; }
.sp-encart__note { display: block; font-size: .85rem; color: var(--gris); margin-top: 4px; }
.sp-encart__budget { list-style: none; padding: 0; margin: 0; }
.sp-encart__budget li { display: flex; flex-direction: column; font-size: .92rem; padding: 4px 0; border-top: 1px dashed var(--ligne); }
.sp-encart__budget li:first-child { border-top: 0; padding-top: 0; }
.sp-encart__budget li span:first-child { color: var(--gris); font-size: .86rem; line-height: 1.35; }
.sp-encart__budget li span:last-child { font-weight: 700; color: var(--bleu-profond); }
.sp-points-forts ul { margin: 0; padding-left: 1.2em; }
.sp-points-forts li { margin-bottom: 6px; }

.sp-preparer { background: var(--sable); border: 1px solid #ead9bf; border-radius: var(--rayon); padding: 18px 20px; }
.sp-preparer__intro { font-size: .9rem; color: var(--gris); margin-bottom: 12px; }
.sp-preparer__principal { width: 100%; margin-bottom: 12px; }
.sp-preparer__liste { list-style: none; margin: 0; padding: 0; }
.sp-preparer__lien { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; color: var(--bleu); }
.sp-preparer__lien:hover { color: var(--corail-sombre); }
.sp-preparer__lien small { display: block; font-weight: 400; }
.sp-preparer__puce svg { width: 18px; height: 18px; color: var(--corail); margin-top: 3px; }
.sp-preparer__mention { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(0, 0, 0, .08); font-size: .74rem; color: var(--gris); line-height: 1.4; }

.sp-localisation .sp-carte-fiche { height: 260px; border-radius: 10px; overflow: hidden; }
.sp-lien-cn { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid #cfe3d3; border-radius: var(--rayon); background: #f1f8f2; color: var(--bleu-profond); text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
.sp-lien-cn:hover, .sp-lien-cn:focus-visible { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateY(-1px); text-decoration: none; }
.sp-lien-cn__icone { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.sp-lien-cn__texte { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sp-lien-cn__texte strong { font-size: .95rem; }
.sp-lien-cn__texte small { font-size: .8rem; opacity: .75; }
.sp-lien-cn__fleche { margin-left: auto; font-weight: 700; color: #2e7d4f; }
.sp-localisation--corps { margin: 4px 0 30px; }
.sp-zone__etiquette { background: rgba(255, 255, 255, .88); border: 0; border-radius: 6px; color: var(--bleu-profond); font-weight: 700; font-size: .78rem; padding: 2px 7px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.sp-zone__etiquette::before { display: none; }
.sp-localisation--corps .sp-carte-fiche { height: 380px; }
.sp-localisation__base { margin: 10px 0 0; font-size: .95rem; }
.sp-localisation__lien { display: inline-block; margin-top: 10px; font-size: .92rem; font-weight: 600; }

.sp-dormir__intro { color: var(--gris); margin-bottom: 12px; }
.sp-dormir__cadre { border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--ligne); min-height: 428px; background: var(--ecume); }
.sp-dormir__cadre iframe { display: block; }

/* Calendriers : des ronds de taille fixe, jamais étirés. Plein = idéal, clair = bon, vide = déconseillé. */
.sp-cal { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-cal__mois { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--gris); background: transparent; box-shadow: inset 0 0 0 1.5px var(--ligne); }
.sp-cal__mois--1 { background: var(--bleu-clair); color: var(--bleu-profond); box-shadow: none; }
.sp-cal__mois--2 { background: var(--turquoise); color: var(--blanc); box-shadow: none; }
.sp-cal--compact { gap: 4px; max-width: 152px; } /* deux rangées de six : janvier-juin, juillet-décembre */
.sp-cal--compact .sp-cal__mois { width: 22px; height: 22px; font-size: .62rem; }
.sp-cal--encart { gap: 3px; } /* la ligne Saison de l'encart : douze ronds à lettres sur toute la largeur */
.sp-cal--encart .sp-cal__mois { width: 23px; height: 23px; font-size: .64rem; }
@media (max-width: 420px) { .sp-cal--encart { max-width: 153px; } } /* sur un petit écran, deux rangées de six */
.sp-encart__ligne--pleine { grid-template-columns: minmax(0, 1fr) !important; gap: 6px !important; }
.sp-encart__ligne--pleine dt { padding-top: 0; }
.sp-cal__legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .82rem; color: var(--gris); margin: 10px 0 0; }
.sp-cal__legende-item { display: inline-flex; align-items: center; gap: 6px; }
.sp-cal__legende .sp-cal__mois, .sp-cal__legende .sp-faune-cal__point { width: 14px; height: 14px; flex: 0 0 14px; }

/* Galerie en mosaïque : la première photo en grand, les autres en tuiles, pas de légende. */
.sp-galerie__mosaique { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; }
.sp-galerie__item { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--gris-clair); }
.sp-galerie__item:first-child { grid-column: span 2; grid-row: span 2; }
.sp-galerie__item:nth-child(even):last-child:not(:first-child) { grid-column: span 2; }
.sp-galerie__lien { display: block; width: 100%; height: 100%; }
.sp-galerie__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sp-galerie__lien:hover img, .sp-galerie__lien:focus-visible img { transform: scale(1.03); }
@media (min-width: 768px) {
    .sp-galerie__mosaique { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 14px; }
    .sp-galerie__item:nth-child(even):last-child:not(:first-child) { grid-column: auto; }
    .sp-galerie__item:nth-child(3n+1):last-child:not(:first-child) { grid-column: span 3; }
    .sp-galerie__mosaique[data-n="1"] .sp-galerie__item:first-child { grid-column: span 3; }
    .sp-galerie__mosaique[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-galerie__mosaique[data-n="2"] .sp-galerie__item { grid-column: span 1; grid-row: span 2; }
}
/* La visionneuse plein écran. */
.sp-lightbox { border: 0; padding: 0; margin: 0; background: transparent; width: 100vw; height: 100vh; max-width: none; max-height: none; }
.sp-lightbox::backdrop { background: rgba(5, 15, 25, .92); }
.sp-lightbox__cadre { margin: 0; width: 100%; height: 100%; box-sizing: border-box; padding: 60px 76px; display: grid; place-items: center; }
.sp-lightbox__image { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.sp-lightbox__fermer, .sp-lightbox__prec, .sp-lightbox__suiv { position: fixed; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.7rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.sp-lightbox__fermer:hover, .sp-lightbox__prec:hover, .sp-lightbox__suiv:hover { background: rgba(255, 255, 255, .3); }
.sp-lightbox__fermer { top: 16px; right: 16px; }
.sp-lightbox__prec { left: 16px; top: 50%; transform: translateY(-50%); }
.sp-lightbox__suiv { right: 16px; top: 50%; transform: translateY(-50%); }
.sp-lightbox__compteur { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: .85rem; }
.sp-lightbox__credit { position: fixed; right: 20px; bottom: 16px; background: rgba(255, 255, 255, .14); }
.sp-lightbox[data-seule="1"] .sp-lightbox__prec, .sp-lightbox[data-seule="1"] .sp-lightbox__suiv, .sp-lightbox[data-seule="1"] .sp-lightbox__compteur { display: none; }
@media (max-width: 600px) {
    .sp-lightbox__cadre { padding: 60px 10px 56px; }
    .sp-lightbox__prec, .sp-lightbox__suiv { width: 36px; height: 36px; }
    .sp-lightbox__prec { left: 8px; }
    .sp-lightbox__suiv { right: 8px; }
}
.sp-credit { font-size: .78rem; }

.sp-faune__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sp-faune__liste a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--ecume); border: 1px solid var(--ligne); text-decoration: none; font-weight: 600; color: var(--bleu-profond); }
.sp-faune__liste a:hover { background: var(--turquoise-clair); }
.sp-faune__liste img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.sp-faune .sp-faune__liste { margin-bottom: 14px; }
.sp-faune-cal__cadre { overflow-x: auto; margin: 14px 0 6px; }
.sp-faune-cal { border-collapse: collapse; width: 100%; min-width: 540px; font-size: .9rem; }
.sp-faune-cal caption { text-align: left; font-weight: 700; color: var(--bleu-profond); padding-bottom: 8px; }
.sp-faune-cal th, .sp-faune-cal td { padding: 7px 2px; vertical-align: middle; border-top: 1px solid var(--ligne); }
.sp-faune-cal thead th { border-top: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); text-align: center; padding-bottom: 4px; }
.sp-faune-cal thead abbr { text-decoration: none; }
.sp-faune-cal__espece { text-align: left; white-space: nowrap; font-weight: 600; padding-right: 14px !important; }
.sp-faune-cal tbody th a { text-decoration: none; }
.sp-faune-cal__m { width: 26px; text-align: center; line-height: 0; }
.sp-faune-cal__point { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ligne); background: transparent; vertical-align: middle; }
.sp-faune-cal__point--1 { background: var(--bleu-clair); box-shadow: none; }
.sp-faune-cal__point--2 { background: var(--turquoise); box-shadow: none; }
.sp-faune-cal__note { width: 100%; text-align: left; color: var(--gris); font-size: .84rem; padding-left: 14px !important; }
.sp-visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sp-saison__resume { font-weight: 600; color: var(--bleu-profond); margin: 10px 0 8px; }
.sp-reperes-ligne { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sp-reperes-ligne li { display: flex; flex-direction: column; min-width: 120px; padding: 10px 14px; background: var(--ecume); border: 1px solid var(--ligne); border-radius: 10px; }
.sp-reperes-ligne li span { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--gris); font-weight: 700; }
.sp-reperes-ligne li strong { color: var(--bleu-profond); font-size: 1rem; }
.sp-acces__resume { font-size: 1.02rem; margin-bottom: 10px; }
.sp-acces__cta { margin: 6px 0 0; }
.sp-conseil { background: var(--sable); border-left: 5px solid var(--corail); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 18px 22px; }
.sp-conseil .sp-section__titre { margin-bottom: 8px; }
.sp-conseil__texte p:last-child { margin-bottom: 0; }

.sp-prose { max-width: 72ch; }
.sp-prose h2 { margin-top: 1.6em; scroll-margin-top: 90px; }
.sp-prose h3 { margin-top: 1.3em; }
.sp-prose img { border-radius: 10px; }
.sp-prose figure { margin: 1.5em 0; }
.sp-prose figcaption { font-size: .85rem; color: var(--gris); }
.sp-prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0; }
.sp-prose th, .sp-prose td { border: 1px solid var(--ligne); padding: 8px 10px; text-align: left; }
.sp-prose th { background: var(--ecume); }
.sp-prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--turquoise); color: var(--gris); }

.sp-partage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0; font-size: .9rem; }
.sp-partage span { color: var(--gris); font-weight: 700; }
.sp-partage a { padding: 5px 12px; border: 1px solid var(--ligne); border-radius: 999px; text-decoration: none; font-weight: 600; }
.sp-proximite .sp-section__titre { margin-top: 10px; }

.sp-barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ligne); box-shadow: 0 -6px 20px rgba(11, 57, 84, .12); transition: transform .2s; }
.sp-barre-mobile.est-cachee { transform: translateY(110%); }
.sp-barre-mobile__bouton { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--corail); color: var(--blanc); font-weight: 700; padding: 12px; border-radius: 10px; }
@media (min-width: 1024px) { .sp-barre-mobile { display: none; } }

/* ------------------------------------------------------------------ */
/* Animal                                                              */
/* ------------------------------------------------------------------ */
.sp-ou-voir__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sp-ou-voir__liste li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--blanc); }
@media (min-width: 640px) { .sp-ou-voir__liste li { grid-template-columns: minmax(0, 1fr) 220px; align-items: center; } }
.sp-ou-voir__spot { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.sp-ou-voir__spot img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.sp-ou-voir__spot small { display: block; }
.sp-ou-voir__saison small { display: block; margin-top: 4px; }

/* ------------------------------------------------------------------ */
/* Pages longues (guides, tops, magazine) et pages                     */
/* ------------------------------------------------------------------ */
.sp-long { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 60px; }
.sp-long__aside, .sp-long__corps { min-width: 0; }
@media (min-width: 1024px) { .sp-long { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; } .sp-long__aside { position: sticky; top: calc(var(--entete-hauteur) + 16px); align-self: start; } }
.sp-sommaire { background: var(--ecume); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 16px 18px; }
.sp-sommaire__titre { font-weight: 700; margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); }
.sp-sommaire ol { margin: 0; padding-left: 1.2em; font-size: .93rem; }
.sp-sommaire li { margin-bottom: 6px; }
.sp-sommaire a { text-decoration: none; }
.sp-sommaire a:hover { text-decoration: underline; }
.sp-long__verif { font-size: .85rem; color: var(--gris); margin: 12px 0 0; }
.sp-page { padding-bottom: 60px; }
.sp-page__corps { max-width: 76ch; }
.sp-partenaires__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sp-marques__intro { color: var(--gris); margin-bottom: 10px; }
.sp-marques__liste { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-marque { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 10px; color: var(--blanc); font-weight: 700; }
.sp-marque:hover { filter: brightness(1.1); }

/* ------------------------------------------------------------------ */
/* Listes, destination                                                 */
/* ------------------------------------------------------------------ */
.sp-liste { padding-bottom: 60px; }
.sp-liste__types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sp-pagination { margin-top: 28px; }
.sp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--ligne); border-radius: 8px; text-decoration: none; }
.sp-pagination .page-numbers.current { background: var(--bleu); color: var(--blanc); border-color: var(--bleu); }
.sp-destination { padding-bottom: 60px; }
.sp-reperes { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-bottom: 36px; }
@media (min-width: 768px) { .sp-reperes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-repere { background: var(--ecume); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 16px 18px; }
.sp-repere__titre { font-size: 1rem; margin-bottom: 6px; display: flex; align-items: center; }
.sp-repere p { margin: 0; font-size: .95rem; }
.sp-carte-destination { height: 420px; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--ligne); }
.sp-destination__texte { max-width: 76ch; }

/* ------------------------------------------------------------------ */
/* Cartes Leaflet                                                      */
/* ------------------------------------------------------------------ */
.sp-carte-globale { height: 440px; border-radius: var(--rayon); overflow: hidden; background: var(--bleu-clair); }
.sp-carte-globale--accueil { height: 520px; }
.leaflet-container { font-family: var(--police-texte); }
.sp-popup { width: 220px; }
.sp-popup img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.sp-popup__sur { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--turquoise); font-weight: 700; }
.sp-popup__titre { margin: 2px 0 4px; font-weight: 700; font-size: 1rem; line-height: 1.25; }
.sp-popup__titre a { text-decoration: none; color: var(--bleu-profond); }
.sp-popup__meta { margin: 0; font-size: .82rem; color: var(--gris); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.sp-repere-secondaire { width: 14px; height: 14px; border-radius: 50%; background: var(--turquoise); border: 2px solid var(--blanc); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(34, 167, 181, .35); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: var(--turquoise); color: var(--blanc); font-weight: 700; }

/* Page carte */
.sp-carte-page { display: flex; flex-direction: column; }
.sp-carte-page__carte { order: 1; }
.sp-carte-page__aside { order: 2; padding: 18px 16px 24px; background: var(--blanc); border-top: 1px solid var(--ligne); }
.sp-carte-page .sp-carte-globale { height: 60vh; min-height: 360px; border-radius: 0; }
.sp-carte-page__titre { font-size: 1.5rem; margin-bottom: 12px; }
.sp-carte-page__sous-titre { font-size: 1.05rem; margin: 20px 0 10px; }
.sp-filtres { display: grid; gap: 12px; }
.sp-filtres label { font-size: .85rem; font-weight: 700; color: var(--gris); display: grid; gap: 4px; }
.sp-filtres select { font: inherit; font-size: .95rem; padding: 8px 10px; border: 1px solid var(--ligne); border-radius: 8px; background: var(--blanc); color: var(--encre); }
.sp-filtres__groupe { border: 1px solid var(--ligne); border-radius: 10px; padding: 8px 12px 10px; margin: 0; }
.sp-filtres__groupe legend { font-size: .8rem; font-weight: 700; color: var(--gris); padding: 0 4px; }
.sp-filtres__case { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 500 !important; color: var(--encre) !important; margin: 4px 12px 0 0; font-size: .92rem !important; }
#sp-carte-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#sp-carte-liste a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); padding: 6px; border-radius: 10px; }
#sp-carte-liste a:hover { background: var(--ecume); }
#sp-carte-liste img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; flex: 0 0 56px; }
#sp-carte-liste small { display: block; color: var(--gris); }
.sp-carte-liste__vide { color: var(--gris); }
@media (min-width: 1024px) {
    .sp-carte-page { flex-direction: row; height: calc(100vh - var(--entete-hauteur)); }
    .sp-carte-page__aside { order: 1; width: 400px; flex: 0 0 400px; overflow-y: auto; border-top: 0; border-right: 1px solid var(--ligne); }
    .sp-carte-page__carte { order: 2; flex: 1; }
    .sp-carte-page .sp-carte-globale { height: 100%; }
}

/* ------------------------------------------------------------------ */
/* Pied de page                                                        */
/* ------------------------------------------------------------------ */
.sp-pied { background: var(--bleu-profond); color: rgba(255, 255, 255, .85); margin-top: 40px; padding: 44px 0 24px; font-size: .95rem; }
.sp-pied a { color: var(--blanc); text-decoration: none; }
.sp-pied a:hover { text-decoration: underline; }
.sp-pied__grille { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .sp-pied__grille { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.sp-pied__marque { font-family: var(--police-titre); font-size: 1.4rem; font-weight: 700; color: var(--blanc); margin-bottom: 6px; }
.sp-pied__titre { font-weight: 700; color: var(--blanc); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.sp-pied ul { list-style: none; margin: 0; padding: 0; }
.sp-pied li { margin-bottom: 6px; }
.sp-pied__bas { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .8rem; color: rgba(255, 255, 255, .6); }
body.sp-page-fiche .sp-pied { padding-bottom: 80px; }
@media (min-width: 1024px) { body.sp-page-fiche .sp-pied { padding-bottom: 24px; } }
