/* =========================================================================
   DoggyKat — style.css (VERSION FINALE VALIDÉE)
   ========================================================================= */

/* ===================================
            VARIABLES COULEURS
   =================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --beige: #E1BEA4;
  --beige-2: #F0EDE8;
  --gris: #66605a;
  --gris-2: #BABBBC;
  --rouge: #A60209; 
  --noir: #000000;
  --blanc: #FFFFFF;
  --rayon: 18px;
}

/* ==================================
             SCROLLBAR  
   ================================== */
html { scroll-behavior: smooth; }
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; }

h2 .objectif-phrase {
  font-variant: normal; font-variant-caps: normal; text-transform: none;
  font-weight: normal; font-size: 14px; color: #666;
}

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; 
  text-align: left !important;
}

/* ================================= 
             LAYOUT
   ================================= */
main { margin-top: 20px; }
.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);
}
.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;
}

/* ================================= 
             HEADER
   ================================= */
.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, .header-articles {
  background-size: cover; background-position: 50% 70%; background-repeat: no-repeat;
  background-attachment: fixed; min-height: 100vh;
}
.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');}
.header-articles{background-image:url('img/img/articles/header.jpg');}

.hero-fullbleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ================================= 
             NAV
   ================================= */
.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 !important; }
nav.sticky { position: fixed; top: 0; bottom: auto; box-shadow: 0 2px 5px rgba(0,0,0,.1); z-index: 5000 !important; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; align-items: center; padding: 0 10px; position: relative; height: 20px; z-index: 20000 !important; }
.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; }

.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: 10000; }
.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; }

/* ================================= 
             FOOTER
   ================================= */
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; }

/* ===================================== 
    PAGE PRESTATION & 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; justify-content: center; align-items: center; text-align: center; gap: 12px; 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; }
.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); }
.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; }
.card-content { flex: 1; padding: 18px 22px; display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.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); }
.card-content h3 { color: #fff !important; 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; }

.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; }
.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; }

.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: 30px; height: 30px; 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; }
.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'); }

/* ===================================== 
    STYLE DES TABLEAUX
   ===================================== */

.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(--gris); }
.tarif-table tbody td { padding: 10px 12px; border: 1px solid var(--gris); text-align: center; vertical-align: middle; }
.tarif-table tbody tr:last-child td { border-bottom: none; }
.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); }
.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; }

/* ================================= 
             PAGES INFO
   ================================= */
.infos-maltraitance { display: flex; background: #fff; border: 3px solid var(--beige); border-radius: 16px; margin: 10px auto; max-width: 1060px; width: 100%; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.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; }
.maltraitance-right { flex: 1; padding:10px; display: flex; justify-content: center; align-items: center; background: #fff; }
.maltraitance-right img { width: 500px; height: auto; object-fit: contain; }
.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; }

/* ================================= 
        POP-UP CONTACT & LEGAL
   ================================= */
/* 1. Le fond noir transparent (commun aux deux) */
.popup-form, .popup-legal {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6); /* Un peu plus sombre pour le focus */
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Activation */
.popup-form.active, .popup-legal.active {
  opacity: 1;
  pointer-events: auto;
}

/* 2. Style de base des boîtes blanches */
.form-container, .legal-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* --- CAS 1 : POPUP CONTACT (PETITE) --- */
.form-container {
  width: 90%;
  max-width: 500px; /* On garde petit pour le formulaire */
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto; /* Scroll si l'écran est trop petit en hauteur */
  border: 4px solid var(--gris-2);
}

/* --- CAS 2 : POPUP LÉGALE (GRANDE & PLEIN ÉCRAN) --- */
.legal-container {
  width: 95vw !important;  /* 95% de la largeur de l'écran */
  height: 90vh !important; /* 90% de la hauteur */
  max-width: none !important; /* PLUS DE LIMITE DE 520PX ! */
  padding: 0 !important;      /* Pas de marge interne, le PDF touche les bords */
  border: none !important;
  overflow: hidden;           /* Pas de scroll sur la boîte, c'est le PDF qui scroll */
}

/* 3. Header (Titre + Croix) */
.popup-header {
  flex: 0 0 auto; /* Taille fixe, ne s'écrase pas */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #ddd; /* Petite ligne de séparation */
  min-height: 50px;
}

.popup-header h2 {
  margin: 0;
  font-size: 18px;
  text-align: center;
  flex-grow: 1;
}

.close-popup {
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  color: #000;
  padding-left: 15px;
}

/* 4. Zone du PDF (Le point critique) */
#legal-content {
  flex: 1; /* PREND TOUTE LA HAUTEUR RESTANTE */
  position: relative;
  width: 100%;
  background: #f4f4f4; /* Gris clair pendant le chargement */
  overflow: hidden;
}

/* L'iframe doit absolument remplir la zone #legal-content */
.legal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* --- ESTHÉTIQUE FORMULAIRE (Conservé) --- */
.form-logo { display:none; } /* On cache le logo en double si besoin */
.popup-header .form-logo { display: block; height: 40px; width: auto; position: static; }
.form-container input, .form-container textarea, .form-container select { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 8px; }
.flex-row { display: flex; gap: 10px; }
.flex-row input { flex: 1; }
.popup-actions { display: flex; gap: 10px; margin-top: 10px; }
.btn-action { flex: 1; padding: 10px; text-align: center; border-radius: 8px; background: var(--beige); color: white; text-decoration: none; font-weight: bold; }
.legal-nav-links { display: flex; gap: 15px; justify-content: center; font-size: 13px; align-items: center; }
.legal-nav-links a { color: #666; text-decoration: none; }
.legal-nav-links a:hover { text-decoration: underline; color: var(--rouge); }

/* RESPONSIVE MOBILE */
@media (max-width: 600px) {
  .legal-nav-links { flex-wrap: wrap; justify-content: center; }
  .popup-header h2 { font-size: 14px; }
}

/* Legal Nav */
.legal-nav-links { align-items: center; text-align: center; margin-bottom: 20px; font-size: 14px; padding: 8px; background: var(--beige-2); border-radius: 8px; border: 1px solid var(--beige); }
.legal-nav-links a { color: var(--gris); text-decoration: none; margin: 0 4px; padding: 0 4px; transition: color .2s ease; }
.legal-nav-links a:hover { color: var(--rouge); text-decoration: underline; }
.legal-nav-links .active-legal-link { font-weight: bold; color: var(--rouge); text-decoration: none; cursor: default; pointer-events: none; }
.legal-nav-links #legal-title { font-weight: bold; color: var(--gris); margin-right: 10px; display: none; }
.legal-tools { display:flex; gap:12px; justify-content:center; margin:0 0 10px; }
.legal-tools a { text-decoration: underline; pointer-events: auto; }

/* ================================= 
             PAGE QUISUISJE
   ================================= */
.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); }
.logos-formations { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 20px 0; }
.logos-formations .logo-formation { margin: 0; }
.page-quisuisje h2.page-title:nth-of-type(2) + .central-paragraph { min-height: 260px; padding-bottom: 20px; font-variant: small-caps; text-align: left; background: url('img/patte.png') center / contain no-repeat; }
.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; }
.txt-section-title { margin: 22px 0 18px; font-size: 20px; font-weight: bold; font-variant: small-caps; color: var(--gris); }
.page-title{ display: inline-flex; align-items: center; gap: 8px; }
.popup-header h2::before, .left-header h2::before { content: none; }
.logos-formations-inline { float: right; margin: 0 100px 100px 100px; 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); }
.partenaires { overflow: visible; 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%; }
.logos-ligne { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px 40px; overflow:visible; padding-top: 8px; padding-bottom: 8px; }
.logos-ligne img { max-height:80px; height:auto; width:auto; object-fit:contain; display:block; vertical-align: middle; }
.logos-ligne img[alt="secep"], .logos-ligne img[alt="mfec"], .logos-ligne img[alt="lcma"] { max-height: 60px; }
.logo-menu{ position:relative; display:inline-block; }
.logo-menu .logo-dropdown{ position:absolute; left:50%; top:100%; transform:translateX(-50%); background:#fff; border:2px solid var(--beige); border-radius:10px; min-width:80px; padding:6px; box-shadow:0 6px 14px rgba(0,0,0,.12); display:none; z-index:10; }
.logo-menu .logo-dropdown a{ display:block; padding:8px 10px; font-size:14px; color:var(--gris); text-decoration:none; border-radius:8px; }
.logo-menu .logo-dropdown a:hover{ background:var(--beige); color:#fff; }
.logo-menu .logo-dropdown.open{ display:block; }

.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; }
.photo-gallery img:hover { transform: scale(1.05); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }

/* ================================= 
      PAGE BLOG
   ================================= */
.blog-section { margin: 40px auto; padding: 0 50px; position: relative; z-index: 1; }
.blog-cards-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 200px; max-width: 900px; margin: 0 auto; justify-content: center; }
.blog-card { width: 100%; display: flex; flex-direction: column; border-radius: 24px; padding: 18px 16px 30px; box-shadow: 0 4px 10px rgba(0,0,0,.08); position: relative; transition: transform 0.2s ease; }
.blog-card:hover { transform: translateY(-5px); }
.blog-card--grey { background: var(--gris-2); color: #fff; }
.blog-card--beige { background: var(--beige); color: #fff; }
.blog-card-image-wrapper { width: 100%; height: 180px; border-radius: 20px; overflow: hidden; margin-bottom: 12px; background: #fff; }
.blog-card-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-title { font-weight: bold; color:var(--blanc); font-size: 16px; margin: 0 0 8px 0; text-align: left; line-height: 1.3; }
.blog-card-excerpt { font-size: 13px; line-height: 1.4; margin: 0 0 26px 0; text-align: left; flex-grow: 1; }
.blog-card-arrow { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.blog-card-arrow:hover { transform: scale(1.1); }
.blog-card-arrow img { max-width: 60%; height: auto; }

/* ================================= 
      RESPONSIVE
   ================================= */
@media (max-width: 900px) {
  .header, .header-index, .header-quisuisje { background-attachment: scroll; }
  .infos-container, .blog-cards-container { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .logo { height: 120px; top: 10px; right: 10px; }
  nav { padding: 4px 6px; }
  .nav-container { height: auto; flex-wrap: wrap; }
  .nav-left { gap: 10px; flex-wrap: wrap; }
  .tarif-table thead { display: none; }
  .tarif-table tr { display: block; margin-bottom: 10px; border-bottom: 2px solid #ccc; }
  .tarif-table td { display: flex; justify-content: space-between; }
  .tarif-table td::before { content: attr(data-label); font-weight: bold; }
}

/* =========================================================
                         PAGES ARTICLES 
   ========================================================= */

/* 1. LE CONTENEUR (La Grille) */
.content-wrapper.article-wrapper {
    display: grid;
    /* Colonne 1 (Article) prend le reste | Colonne 2 (Sidebar) fixe à 300px */
    grid-template-columns: 1fr 300px; 
    
    gap: 30px; /* Espace entre l'article et la sidebar */
    /* --- LE RÉGLAGE DES BORDURES --- */
    margin-right: 35px;
    margin-left: 130px;  
    
    width: auto;     /* Le contenu prend toute la largeur disponible entre les marges */
    max-width: none; /* On supprime la limite de taille pour aller chercher les bords */
    
    padding-top: 40px;
    align-items: start; /* Cale les éléments en haut */
}

/* 2. LA COLONNE DE GAUCHE (Article) */
.article-main {
    min-width: 0; /* Empêche l'article de pousser la sidebar s'il y a une grande image */
}

/* 3. LA COLONNE DE DROITE (Sidebar "À lire aussi") */
.article-sidebar {
    background: #fff;
    border: 3px solid var(--beige);
    border-radius: 16px;
    padding: 20px;
    /* Pour prendre toute la hauteur si tu veux que le cadre descende jusqu'en bas */
    height: 100%; 
    /* OU si tu veux qu'elle reste accrochée quand on scroll (optionnel) : */
    /* position: sticky; top: 20px; height: auto; */
}

/* 4. CORRECTION COULEUR TEXTE (Indispensable vu ta capture) */
/* On force le texte en gris foncé car tes cartes de blog sont en blanc par défaut */
.article-sidebar .blog-card h5.blog-card-title,
.article-sidebar .blog-card p {
    color: #66605a !important; 
    text-shadow: none !important;
}
/* 5. STYLE "MINIATURE" POUR LES CARTES DE LA SIDEBAR */
.article-sidebar .blog-card {
    flex-direction: row;       /* Met l'image à côté du texte */
    align-items: center;       /* Centre verticalement */
    padding: 10px;             /* Réduit l'espace interne */
    margin-bottom: 10px;       /* Réduit l'espace entre les cartes */
    min-height: auto;          /* Enlève la hauteur minimale forcée */
    border: 1px solid #ddd;    /* Ajoute une petite bordure propre */
}

/* On réduit l'image */
.article-sidebar .blog-card-image-wrapper {
    width: 60px;               /* Largeur fixe petite */
    height: 60px;              /* Hauteur fixe petite */
    margin: 0 12px 0 0;        /* Marge à droite uniquement */
    margin-bottom: 0;          /* Important : enlève la marge du bas */
    flex-shrink: 0;            /* Empêche l'image de s'écraser */
}

/* On réduit le titre */
.article-sidebar .blog-card-title {
    font-size: 14px;           /* Texte plus petit */
    margin: 0;                 /* Enlève les marges autour */
    line-height: 1.3;
}

/* On cache le résumé et la flèche pour gagner de la place */
.article-sidebar .blog-card-excerpt,
.article-sidebar .blog-card-arrow {
    display: none !important;
}
/* 6. MOBILE (On repasse l'un sous l'autre) */
@media (max-width: 950px) {
    .content-wrapper.article-wrapper {
        grid-template-columns: 1fr; /* Une seule colonne */
    }
    .article-sidebar {
        height: auto; /* Hauteur auto sur mobile */
    }
}
/* =========================================================================
   FIX TINYMCE - Z-INDEX
   Force le menu de l'éditeur à passer au-dessus de tout le reste
   ========================================================================= */
.tox-tinymce, .tox-tinymce-aux, .tox-editor-header, .tox-fullscreen {
    z-index: 9999999 !important;
}
/* =========================================================================
                        CUSTOM RUBAN EDITEUR TINYMCE 
   ========================================================================= */

/* Le fond du ruban en Beige */
.tox .tox-toolbar, 
.tox .tox-toolbar__primary, 
.tox .tox-editor-header {
    background-color: var(--gris) !important; /* Beige clair */
    border-bottom: 2px solid var(--rouge) !important;
}

/* Les icônes en Gris foncé */
.tox .tox-tbtn svg {
    fill: var(--beige) !important;
}

/* Au survol des boutons : fond blanc et icône Rouge */
.tox .tox-tbtn:hover {
    background: #fff !important;
}
.tox .tox-tbtn:hover svg {
    fill: var(--rouge) !important;
}

/* Le bouton "Save" (si tu l'as ajouté) en évidence */
.tox .tox-tbtn[title="Enregistrer"], .tox .tox-tbtn[aria-label="Enregistrer"] {
    background: var(--beige) !important;
    border-radius: 4px;
}
.tox .tox-tbtn[title="Enregistrer"] svg {
    fill: #fff !important;
}
/* =========================================================================
             STYLES DE LISTES PERSONNALISÉS POUR EDITEUR
   ========================================================================= */
/* --- STYLES PUCES PERSONNALISÉES --- */
ul.puce-patte { list-style: none; padding-left: 10px; }
ul.puce-patte li { position: relative; padding-left: 26px; margin-bottom: 6px; }
ul.puce-patte li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: url('img/patte.png') center / contain no-repeat; }

ul.puce-fleche { list-style: none; padding-left: 20px; }
ul.puce-fleche li { position: relative; padding-left: 20px; margin-bottom: 5px; }
ul.puce-fleche li::before { content: "➤"; position: absolute; left: 0; top: 0; color: var(--rouge); font-weight: bold; font-size: 14px; }

ul.puce-check { list-style: none; padding-left: 20px; }
ul.puce-check li { position: relative; padding-left: 20px; margin-bottom: 5px; }
ul.puce-check li::before { content: "✔"; position: absolute; left: 0; top: 0; color: green; font-weight: bold; font-size: 14px; }

ul.puce-carre { list-style-type: square; color: var(--gris); padding-left: 20px; }