/* ==========================================================================
   Contenus : réalisations, actualités, recrutement, équipe, contact, admin.
   Classes préfixées cx- ; composants de base dans style.css.
   ========================================================================== */

.cx-centre { text-align: center; margin: 40px 0 0; }
.cx-titre-bloc { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 24px; }
.cx-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cx-badges--media { position: absolute; top: 12px; left: 12px; }
.cx-badges--media .badge { position: static; }
a.cx-badge-lien { text-decoration: none; }
a.cx-badge-lien:hover { background: var(--rouge-fonce); }
.cx-chapo { font-size: 1.2rem; line-height: 1.55; font-weight: 500; margin-bottom: 1.4em; }
.cx-danger { color: var(--rouge-fonce) !important; }

/* ---------- Bandeau de fiche ---------- */
.cx-bandeau-fiche { padding: 110px 0 56px; }
.cx-bandeau-fiche h1 { max-width: 900px; }
.cx-bandeau-fiche .cx-badges { margin-bottom: 14px; }
.cx-surtitre-clair { color: var(--jaune); }
.cx-bandeau-meta { font-size: .85rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ddd !important; }

/* ---------- Barre « éditeur » sur les pages publiques ---------- */
.cx-barre-editeur {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; margin-bottom: 24px; background: #fff9d6; border-left: 4px solid var(--jaune); font-size: .88rem;
}
.cx-modifier {
  position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 0; border-radius: var(--rayon); background: var(--jaune); color: var(--noir);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--ombre);
}
.cx-modifier svg { width: 14px; height: 14px; }
.cx-modifier:hover { background: var(--jaune-fonce); }
.cx-modifier--bandeau { position: static; margin-top: 8px; }

/* ---------- Filtres ---------- */
.cx-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cx-filtre {
  padding: 8px 16px; border: 1.5px solid var(--gris-bord); border-radius: 20px; background: var(--blanc); color: var(--texte);
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: border-color .15s, background .15s;
}
.cx-filtre:hover { border-color: var(--noir); }
.cx-filtre[aria-pressed="true"] { background: var(--noir); border-color: var(--noir); color: var(--blanc); }

/* ---------- Cartes (liste) ---------- */
.cx-carte { position: relative; display: flex; flex-direction: column; }
.cx-carte > .carte { flex: 1; }
.cx-carte[hidden] { display: none; }
.cx-grille { margin-bottom: 8px; }

/* ---------- Fiche détaillée ---------- */
.cx-fiche .prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.cx-fiche .prose li { margin-bottom: .3em; }
.cx-fiche .prose h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; }
.cx-infos { position: sticky; top: calc(var(--entete-h) + 24px); background: var(--gris-clair); border-top: 4px solid var(--rouge); padding: 24px; }
body.edition-active .cx-infos { top: calc(var(--entete-h) + 68px); }
.cx-infos dl { margin: 0 0 20px; display: grid; gap: 14px; }
.cx-infos dt, .cx-infos--ligne dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-texte); }
.cx-infos dd, .cx-infos--ligne dd { margin: 2px 0 0; font-weight: 500; }
.cx-infos--ligne {
  position: static; display: flex; flex-wrap: wrap; gap: 18px 36px; margin: 28px 0 0; padding: 18px 20px; border-top-width: 3px;
}

.cx-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cx-galerie button { padding: 0; border: 0; background: var(--noir-3); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--rayon); cursor: zoom-in; }
.cx-galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; }
.cx-galerie button:hover img { transform: scale(1.05); opacity: .9; }
.cx-video { position: relative; aspect-ratio: 16 / 9; background: var(--noir-3); }
.cx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Visionneuse plein écran */
.cx-visionneuse {
  position: fixed; inset: 0; z-index: 950; background: rgba(0, 0, 0, .94); display: flex; align-items: center; justify-content: center;
  padding: 50px 70px; animation: apparition .15s ease-out;
}
.cx-visionneuse figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-height: 100%; }
.cx-visionneuse img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; }
.cx-visionneuse figcaption { color: #aaa; font-size: .82rem; letter-spacing: .1em; }
.cx-visionneuse button { position: absolute; border: 0; background: none; color: var(--blanc); font-size: 2.6rem; line-height: 1; padding: 10px 16px; }
.cx-visionneuse button:hover { color: var(--rouge); }
.cx-visionneuse__fermer { top: 10px; right: 10px; }
.cx-visionneuse__nav--prec { left: 6px; top: 50%; transform: translateY(-50%); }
.cx-visionneuse__nav--suiv { right: 6px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) { .cx-visionneuse { padding: 60px 8px; } .cx-visionneuse__nav--prec, .cx-visionneuse__nav--suiv { top: auto; bottom: 8px; transform: none; } }

/* Appel à l'action (section noire) */
.cx-cta { text-align: center; }
.cx-cta h2 { margin-bottom: 14px; }
.cx-cta p { max-width: 640px; margin: 0 auto 26px; color: #bbb; }

/* ---------- Recrutement ---------- */
.cx-offres { display: grid; gap: 14px; }
.cx-offre {
  display: flex; align-items: center; gap: 20px; padding: 24px 26px; background: var(--blanc); color: inherit; text-decoration: none;
  border: 1.5px solid var(--gris-bord); border-left: 5px solid var(--rouge); border-radius: var(--rayon); transition: border-color .15s, box-shadow .2s, transform .2s;
}
.cx-offre:hover { border-color: var(--noir); border-left-color: var(--rouge); box-shadow: var(--ombre); transform: translateY(-2px); }
.cx-offre__corps { flex: 1; min-width: 0; }
.cx-offre__titre { font-size: 1.25rem; margin: 10px 0 4px; }
.cx-offre__meta { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-texte); margin: 0 0 8px; }
.cx-offre__resume { margin: 0; font-size: .95rem; color: var(--gris-texte); }
.cx-offre__fleche { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--noir); color: var(--blanc); transition: background .15s; }
.cx-offre__fleche svg { width: 20px; height: 20px; }
.cx-offre:hover .cx-offre__fleche { background: var(--rouge); }
.cx-offres .cx-modifier { top: 12px; right: 84px; }

.cx-valeur { background: var(--blanc); padding: 28px 24px; border-radius: var(--rayon); border-top: 4px solid var(--rouge); }
.cx-valeur__num { display: block; font-size: 2rem; font-weight: 700; color: var(--rouge); line-height: 1; margin-bottom: 14px; }
.cx-valeur h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.cx-valeur p { margin: 0; color: var(--gris-texte); font-size: .95rem; }

/* Panneau de formulaire (candidature, contact) */
.cx-panneau { background: var(--gris-clair); padding: 30px 28px; border-radius: var(--rayon); border-top: 4px solid var(--rouge); }
.cx-panneau__titre { font-size: 1.4rem; margin-bottom: 6px; }
.cx-panneau > .aide { display: block; color: var(--gris-texte); font-size: .92rem; margin-bottom: 20px; }
.cx-fiche .cx-panneau { position: sticky; top: calc(var(--entete-h) + 24px); }
body.edition-active .cx-fiche .cx-panneau { top: calc(var(--entete-h) + 68px); }

.cx-depot {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--blanc); border: 1.5px dashed var(--gris-bord);
  border-radius: var(--rayon); cursor: pointer; transition: border-color .15s;
}
.cx-depot:hover, .cx-depot:focus-within { border-color: var(--noir); }
.cx-depot--plein { border-style: solid; border-color: var(--vert); }
.cx-depot__icone { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--noir); color: var(--blanc); font-weight: 700; }
.cx-depot--plein .cx-depot__icone { background: var(--vert); }
.cx-depot__texte { font-size: .88rem; color: var(--gris-texte); overflow-wrap: anywhere; }
.champ--erreur .cx-depot { border-color: var(--rouge); }

/* ---------- Équipe ---------- */
.cx-histoire .prose { margin-top: 8px; }
.cx-valeurs-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cx-valeurs-liste li { padding: 18px 20px; border-left: 4px solid var(--rouge); background: var(--gris-clair); }
.cx-valeurs-liste strong { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; margin-bottom: 4px; }
.cx-valeurs-liste p { margin: 0; color: var(--gris-texte); font-size: .95rem; }

.cx-membre { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.cx-membre__photo { aspect-ratio: 1; background: var(--noir); position: relative; overflow: hidden; }
.cx-membre__photo img { width: 100%; height: 100%; object-fit: cover; }
.cx-membre__initiales {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--blanc);
  font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: .04em;
  background: radial-gradient(circle at 30% 20%, #2a2a2a 0%, var(--noir) 70%);
}
.cx-membre__initiales::after { content: ""; position: absolute; left: 50%; bottom: 22%; width: 38px; height: 4px; margin-left: -19px; background: var(--rouge); }
.cx-membre__corps { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.cx-membre__nom { font-size: 1.2rem; margin: 0; }

/* ---------- Contact ---------- */
.cx-contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.cx-coordonnees { background: var(--noir); color: var(--blanc); padding: 30px 28px; border-radius: var(--rayon); border-top: 4px solid var(--jaune); }
.cx-coord { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 20px; }
.cx-coord li { display: flex; gap: 14px; align-items: flex-start; }
.cx-coord__icone { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--noir-3); color: var(--jaune); }
.cx-coord__icone svg { width: 20px; height: 20px; }
.cx-coord__libelle { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #999; margin-bottom: 2px; }
.cx-coord p { margin: 0; }
.cx-coord a { color: var(--blanc); text-decoration: none; font-size: 1.05rem; font-weight: 500; }
.cx-coord a:hover { color: var(--jaune); }
.cx-rappel-prestation { padding: 10px 14px; background: var(--blanc); border-left: 4px solid var(--rouge); font-size: .92rem; }
.cx-rappel-prestation a { font-weight: 700; }
.cx-carte-entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.cx-carte-entete .cx-titre-bloc { margin-bottom: 6px; }
.cx-carte-entete p { margin: 0; color: var(--gris-texte); }
.cx-plan { position: relative; height: 420px; background: var(--gris-fond); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.cx-plan iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) {
  .cx-contact { grid-template-columns: 1fr; }
  .cx-plan { height: 320px; }
}

/* ==========================================================================
   Administration
   ========================================================================== */
.cx-admin-tete h1 { margin-bottom: 8px; }
.cx-admin-tete p { color: #bbb; margin: 0; }
.cx-admin { padding-top: 32px; }
.cx-acces { text-align: center; padding: 48px 32px; }
.cx-acces p { color: var(--gris-texte); max-width: 520px; margin: 0 auto 24px; }
.cx-encadre { background: var(--gris-clair); border-radius: var(--rayon); border-top: 4px solid var(--noir); padding: 24px 26px; }
.cx-encadre--danger { border-top-color: var(--rouge); background: #fff4f6; }
.cx-encadre h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; }
.cx-liste { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .93rem; }

.cx-admin-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cx-admin-entete h2 { font-size: 1.4rem; margin: 0; }
.cx-admin-entete .aide, .cx-tableau .aide, .cx-statut-ligne .aide { color: var(--gris-texte); font-size: .82rem; margin: 2px 0 0; }
.cx-admin-entete__droite { display: flex; align-items: center; gap: 12px; }
.cx-tableau .cx-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
.cx-tableau td:last-child { width: 1%; white-space: nowrap; }
.cx-cellule-titre { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.cx-mini-avatar {
  display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  background: var(--noir); color: var(--blanc); font-size: .74rem; font-weight: 700;
}
.cx-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .cx-tableau thead { display: none; }
  .cx-tableau, .cx-tableau tbody, .cx-tableau tr, .cx-tableau td { display: block; width: 100%; }
  .cx-tableau tr { padding: 12px 0; border-bottom: 1px solid var(--gris-bord); }
  .cx-tableau td { border: 0; padding: 4px 0; }
  .cx-tableau td:last-child { width: 100%; white-space: normal; }
  .cx-tableau .cx-actions { flex-wrap: wrap; }
  .cx-tableau td[data-label]:not([data-label="Titre"]):not([data-label="Membre"])::before {
    content: attr(data-label) " : "; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-texte);
  }
  .cx-tableau td[data-label="Actions"]::before, .cx-tableau td[data-label="Ordre"]::before { display: block; margin-bottom: 4px; }
  .cx-tableau tr:hover td { background: none; }
}

.cx-rappel { background: #fff9d6; border-left: 4px solid var(--jaune); padding: 14px 16px; margin-bottom: 24px; font-size: .92rem; }
.cx-rappel > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cx-rappel code, .cx-form code { background: rgba(0, 0, 0, .07); padding: 2px 6px; border-radius: 3px; font-size: .85rem; overflow-wrap: anywhere; }
.cx-rappel .aide { display: block; color: var(--gris-texte); font-size: .82rem; margin: 8px 0 0; }

/* Modales d'édition */
.cx-statut-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; }
.cx-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cx-form legend { padding: 0; margin-bottom: 6px; }
.cx-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; }
.cx-fichier { cursor: pointer; }
.cx-fichier-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.cx-image { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.cx-image__apercu {
  aspect-ratio: 3 / 2; background: var(--gris-fond); border-radius: var(--rayon); overflow: hidden;
  display: grid; place-items: center; color: var(--gris-texte); font-size: .82rem;
}
.cx-image__apercu img { width: 100%; height: 100%; object-fit: cover; }
.cx-image__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.cx-image__actions input[type="url"] { width: 100%; }
.cx-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-photos button { width: 54px; height: 40px; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; background: none; }
.cx-photos button:hover { border-color: var(--rouge); }
.cx-photos img { width: 100%; height: 100%; object-fit: cover; }
.cx-galerie-edit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.cx-galerie-edit li { position: relative; aspect-ratio: 4 / 3; border-radius: var(--rayon); overflow: hidden; background: var(--gris-fond); }
.cx-galerie-edit li img { width: 100%; height: 100%; object-fit: cover; }
.cx-galerie-edit__actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 2px; padding: 4px; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }
.cx-galerie-edit__actions button { width: 28px; height: 26px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.92); font-weight: 700; }
.cx-galerie-edit__actions button:hover:not(:disabled) { background: var(--jaune); }
.cx-galerie-edit__actions button:disabled { opacity: .35; cursor: default; }
li.cx-galerie-edit__vide { grid-column: 1 / -1; aspect-ratio: auto; padding: 16px; text-align: center; color: var(--gris-texte); font-size: .88rem; }
.cx-galerie-ajout { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.cx-galerie-ajout input[type="url"] { flex: 1; min-width: 180px; width: auto; }
.cx-photos--petites { margin-top: 4px; }

@media (max-width: 620px) {
  .cx-offre { padding: 20px 18px; gap: 12px; }
  .cx-offre__fleche { width: 36px; height: 36px; }
  .cx-offres .cx-modifier { right: 10px; top: auto; bottom: 10px; }
  .cx-panneau, .cx-coordonnees { padding: 24px 18px; }
  .cx-infos, .cx-fiche .cx-panneau { position: static; }
  .cx-image { grid-template-columns: 1fr; }
  .cx-image__apercu { max-width: 260px; }
  .cx-bandeau-fiche { padding: 70px 0 44px; }
  .cx-acces { padding: 32px 18px; }
}
@media (max-width: 900px) { .cx-infos, .cx-fiche .cx-panneau { position: static; } }

/* Case à cocher dans un .champ (formulaires publics) */
.cx-panneau .champ .case, .cx-form .case { font-size: .88rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--gris-texte); }
.cx-panneau .champ .case input, .cx-form .case input { width: auto; padding: 0; flex-shrink: 0; }
.cx-offres + p { margin-top: 24px; }
.champ .cx-depot { font-weight: 400; letter-spacing: 0; text-transform: none; }

/* ==========================================================================
   Pages libres (page-libre.js) : blocs et barre d'outils du mode édition
   ========================================================================== */
.pl-barre { padding-top: 24px; }
.pl-barre .cx-barre-editeur { margin: 0; }
.pl-barre code { background: rgba(0, 0, 0, .07); padding: 1px 6px; border-radius: 3px; font-size: .85rem; }
.pl-bloc { position: relative; }
.pl-bloc--blanc + .pl-bloc--blanc > .section { padding-top: 0; }
.pl-bloc .section h2 { margin-bottom: .6em; }

.pl-ti { align-items: center; }
.pl-ti__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre); }
@media (min-width: 901px) { .pl-ti--inverse { grid-template-columns: .9fr 1.1fr; } .pl-ti--inverse .pl-ti__media { order: -1; } }

.pl-image { margin: 0; }
.pl-image img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--rayon); }
.pl-image figcaption { margin-top: 10px; font-size: .85rem; color: var(--gris-texte); text-align: center; }

.pl-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pl-galerie__item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--rayon); background: var(--noir-3); }
.pl-galerie__item img { width: 100%; height: 100%; object-fit: cover; }

.pl-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pl-bouton { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; max-width: 100%; }
.pl-boutons .btn { white-space: normal; text-align: center; }

.pl-citation { margin: 0; text-align: center; }
.pl-citation blockquote { margin: 0; position: relative; padding-top: 34px; }
.pl-citation blockquote::before { content: "\201C"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 5rem; line-height: 1; color: var(--rouge); }
.pl-citation p { font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.45; font-weight: 500; margin: 0 0 18px; }
.pl-citation figcaption { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gris-texte); }

/* Outils du mode édition : visibles seulement quand « Modifier la page » est actif. */
.pl-outils, .pl-mini, .pl-mini-groupe, .pl-seulement-edition { display: none; }
body.mode-edition .pl-bloc { outline: 2px dashed rgba(255, 214, 0, .9); outline-offset: -2px; }
body.mode-edition .pl-outils {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 16px; background: var(--jaune); color: var(--noir);
  font-size: .76rem; font-weight: 700; position: relative; z-index: 4;
}
.pl-outils__type { letter-spacing: .12em; text-transform: uppercase; margin-right: 6px; }
.pl-outils__espace { flex: 1; }
.pl-outils button, .pl-outils__fichier {
  padding: 5px 10px; border: 0; border-radius: var(--rayon); background: rgba(0, 0, 0, .1); color: var(--noir);
  font: inherit; font-weight: 700; cursor: pointer; line-height: 1.3;
}
.pl-outils button:hover:not(:disabled), .pl-outils__fichier:hover { background: var(--noir); color: var(--jaune); }
.pl-outils button:disabled { opacity: .35; cursor: default; }
.pl-outils .pl-outils__danger { color: var(--rouge-fonce); }
body.mode-edition .pl-mini-groupe { display: inline-flex; gap: 4px; }
body.mode-edition .pl-mini, body.mode-edition .pl-seulement-edition { display: inline-block; }
body.mode-edition .pl-seulement-edition { display: block; width: 100%; }
.pl-mini {
  padding: 4px 8px; border: 0; border-radius: var(--rayon); background: var(--jaune); color: var(--noir);
  font-size: .74rem; font-weight: 700; box-shadow: var(--ombre); cursor: pointer;
}
select.pl-mini { width: auto; }
.pl-mini:hover { background: var(--jaune-fonce); }
.pl-mini--coin { position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; padding: 0; font-size: 1.1rem; }

.pl-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pl-type {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-align: left; background: var(--gris-clair); color: var(--texte);
  border: 1.5px solid var(--gris-bord); border-left: 4px solid var(--jaune); border-radius: var(--rayon); cursor: pointer; transition: border-color .15s;
}
.pl-type:hover, .pl-type:focus-visible { border-color: var(--noir); border-left-color: var(--jaune); }
.pl-type strong { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.pl-type span { font-size: .85rem; color: var(--gris-texte); }
@media (max-width: 620px) {
  body.mode-edition .pl-outils { padding: 8px 12px; }
  .pl-outils__espace { display: none; }
  .pl-galerie { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Admin : éditeur du menu ---------- */
.cx-menu, .cx-menu__enfants { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cx-menu__entree { background: var(--gris-clair); border-left: 4px solid var(--noir); border-radius: var(--rayon); padding: 12px 14px; }
.cx-menu__enfants { margin: 10px 0 0 28px; padding-left: 14px; border-left: 2px solid var(--gris-bord); }
.cx-menu__enfants > li { background: var(--blanc); border-radius: var(--rayon); padding: 10px 12px; }
.cx-menu-ligne { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.4fr) auto auto; gap: 8px 14px; align-items: end; }
.cx-menu-ligne .champ { margin: 0; min-width: 0; }
.cx-menu-ligne .cx-menu-ligne__etiquette { font-size: .68rem; }
.cx-menu-ligne .aide { color: var(--gris-texte); font-size: .78rem; }
.cx-menu-ligne__visible { padding-bottom: 10px; white-space: nowrap; }
.cx-menu-ligne .cx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 4px; }
.cx-menu-ligne--masquee input[name="libelle"], .cx-menu-ligne--masquee input[name="url"] { opacity: .5; text-decoration: line-through; }
.cx-menu__auto {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 10px 0 0 28px;
  padding: 10px 14px; background: #fff9d6; border-left: 4px solid var(--jaune); font-size: .88rem;
}
.cx-menu__auto .case { font-size: .85rem; }
.cx-menu .case input { width: auto; }
@media (max-width: 900px) {
  .cx-menu-ligne { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cx-menu-ligne { grid-template-columns: 1fr; }
  .cx-menu-ligne__visible { padding-bottom: 0; }
  .cx-menu__enfants, .cx-menu__auto { margin-left: 8px; }
  .cx-admin-entete__droite { flex-wrap: wrap; }
}
body.mode-edition .pl-bloc--blanc + .pl-bloc--blanc > .section { padding-top: 32px; }

/* Sélecteur du matériel utilisé (réalisations) */
.cx-produits__barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cx-produits__barre input { flex: 1; min-width: 200px; }
.cx-produits__liste { max-height: 320px; overflow-y: auto; border: 1.5px solid var(--gris-bord); border-radius: var(--rayon); padding: 12px 14px; display: grid; gap: 14px; }
.cx-produits__categorie { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-texte); margin-bottom: 6px; }
