/* =========================================================================
   DoggyKat — style.organized.css
   Objectif : réorganisation lisible + corrections mineures sûres (pas de changement visuel intentionnel)
   - Variables centralisées
   - Sections claires
   - Doublons fusionnés (popup légal)
   - Petites typos corrigées (var(--gris), etc.)
   ========================================================================= */

/* ===================================
   Reset & Variables
   =================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --beige: #E1BEA4;      /* beige bordure */
  --beige-2: #f0ede8;    /* beige fond cadre titre h2 */
  --gris: #66605a;       /* gris écriture logo doggykat */
  --gris-2: #BABBBC;     /* gris tour logo / gris clair */
  --noir: #000;
  --blanc: #fff;
  --rayon: 18px;
}

/* ==================================
    Scrollbars (desktop + mobile)
   ================================== */

html { scroll-behavior: smooth; }
/* Masquage scrollbars (desktop + mobile) */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }



/* ================================= 
    Typographie 
   ================================= */
html, body {
  font-family: Calibri, sans-serif;
  background:
    linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.6)),
    url('img/fond_body.png') center / cover no-repeat fixed;
  color: var(--gris); 
  overflow-x: hidden;
}

h1 {
  font-weight: bold;
  font-variant: small-caps;
  font-size: 20px;
  color: var(--gris);
  line-height: 1.25;
  text-align: left;
  margin-top: 30px;
  margin-bottom: 10px;
  
 
}
h2 {
  font-weight: bold;
  font-variant: small-caps;
  font-size: 20px;
  color: var(--gris);
  line-height: 1.25;
  text-align: left;
  margin-top: 30px;
  margin-bottom: 10px;
  
 
}


h3 {
  font-weight: bold;
  font-variant: small-caps;
  font-size: 20px;
  color: var(--gris);
  line-height: 1.25;
  text-align: center;
  margin: 5px 5px;
 
}

h4, h5 {
  font-weight: bold;
  font-variant: small-caps;
  font-size: 22px;
  color: var(--gris);
  line-height: 1.25;
  text-align: left;
  margin: 5px 0 5px;
}


p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 10px;
  text-align: justify;
}


ul, ol {
  margin: 0 0 10px 18px;
  padding-left: 16px;
  text-align: left;
}

li {
  font-size: 16px;
  color: #666;
  margin: 6px 0;
  text-align: left;
}

/* phrase normale à l'intérieur d'un h2 */
h2 .objectif-phrase {
  font-variant: normal;       /* annule small-caps du h2 */
  font-variant-caps: normal;  /* ceinture + bretelles */
  text-transform: none;
  font-weight: normal;
  font-size: 14px;
  color: #666;
}



/* == 3) Layout généraux ==================================================== */
main { margin-top: 20px; } /* décale sous la nav */
.content-wrapper {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px; min-height: 100vh;
}
.central-paragraph {
  background: #fff; padding: 30px 20px; margin: 20px auto;
  max-width: 900px; width: 90%;
  font-size: 14px; text-align: justify;
  border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

/* Bande centrale generique */
.central-band {
  background: #fff;
  max-width: 1300px;
  margin-left: 4px;
  padding: 40px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.page-title {
  display: inline-block;
  background: var(--beige-2);
  border: 2px solid var(--beige);
  border-radius: 14px;
  padding: 10px 6px;
  margin: 0;
  color: var(--gris);
  font-size: 20px;
  font-weight: bold;
  font-variant: small-caps;
}

/* == 4) En-têtes (headers héro) =========================================== */
.header-index,
.header-quisuisje,
.header-presta,
.header-tarif,
.header-infos,
.header-blog,
.header-chat,
.header-prestations-chat,
.header-tarifs-chat,
.header-chien,
.header-prestations-chien,
.header-tarifs-chien,
.header-nac,
.header-prestations-nac,
.header-tarifs-nac {
  background-size: cover;
  background-position: 50% 70%;
  background-repeat: no-repeat;
  background-attachment: fixed; /* effet fixe */
  min-height: 100vh; /* plein écran */
}

.header-index{background-image:url('img/img/index/header.jpg');}
.header-quisuisje{background-image:url('img/img/quisuisje/header.jpg');}
.header-presta{background-image:url('img/img/prestations/header.jpg');}
.header-tarif{background-image:url('img/img/tarifs/header.jpg');}
.header-infos{background-image:url('img/img/infos/header.jpg');}
.header-blog{background-image:url('img/img/blog/header.jpg');}
.header-chat{background-image:url('img/img/chat/header.jpg');}
.header-chien{background-image:url('img/img/chien/header.jpg');}
.header-nac{background-image:url('img/img/nac/header.jpg');}
.header-prestations-chat{background-image:url('img/img/prestations_chats/header.jpg');}
.header-tarifs-chat{background-image:url('img/img/tarifs_chats/header.jpg');}
.header-prestations-chien{background-image:url('img/img/prestations_chiens/header.jpg');}
.header-tarifs-chien{background-image:url('img/img/tarifs_chiens/header.jpg');}
.header-prestations-nac{background-image:url('img/img/prestations_nac/header.jpg');}
.header-tarifs-nac{background-image:url('img/img/tarifs_nac/header.jpg');}

/* Utilitaire pour faire déborder le header sur toute la largeur viewport */
.hero-fullbleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


/* == 5) Navigation ========================================================= */
.logo { position: absolute; top: 40px; right: 40px; height: 300px; z-index: 5; }

nav {
  position: absolute; bottom: 0; width: 100%;
  background: #fff; padding: 6px;
  transition: all .3s ease; z-index: 5000; /* relevé */
}
nav.sticky { position: fixed; top: 0; bottom: auto; box-shadow: 0 2px 5px rgba(0,0,0,.1); z-index: 5000; }

.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center;
  padding: 0 10px; position: relative; height: 20px;
}
.nav-left { display: flex; gap: 40px; }
.nav-left a {
  text-decoration: none; color: var(--gris);
  font-weight: bold; font-size: 15px; text-transform: uppercase;
}
.nav-right { position: absolute; right: 0; display: flex; align-items: center; }
.nav-right img, .lang-switch img {
  width: 14px; height: 14px; margin-left: 8px; cursor: pointer; vertical-align: middle;
}

/* == 6) Dropdown =========================================================== */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border-radius: 8px; min-width: 60px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15); overflow: hidden;
  transform: translateY(10px); opacity: 0; transition: all .3s ease; z-index: 9999; 
}
.dropdown-content a {
  display: block; padding: 8px 8px; font-size: 13px; color: var(--gris); text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: var(--beige); color: #fff; }
.dropdown:hover .dropdown-content { display: block; transform: translateY(0); opacity: 1; }
.dropdown-content::before {
  content: ""; position: absolute; top: -8px; left: 20px;
  border-width: 8px; border-style: solid; border-color: transparent transparent #fff transparent;
}

/* == 7) Pied de page ======================================================= */
footer {
  background: var(--beige); padding: 10px 10px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.footer-legal { cursor: pointer; text-decoration: underline; margin: 0 6px; font-size: 15px; color: var(--gris); }
.footer-icons { display: flex; gap: 10px; }
.footer-icons img { width: 22px; height: 22px; }
.contact-link { color: var(--gris); text-decoration: underline; cursor: pointer; font-size: 15px; }


/* == 9) Sections : Prestations & Tarifs =================================== */
.presta-note {
  max-width: 990px;
  background: var(--beige-2);
  border: 2px solid var(--beige);
  color: var(--gris);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.presta-note-title {
  position: relative;
  font-size: 16px;
  font-weight: bold;
  color: var(--gris);
  display: flex;               /* au lieu de inline-flex */
  justify-content: center;     /* centre horizontalement */
  align-items: center;         /* centre verticalement */
  text-align: center;
  gap: 12px;                   /* espace entre texte et icônes */
  margin: 0 auto; 
  
}

.presta-note-title::before,
.presta-note-title::after {
  content: "";
  display: inline-flex;
  width: 42px;
  height: 42px;
  background: url('img/icones/presta_tarif/veto.png') center / contain no-repeat;
}

.presta-note p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--gris); text-align: justify; }

.prestations, .tarif { text-align: center; padding: 40px 20px; }
/* fix: var(--gris) -> var(--gris) */
.prestations h2, .tarif h2 { font-size: 20px; font-variant: small-caps; font-weight: bold; color: var(--gris); margin-bottom: 30px; }

.prestation-grid, .tarif-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 36px; justify-content: center; max-width: 1080px;
  margin: 24px auto 80px; padding: 0 48px;
}

.prestation-card, .tarif-card {
  width: 100%; display: flex; flex-direction: column; background: #fff;
  border-radius: 14px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease; margin: 6px 0;
  box-shadow: 0 1.5px 5px rgba(200,160,120,.14);
}
.prestation-card:hover, .tarif-card:hover { transform: translateY(-4px); box-shadow: 0 6px 15px rgba(200,160,120,.25); }

/* Images adaptatives dans cartes */
.prestation-card img, .tarif-card img {
  width: 100%; height: auto; object-fit: contain; background: #fff; display: block;
  border-bottom: 1px solid #e6d4bc; max-height: 280px; margin: 0 auto;
}

/* Corps des cartes */
.card-content {
  flex: 1; padding: 18px 22px; display: flex; flex-direction: column;
  justify-content: space-between; text-align: center;
}

/* Fonds alternés : gris / beige */
.prestation-card:nth-child(1) .card-content,
.prestation-card:nth-child(3) .card-content,
.tarif-card:nth-child(1) .card-content,
.tarif-card:nth-child(3) .card-content { background: var(--gris-2); }
.prestation-card:nth-child(2) .card-content,
.tarif-card:nth-child(2) .card-content { background: var(--beige); }

/* Textes en blanc dans cartes colorées */
.card-content h3, .card-content p { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.card-content h3 {
  font-size: 18px; text-transform: uppercase; font-weight: bold; margin-bottom: 12px;
  letter-spacing: 1.5px; text-shadow: 0 2px 4px rgba(0,0,0,.35);
}
.card-content p { font-size: 11px; margin-bottom: 15px; flex-grow: 1; }

/* Boutons cartes */
.btn-lire-plus {
  border: 1px solid #fff; color: #fff; background: transparent;
  padding: 5px 10px; border-radius: 14px; font-size: 12px; font-weight: bold;
  text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; width: fit-content; margin: 8px auto 0; text-decoration: none !important;
}
.btn-lire-plus:hover { background: #fff; color: #000; }

/* Bouton "Voir les tarifs" */
.btn-tarif {
  display: inline-block; padding: 8px 8px;
  border: 2px solid var(--beige-2);
  border-radius: 12px;
  background: var(--beige);
  color: var(--blanc);
  font-weight: 600; font-size: 11px; text-decoration: none !important; text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.btn-tarif:hover { background: var(--beige); color: #fff; }

/* Accordéons Prestations */
.stacked-accordions { max-width: 900px; margin: 0 auto; }
.presta-item {
  background: var(--beige-2);
  border: 4px solid var(--beige);
  border-radius: var(--rayon);
  overflow: hidden; margin: 16px 0; box-shadow: 0 3px 0 var(--beige);
}
.presta-header {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: none; background: transparent; padding: 16px 18px; cursor: pointer;
}
.presta-title { color: #777; font-weight: 700; font-size: 16px; letter-spacing: .3px; text-align: left; flex: 1 1 auto; }
.chevron {
  width: 20px; height: 20px; display: inline-block;
  background: url('img/patte.png') center / contain no-repeat;
  text-indent: -9999px; overflow: hidden; transition: transform .2s ease;
}
.presta-header[aria-expanded="true"] .chevron { transform: scale(1.1); }
.presta-panel {
  display: none; background: #fff; color: var(--gris);
  padding: 0 18px 18px 18px; font-size: 12px; line-height: 1.6; border-top: 3px solid var(--beige);
}
.presta-item.open .presta-panel { display: block; }

/* Icônes spécifiques d'entête d'accordéon */
.presta-header .icon-left,
.presta-header .icon-right {
  width: 24px; height: 24px; flex: 0 0 24px;
  background-image: url('img/icones/ui/os.png');
  background-size: contain; background-position: center; background-repeat: no-repeat;
  filter: grayscale(40%);
}
.presta-header .icon-right { transform: scaleX(-1); }

/* Chevrons spécifiques par accordéon */
.presta-header.icon-bilan    .chevron { background-image: url('img/icones/presta_tarif/bilan_comp.png'); }
.presta-header.icon-coaching .chevron { background-image: url('img/icones/presta_tarif/coaching.png'); }
.presta-header.icon-garde    .chevron { background-image: url('img/icones/presta_tarif/garde.png'); }
.presta-header.icon-nutrition .chevron { background-image: url('img/icones/presta_tarif/nutrition.png'); }
.presta-header.icon-education .chevron { background-image: url('img/icones/presta_tarif/education.png'); }

/* Section Tarifs Chiens : variantes accordéon + tableaux */
.stacked-accordions.tarifs-chiens .presta-item { background: var(--beige); border: 4px solid var(--gris-2); }
.stacked-accordions.tarifs-chiens .presta-header { background: transparent; }

/* == 10) Tableaux de tarifs =============================================== */
.table-wrapper {
  width: 100%; overflow-x: auto; margin-top: 15px;
  border: 2px solid var(--gris-2); border-radius: 12px;
  background: #fff; overflow: hidden;
}
.tarif-table {
  width: 100%; border-collapse: collapse; background: #fff; border: none; font-size: 14px;
}
.tarif-table thead th {
  background: var(--beige); color: var(--gris); text-align: center;
  padding: 10px 12px; border: 1px solid var(--beige);
}
.tarif-table tbody td {
  padding: 10px 12px; border: 1px solid var(--beige); text-align: center; vertical-align: middle;
}
.tarif-table tbody tr:last-child td { border-bottom: none; }
.tarif-table td[contenteditable="true"] { outline: none; }
.tarif-table td[contenteditable="true"]:focus {
  box-shadow: inset 0 0 0 2px rgba(225,190,164,.8); border-radius: 6px;
}

/* Encadré texte sous tableau tarifs */
.tarif-note {
  background: var(--beige-2); border: 2px solid var(--beige);
  border-radius: 10px; padding: 8px 8px; margin: 16px 0 12px; text-align: justify;
}
.tarif-note p { margin: 6px 0; font-size: 11px; color: var(--gris); }

/* Actions ligne */
.table-actions { display: flex; justify-content: flex-end; gap: 8px; }
.table-actions .add-row {
  background: #000; color: #fff; border: none; padding: 8px 12px; border-radius: 10px;
  font-weight: 700; cursor: pointer;
}
.tarif-table .actions { width: 40px; text-align: center; }
.tarif-table .remove-row {
  background: transparent; border: 1px solid #000; width: 28px; height: 28px;
  border-radius: 8px; cursor: pointer; font-weight: bold;
}
.tarif-table .remove-row:hover { background: #000; color: #fff; }

/* Footer sous tableaux & CTA */
.table-footer { margin-top: 16px; text-align: right; }
.table-footer .btn-presta {
  display: inline-block; padding: 10px 16px; border-radius: 12px;
  background: var(--beige); color: #fff; text-decoration: none; font-weight: 700;
  transition: background .2s;
}
.table-footer .btn-presta:hover { background: #333; }

.under-table-cta { margin-top: 12px; display: flex; justify-content: flex-end; }
.under-table-cta .btn-link {
  display: inline-block; text-decoration: none; background: #000; color: #fff;
  padding: 8px 14px; border-radius: 10px; font-weight: 700;
}
.under-table-cta .btn-link:focus { outline: 2px dashed #333; outline-offset: 3px; }

.presta-panel .btn-tarif { display: inline-block; margin-top: 8px; }

/* == 11) Popups (contact & légal) ========================================= */
/* Contact */
.popup-form {
  display: flex; opacity: 0; pointer-events: none; transition: opacity .3s ease;
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  justify-content: center; align-items: center; z-index: 10000;
}
.popup-form.active { opacity: 1; pointer-events: auto; }

.form-container {
  background-color: #fff; padding: 20px; border-radius: 25px;
  width: 90%; max-width: 520px;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
  color: #000; font-size: 12px; position: relative; border: 4px solid var(--gris-2);
}
.form-container h2 { font-size: 16px; margin-bottom: 10px; }

.form-logo { position: absolute; top: 20px; left: 20px; height: 50px; margin: 0; display: block; }

.popup-header .form-logo { position: static; height: 40px; margin: 0; }

.form-container input,
.form-container textarea,
.form-container select {
  width: 100%; padding: 10px; margin-bottom: 10px; font-size: 12px;
  border: 1px solid #ccc; border-radius: 10px; outline: none;
}
.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
  border-color: #a67c52; box-shadow: 0 0 4px rgba(166,124,82,.5);
}
.flex-row { display: flex; gap: 10px; }
.flex-row input { flex: 1; }

.close-popup {
  position: absolute; top: 20px; right: 20px; font-size: 24px; font-weight: bold;
  color: #000; cursor: pointer; transition: color .2s ease;
}
.popup-header .close-popup { position: static; margin-left: 12px; }
.close-popup:hover { color: #000; }

.popup-form .form-container button:not(.btn-action) {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 5px auto; background: transparent; border: none; padding: 0; cursor: pointer;
}

/* === Actions en bas du popup Accueil === */
.popup-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 14px;
}

.btn-action {
  flex: 1 1 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  background: var(--beige-2);
  color: var(--gris);
  border: 2px solid var(--beige);
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
}

.btn-action:link,
.btn-action:visited { color: var(--gris); }

.btn-action:hover,
.btn-action:focus { box-shadow: 0 2px 8px rgba(0,0,0,.15); outline: none; }

.btn-action:active { transform: translateY(1px); }


/* Mobile : empilement */
@media (max-width: 420px) {
  .popup-actions { flex-direction: column; }
}

.popup-form .form-container button span { font-size: 12px; font-weight: bold; color: #000; margin-bottom: 5px; }
.popup-form .form-container button img { width: 35px; height: 35px; transition: transform .2s ease; }
.popup-form .form-container button:hover img { transform: scale(1.05); }

/* Légal (fusion des doublons + comportement similaire à popup-form) */
.popup-legal {
  position: fixed; inset: 0;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
  background: rgba(0,0,0,.6); z-index: 10000;
}
.popup-legal.active { opacity: 1; pointer-events: auto; }

.legal-container {
 background: #fff;
  padding: 10px;/* enlève l’espace autour du PDF */
  width: 90vw; /* largeur du pop-up */
  height: 90vh;/* hauteur du pop-up */
  border-radius: 20px;/* optionnel : pas d’arrondis */
  overflow: hidden;
  color: var(--gris); position: relative; box-shadow: 0 0 10px rgba(0,0,0,.2);
  border: 4px solid var(--gris-2);
}
  
#legal-title { font-size: 16px; margin-bottom: 10px; }

.popup-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.popup-header h2 { flex: 1; text-align: center; margin: 0; font-size: 18px; color: var(--gris); }
.popup-header img.form-logo { height: 40px; }
.popup-legal .close-popup { cursor: pointer; }

/* Viewer de documents dans la pop-up légale */
.legal-iframe {
  width: 88vw; height: 70vh; display: block; /* prend toute la hauteur visible */
  border: none;
  overflow: hidden; /* pas de scroll interne */
}

/* Textes des popups */
.popup-form .form-container p,
.popup-legal .legal-container p { margin: 0 0 8px; line-height: 1.5; text-align: center; }

/* == 12) Partenaires adhérants ======================================================= */
.partenaires {
  background: #fff; border: 3px solid var(--beige); border-radius: 14px;
  padding: 4px 10px; margin: 40px auto; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-align: center; max-width: 900px; width: 95%;
}
.partenaires h2 { color: var(--gris); margin-top: 0; margin-bottom: 40px; }

/* Logos partenaires */
.logos-ligne {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; margin-top: 16px; 
}
.logos-ligne img {
  width: 200px; height:100px; object-fit: contain; display: block;
}

/* == 13) Infos utiles : cartes & carte Leaflet ============================ */
.infos-container {
  max-width: 1100px; margin: 40px auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 20px;
  align-items: stretch;
}
.infos-card {
  background: #fff; border: 3px solid var(--beige);
  border-radius: 16px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex; flex-direction: column; text-align: center; width: 100%;
}
.infos-card h2 { margin-top: 15px; }

#map {
  width: 100%; height: 280px; border-radius: 12px; overflow: hidden; position: relative; z-index: 1;
}



/* Ajuster le rectangle "Formations" */
.page-quisuisje .central-paragraph {
  min-height: 300px; /* tu augmentes ici la hauteur mini */
  padding-bottom: 20px;
}

/* Optionnel : un peu d'espace avant "Colloques" si tu veux marquer la séparation */
.page-quisuisje h2.page-title:nth-of-type(2) + .central-paragraph #text-body img.logo-formation + * {
  margin-top: 30px;
}

/* == 14) Galerie photos ==================================================== */
.photo-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px; margin-top: 30px;
}
.photo-gallery img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: 12px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.photo-gallery img:hover { transform: scale(1.05); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }

/* == 15) Media queries ===================================================== */
@media (max-width: 900px) {
  .infos-container { grid-template-columns: 1fr; }
  #map { height: 360px; }
}
@media (max-width: 900px) {
  .header-index,
  .header-quisuisje,
  .header-presta,
  .header-tarif,
  .header-infos,
  .header-blog,
  .header-chat,
  .header-prestations-chat,
  .header-tarifs-chat,
  .header-chien,
  .header-prestations-chien,
  .header-tarifs-chien,
  .header-nac,
  .header-prestations-nac,
  .header-tarifs-nac {
    background-attachment: scroll; /* sur mobile: plus fluide */
  }
}

@media (max-width: 600px) {
  .logos-ligne img { max-height: 46px; }

  /* Table responsive */
  .tarif-table thead { display: none; }
  .tarif-table tr {
    display: block; border-bottom: 2px solid #f0f0f0; margin-bottom: 8px;
  }
  .tarif-table td {
    display: flex; justify-content: space-between; align-items: center;
  }
  .tarif-table td::before {
    content: attr(data-label); font-weight: bold; margin-right: 10px;
  }
}

/* rectangle maltraitance page infos */
.infos-maltraitance {
  display: flex;
  background: #fff;
  border: 3px solid var(--beige);
  border-radius: 16px;
  margin: 10px auto;
  max-width: 1060px;
  width: 100%; /* tient compte du padding latéral (20px de chaque côté) */
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
 }

/* Colonne gauche */
.maltraitance-left {
  flex: 1;
  color: var(--gris);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.left-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}


/* Colonne droite */
.maltraitance-right {
  flex: 1;
  padding:10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.maltraitance-right img {
  width: 500px;   /* remplit toute la largeur dispo */
  height: auto;  /* conserve les proportions */
  object-fit: contain; /* jamais rognée */
}

/* Mobile : on empile */
@media (max-width: 768px) {
  .infos-maltraitance {
    flex-direction: column;
  }
  .maltraitance-right img {
    width: 100%;
    height: auto;
  }
}

/* ================================
   Normalisation du contenu .txt
   Couvre : #text-body (accueil) + .presta-panel (prestations)
   SANS impacter le reste du site
   ================================ */

/* Conteneurs cibles */
#text-body,
.presta-panel {
  --txt-size: 16px;         /* Taille texte par défaut */
  --txt-lh: 1.6;            /* Hauteur de ligne confortable */
  --txt-color: var(--gris); /* Couleur texte harmonisée */
  --txt-gap: 10px;          /* Espacement vertical */
  color: var(--txt-color);
  
}

/*====================
   Paragraphes 
  ==================== */


#text-body p,
.presta-panel p {
  font-size: var(--txt-size);
  line-height: var(--txt-lh);
  margin: 0 0 var(--txt-gap);
  text-align: justify;
}

/* Titres simples (si injectés ou ajoutés plus tard) */
#text-body h4, .presta-panel h4,
#text-body h5, .presta-panel h5 {
  font-weight: bold;
  font-variant: small-caps;
  color: var(--gris);
  line-height: 1.3;
  margin: 8px 0 8px;
}
#text-body h4, .presta-panel h4 { font-size: 16px; }
#text-body h5, .presta-panel h5 { font-size: 14px; }

/* Listes */
#text-body ul, .presta-panel ul,
#text-body ol, .presta-panel ol {
  margin: 0 0 var(--txt-gap) 18px;
  padding-left: 18px; /* garde l’alignement propre */
}
#text-body li, .presta-panel li { margin: 6px 0; }

/* Liens, emphases */
#text-body a, .presta-panel a { color: inherit; text-decoration: underline; }
#text-body strong, .presta-panel strong { font-weight: 700; }
#text-body em, .presta-panel em { font-style: italic; }

/* Encadrés “note” ou citations (si jamais tu en ajoutes) */
#text-body .note,
.presta-panel .note,
#text-body blockquote,
.presta-panel blockquote,
.tarif-note p {
  font-style: italic;
  font-size: 10px;
  line-height: 0.8;  /* réduit l’interlignage */
}

/* Petits écrans : confort de lecture */
@media (max-width: 600px) {
  #text-body, .presta-panel { --txt-size: 15px; --txt-lh: 1.7; }
}

/* PATCH — Hero fixe derrière le contenu */
.header{
  position: relative;
  min-height: 100vh;
  isolation: isolate;                 /* assure un plan propre pour les calques */
  padding-bottom: var(--nav-h, 40px); /* réserve la place de la nav en bas */
}

/* Image de fond FIXE (le JS lui passe l'URL via --hero-url) */
.hero-bg-fixed{
  position: fixed;
  inset: 0;
  background-image: var(--hero-url);
  background-size: cover;
  background-position: center center;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.02);
  will-change: transform;
  z-index: -2; /* derrière tout */
}

/* Légère teinte pour la lisibilité du logo/nav */
.hero-tint{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  pointer-events: none;
  z-index: -1;
}


/* Liens outils pour viewer légal */
.legal-tools { display:flex; gap:12px; justify-content:center; margin:0 0 10px; }
.legal-tools a { text-decoration: underline; pointer-events: auto; }

/* === Bloc Formations : version propre === */

/* On centre et réduit le logo pour un rendu élégant */
.logo-formation {
  display: block;
  margin: 16px auto 10px;
  width: 72px;
  height: auto;
  border-radius: 50%;
  border: 2px solid var(--beige);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
/* Conteneur logos formations côte à côte */
.logos-formations {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;   /* espace entre les logos */
  margin: 20px 0;
}

.logos-formations .logo-formation {
  margin: 0; /* on enlève le margin auto */
}

/* Rectangle Formations */
.page-quisuisje h2.page-title:nth-of-type(2) + .central-paragraph {
  min-height: 260px; /* respiration minimale */
  padding-bottom: 20px;
  font-variant: small-caps;
  text-align: left; /* lecture plus agréable pour une liste */
  background: url('img/patte.png') center / contain no-repeat;
  
}

/* Listes stylisées (formations et colloques) */
.formations-list,
.colloques-list {
  list-style: none;
  margin: 12px 0;
  padding-left: 0;
}


.formations-list li,
.colloques-list li {
  position: relative;
  margin: 16px 0 6px 26px;
  line-height: 1.6;
}

.formations-list li::before,
.colloques-list li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 15px;
  height: 15px;
  background: url('img/patte.png') center / contain no-repeat;
  opacity: .8;
}

/* Sous-titre "Colloques" */
.txt-section-title {
  margin: 22px 0 18px;
  font-size: 20px;
  font-weight: bold;
  font-variant: small-caps;
  color: var(--gris);
}


/* >>> Accessibilité : focus visible pour navigation clavier <<< */
a:focus-visible,
button:focus-visible,
.btn-action:focus-visible,
.btn-lire-plus:focus-visible,
.btn-tarif:focus-visible {
  outline: 2px dashed #333;
  outline-offset: 3px;
}


/*  Icône patoune pour tous les h2 */
h2::before{
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  background: url('img/patte.png') center / contain no-repeat;
  vertical-align: -4px; /* petit alignement optique */
  text-align: left !important;
  
}

/*  Cas des h2 “cadre” (.page-title) : on aligne proprement */
.page-title{
  display: inline-flex;  /* place l’icône et le texte sur la même ligne */
  align-items: center;
  gap: 8px;
}
.page-title::before{
  width: 18px; /* un poil plus petit dans le badge */
  height: 18px;
}
/* Pas d’icône avant ces h2 précis */
.popup-header h2::before,
.left-header h2::before {
  content: none;
}

/* Page qui suis-je - Logos bloc Formations */
.logos-formations-inline {
  float: right;
  margin: 0 100px 100px 100px; /* espace avec le texte */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.logos-formations-inline img {
  max-width: 80px;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: transform .2s ease;
}

.logos-formations-inline img:hover {
  transform: scale(1.08);
}


/* Page infos utiles : titres centrés */
.infos-card h2{ margin-top: 15px; }
.infos-card h2,
.infos-card p { text-align: center; }


/* =========================================================================
   Correctif superpositions (z-index)
   Objectif : empêcher la carte Leaflet de passer devant menus et popups
   ========================================================================= */


/* Navigation (normal + sticky) — surclasse la carte et ses contrôles */
nav { z-index: 5000; } /* > Leaflet controls */
nav.sticky {
  position: fixed;
  top: 0;
  bottom: auto;
  z-index: 5000;
}

/* Menus déroulants (Prestations, Tarifs) au-dessus de la nav */
.dropdown-content { z-index: 6000; }

/* Popups (contact, légal, accueil…) = tout en haut */
.popup-form,
.popup-legal { z-index: 10000; }


/* NAV responsive */
@media (max-width: 640px) {
  .logo { height: 120px; top: 10px; right: 10px; }

  nav { padding: 4px 6px; }
  .nav-container { height: auto; padding: 0 8px; justify-content: flex-start; }

  .nav-left {
    flex-wrap: wrap;          /* autorise le retour à la ligne */
    gap: 10px 14px;           /* espaces plus petits */
  }
  .nav-left a {
    font-size: 12px;          /* texte plus compact */
    white-space: nowrap;      /* ne coupe pas "QUI SUIS-JE" en deux */
    letter-spacing: .5px;
  }

  .nav-right.lang-switch {
    position: static;         /* évite le chevauchement à droite */
    margin-left: auto;
  }

  /* Sous-menus: utilisables au toucher */
  .dropdown { position: static; }
  .dropdown-content {
    left: 0; top: 100%;
  }
  .dropdown:focus-within .dropdown-content,
  .dropdown:hover .dropdown-content {
    display: block;
    transform: none; opacity: 1; box-shadow: 0 4px 10px rgba(0,0,0,.15);
  }
}
