/* Parc Azur : thème sombre simple. Les couleurs se changent ici. */
:root {
  --fond: #ffffff;
  --fond-2: #f6f7f9;
  --fond-3: #eceff3;
  --trait: #d9dee5;
  --texte: #111111;
  --texte-2: #555e69;
  --accent: #0f766e;        /* bleu-vert « azur » */
  --accent-2: #0b5d57;
  --accent-texte: #ffffff;
  --jaune: #a16207;
  --rouge: #b91c1c;
  --vert: #15803d;
  --rayon: 10px;
  --largeur: 1180px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 1.2em 0 .5em; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-top: .6em; }
h2 { font-size: 1.35rem; }
h3, .h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
.visuellement-cache, .piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aller-contenu { position: absolute; left: -9999px; }
.aller-contenu:focus { left: 8px; top: 8px; background: var(--accent); color: var(--accent-texte); padding: 8px 12px; z-index: 10; }

/* En-tête */
.entete { background: var(--fond-2); border-bottom: 1px solid var(--trait); }
.entete-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--texte); }
.logo:hover { text-decoration: none; }
.logo-icone { font-size: 1.9rem; }
.logo strong { display: block; font-size: 1.25rem; }
.logo small { display: block; color: var(--texte-2); font-size: .8rem; }
.recherche { display: flex; flex: 1 1 220px; max-width: 360px; }
.recherche input { flex: 1; min-width: 0; border-radius: var(--rayon) 0 0 var(--rayon); }
.recherche button { border: 1px solid var(--trait); border-left: 0; background: var(--fond-3); color: var(--texte); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 0 12px; cursor: pointer; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
.menu a { color: var(--texte); padding: 4px 0; }
.menu a:hover { color: var(--accent); text-decoration: none; }
.menu-admin { color: var(--jaune) !important; }

/* Formulaires */
input[type=text], input[type=search], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=date], select, textarea {
  background: var(--fond); color: var(--texte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 9px 11px; font: inherit; max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { width: 100%; min-height: 110px; }
.bouton, button.bouton { display: inline-block; background: var(--accent); color: var(--accent-texte); border: 0; border-radius: var(--rayon); padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.bouton:hover { background: var(--accent-2); color: #fff; text-decoration: none; }
.bouton-grand { padding: 13px 22px; font-size: 1.05rem; width: 100%; text-align: center; }
.bouton-discret { background: var(--fond-3); color: var(--texte); border: 1px solid var(--trait); }
.bouton-danger { background: var(--rouge); color: #fff; }
.formulaire { max-width: 640px; }
.formulaire label { display: block; font-weight: 600; margin: 14px 0 4px; }
.formulaire input:not([type=checkbox]):not([type=radio]), .formulaire select { width: 100%; }
.formulaire .aide { font-size: .88rem; color: var(--texte-2); margin: 4px 0 0; font-weight: normal; }
.case { display: flex !important; align-items: center; gap: 8px; font-weight: normal !important; }

/* Messages */
.message { padding: 12px 16px; border-radius: var(--rayon); margin: 16px 0; border: 1px solid var(--trait); background: var(--fond-2); }
.message-ok { border-color: var(--vert); }
.message-erreur { border-color: var(--rouge); }
.message-alerte { border-color: var(--jaune); }

/* Fil d'Ariane, pilules */
.fil { font-size: .9rem; color: var(--texte-2); margin: 16px 0 0; }
.fil a { color: var(--texte-2); }
.entete-page h1 { margin-bottom: .2em; }
.compte, .note { color: var(--texte-2); font-size: .92rem; }
.intro { font-size: 1.1rem; color: var(--texte-2); max-width: 760px; }
.filtres { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 16px 0 24px; }
.pilules { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.filtres .pilules { margin: 0; }
.pilules a { background: var(--fond-3); border: 1px solid var(--trait); color: var(--texte); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }
.pilules a span { color: var(--texte-2); font-size: .85em; margin-left: 2px; }
.pilules a:hover { border-color: var(--accent); text-decoration: none; }
.pilules a.actif { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.pilules a.actif span { color: var(--accent-texte); }
.pilules a.sous { font-size: .88rem; opacity: .85; }
.choix-ville { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.choix-ville label { color: var(--texte-2); }
.etiquette { display: inline-block; background: var(--fond-3); border: 1px solid var(--trait); border-radius: 999px; padding: 2px 10px; font-size: .85rem; margin: 2px 4px 2px 0; color: var(--texte); }
.fiche-sous-titre a:first-child { margin-right: 10px; }
.badge-partenaire { display: inline-block; background: #fde68a; color: #422006; border-radius: 999px; padding: 3px 12px; font-weight: 600; font-size: .9rem; }

/* Grilles */
.grille-categories, .grille-parcs { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tuile, .carte-lien { display: flex; flex-direction: column; height: 100%; background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; color: var(--texte); transition: border-color .15s, transform .15s; }
.tuile:hover, .carte-lien:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.tuile img, .carte-lien img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.tuile-icone, .carte-sans-photo { display: grid; place-items: center; aspect-ratio: 16/10; font-size: 3rem; background: var(--fond-3); }
.tuile-texte, .carte-texte { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.tuile-texte strong, .carte-titre { font-size: 1.08rem; }
.tuile-texte span, .carte-desc { color: var(--texte-2); font-size: .92rem; }
.tuile-nb { color: var(--accent) !important; font-weight: 600; }
.carte-ville { color: var(--accent); font-size: .9rem; }
.nuage-villes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nuage-villes a { display: inline-block; background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 6px 12px; color: var(--texte); }
.nuage-villes a span { color: var(--texte-2); font-size: .85em; }
.nuage-villes a:hover { border-color: var(--accent); text-decoration: none; }
.accueil-intro { padding: 12px 0 8px; }
.vide { color: var(--texte-2); padding: 24px; background: var(--fond-2); border-radius: var(--rayon); text-align: center; }

/* Fiche parc */
.galerie { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 16px 0 24px; }
.galerie-photo { display: block; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--trait); cursor: zoom-in; }
.galerie-photo:first-child { grid-column: span 2; grid-row: span 2; }
.galerie-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }
.fiche-colonnes { display: grid; gap: 24px; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }
.fiche-infos { background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; }
.fiche-infos dl { margin: 12px 0; }
.fiche-infos dt { color: var(--texte-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; }
.fiche-infos dd { margin: 2px 0 0; }
.fiche-infos h2 { margin-top: 16px; }
.horaires { width: 100%; border-collapse: collapse; font-size: .95rem; }
.horaires th { text-align: left; font-weight: normal; color: var(--texte-2); padding: 3px 8px 3px 0; }
.horaires td { padding: 3px 0; }
.horaires tr.aujourdhui th, .horaires tr.aujourdhui td { color: var(--accent); font-weight: 600; }
.texte { max-width: 780px; }
@media (max-width: 760px) {
  .fiche-colonnes { grid-template-columns: 1fr; }
  .galerie-photo:first-child { grid-column: span 1; grid-row: span 1; }
  .menu { margin-left: 0; }
}

/* Zoom des photos */
.zoom { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: flex; align-items: center; justify-content: center; }
.zoom[hidden] { display: none; }
.zoom figure { margin: 0; max-width: 92vw; max-height: 90vh; text-align: center; }
.zoom img { max-width: 92vw; max-height: 84vh; margin: 0 auto; }
.zoom figcaption { color: #ddd; margin-top: 8px; }
.zoom button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.zoom-fermer { top: 16px; right: 16px; font-size: 1.4rem !important; }
.zoom-prec { left: 12px; top: 50%; transform: translateY(-50%); }
.zoom-suiv { right: 12px; top: 50%; transform: translateY(-50%); }

/* Publicités */
.pubs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 24px 0; }
.pub { position: relative; background: var(--fond-2); border: 1px dashed var(--trait); border-radius: var(--rayon); overflow: hidden; }
.pub a { display: flex; gap: 12px; color: var(--texte); padding: 12px; align-items: center; }
.pub a:hover { text-decoration: none; background: var(--fond-3); }
.pub img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; flex: none; }
.pub-texte { display: flex; flex-direction: column; gap: 2px; }
.pub-texte span { color: var(--texte-2); font-size: .92rem; }
.pub-etiquette { position: absolute; top: 4px; right: 8px; font-size: .7rem; color: var(--texte-2); text-transform: uppercase; letter-spacing: .05em; }
.pub-banniere { margin: 16px 0; }
.pub-banniere img { width: 160px; height: 80px; }

/* Listes à traits (partenaires, tableaux de bord) */
.liste-traits { list-style: none; padding: 0; margin: 0; }
.liste-traits > li { border-bottom: 1px solid var(--trait); }
.ligne-lien { display: flex; gap: 16px; padding: 16px 4px; color: var(--texte); align-items: center; }
.ligne-lien:hover { background: var(--fond-2); text-decoration: none; }
.ligne-lien .vignette { width: 160px; height: 100px; flex: none; border-radius: 6px; object-fit: cover; background: var(--fond-3); display: grid; place-items: center; font-size: 2.4rem; font-weight: 700; color: var(--accent); }
.ligne-lien .infos { display: flex; flex-direction: column; gap: 2px; }
.ligne-lien .domaine { color: var(--texte-2); font-size: .9rem; }
.ligne-lien .desc { color: var(--texte-2); }
.ligne-sous { padding: 0 4px 12px 180px; font-size: .92rem; }
.apercu-admin { border: 2px dashed var(--jaune); border-radius: var(--rayon); }
@media (max-width: 600px) { .ligne-lien { flex-direction: column; align-items: flex-start; } .ligne-sous { padding-left: 4px; } }

/* Code à copier */
.code-copier { background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; margin: 16px 0; }
.code-copier textarea { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; min-height: 80px; }
.etapes { counter-reset: e; list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.etapes li { background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px 16px; }
.etapes li::before { counter-increment: e; content: counter(e); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-texte); font-weight: 700; margin-right: 8px; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: var(--rayon); border: 1px solid var(--trait); color: var(--texte); }
.pagination .actuelle { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.pagination .ellipse { border: 0; }

/* Tableaux (espace membre) */
.tableau { width: 100%; border-collapse: collapse; }
.tableau th, .tableau td { padding: 8px 10px; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.tableau th { color: var(--texte-2); font-weight: 600; font-size: .9rem; }
.tableau-defile { overflow-x: auto; }
.tampon { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--fond-3); border: 1px solid var(--trait); white-space: nowrap; }
.tampon-valide, .tampon-present { color: var(--vert); border-color: var(--vert); }
.tampon-en_attente, .tampon-nofollow, .tampon-non_verifiable { color: var(--jaune); border-color: var(--jaune); }
.tampon-refuse, .tampon-suspendu, .tampon-absent, .tampon-inaccessible { color: var(--rouge); border-color: var(--rouge); }

/* Pied de page */
.pied { background: var(--fond-2); border-top: 1px solid var(--trait); margin-top: 48px; padding: 24px 0 8px; }
.pied-colonnes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pied h2 { font-size: 1rem; margin-top: 0; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin: 4px 0; }
.pied a { color: var(--texte-2); }
.pied a:hover { color: var(--accent); }
.pied-bas { color: var(--texte-2); font-size: .85rem; border-top: 1px solid var(--trait); padding-top: 12px; margin-top: 16px; }
.bouton-lien { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }
.bouton-lien:hover { text-decoration: underline; }
