/* Blocs DATAtourisme de la page activité (gabarit activite/04) :
   horaires.php, tarifs.php, infos_pratiques.php, itineraire.php, infos clés du hero */

/* ── Bandeau d'infos pratiques en bas du hero (maquette) ──
   Ordinateur : bande opaque couleur papier, bord supérieur « papier déchiré », placée AU-DESSUS de la
   photo (z-index) pour que les icônes restent lisibles. Petit écran : le bandeau suit le contenu. */
.activity-hero__infos { grid-auto-rows: min-content; align-items: center; }
.activity-hero__info strong { white-space: normal; font-family: var(--font-heading); font-size: 17px; }
.activity-hero.height-auto .activity-hero__infos {
    position: static; height: auto; -webkit-mask-image: none; mask-image: none;
    padding: 14px 8px 18px; border-top: 1px solid #e3e8d6; background: transparent;
}
@media (max-width: 760px) {
    .activity-hero__infos {
        position: static; height: auto; -webkit-mask-image: none; mask-image: none; background: transparent;
        padding: 14px 8px 18px; border-top: 1px solid #e3e8d6; margin-top: 14px;
    }
}
@media (min-width: 761px) {
    .activity-hero__infos {
        z-index: 6; -webkit-mask-image: none; mask-image: none;
        background: linear-gradient(to top, #f8f9f2ff 20%, #f8f9f2aa 60%, #f8f9f24a 80%, #f8f9f200 100%);
    }
    .activity-hero.avec-infos:not(.height-auto) { height: auto; min-height: 480px; }
    .activity-hero.avec-infos:not(.height-auto) .activity-hero__content { padding-bottom: 150px; }
    /* sans photo (image de catégorie en fond) : le bandeau suit le contenu, au-dessus de l'image */
    .activity-hero.height-auto .activity-hero__infos {
        position: relative; z-index: 6; border-top: 0; margin-top: 34px;
        background: linear-gradient(to top, #f8f9f2ff 20%, #f8f9f2aa 60%, #f8f9f24a 80%, #f8f9f200 100%); 
        padding: 10px 30px 22px 35px;
    }
    .activity-hero__infos[data-nb="1"] { grid-template-columns: 1fr; }
    .activity-hero__infos[data-nb="2"] { grid-template-columns: repeat(2, minmax(0, 260px)); }
    .activity-hero__infos[data-nb="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1001px) {
    .activity-hero.height-auto .activity-hero__infos { padding-left: 28px; }
}

/* ── Horaires ── */
.horaires-texte { margin-bottom: 10px; }
.horaires-liste, .horaires-lignes { list-style: none; margin: 0; padding: 0; }
.horaires-periode { margin-bottom: 14px; }
.horaires-periode__dates { font-weight: 600; margin: 0 0 4px; }
.horaires-periode__dates i { color: #2a8514; margin-right: 4px; }
.horaires-lignes li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 4px 0 4px 22px; border-bottom: 1px dashed #e5e7eb; }
.horaires-lignes li:last-child { border-bottom: 0; }
.horaires-jours { min-width: 190px; }
.horaires-heures { font-weight: 600; font-variant-numeric: tabular-nums; }
.horaires-info { flex-basis: 100%; color: #4b5563; font-size: .9rem; }

/* ── Tarifs ── */
.tarifs-indicatif { background: #fff7e6; border-left: 3px solid #e6a23c; padding: 8px 12px; border-radius: 4px; font-size: .9rem; }
.tarifs-indicatif i { color: #e6a23c; margin-right: 4px; }
.tarifs-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.tarifs-table th, .tarifs-table td { padding: 8px 6px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.tarifs-table th { font-weight: 500; text-align: left; }
.tarifs-table td { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tarifs-precision { display: block; font-size: .82rem; color: #6b7280; font-weight: 400; }
.tarifs-taxes { font-size: .88rem; color: #4b5563; margin: 4px 0; }
/* moyens de paiement : même taille que le texte courant (information utile) */
.tarifs-paiements { margin: 10px 0 4px; }
.tarifs-paiements i { color: #6f9445; margin-right: 4px; }
.tarifs-gratuit { font-size: 1.1rem; font-weight: 600; margin: 6px 0 10px; }
.tarifs-gratuit i { color: #6f9445; margin-right: 6px; }

/* ── Infos pratiques ── */
.ip-distinctions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ip-classement, .ip-label {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
    font-size: .88rem; font-weight: 600;
}
.ip-classement { background: #fff4d6; color: #7a5300; }
.ip-etoiles { color: #e6a700; letter-spacing: 1px; }
.ip-label { background: #eef6ef; color: #1f6b10; }
.ip-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 20px; margin: 0 0 12px; }
.ip-liste div { display: flex; flex-direction: column; }
/* sous-titres uniformes : Classement, Labels, Langues parlées, Équipements et services… */
.ip-sous-titre, .ip-liste dt {
    font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; line-height: 1.3;
    color: var(--hn-color, #364127); text-transform: none; letter-spacing: 0; margin: 18px 0 8px;
}
.ip-liste { margin-top: 6px; }
.ip-liste dt { margin: 10px 0 4px; }
.ip-liste dd { margin: 0; }
.ip-equipements { list-style: none; padding: 0; margin: 0; columns: 2 220px; column-gap: 20px; }
.ip-equipements li { break-inside: avoid; padding: 3px 0; font-size: .92rem; }
.ip-equipements i { color: #2a8514; margin-right: 6px; font-size: .8rem; }

/* ── Mentions ── */
.info-source { font-size: .8rem; color: #6b7280; margin: 6px 0 0; }
.info-source--dt { margin: 24px 0 8px; padding-top: 10px; border-top: 1px solid #e5e7eb; }
.sidebar-classement span { color: #e6a700; }

/* ── « En bref » (en_bref.php) : colonne latérale, au-dessus de « Coordonnées » ── */
.fiche-bref {
    padding: 18px 20px; background: rgba(255, 255, 255, .94); border: 1px solid #e3e8d6;
    border-radius: 16px; box-shadow: 0 4px 20px rgba(54, 65, 39, .08);
    backdrop-filter: blur(3px);
}
/* colonne latérale : même présentation que le « Sommaire » des articles du blog (.summary) */
.fiche-bref--sidebar {
    margin: 0 0 24px; padding: 15px 15px 18px; background: #fff; border: 0; border-radius: 12px;
    box-shadow: 2px 2px 6px 2px #0000001c; backdrop-filter: none;
}
.fiche-bref--sidebar .fiche-bref__titre {
    font-weight: 400; font-size: 2rem; line-height: 2.5rem; display: inline-block;
    border-bottom: 4px solid var(--primary-green, #7CB342); padding-right: 5px; margin-bottom: 14px;
}
/* petit écran : la colonne latérale est « dépliée » dans la grille ; « En bref » après la présentation */
@media (max-width: 991px) {
    .activite-layout { grid-template-areas: "description" "bref" "sidebar" "photos" "horaires" "map"; }
    .fiche-bref--sidebar { grid-area: bref; margin: 0 0 30px; }
}
.fiche-bref__titre {
    font-family: var(--font-heading); font-weight: 600; font-size: 1.35rem; color: var(--hn-color, #364127);
    margin: 0 0 10px;
}
.fiche-bref__infos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.fiche-bref__infos li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.fiche-bref__infos i { flex: 0 0 22px; color: #6f9445; font-size: 1.15rem; margin-top: 4px; text-align: center; }
.fiche-bref__infos small { display: block; font-size: .8rem; color: #64695e; }
.fiche-bref__infos strong { display: block; font-size: 1rem; font-weight: 600; color: #3d4635; line-height: 1.3; }
.fiche-bref__infos em { display: block; font-size: .85rem; color: #74786e; font-style: normal; }
.fiche-bref__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fiche-bref__btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
    background: #789a4d; color: #fff !important; font-size: .92rem; font-weight: 400;
}
.fiche-bref__btn:hover { background: #5d8e2e; }
.fiche-bref__btn--reserver { background: var(--primary-red, #C94B24); }
.fiche-bref__btn--reserver:hover { background: #a83d1c; }
.fiche-bref__btn--lien { background: #eef1de; color: #3d4635 !important; }
.fiche-bref__btn--lien:hover { background: #e2e8cc; }

/* image de la catégorie en fond à droite du hero sans photo (même fondu que la photo) */
.activity-hero__fond {
    position: absolute; z-index: 0; inset: 0 0 0 auto; width: 100%;
    background-image: var(--fond-640); background-size: cover; background-position: center; opacity: .28;
    -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.6) 45%, transparent 85%);
    mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.6) 45%, transparent 85%);
    pointer-events: none;
}
.activity-hero.avec-fond .activity-hero__content { position: relative; z-index: 2; }
@media (min-width: 761px) {
    .activity-hero__fond {
        width: min(66%, 760px); opacity: .45; background-image: var(--fond-800);
        -webkit-mask-image: radial-gradient(ellipse 105% 105% at 100% 50%, #000 0%, #000 45%,
            rgba(0,0,0,.6) 65%, rgba(0,0,0,.15) 82%, transparent 92%);
        mask-image: radial-gradient(ellipse 105% 105% at 100% 50%, #000 0%, #000 45%,
            rgba(0,0,0,.6) 65%, rgba(0,0,0,.15) 82%, transparent 92%);
    }
}
/* petit écran : le hero ne garde pas de grande zone vide (min-height de hero.beta.css) */
@media (max-width: 760px) {
    .activity-hero.height-auto { min-height: 0; }
}

/* ── Calcul d'itinéraire (itineraire_calcul.php + /js/itineraire.js) ── */
.itineraire-calcul { margin-top: 14px; padding: 16px 18px; background: #f8f9f2; border: 1px solid #e3e8d6; border-radius: 14px; }
.iti-titre { font-size: 1.2rem; margin: 0 0 10px; }
.iti-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.iti-depart { position: relative; flex: 1 1 280px; display: flex; }
.iti-adresse { flex: 1; padding: 9px 12px; border: 1px solid #c8d3b8; border-radius: 999px 0 0 999px; font-size: 1rem; }
.iti-position { border: 1px solid #c8d3b8; border-left: 0; border-radius: 0 999px 999px 0; background: #fff; padding: 0 14px; color: #6f9445; }
.iti-suggestions { position: absolute; z-index: 1000; top: 100%; left: 0; right: 0; list-style: none; margin: 4px 0 0; padding: 0; background: #fff; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.iti-suggestions:empty { display: none; }
.iti-suggestions button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; font-size: .95rem; }
.iti-suggestions button:hover { background: #eef1de; }
.iti-modes { display: flex; gap: 12px; border: 0; margin: 0; padding: 0; font-size: .95rem; }
.iti-modes label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.iti-calculer { border: 0; border-radius: 999px; background: #789a4d; color: #fff; padding: 9px 20px; font-size: 1rem; }
.iti-calculer:hover { background: #5d8e2e; }
.iti-etat { margin: 8px 0 0; font-size: .92rem; color: #4b5563; }
.iti-etat:empty { display: none; }
.iti-etat--erreur { color: #b3261e; }
.iti-resume { font-size: 1.15rem; font-weight: 600; margin: 10px 0 4px; }
.iti-etapes { font-size: .92rem; padding-left: 20px; margin: 6px 0 0; }
.iti-etapes li { padding: 2px 0; }

/* ── Hero : statut du jour et étiquettes sous l'adresse ── */
.hero-statut {
    display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 5px 14px;
    border-radius: 999px; font-size: .95rem; font-weight: 400;
}
.hero-statut::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.hero-statut--ouvert { background: #e7f3dc; color: #2f6b12; }
.hero-statut--ferme { background: #fbe9e4; color: #a83d1c; }
.hero-tags { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 9px; }
.hero-tags li {
    display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 14px;
    border: 1px solid #c8d3b8; border-radius: 999px; background: transparent;
    color: #5b674f; font-size: 14px;
}
.hero-tags i { color: #6f9445; font-size: 15px; }

/* Coordonnées : icône devant le numéro de téléphone */
li > i.fa-phone { color: #6f9445; margin-right: 4px; font-size: .9em; }

/* crédits / licences des photos DATAtourisme sous la galerie */
.photos-credits { font-size: .85rem; color: #6b7280; margin: 8px 0 0; }

/* ── Présentation IA (ia_presentation.php) et FAQ (faq.php) ── */
/* chapeau : plus grand, graisse normale, filet vert à gauche */
.ia-resume {
    font-size: 1.2rem; line-height: 1.65; font-weight: 400; color: #2f3727;
    margin: 4px 0 20px; padding: 2px 0 2px 18px; border-left: 3px solid var(--primary-green, #7CB342);
}
/* points forts : encadré clair, coche dans une pastille, texte aligné sur la coche */
.ia-points-forts-bloc {
    margin: 0 0 26px; padding: 16px 20px 18px; background: #f4f6ec; border-radius: 14px;
}
.ia-points-forts__titre {
    font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--hn-color, #364127);
    margin: 0 0 10px;
}
.ia-points-forts {
    list-style: none; padding: 0; margin: 0; display: grid; gap: 10px 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 600px) { .ia-points-forts { grid-template-columns: 1fr; } }
.ia-points-forts li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; color: #3d4635; }
.ia-points-forts i {
    flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #789a4d; color: #fff;
    font-size: .7rem; display: inline-flex; align-items: center; justify-content: center;
}
.presentation-ia h2 { margin-top: 26px; }
.ia-tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ia-tags li { padding: 3px 11px; border: 1px solid #d6dec5; border-radius: 999px; font-size: .85rem; color: #4b5a3a; }
.ia-brouillon { background: #fff4e5; border-left: 3px solid #e6a23c; padding: 6px 10px; font-size: .85rem; margin-bottom: 18px; }
/* FAQ : cartes arrondies avec marge intérieure */
.faq-item {
    border: 1px solid #e3e8d6; border-radius: 14px; background: #fff; padding: 0; margin: 0 0 10px;
    transition: box-shadow .15s;
}
.faq-item[open] { box-shadow: 0 3px 12px rgba(54, 65, 39, .07); }
.faq-item summary {
    cursor: pointer; font-weight: 600; list-style: none; position: relative;
    padding: 14px 52px 14px 20px; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px; border-radius: 50%; background: #eef1de; color: #5d8e2e;
    font-weight: 700; line-height: 24px; text-align: center;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: #2f6b12; }
.faq-item p { margin: 0; padding: 0 20px 16px; }


/* ── Hero : catégorie principale + catégories secondaires (span.tag, comme les cartes des pages catégorie).
   Règles .tag reprises de la page catégorie, limitées au hero pour ne pas toucher aux autres .tag de la fiche. ── */
.activity-hero__cats { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-bottom: 10px; margin-top: 10px; }
.activity-hero__cats .tag {
    background-color: rgb(148 179 39 / 17%); color: black; padding: 2px 7px; border-radius: 15px;
    font-size: .9em; display: inline-block; margin: 0 5px 5px 0; border: 1px solid #bfc7cf;
}
.activity-hero__cats span.tag a { color: black; font-size: .8em; text-decoration: none; }
/* catégorie principale : même pastille, un peu plus marquée */
.activity-hero__cats .tag--principale { background-color: rgb(148 179 39 / 30%); border-color: #9fb37a; }
.activity-hero__cats .tag--principale a { font-weight: 600; }

/* ── Hero : établissement fermé définitivement (badge rouge) ── */
.hero-ferme {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0 14px;
    padding: 6px 16px; border-radius: 999px; background: #d93025; color: #fff;
    font-size: 1rem; font-weight: 600; line-height: 1.4;
}
.hero-ferme i { font-size: .95em; }
.hero-ferme__date { font-weight: 400; font-size: .85rem; opacity: .9; }
/* fermeture temporaire (travaux, rénovation) : orange, comme Google */
.hero-ferme--temporaire { background: #e37400; }
.fermeture-bandeau--temporaire { border-color: #e37400; background: #fff4e5; }
.fermeture-bandeau--temporaire .fermeture-bandeau__titre { color: #b35c00; }
