/*
Theme Name: Pyrénées Online
Theme URI: https://www.pyrenees-online.fr/
Author: Novae Communication
Description: Thème personnalisé du portail touristique Pyrénées Online.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: pyrenees-online
*/

/* ========================================
   PYRÉNÉES ONLINE - FILTRES DE LA CARTE
   ======================================== */

.pol-filtres-carte {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 24px;
}

.pol-filtre {
    padding: 12px 20px;
    border: 1px solid #d5dfda;
    border-radius: 30px;
    background: #ffffff;
    color: #28483b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.pol-filtre:hover {
    background: #eaf2ed;
    border-color: #47745b;
}

.pol-filtre.actif {
    background: #28483b;
    color: #ffffff;
    border-color: #28483b;
}

.pol-filtre:focus-visible {
    outline: 3px solid #7bb998;
    outline-offset: 3px;
}

/* Adaptation aux écrans mobiles */

@media (max-width: 768px) {

    .pol-filtres-carte {
        gap: 8px;
        margin: 20px 0;
    }

    .pol-filtre {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ========================================
   PYRÉNÉES ONLINE - CATÉGORIES DES FICHES
   ======================================== */

.pol-fiche-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 24px;
}

.pol-fiche-categorie {
    display: inline-block;
    padding: 7px 14px;
    background: #eaf2ed;
    color: #28483b;
    border: 1px solid #d5dfda;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* Visionneuse WordPress - fond sombre */

.wp-lightbox-overlay {
    background-color: rgba(15, 23, 20, 0.96) !important;
}

.wp-lightbox-overlay .scrim {
    background-color: transparent !important;
}

/* ========================================
   PYRÉNÉES ONLINE - INFORMATIONS PRATIQUES
   ======================================== */

.pol-fiche-informations {
    background: #f5f8f6;
    border: 1px solid #dce7df;
    border-radius: 16px;
    padding: 28px 32px;
    margin: 36px 0;
}

.pol-fiche-informations h2 {
    margin: 0 0 20px;
    color: #28483b;
    font-size: 24px;
}

.pol-fiche-informations p {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #dce7df;
    line-height: 1.6;
}

.pol-fiche-informations p:last-child {
    border-bottom: none;
}

.pol-fiche-informations strong {
    color: #28483b;
    margin-right: 8px;
}

/* ========================================
   PYRÉNÉES ONLINE - MISE EN PAGE DES FICHES
   ======================================== */

.pol-fiche-etablissement {
    padding: 40px 20px 70px;
}

.pol-fiche-etablissement .pol-container {
    max-width: 1100px;
    margin: 0 auto;
}

.pol-fiche-etablissement h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    color: #28483b;
    margin: 0 0 16px;
}

.pol-fiche-image {
    margin: 24px 0 32px;
}

.pol-fiche-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
}

.pol-fiche-description {
    font-size: 17px;
    line-height: 1.8;
    margin: 30px 0;
}

.pol-fiche-localisation {
    margin: 40px 0;
}

.pol-fiche-localisation h2 {
    color: #28483b;
    margin-bottom: 20px;
}

#pol-carte-etablissement {
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .pol-fiche-etablissement {
        padding: 24px 16px 40px;
    }

    .pol-fiche-description {
        font-size: 16px;
    }
}
.pol-fiche-informations a {
    color: #246b49;
    text-decoration: none;
}

.pol-fiche-informations a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .pol-fiche-informations {
        padding: 20px;
        margin: 24px 0;
    }

    .pol-fiche-informations h2 {
        font-size: 21px;
    }
}

/* ========================================
   PYRÉNÉES ONLINE - RECHERCHE SUR LA CARTE
   ======================================== */

.pol-recherche-carte {
    max-width: 650px;
    margin: 30px auto 20px;
}

.pol-recherche-carte label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #28483b;
}

.pol-recherche-carte input[type="search"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    border: 1px solid #d5dfda;
    border-radius: 12px;
    background: #ffffff;
    color: #28483b;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pol-recherche-carte input[type="search"]:focus {
    border-color: #47745b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(71, 116, 91, 0.15);
}

@media (max-width: 768px) {
    .pol-recherche-carte {
        margin: 20px 0;
    }

    .pol-recherche-carte input[type="search"] {
        padding: 14px 16px;
    }
}

/* Liste des établissements sous la carte */
.pol-liste-etablissements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Fiche établissement */
.pol-fiche-carte {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.pol-fiche-carte img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pol-fiche-contenu {
    padding: 20px;
}

.pol-fiche-contenu h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.pol-fiche-contenu p {
    margin: 0 0 10px;
}

.pol-fiche-categories {
    color: #64748b;
    font-size: 0.9rem;
}

.pol-fiche-contenu a {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
}


/* Grille des établissements */
.pol-liste-etablissements {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 30px;
}

/* Fiches touristiques */
.pol-fiche-carte {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pol-fiche-carte:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pol-fiche-carte img {
    height: 220px;
    object-fit: cover;
}

.pol-fiche-contenu {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.pol-fiche-contenu a {
    align-self: flex-start;
    margin-top: auto;
    padding: 11px 18px;
    background: #1769aa;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.pol-fiche-contenu a:hover {
    background: #104e80;
    color: #fff;
}

/* Tablettes */
@media (max-width: 900px) {
    .pol-liste-etablissements {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Smartphones */
@media (max-width: 600px) {
    .pol-liste-etablissements {
        grid-template-columns: 1fr;
    }
}

/* Bouton Voir sur la carte */
.pol-voir-carte {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin: 12px 0;
    padding: 10px 16px;
    background: #fff;
    color: #1769aa;
    border: 1px solid #1769aa;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.pol-voir-carte:hover {
    background: #1769aa;
    color: #fff;
}

.pol-voir-carte:focus-visible {
    outline: 3px solid #1769aa;
    outline-offset: 3px;
}

/* Message lorsqu'aucun établissement n'est trouvé */
.pol-aucun-resultat {
    grid-column: 1 / -1;
    padding: 30px;
    margin: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

/* Bouton de réinitialisation des filtres */
.pol-effacer-filtres {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 18px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pol-effacer-filtres:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.pol-effacer-filtres:focus-visible {
    outline: 3px solid #1769aa;
    outline-offset: 3px;
}

/* Recherche et bouton de réinitialisation */
.pol-recherche-carte {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 24px;
}

.pol-recherche-carte label {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.pol-recherche-carte input[type="search"] {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

.pol-recherche-carte .pol-effacer-filtres {
    grid-column: 2;
    margin: 0;
    white-space: nowrap;
}

/* Adaptation aux smartphones */
@media (max-width: 600px) {
    .pol-recherche-carte {
        grid-template-columns: minmax(0, 1fr);
    }

    .pol-recherche-carte label,
    .pol-recherche-carte input[type="search"],
    .pol-recherche-carte .pol-effacer-filtres {
        grid-column: 1;
    }

    .pol-recherche-carte .pol-effacer-filtres {
        justify-self: start;
    }
}

/* Hauteur identique du champ de recherche et du bouton */
.pol-recherche-carte input[type="search"],
.pol-recherche-carte .pol-effacer-filtres {
    height: 46px;
    box-sizing: border-box;
}

.pol-recherche-carte .pol-effacer-filtres {
    padding: 0 18px;
}

/* ========================================
   PYRÉNÉES ONLINE - STATIONS DE SKI
   ======================================== */

/* Localisation sous le titre */

.pol-fiche-station-ski .pol-station-localisation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 30px;
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.pol-fiche-station-ski .pol-station-localisation::before {
    content: "📍";
    font-size: 18px;
}

/* Présentation des caractéristiques */

.pol-fiche-station-ski .pol-fiche-informations {
    background: #f4f8fc;
    border-color: #dbe7f2;
}

.pol-fiche-station-ski .pol-fiche-informations h2 {
    color: #245477;
}

/* Adaptation aux smartphones */

@media (max-width: 600px) {
    .pol-fiche-station-ski .pol-station-localisation {
        font-size: 14px;
        margin-bottom: 24px;
    }
}

/* Grille des caractéristiques des stations */

.pol-station-caracteristiques {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.pol-station-caracteristique {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    min-height: 110px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #dbe7f2;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(36, 84, 119, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pol-station-caracteristique:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(36, 84, 119, 0.10);
}

.pol-station-caracteristique-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #64748b;
}

.pol-station-caracteristique-valeur {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #245477;
    overflow-wrap: anywhere;
}

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

@media (max-width: 600px) {
    .pol-station-caracteristiques {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PYRÉNÉES ONLINE - STATIONS BALNÉAIRES
   ======================================== */

.pol-fiche-station-mer .pol-station-localisation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 30px;
    color: #64748b;
    font-size: 16px;
}

.pol-fiche-station-mer .pol-station-localisation::before {
    content: "📍";
    font-size: 18px;
}

.pol-fiche-station-mer .pol-fiche-categorie {
    background: #e5f5fa;
    color: #17617a;
    border-color: #c8e6ef;
}

.pol-fiche-station-mer .pol-fiche-informations {
    background: #f2f9fc;
    border-color: #d5eaf2;
}

.pol-fiche-station-mer .pol-fiche-informations h2 {
    color: #17617a;
}

.pol-fiche-station-mer .pol-station-caracteristique {
    border-color: #d5eaf2;
}

.pol-fiche-station-mer .pol-station-caracteristique-valeur {
    color: #17617a;
}

@media (max-width: 600px) {
    .pol-fiche-station-mer .pol-station-localisation {
        font-size: 14px;
        margin-bottom: 24px;
    }
}

/* ========================================
   PYRÉNÉES ONLINE - ARCHIVES DES STATIONS
   ======================================== */

.pol-archive-stations {
    padding: 50px 20px 80px;
}

.pol-archive-stations .pol-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pol-archive-entete {
    text-align: center;
    margin-bottom: 45px;
}

.pol-archive-entete h1 {
    font-size: clamp(30px, 4vw, 44px);
    color: #28483b;
    margin-bottom: 16px;
}

.pol-archive-entete p {
    max-width: 750px;
    margin: 0 auto;
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
}

.pol-archive-stations .pol-fiche-contenu h2 {
    font-size: 22px;
    margin: 0 0 14px;
    color: #28483b;
}

.pol-pagination {
    margin-top: 45px;
    text-align: center;
}

.pol-pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pol-pagination .page-numbers {
    padding: 10px 15px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #28483b;
    text-decoration: none;
}

.pol-pagination .page-numbers.current {
    background: #28483b;
    color: #fff;
}

@media (max-width: 600px) {
    .pol-archive-stations {
        padding: 30px 16px 50px;
    }

    .pol-archive-entete {
        margin-bottom: 30px;
    }
}

/* ========================================
   PYRÉNÉES ONLINE - ARCHIVE BALNÉAIRE
   ======================================== */

.pol-archive-mer .pol-archive-entete h1 {
    color: #17617a;
}

.pol-archive-mer .pol-fiche-contenu h2 {
    color: #17617a;
}

.pol-archive-mer .pol-fiche-carte {
    border-color: #d5eaf2;
}

.pol-archive-mer .pol-fiche-contenu a {
    background: #17617a;
    color: #fff;
}

.pol-archive-mer .pol-fiche-contenu a:hover {
    background: #104b60;
}

.pol-archive-mer .pol-pagination .page-numbers.current {
    background: #17617a;
    color: #fff;
}

/* ========================================
   PYRÉNÉES ONLINE - FILTRES DES STATIONS
   ======================================== */

.pol-filtres-stations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: end;
    padding: 25px;
    margin: 30px 0 40px;
    background: #f5f8f6;
    border: 1px solid #dce7df;
    border-radius: 16px;
}

.pol-filtre label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #28483b;
}

.pol-filtre select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
}

.pol-filtre-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pol-filtre-actions button,
.pol-filtres-reset {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.pol-filtre-actions button {
    background: #28483b;
    color: #fff;
    border: none;
}

.pol-filtres-reset {
    background: #fff;
    color: #28483b;
    border: 1px solid #cbd5e1;
}

@media (max-width: 768px) {
    .pol-filtres-stations {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* Carte des stations de ski */

.pol-section-carte-stations {
    margin: 30px 0 40px;
}

.pol-section-carte-stations h2 {
    margin-bottom: 20px;
}

#pol-carte-stations-ski {
    width: 100%;
    height: 450px;
    border-radius: 14px;
    overflow: hidden;
    background: #e8f0ed;
}

@media (max-width: 768px) {
    #pol-carte-stations-ski {
        height: 350px;
    }
}

/* Carte des stations balnéaires */

#pol-carte-stations-mer {
    width: 100%;
    height: 450px;
    border-radius: 14px;
    overflow: hidden;
    background: #e8f0ed;
}

@media (max-width: 768px) {
    #pol-carte-stations-mer {
        height: 350px;
    }
}

/* ========================================
   STATIONS - LIEN VERS LE SITE OFFICIEL
   ======================================== */

.pol-fiche-station-ski .pol-site-officiel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #245477;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pol-fiche-station-ski .pol-site-officiel:hover {
    background: #183e59;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.pol-fiche-station-ski .pol-site-officiel:focus-visible {
    outline: 3px solid #78b5e0;
    outline-offset: 3px;
}

/* ========================================
   STATIONS BALNÉAIRES - SITE OFFICIEL
   ======================================== */

.pol-fiche-station-mer .pol-site-officiel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #17617a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pol-fiche-station-mer .pol-site-officiel:hover {
    background: #10485c;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.pol-fiche-station-mer .pol-site-officiel:focus-visible {
    outline: 3px solid #78c7df;
    outline-offset: 3px;
}
