/* ============================================================================
   careplan_presentation - Charte graphique
   Palette : Creme / Encre / Terra / Moutarde + 5 post-it
   Typo    : Arial partout (demande utilisateur)
   ============================================================================ */

:root {
  --creme:        #FBF3DF;
  --encre:        #2C2117;
  --encre-doux:   #4A3A2C;
  --terra:        #D35A2A;
  --moutarde:     #D6A430;
  --postit-peche:    #FDE8D8;
  --postit-beige:    #F5E3B3;
  --postit-bleu:     #D5E7F2;
  --postit-vert:     #DCECC6;
  --postit-magenta:  #ECD5E0;

  /* Typo : tout en Arial (demande utilisateur). Les deux variables sont
     conservées pour ne pas toucher aux ~50 références, mais pointent désormais
     toutes deux vers Arial. */
  --font-geo:    Arial, Helvetica, sans-serif;
  --font-serif:  Arial, Helvetica, sans-serif;

  --header-h:    72px;
  --baseline-h:  44px;

  --contain:     1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--creme);
  color: var(--encre);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding-bottom: var(--baseline-h);
}
img { max-width: 100%; height: auto; display: block; }

a { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Liens-formulaires (regle ecosysteme : POST en navigation interne) */
form.cp-navform { margin: 0; padding: 0; display: inline; }
form.cp-navform.block { display: block; width: 100%; }
button.cp-navlink {
  background: none; border: 0; padding: 0; font: inherit;
  color: inherit; cursor: pointer; text-align: inherit;
  text-decoration: inherit; display: inline; line-height: inherit;
}
button.cp-navlink:hover { text-decoration: underline; }

/* ===== En-tete fixe ===================================================== */
.cp-header {
  position: sticky; top: 0;
  background: var(--creme);
  border-bottom: 1px solid rgba(44,33,23,.10);
  z-index: 50;
  display: flex; align-items: center;
  padding: 12px 28px;
  gap: 18px;
  min-height: var(--header-h);
}
.cp-header .cp-brand { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.cp-header .cp-brand img { height: 42px; width: auto; flex-shrink: 0; }
.cp-header .cp-brand-text { display: flex; flex-direction: column; min-width: 0; }
.cp-header .cp-brand-title {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 800 !important;
  /* Fluide : tient en largeur sur petit écran (cf. layout.php head). */
  font-size: clamp(17px, 5.6vw, 32px) !important;
  line-height: 1.05;
  letter-spacing: -.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Coloration terra inline (shortcode {t:...}) — utilise dans le titre de
   marque et n'importe quel autre titre ou texte rendu via pres_render_inline. */
.cp-terra { color: var(--terra) !important; }
.cp-encre { color: var(--encre) !important; }
.cp-header .cp-brand-sub {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(11px, 3.2vw, 13px); color: var(--encre-doux);
  line-height: 1.3; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Menu = icone unique + dropdown (toutes tailles d'ecran).
   flex-shrink:0 : le bouton menu garde sa taille, c'est le bloc marque
   (logo + titre/sous-titre) qui se réduit pour tenir en largeur. */
.cp-menu-wrap { position: relative; flex-shrink: 0; }
.cp-menu-toggle {
  background: none; border: 1px solid rgba(44,33,23,.20);
  padding: 8px 14px; cursor: pointer; color: var(--encre);
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; font-family: var(--font-geo);
  font-weight: 500; font-size: 14px;
}
.cp-menu-toggle:hover { background: rgba(211,90,42,.08); border-color: var(--terra); }
.cp-menu-toggle[aria-expanded="true"] { background: var(--terra); color: #fff; border-color: var(--terra); }
.cp-menu-toggle svg { width: 22px; height: 22px; }
.cp-menu-toggle .lbl { letter-spacing: .04em; }
.cp-nav {
  position: absolute; right: 0; top: calc(100% + 8px);
  display: flex; flex-direction: column; min-width: 220px;
  background: var(--creme);
  border: 1px solid rgba(44,33,23,.15);
  border-radius: 8px; padding: 6px;
  box-shadow: 0 14px 30px rgba(44,33,23,.22);
  z-index: 60;
}
.cp-nav[hidden] { display: none; }
.cp-nav form.cp-navform { display: block; width: 100%; }
.cp-nav button.cp-navlink {
  display: block; width: 100%; text-align: left;
  padding: 10px 16px; border-radius: 6px;
  font-family: var(--font-geo); font-weight: 500; font-size: 14.5px;
  color: var(--encre);
}
.cp-nav button.cp-navlink:hover {
  background: rgba(211,90,42,.10); color: var(--terra); text-decoration: none;
}
.cp-nav button.cp-navlink.is-current {
  background: rgba(211,90,42,.10); color: var(--terra); font-weight: 600;
}
/* Lien plaquette (PDF) en fin de menu : meme allure que les items, separe
   par un filet, en terracotta avec icone de telechargement. */
.cp-nav a.cp-navlink.cp-nav-plaquette {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  padding: 10px 16px; border-radius: 6px;
  margin-top: 4px; border-top: 1px solid rgba(44,33,23,.12);
  font-family: var(--font-geo); font-weight: 600; font-size: 14.5px;
  color: var(--terra); text-decoration: none;
}
.cp-nav a.cp-navlink.cp-nav-plaquette:hover {
  background: rgba(211,90,42,.10); text-decoration: none;
}

/* ===== Page wrap ======================================================== */
.cp-page {
  flex: 1; width: 100%;
  max-width: var(--contain);
  margin: 0 auto;
  padding: 28px 28px 80px;
}

/* ===== En-tête de page : image GAUCHE + titre + chapô (paramétrable) ===
   Ratio strict 1/3 image + 2/3 texte. Image stretch = même hauteur que
   le bloc texte. Aucune mesure absolue, tout en proportions. */
.cp-page-header { margin: 4px 0 22px; }
.cp-page-header.has-img {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 22px;
  align-items: stretch;
}
.cp-page-header-img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(44,33,23,.18);
  display: block;
}
.cp-page-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.cp-page-header-text .cp-page-title { margin-top: 0; }
.cp-page-header-text .cp-page-chapo { margin-bottom: 0; }

/* ===== Titre de page ==================================================== */
.cp-page-title {
  font-family: var(--font-geo); font-weight: 700;
  font-size: 32px; line-height: 1.15;
  color: var(--encre); margin: 4px 0 6px;
}
.cp-page-title .accent { color: var(--terra); }
.cp-page-chapo {
  font-family: var(--font-serif); font-style: italic;
  font-size: 17px; color: var(--encre-doux);
  margin: 0 0 28px;
}

/* ===== Post-it (composition paper-board) =============================== */
.postit-board {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 26px;
  padding: 28px 0 32px;
  justify-content: center;
}
.postit {
  position: relative;
  flex: 1 1 280px;
  max-width: 360px;
  padding: 22px 22px 24px;
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(44,33,23,.10), 0 1px 0 rgba(0,0,0,.04);
  background: var(--postit-peche);
  transition: transform .25s ease;
}
.postit:hover { transform: rotate(0deg) translateY(-3px); }
.postit h3 {
  font-family: var(--font-geo); font-weight: 700;
  margin: 0 0 8px; font-size: 18px; color: var(--encre);
  letter-spacing: -.005em;
}
.postit .body {
  font-family: var(--font-serif); font-size: 14.5px;
  color: var(--encre-doux); line-height: 1.55;
}
.postit .body p { margin: 0 0 8px; }
.postit .body p:last-child { margin: 0; }
.postit .body strong {
  font-family: var(--font-geo); font-weight: 600; color: var(--encre);
}
.postit img {
  border-radius: 4px; margin: 0 0 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.10);
}
.postit.is-card { cursor: pointer; }
.postit.is-card:hover { box-shadow: 0 12px 22px rgba(44,33,23,.18); }

/* ===== Image de garde (accueil) + étiquette credo qui déborde ========== */
/* Hero = image pleine largeur, étiquette ABSOLUTE en bas-droite,
   débordant à droite ET légèrement vers le bas — façon plaquette. */
.cp-hero {
  position: relative;
  width: 100%;
  margin: 6px 0 32px;
}
.cp-hero-img {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: 8px;
  /* Pas d'ombre portée sur l'image — gênant à l'œil. */
}
.cp-hero-fallback {
  display: flex; align-items: center; justify-content: center;
  height: 320px; background: var(--postit-beige);
  border-radius: 8px;
  font-family: var(--font-serif); font-style: italic;
  color: var(--encre-doux);
}
/* L’étiquette : surface crème, débordant le côté droit de l’image */
.cp-credo-tag {
  position: absolute;
  right: 30px; bottom: 30px;
  width: min(420px, 60%);
  background: var(--creme);
  border: 1px solid rgba(44,33,23,.15);
  border-radius: 6px;
  padding: 22px 26px 20px;
  box-shadow: 0 16px 32px rgba(44,33,23,.28);
  z-index: 2;
}
/* Credo = ACCROCHE forte : sans-serif géo, bicolore (terra/encre), serré */
.cp-credo-tag .credo {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 800 !important;
  font-size: 30px !important;
  line-height: 1.05 !important;
  letter-spacing: -.015em;
  color: var(--encre) !important;
  margin: 0 0 8px !important;
}
/* Sub-credo : court, italique serré, sous la ligne du credo */
.cp-credo-tag .subcredo {
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  font-size: 14.5px !important;
  line-height: 1.35 !important;
  color: var(--encre-doux) !important;
  margin: 0 !important;
}
.cp-credo-tag .subcredo p { margin: 0 0 4px; }
.cp-credo-tag .subcredo p:last-child { margin: 0; }

.cp-about-link {
  text-align: right; margin: 32px 0 0;
  padding-right: 110px;  /* aligne avec le bouton contact flottant */
}
.cp-about-link a {
  font-family: var(--font-geo); font-weight: 500;
  font-size: 14px; color: var(--encre);
  display: inline-flex; align-items: center; gap: 6px;
}
.cp-about-link a:hover { color: var(--terra); text-decoration: none; }

/* ===== Plaquette telechargeable (accueil) ============================== */
.cp-plaquette { text-align: center; margin: 36px 0 0; }
.cp-plaquette-dl {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  background: var(--terra); color: #fff;
  font-family: var(--font-geo); font-weight: 700; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(211,90,42,.28);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cp-plaquette-dl i { font-size: 22px; }
.cp-plaquette-dl:hover {
  color: #fff; text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(211,90,42,.36);
}

/* ===== Page Les fonctions : post-it + toggle accroche/détail =========== */
.postit-board-fonctions { align-items: flex-start; }
.postit-fonction { display: flex; flex-direction: column; gap: 10px; }
.postit-fonction-head {
  display: flex; align-items: center; gap: 10px;
}
.postit-fonction-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.65);
  border-radius: 50%;
  color: var(--terra);
  font-size: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.postit-fonction h3 {
  flex: 1; min-width: 0;
  font-family: var(--font-geo); font-weight: 700;
  margin: 0; font-size: 18px; color: var(--encre);
  letter-spacing: -.005em;
}
/* Image GAUCHE du bloc titre, format rectangulaire */
.postit-fonction-img {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
}
body.cp-fn-focus .postit-fonction.is-open .postit-fonction-img {
  width: 96px; height: 96px;
}
.cp-fonction-accroche {
  font-family: var(--font-serif); font-size: 14.5px;
  color: var(--encre-doux); line-height: 1.55;
}
.cp-fonction-accroche p { margin: 0 0 6px; }
.cp-fonction-accroche p:last-child { margin: 0; }
.cp-fonction-accroche strong {
  font-family: var(--font-geo); font-weight: 600; color: var(--encre);
}
/* Toggle discret : texte italique + chevron, façon note manuscrite */
.cp-fonction-toggle {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0; margin: 2px 0 0;
  color: var(--terra);
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; line-height: 1.2;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px dotted transparent;
}
.cp-fonction-toggle:hover { border-bottom-color: var(--terra); }
.cp-fonction-toggle .chev {
  transition: transform .25s; font-size: 10px;
}
.cp-fonction-toggle .lbl-less { display: none; }
.postit-fonction.is-open .cp-fonction-toggle .chev { transform: rotate(180deg); }
.postit-fonction.is-open .cp-fonction-toggle .lbl-more { display: none; }
.postit-fonction.is-open .cp-fonction-toggle .lbl-less { display: inline; }
.cp-fonction-body {
  background: rgba(255,255,255,.55);
  border-radius: 4px;
  padding: 12px 14px;
  margin-top: 2px;
  font-family: var(--font-serif); font-size: 14px;
  color: var(--encre-doux); line-height: 1.55;
}
.cp-fonction-body p { margin: 0 0 7px; }
.cp-fonction-body p:last-child { margin: 0; }
.cp-fonction-body strong {
  font-family: var(--font-geo); font-weight: 600; color: var(--encre);
}
/* Quand le post-it est ouvert : on neutralise la rotation pour confort lecture */
.postit-fonction.is-open {
  transform: rotate(0deg) translateY(-2px) !important;
  z-index: 2;
}
/* Mode FOCUS : le post-it ouvert occupe la pleine largeur du conteneur,
   les autres sont masques en JS (display:none). Centre + plus aere. */
body.cp-fn-focus .postit-fonction.is-open {
  max-width: 760px !important;
  flex: 1 1 100% !important;
  padding: 28px 32px 32px !important;
}
body.cp-fn-focus .postit-fonction.is-open h3 { font-size: 22px; }
body.cp-fn-focus .postit-fonction.is-open .cp-fonction-accroche { font-size: 16px; }
body.cp-fn-focus .postit-fonction.is-open .cp-fonction-body { font-size: 15px; }
body.cp-fn-focus .postit-fonction.is-open .postit-fonction-icon {
  width: 46px; height: 46px; font-size: 22px;
}

/* Boutons de navigation focus : prev/next fixes sur les cotes, close en haut */
.cp-fn-nav {
  position: fixed;
  z-index: 38;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(44,33,23,.18);
  border-radius: 999px;
  color: var(--terra);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(44,33,23,.20);
  display: none;
  align-items: center; justify-content: center;
  font-family: var(--font-geo);
  transition: transform .15s, background .15s;
}
.cp-fn-nav:hover { background: #fff; transform: scale(1.06); }
body.cp-fn-focus .cp-fn-nav { display: inline-flex; }
.cp-fn-prev, .cp-fn-next {
  top: 50%;
  width: 52px; height: 52px;
  font-size: 20px;
  transform: translateY(-50%);
}
.cp-fn-prev:hover, .cp-fn-next:hover { transform: translateY(-50%) scale(1.06); }
.cp-fn-prev { left: 24px; }
.cp-fn-next { right: 24px; }
/* Bouton "fermer le détail" global (top-right viewport, fixe) */
.cp-fn-close {
  top: 88px; right: 24px;
  width: 52px; height: 52px;
  font-size: 20px;
  padding: 0;
}

/* Dots progression — fixes au-dessus de la baseline */
.cp-fonctions-dots {
  position: fixed;
  left: 50%;
  bottom: calc(var(--baseline-h) + 14px);
  transform: translateX(-50%);
  display: none;
  gap: 10px;
  z-index: 36;
  padding: 7px 14px;
  background: rgba(251,243,223,.94);
  border: 1px solid rgba(44,33,23,.12);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(44,33,23,.15);
}
body.cp-fn-focus .cp-fonctions-dots { display: inline-flex; }
.cp-fonctions-dots span {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(44,33,23,.25);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.cp-fonctions-dots span:hover { background: rgba(44,33,23,.45); }
.cp-fonctions-dots span.is-current {
  background: var(--terra);
  transform: scale(1.35);
}

@media (max-width: 760px) {
  .cp-fn-prev { left: 8px; width: 44px; height: 44px; font-size: 16px; }
  .cp-fn-next { right: 8px; width: 44px; height: 44px; font-size: 16px; }
  .cp-fn-close { top: 72px; right: 8px; width: 44px; height: 44px; font-size: 16px; }
  body.cp-fn-focus .postit-fonction.is-open { padding: 20px 22px 24px !important; }
}

/* CTA discrete "Voir le detail" (en grid seulement) */
.cp-fonction-cta {
  align-self: flex-start;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--terra);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px dotted transparent;
  transition: border-color .2s;
}
.cp-fonction-cta i { font-size: 11px; transition: transform .25s; }
body:not(.cp-fn-focus) .postit-fonction:hover .cp-fonction-cta {
  border-bottom-color: var(--terra);
}
body:not(.cp-fn-focus) .postit-fonction:hover .cp-fonction-cta i { transform: translateX(3px); }
/* En mode focus la CTA n'a plus de sens : on la masque */
body.cp-fn-focus .cp-fonction-cta { display: none; }

/* Sous-items : MASQUES par defaut, visibles seulement quand la carte est
   en focus (la liste = LE detail). */
.cp-fonction-subitems {
  list-style: none;
  margin: 8px 0 2px;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.postit-fonction.is-open .cp-fonction-subitems { display: flex; }

/* Invite contact UNIQUE en bas de page (sous les blocs). Visible SEULEMENT en
   mode focus (un bloc ouvert). Grosse marge basse = calc(baseline + 30px) pour
   ne JAMAIS passer sous les points de progression fixes (.cp-fonctions-dots,
   posés à bottom: baseline + 14px). */
.cp-fonctions-invite {
  display: none;
  max-width: 760px;
  margin: 26px auto calc(var(--baseline-h) + 30px);
  padding: 14px 18px;
  background: rgba(255,255,255,.55);
  border-left: 3px solid var(--terra);
  border-radius: 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--encre);
  text-align: center;
}
body.cp-fn-focus .cp-fonctions-invite { display: block; }
.cp-fonctions-invite a {
  color: var(--terra);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cp-fonctions-invite a:hover { text-decoration: underline; }
.cp-fonctions-invite i { font-size: 12px; transition: transform .2s; }
.cp-fonctions-invite a:hover i { transform: translateX(3px); }
.cp-subitem {
  display: flex; flex-direction: column;
  gap: 2px;
  font-family: var(--font-serif);
  color: var(--encre-doux);
}
.cp-subitem-head {
  display: flex; align-items: center; gap: 8px;
}
.cp-subitem-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.65);
  border-radius: 50%;
  color: var(--terra);
  font-size: 12px;
  box-shadow: 0 1px 1px rgba(0,0,0,.06);
}
/* Taille subitem = taille du body fonction (14.5px) ; italique sur la
   description = la seule difference visuelle. */
.cp-subitem-titre {
  font-family: var(--font-geo);
  font-weight: 600;
  color: var(--encre);
  font-size: 14.5px;
  line-height: 1.25;
}
.cp-subitem-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--encre-doux);
  padding-left: 34px;  /* aligne sous le titre (26px icone + 8px gap) */
}
/* En mode focus, on grandit pour matcher le rendu confort lecture */
body.cp-fn-focus .postit-fonction.is-open .cp-subitem-titre,
body.cp-fn-focus .postit-fonction.is-open .cp-subitem-desc {
  font-size: 16px;
  line-height: 1.5;
}

/* Card cliquable + a11y focus en mode grid */
body:not(.cp-fn-focus) .postit-fonction { cursor: pointer; }
body:not(.cp-fn-focus) .postit-fonction:focus { outline: 2px solid var(--terra); outline-offset: 3px; }

/* ===== Page utilisateurs (3 roles) — 2 blocs : head (pic + titre) + body */
.role-card {
  display: flex; flex-direction: column;
  background: var(--postit-peche);   /* fallback si bg_color vide */
  border-radius: 6px;
  padding: 0;
  margin: 18px 0;
  box-shadow: 0 6px 14px rgba(44,33,23,.10);
  overflow: hidden;
}
/* Bloc 1 — Image + titre sur UNE ligne */
.role-card-head {
  display: flex; align-items: center; gap: 22px;
  padding: 18px 26px;
  border-bottom: 1px solid rgba(44,33,23,.14);
  background: rgba(255,255,255,.18);
}
.role-card .avatar {
  flex-shrink: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-geo); font-weight: 700; font-size: 24px;
  color: var(--terra);
  box-shadow: 0 2px 4px rgba(0,0,0,.10);
  overflow: hidden;
}
.role-card h3 {
  flex: 1; min-width: 0;
  font-family: var(--font-geo); font-weight: 700; font-size: 20px;
  margin: 0; color: var(--encre);
  letter-spacing: -.005em;
}
/* Bloc 2 — Body en dessous, pleine largeur */
.role-card .body {
  padding: 18px 26px 22px;
  font-family: var(--font-serif); font-size: 15px; color: var(--encre-doux);
  line-height: 1.6;
}
.role-card .body p { margin: 0 0 8px; }
.role-card .body p:last-child { margin: 0; }
.role-card .body strong { font-family: var(--font-geo); font-weight: 600; color: var(--encre); }

/* ===== Page Nous connaitre ============================================ */
.about-block {
  background: var(--creme);   /* fallback si bg_color vide */
  padding: 18px 22px;
  border-radius: 6px;
  margin: 14px 0;
}
.about-block h2 {
  font-family: var(--font-geo); font-weight: 700;
  font-size: 22px; color: var(--terra);
  margin: 0 0 8px;
}
.about-block .nos-prefix {
  font-family: var(--font-serif); font-style: italic; color: var(--encre);
}
.about-block .body {
  font-family: var(--font-serif); font-size: 16px;
  color: var(--encre-doux); line-height: 1.65;
}
.about-block .body p { margin: 0 0 10px; }
.about-block .body strong {
  font-family: var(--font-geo); font-weight: 600; color: var(--encre);
}

/* ===== Mot cliquable (dictionnaire) ===================================== */
button.cp-dico-link {
  background: transparent;
  border: 0 !important;                          /* RESET du cadre default browser */
  border-bottom: 1.5px dotted var(--terra) !important;
  color: var(--terra);
  cursor: pointer;
  font: inherit; padding: 0;
  outline: 0;
}
button.cp-dico-link:hover { background: rgba(211,90,42,.08); }
button.cp-dico-link:focus { outline: 0; box-shadow: none; }
button.cp-dico-link:focus-visible { outline: 2px solid rgba(211,90,42,.45); outline-offset: 2px; border-radius: 2px; }

/* ===== Bouton contact flottant ========================================= */
.cp-contact-floating {
  position: fixed;
  right: 24px; bottom: calc(var(--baseline-h) + 18px);
  z-index: 40;
  background: var(--terra); color: #fff;
  border: 0; border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-geo); font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 20px rgba(211,90,42,.40);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.cp-contact-floating:hover {
  background: #b94b22; text-decoration: none; color: #fff;
}
.cp-contact-floating svg { width: 18px; height: 18px; }

/* ===== Baseline (footer fixe) ========================================== */
.cp-baseline {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--baseline-h);
  background: rgba(251,243,223,.96);
  border-top: 1px solid rgba(44,33,23,.10);
  display: flex; align-items: center;
  z-index: 45;
}
.cp-baseline-track {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 30px;
  font-family: var(--font-geo); font-weight: 600;
  color: var(--terra);
  font-size: 14px; letter-spacing: 0.25em;
}
.cp-baseline-track .puce {
  color: var(--encre); opacity: .55;
  letter-spacing: 0;
}
.cp-baseline .legal-buttons {
  display: flex; gap: 4px; padding: 0 12px;
}
.cp-baseline .legal-buttons button {
  background: none; border: 0; padding: 6px 8px;
  color: var(--encre-doux); cursor: pointer;
  font-size: 14px; opacity: .75;
}
.cp-baseline .legal-buttons button:hover { opacity: 1; color: var(--terra); }

/* Carrousel mobile : verbes CENTRES dans le viewport (legal-buttons en
   absolute pour ne plus decaler le centre du track). */
.cp-baseline.is-mobile {
  position: fixed; left: 0; right: 0; bottom: 0;
}
.cp-baseline.is-mobile .cp-baseline-track {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  /* Lettres resserrées sur smartphone : le verbe tient mieux en largeur. */
  letter-spacing: 0.06em;
}
.cp-baseline.is-mobile .cp-baseline-track .slot {
  flex: 0 1 auto;
  text-align: center;
}
.cp-baseline.is-mobile .legal-buttons {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  background: rgba(251,243,223,.85);
  border-radius: 999px;
  padding: 2px 2px;
  gap: 0;                 /* icônes resserrées sur smartphone */
  z-index: 2;
}
.cp-baseline.is-mobile .legal-buttons button { padding: 6px 4px; }

/* ===== Form contact ==================================================== */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px;
  margin: 16px 0;
}
.contact-side {
  background: var(--postit-beige);
  border-radius: 6px; padding: 22px 24px;
  box-shadow: 0 6px 14px rgba(44,33,23,.10);
}
.contact-side h3 {
  font-family: var(--font-geo); font-weight: 700;
  margin: 0 0 14px; color: var(--encre); font-size: 19px;
}
.contact-side .line { margin: 6px 0; font-size: 14.5px; }
.contact-side .line strong {
  font-family: var(--font-geo); font-weight: 600;
  display: inline-block; min-width: 86px; color: var(--encre);
}
/* Apps de contact : icônes cliquables (mail, tél, WhatsApp, Telegram, Signal) */
.contact-apps { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 2px; }
.contact-app {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 8px;
  text-decoration: none; color: var(--encre);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(44,33,23,.08);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.contact-app:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 5px 12px rgba(44,33,23,.14);
}
.contact-app__icon {
  flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--app-color, var(--terra)); color: #fff;
  font-size: 20px; line-height: 1;
}
.contact-app__icon i { font-size: 1.15em; }   /* les glyphes de marque rendent + petits */
.contact-app__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.contact-app__label {
  font-family: var(--font-geo); font-weight: 700; font-size: 14px; color: var(--encre);
}
.contact-app__val {
  font-size: 12.5px; color: var(--encre-doux);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px;
}
/* Couleurs de marque par app */
.contact-app--email    { --app-color: var(--terra); }
.contact-app--phone    { --app-color: var(--moutarde); }
.contact-app--whatsapp { --app-color: #25D366; }
.contact-app--telegram { --app-color: #229ED9; }
.contact-app--signal   { --app-color: #3A76F0; }
.contact-form .field {
  display: flex; flex-direction: column; margin: 0 0 14px;
}
.contact-form label {
  font-family: var(--font-geo); font-weight: 500; font-size: 13.5px;
  color: var(--encre); margin: 0 0 4px;
}
.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border: 1px solid rgba(44,33,23,.18);
  border-radius: 4px;
  font: inherit; background: #fff;
  color: var(--encre);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--terra); border-color: transparent; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form .consent {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--encre-doux);
}
.contact-form .consent input { margin-top: 4px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form button {
  background: var(--terra); color: #fff;
  border: 0; border-radius: 4px;
  padding: 11px 22px;
  font-family: var(--font-geo); font-weight: 600; font-size: 15px;
  cursor: pointer;
}
.contact-form button:hover { background: #b94b22; }
.cp-flash {
  padding: 12px 16px; border-radius: 4px; margin: 12px 0;
  font-family: var(--font-geo); font-weight: 500;
}
.cp-flash.is-ok  { background: #DCECC6; color: #294a13; }
.cp-flash.is-err { background: #ECD5E0; color: #6a1f3c; }

/* ===== Modale generique (dictionnaire) ================================ */
.cp-modal-back {
  display: none; position: fixed; inset: 0;
  background: rgba(44,33,23,.55);
  z-index: 9000;
  align-items: center; justify-content: center;
  padding: 24px;
}
.cp-modal-back.is-open { display: flex; }
.cp-modal {
  background: var(--creme); border-radius: 6px;
  width: min(560px, 96vw); max-height: 84vh;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 50px rgba(44,33,23,.30);
  overflow: hidden;
  border: 1px solid rgba(44,33,23,.18);
}
.cp-modal header {
  background: var(--terra); color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
}
.cp-modal header h3 {
  margin: 0; font-family: var(--font-geo); font-weight: 600; font-size: 16px;
  flex: 1;
}
.cp-modal header button.close {
  background: none; border: 0; color: #fff; font-size: 22px;
  cursor: pointer; padding: 0 4px;
}
.cp-modal .body {
  padding: 18px 22px; overflow-y: auto;
  font-family: var(--font-serif); font-size: 15px;
  color: var(--encre); line-height: 1.6;
}
.cp-modal .body p { margin: 0 0 8px; }
.cp-modal .body strong {
  font-family: var(--font-geo); font-weight: 600; color: var(--encre);
}

/* ===== Responsive ====================================================== */
@media (max-width: 760px) {
  .cp-page { padding: 18px 16px 100px; }
  .cp-header { padding: 10px 14px; gap: 10px; }
  .cp-header .cp-brand img { height: 36px; }
  /* Titre/sous-titre : tailles FLUIDES (clamp) — plus de valeur figée ici,
     elles se réduisent d'elles-mêmes pour tenir en largeur. */
  .cp-menu-toggle { padding: 8px 12px; }
  .cp-menu-toggle .lbl { display: none; }
  .cp-nav { right: 0; min-width: 200px; }
  .cp-credo-tag {
    position: static;
    right: auto; bottom: auto;
    width: auto;
    margin: -28px 12px 0; /* léger chevauchement sur le bas de l’image */
  }
  .cp-credo-tag .credo { font-size: 22px; }
  .cp-credo-tag .subcredo { font-size: 14.5px; }
  .cp-page-title { font-size: 24px; }
  .cp-page-chapo { font-size: 15px; }
  .postit { max-width: 100%; }
  .contact-wrap { grid-template-columns: 1fr; gap: 24px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .role-card-head { padding: 14px 18px; gap: 14px; }
  .role-card .avatar { width: 60px; height: 60px; font-size: 20px; }
  .role-card h3 { font-size: 17px; }
  .role-card .body { padding: 14px 18px 18px; font-size: 14.5px; }
  .cp-about-link { padding-right: 24px; }
  .cp-contact-floating { right: 14px; padding: 10px 16px; font-size: 14px; }
  .cp-fonction-card { padding: 14px 16px 16px; }
  .cp-fonction-title { font-size: 17px; }
}

/* Très petits écrans : on resserre encore l'en-tête pour garantir que
   logo + titre + sous-titre + menu tiennent sur une seule ligne. */
@media (max-width: 380px) {
  .cp-header { padding: 8px 10px; gap: 8px; }
  .cp-header .cp-brand { gap: 9px; }
  .cp-header .cp-brand img { height: 30px; }
  .cp-menu-toggle { padding: 7px 9px; }
  .cp-menu-toggle svg { width: 20px; height: 20px; }
}

@media print {
  .cp-baseline, .cp-contact-floating, .cp-burger,
  .cp-nav, .cp-modal-back { display: none !important; }
}
