/* =====================================================================
   BASE DU SITE : typographie, en-tête, cartes, formulaires, bandeau cookies.
   Les styles propres à chaque bloc (accueil, cabinet, fiches...) sont dans
   styles-maison.css (repris tels quels de l'ancien site) et dans le dossier pages/.
   ===================================================================== */

/* ---------- Couleurs du site ---------- */
:root {
  --encre: #1F1D22;        /* texte foncé, boutons noirs */
  --titre: #1F242E;        /* titres */
  --texte: #5F5A57;        /* texte courant des blocs */
  --gris: #938F8A;         /* texte par défaut du thème */
  --orange: #C96A2E;
  --orange-clair: #EC8F4E;
  --orange-titre: #E99B5E;
  --orange-lien: #B35A20;
  --ligne: #E6DDD5;
  --beige: #F7F3F0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: var(--gris);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Lexend Deca", "Helvetica Neue", Arial, sans-serif;
  color: var(--titre);
  margin: 0 0 .6em;
  line-height: 1.13;
}
h1 { font-size: 57px; font-weight: 600; line-height: 1.105; }
h2 { font-size: 32px; font-weight: 500; }
h3 { font-size: 24px; font-weight: 500; }
h4 { font-size: 20px; font-weight: 500; }
h5 { font-size: 18px; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--orange-lien); text-decoration: none; transition: color .2s; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
strong, b { font-weight: 600; }
.lsx-saut { position: absolute; left: -9999px; top: 0; z-index: 10001; background: #fff; padding: 8px 14px; }
.lsx-saut:focus { left: 10px; top: 10px; }

/* Le contenu commence sous l'en-tête fixe */
.lsx-contenu { padding-top: 90px; min-height: 60vh; }
.lsx-page-fiche .lsx-contenu, .lsx-page-theme .lsx-contenu, .lsx-page-catalogue .lsx-contenu { padding-top: 100px; }
/* Largeur des pages (comme l'ancien site : 1290 px, 1224 px pour l'accueil) */
.lsx-boite { max-width: 1290px; margin: 0 auto; }
.lsx-page-accueil .lsx-boite { max-width: 1224px; }
@media (max-width: 1310px) { .lsx-boite { padding: 0 10px; } }

/* ---------- En-tête ---------- */
.lsx-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.lsx-header-row {
  position: relative;
  height: 90px;
  padding: 10px 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.lsx-logo { display: block; width: 70px; height: 70px; flex-shrink: 0; }
.lsx-logo img { width: 70px; height: 70px; display: block; }
.lsx-nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.lsx-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.lsx-menu > li { margin: 0 14px; }
.lsx-menu > li > a {
  display: flex; align-items: center;
  height: 40px; padding: 4px 0 2px;
  font-size: 16px; font-weight: 500; line-height: 24px;
  color: var(--encre);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.lsx-menu > li > a:hover { color: var(--orange-lien); }
.lsx-header-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Lexend Deca", Arial, sans-serif;
  font-size: 15px; font-weight: 500; line-height: 19px;
  color: #fff !important; background: var(--encre);
  padding: 12px 22px; border-radius: 50px;
  transition: background .2s;
}
.lsx-header-btn:hover { background: var(--orange); }
.lsx-burger, .lsx-mobile, .lsx-mobile-fond { display: none; }

@media (max-width: 1279px) {
  .lsx-header-row { height: 80px; padding: 10px 24px; }
  .lsx-logo, .lsx-logo img { width: 56px; height: 56px; }
  .lsx-nav, .lsx-header-row > .lsx-header-btn { display: none; }
  .lsx-contenu, .lsx-page-fiche .lsx-contenu, .lsx-page-theme .lsx-contenu, .lsx-page-catalogue .lsx-contenu { padding-top: 80px; }
  .lsx-burger {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 0; cursor: pointer;
    font-size: 16px; font-weight: 500; color: var(--encre); padding: 8px;
  }
  .lsx-burger svg { width: 18px; height: 18px; fill: currentColor; }
  .lsx-mobile:not([hidden]) {
    display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0; left: 0;
    width: 300px; max-width: 85vw;
    background: #fff; z-index: 1002;
    padding: 70px 24px 30px; overflow-y: auto;
    box-shadow: 0 0 40px rgba(31,29,34,.15);
  }
  .lsx-mobile-fond:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(31,29,34,.35); z-index: 1001; }
  .lsx-mobile-close { position: absolute; top: 18px; right: 18px; background: none; border: 0; padding: 6px; cursor: pointer; }
  .lsx-mobile-close svg { width: 16px; height: 16px; fill: var(--encre); }
  .lsx-mobile-menu { list-style: none; margin: 0 0 24px; padding: 0; }
  .lsx-mobile-menu > li > a { display: block; padding: 6px 0; font-size: 17px; font-weight: 500; color: var(--encre); }
  .lsx-mobile-menu li.current-menu-item > a { border-bottom: 0 !important; }
  .lsx-mobile-btn { align-self: flex-start; }
}

/* ---------- Pages « thème » (ex. /nos-formations/psychopathologie/) ---------- */
.lsx-conteneur { max-width: 1290px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1330px) { .lsx-conteneur { padding: 0; } }
.lsx-theme-titre {
  text-align: center;
  font-size: 57px; font-weight: 600; line-height: 63px;
  margin: 50px 0 28px;
}
.lsx-theme-titre span { display: block; color: var(--orange-titre); }
.lsx-theme-intro { text-align: center; color: var(--texte); margin: 0 0 56px; }
.lsx-theme-h2 { font-size: 32px; font-weight: 500; line-height: 36px; margin: 70px 0 28px; }
.lsx-theme hr { border: 0; border-top: 1px solid #EBE3DC; margin: 40px 0 0; }
.lsx-theme .ls-acc { margin-bottom: 0; }
@media (max-width: 1024px) {
  .lsx-theme-titre { font-size: 42px; line-height: 48px; }
}
@media (max-width: 767px) {
  .lsx-theme-titre { font-size: 32px; line-height: 38px; margin-top: 24px; }
  .lsx-theme-h2 { font-size: 26px; line-height: 30px; }
}

/* ---------- Cartes de formation (pages thèmes, « Les formations en lien ») ---------- */
.trx-addons-posts { display: flex; flex-wrap: wrap; justify-content: center; }
.lsx-theme .trx-addons-posts { margin: 0 -15px; }
.lsx-theme .trx-addons-posts-item-wrap { width: 50%; padding: 0 15px 30px; }
/* Thème réglé sur « cartes-par-ligne: 3 » : 3 cartes par ligne sur ordinateur */
@media (min-width: 1025px) {
  .lsx-theme .lsx-3-par-ligne .trx-addons-posts-item-wrap { width: 33.333%; }
  .lsx-theme .lsx-3-par-ligne .trx-addons-posts-item-title { font-size: 20px; }
}
.trx-addons-posts-item-wrap { display: flex; }
.trx-addons-posts-item {
  width: 100%;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  padding-bottom: 30px;
  box-shadow: 0 8px 24px rgba(150, 90, 40, .12);
}
.trx-addons-posts-item-thumbnail-wrap { position: relative; }
.trx-addons-posts-item-thumbnail-wrap .lsm-tags { position: absolute; top: 14px; left: 14px; }
.trx-addons-posts-item-content-wrap { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: 20px; }
.trx-addons-posts-item-content { padding: 0 20px 20px; }
.trx-addons-posts-item-term { font-size: 13px; line-height: 17px; color: #6F7882; }
.trx-addons-posts-item-title { font-size: 22px; font-weight: 500; line-height: 1.22; margin: 12px 0 12px; }
.trx-addons-posts-item-title a { color: var(--titre); }
.trx-addons-posts-item-title a:hover { color: var(--orange-lien); }
.trx-addons-posts-item-excerpt p { margin: 0; color: var(--gris); }
.trx-addons-posts-button {
  align-self: center;
  font-family: "Lexend Deca", Arial, sans-serif;
  font-size: 16px; font-weight: 500; line-height: 19px;
  color: var(--orange-clair) !important;
  padding: 13px 25px; border-radius: 8px;
  transition: transform .3s;
}
.trx-addons-posts-button:hover { transform: scale(1.1); }
@media (max-width: 767px) {
  .lsx-theme .trx-addons-posts-item-wrap { width: 100%; }
}
.lsx-fiche-lien { padding: 70px 20px 90px; }
.lsx-fiche-lien .lsf-rel-title { text-align: center; margin: 0 0 40px; }
.lsx-fiche-lien .lsf-rel-title span { color: var(--orange-titre); }

/* ---------- Formulaires (contact, devis, inscription, catalogue) ---------- */
.lsx-form { position: relative; }
.lsx-grille { display: grid; grid-template-columns: 1fr; gap: 16px; }
.lsx-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lsx-large { grid-column: 1 / -1; }
.lsx-champ { display: flex; flex-direction: column; min-width: 0; }
.lsx-form .mf-input-label { display: block; font-size: 14px; font-weight: 600; color: var(--encre); margin-bottom: 6px; line-height: 1.4; }
.lsx-form .mf-input-required-indicator { color: var(--orange); }
.lsx-form .mf-input:not(.mf-checkbox-input) {
  width: 100%; min-height: 48px;
  font-family: inherit; font-size: 15px; color: var(--encre);
  background: #fff; border: 1px solid var(--ligne); border-radius: 10px;
  padding: 12px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.lsx-form .mf-input::placeholder { color: #A39C97; opacity: 1; }
.lsx-form .mf-input:not(.mf-checkbox-input):focus { border-color: var(--orange-clair); box-shadow: 0 0 0 3px rgba(236, 143, 78, .15); }
.lsx-form textarea.mf-input { min-height: 236px; resize: vertical; }
.lsx-form .mf-checkbox-option { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.lsx-form .mf-checkbox-option input { accent-color: var(--orange); width: 16px; height: 16px; margin: 4px 0 0; flex-shrink: 0; }
.lsx-form .mf-checkbox-option span { font-size: 13px; line-height: 1.5; color: var(--texte); }
.lsx-form .mf-checkbox-option a { color: var(--orange-lien); }
.lsx-form .metform-btn {
  justify-self: start; align-self: flex-start;
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: #fff; background: var(--encre);
  border: 0; border-radius: 999px; padding: 14px 28px;
  cursor: pointer; transition: background .2s, opacity .2s;
}
.lsx-form .metform-btn:hover { background: var(--orange); }
.lsx-form .metform-btn[disabled] { opacity: .6; cursor: wait; }
.lsx-erreur { display: none; font-size: 12px; color: #C0392B; margin-top: 6px; line-height: 1.4; }
.lsx-form.lsx-essaye .lsx-champ:has(:invalid) .lsx-erreur { display: block; }
.lsx-form.lsx-essaye .mf-input:invalid { border-color: #C0392B !important; }
.lsx-piege { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.lsx-retour { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.lsx-retour.ok { display: block; background: #FBF6F2; border: 1px solid var(--orange-clair); color: var(--encre); }
.lsx-retour.ko { display: block; background: #FDECEA; border: 1px solid #B3261E; color: #B3261E; }
.lsx-form .lsd-prefilled { background: #FFF8F2 !important; border-color: var(--orange-clair) !important; }
@media (max-width: 767px) {
  .lsx-2col { grid-template-columns: 1fr; }
  .lsx-form .metform-btn { width: 100%; }
}
/* Formulaire « Recevoir le catalogue » : 2 champs par ligne, plus compacts */
.ls-cat-form .lsx-grille { gap: 14px; }
.ls-cat-form .mf-input-label { font-size: 13px; line-height: 1.3; }
.ls-cat-form .mf-input:not(.mf-checkbox-input) { min-height: 0; }

/* ---------- Page d'inscription à une session inter ---------- */
.lsx-insc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.lsx-insc-k { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-lien); margin-bottom: 12px; }
.lsx-insc h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; color: var(--encre); }
.lsx-insc h1 span { color: var(--orange); }
.lsx-insc-intro { font-size: 16px; line-height: 1.6; color: var(--texte); margin: 0 0 24px; }
.lsx-insc-session {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  background: #FBF7F4; border: 1px solid #EFE4DC; border-radius: 14px;
  padding: 16px 20px; margin: 0 0 28px; font-size: 14px; color: var(--texte);
}
.lsx-insc-session strong { color: var(--encre); font-size: 16px; width: 100%; }
.lsx-insc-complet { color: #C0392B; font-weight: 600; }
.lsx-insc-choix { display: flex; flex-direction: column; gap: 10px; }
/* Confirmation affichée après l'inscription (remplace le formulaire) */
.lsx-insc-merci { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 24px; border: 1px solid #F1DCCB; border-radius: 18px; background: #FDF7F2; }
.lsx-insc-merci-ico { width: 64px; height: 64px; border-radius: 50%; background: #FBEBDF; color: #C96A2E; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.lsx-insc-merci h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.25; color: var(--encre); }
.lsx-insc-merci p { margin: 0 0 26px; max-width: 540px; font-size: 16px; line-height: 1.7; color: var(--texte); }
a.lsx-insc-merci-btn { display: inline-block; background: #1F1D22; color: #FFFFFF; text-decoration: none; border-radius: 999px; padding: 15px 30px; font-size: 15px; font-weight: 600; transition: background .2s; }
a.lsx-insc-merci-btn:hover { background: #C96A2E; }
@media (max-width: 767px) { .lsx-insc { padding: 40px 20px 56px; } .lsx-insc h1 { font-size: 30px; } }

/* ---------- Page 404 ---------- */
.lsx-404 { max-width: 760px; margin: 0 auto; padding: 80px 24px 110px; text-align: center; }
.lsx-404 h1 { font-size: 44px; }
.lsx-404 h1 span { color: var(--orange); }
.lsx-404 p { color: var(--texte); }
.lsx-404 .lsx-header-btn { margin-top: 12px; }

/* ---------- Bandeau cookies ---------- */
.lsx-cookies {
  position: fixed; right: 24px; bottom: 24px; z-index: 9999;
  width: 520px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(31,29,34,.18);
  padding: 22px 24px 16px;
  font-size: 13px; line-height: 1.55; color: #333;
}
.lsx-cookies[hidden] { display: none; }
.lsx-cookies-x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--encre); }
.lsx-cookies-titre { text-align: center; font-weight: 600; font-size: 16px; color: var(--encre); margin-bottom: 12px; }
.lsx-cookies-texte { margin: 0 0 14px; }
.lsx-cookies-choix { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lsx-cookies-choix[hidden] { display: none; }
.lsx-cookies-ligne { display: flex; justify-content: space-between; gap: 14px; align-items: center; background: #F7F3F0; border-radius: 8px; padding: 10px 12px; }
.lsx-cookies-ligne b { display: block; color: var(--encre); }
.lsx-cookies-ligne small { display: block; font-size: 12px; color: #6B6560; }
.lsx-cookies-ligne em { font-style: normal; font-size: 12px; color: #3F7D6B; white-space: nowrap; }
.lsx-cookies-ligne input { accent-color: var(--orange); width: 18px; height: 18px; flex-shrink: 0; }
.lsx-cookies-boutons { display: flex; gap: 10px; flex-wrap: wrap; }
.lsx-cb { flex: 1 1 auto; border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--encre); }
.lsx-cb[hidden] { display: none; }
.lsx-cb-noir { background: var(--encre); color: #fff; }
.lsx-cb-clair { background: #fff; color: var(--encre); border-color: #DDD5CE; }
.lsx-cb:hover { opacity: .88; }
.lsx-cookies-liens { display: flex; justify-content: center; gap: 14px; margin-top: 12px; font-size: 11px; }
.lsx-cookies-liens a { color: #555; text-decoration: underline; }
