/* ============================================================
   FORMULAIRE "REJOINDRE LE RÉSEAU" — habillage MANAGERIM
   ============================================================ */
html body form[id*="rejoindre-le-reseau-managerim"],
html body form.webform-submission-rejoindre-le-reseau-managerim-add-form,
html body form.webform-submission-rejoindre-le-reseau-managerim-form{
  background:#ffffff !important;
  border-radius:18px !important;
  box-shadow:0 8px 25px rgba(1,59,92,.10) !important;
  padding:38px 44px !important;
  margin:0 auto 40px !important;
  max-width:950px !important;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif !important;
  position:relative;
  box-sizing:border-box;
}
html body form[id*="rejoindre-le-reseau-managerim"]::before{
  content:"FORMULAIRE SÉCURISÉ · STRICTEMENT CONFIDENTIEL";
  display:block;
  color:#4fa1d8;
  font-size:10.5px;
  letter-spacing:2.2px;
  font-weight:700;
  text-transform:uppercase;
  margin-bottom:22px;
  padding-bottom:16px;
  border-bottom:1px solid #e1e8f0;
  text-align:left;
}

/* --- Labels --- */
html body form[id*="rejoindre-le-reseau-managerim"] label{
  color:#013b5c !important;
  font-size:13.5px !important;
  font-weight:600 !important;
  margin-bottom:8px !important;
  display:block !important;
  letter-spacing:.2px !important;
}

/* --- Espacement des items --- */
html body form[id*="rejoindre-le-reseau-managerim"] .form-item{
  margin-bottom:22px !important;
}

/* --- Inputs / textarea / select --- */
html body form[id*="rejoindre-le-reseau-managerim"] input[type="text"],
html body form[id*="rejoindre-le-reseau-managerim"] input[type="email"],
html body form[id*="rejoindre-le-reseau-managerim"] input[type="tel"],
html body form[id*="rejoindre-le-reseau-managerim"] input[type="url"],
html body form[id*="rejoindre-le-reseau-managerim"] textarea,
html body form[id*="rejoindre-le-reseau-managerim"] select{
  width:100% !important;
  border:1.5px solid #e1e8f0 !important;
  border-radius:10px !important;
  background:#fbfcfe !important;
  padding:13px 18px !important;
  font-size:15px !important;
  color:#2d3748 !important;
  font-family:inherit !important;
  transition:all .25s ease !important;
  box-shadow:none !important;
  outline:none !important;
  box-sizing:border-box !important;
  height:auto !important;
  line-height:1.4 !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] textarea{
  min-height:140px !important;
  line-height:1.55 !important;
  resize:vertical !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] input[type="text"]:hover,
html body form[id*="rejoindre-le-reseau-managerim"] input[type="email"]:hover,
html body form[id*="rejoindre-le-reseau-managerim"] input[type="tel"]:hover,
html body form[id*="rejoindre-le-reseau-managerim"] textarea:hover,
html body form[id*="rejoindre-le-reseau-managerim"] select:hover{
  border-color:#7bb9e0 !important;
  background:#ffffff !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] input[type="text"]:focus,
html body form[id*="rejoindre-le-reseau-managerim"] input[type="email"]:focus,
html body form[id*="rejoindre-le-reseau-managerim"] input[type="tel"]:focus,
html body form[id*="rejoindre-le-reseau-managerim"] input[type="url"]:focus,
html body form[id*="rejoindre-le-reseau-managerim"] textarea:focus,
html body form[id*="rejoindre-le-reseau-managerim"] select:focus{
  border-color:#4fa1d8 !important;
  background:#ffffff !important;
  box-shadow:0 0 0 4px rgba(79,161,216,.12) !important;
}

/* --- Champ fichier (CV) --- */
html body form[id*="rejoindre-le-reseau-managerim"] input[type="file"]{
  border:2px dashed #cfe1ee !important;
  border-radius:10px !important;
  background:#f7fbff !important;
  padding:16px 18px !important;
  font-size:14px !important;
  color:#4a5568 !important;
  cursor:pointer !important;
  width:100% !important;
  transition:all .25s ease !important;
  box-sizing:border-box !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] input[type="file"]:hover{
  border-color:#4fa1d8 !important;
  background:#eaf4fc !important;
}

/* --- Descriptions --- */
html body form[id*="rejoindre-le-reseau-managerim"] .description,
html body form[id*="rejoindre-le-reseau-managerim"] .webform-element-description{
  color:#7a8a9a !important;
  font-size:12.5px !important;
  margin-top:7px !important;
  line-height:1.5 !important;
}

/* --- ACCORDÉONS (details) familles + secteurs --- */
html body form[id*="rejoindre-le-reseau-managerim"] details{
  border:1.5px solid #e1e8f0 !important;
  border-radius:10px !important;
  background:#fbfcfe !important;
  margin-bottom:10px !important;
  padding:0 !important;
  overflow:hidden !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] details summary{
  color:#013b5c !important;
  font-size:13px !important;
  font-weight:700 !important;
  letter-spacing:1px !important;
  text-transform:uppercase !important;
  padding:14px 18px !important;
  cursor:pointer !important;
  list-style:none !important;
  background:#f7f9fc !important;
  transition:background .2s ease !important;
  position:relative !important;
  user-select:none !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] details summary:hover{
  background:#eaf4fc !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] details summary::-webkit-details-marker{display:none !important;}
html body form[id*="rejoindre-le-reseau-managerim"] details summary::after{
  content:"+" !important;
  position:absolute !important;
  right:18px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  color:#4fa1d8 !important;
  font-size:20px !important;
  font-weight:400 !important;
  line-height:1 !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] details[open] summary::after{
  content:"–" !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] details[open] summary{
  border-bottom:1px solid #e1e8f0 !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] details > .details-wrapper,
html body form[id*="rejoindre-le-reseau-managerim"] details > div{
  padding:14px 18px !important;
}

/* --- Cases à cocher --- */
html body form[id*="rejoindre-le-reseau-managerim"] .js-form-type-checkbox,
html body form[id*="rejoindre-le-reseau-managerim"] .form-type-checkbox{
  background:#ffffff !important;
  padding:10px 14px !important;
  border-radius:8px !important;
  border:1px solid #e1e8f0 !important;
  transition:all .25s ease !important;
  margin-bottom:6px !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] .js-form-type-checkbox:hover,
html body form[id*="rejoindre-le-reseau-managerim"] .form-type-checkbox:hover{
  border-color:#7bb9e0 !important;
  background:#f7fbff !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] input[type="checkbox"]{
  accent-color:#4fa1d8 !important;
  width:18px !important;
  height:18px !important;
  margin-right:12px !important;
  vertical-align:middle !important;
  cursor:pointer !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] .js-form-type-checkbox label,
html body form[id*="rejoindre-le-reseau-managerim"] .form-type-checkbox label{
  color:#2d3748 !important;
  font-size:13.5px !important;
  font-weight:500 !important;
  cursor:pointer !important;
  display:inline !important;
  margin-bottom:0 !important;
  vertical-align:middle !important;
}

/* --- reCAPTCHA --- */
html body form[id*="rejoindre-le-reseau-managerim"] .captcha{
  margin:24px 0 !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
}

/* --- Bloc RGPD (privacy) --- */
html body form[id*="rejoindre-le-reseau-managerim"] #edit-privacy{
  margin-top:20px !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] #edit-privacy hr{
  border:0 !important;
  border-top:1px solid #e1e8f0 !important;
  margin:0 0 14px !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] .mgr-rgpd-eyebrow{
  color:#4fa1d8 !important;
  font-size:11px !important;
  letter-spacing:2.2px !important;
  text-transform:uppercase !important;
  font-weight:700 !important;
  margin:0 0 6px !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] .mgr-rgpd-eyebrow strong{ font-weight:700 !important; }

/* --- Bouton Envoyer --- */
html body form[id*="rejoindre-le-reseau-managerim"] .form-actions{
  margin-top:36px !important;
  padding-top:28px !important;
  border-top:1px solid #e1e8f0 !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] .form-actions input[type="submit"],
html body form[id*="rejoindre-le-reseau-managerim"] .form-actions button[type="submit"],
html body form[id*="rejoindre-le-reseau-managerim"] .webform-button--submit{
  background:linear-gradient(135deg,#013b5c 0%,#3b88b5 100%) !important;
  color:#ffffff !important;
  border:none !important;
  border-radius:40px !important;
  padding:15px 48px !important;
  font-size:14.5px !important;
  font-weight:700 !important;
  letter-spacing:1.5px !important;
  text-transform:uppercase !important;
  cursor:pointer !important;
  transition:all .35s ease !important;
  box-shadow:0 6px 18px rgba(1,59,92,.22) !important;
  font-family:inherit !important;
  height:auto !important;
  line-height:1 !important;
}
html body form[id*="rejoindre-le-reseau-managerim"] .form-actions input[type="submit"]:hover,
html body form[id*="rejoindre-le-reseau-managerim"] .form-actions button[type="submit"]:hover,
html body form[id*="rejoindre-le-reseau-managerim"] .webform-button--submit:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 10px 26px rgba(1,59,92,.30) !important;
  background:linear-gradient(135deg,#0a1628 0%,#013b5c 100%) !important;
}

/* --- Responsive formulaire --- */
@media (max-width:760px){
  html body form[id*="rejoindre-le-reseau-managerim"]{padding:28px 22px !important;}
  html body form[id*="rejoindre-le-reseau-managerim"] .form-actions input[type="submit"]{
    width:100% !important;padding:15px 24px !important;
  }
}

/* --- Séparation Fonctions / Secteurs --- */
html body form[id*="rejoindre-le-reseau-managerim"] .mgr-secteurs-sep{
  margin-top:34px !important;
  padding-top:28px !important;
  border-top:2px solid #e1e8f0 !important;
}

/* --- Masquer l'astérisque sur la case RGPD --- */
html body form[id*="rejoindre-le-reseau-managerim"] #edit-data .form-required::after,
html body form[id*="rejoindre-le-reseau-managerim"] .js-form-item-data label.form-required::after,
html body form[id*="rejoindre-le-reseau-managerim"] .form-item-data label.form-required::after{
  content:"" !important;
  display:none !important;
}

/* ============================================================
   SPLIT REJOINDRE — v7 : grid 2 colonnes, checklist sous panneau
   ============================================================ */
.region-content:has(#mgr-rejoindre-intro) {
  display: grid !important;
  grid-template-columns: 460px 1fr;
  grid-template-rows: auto 1fr;
  gap: 24px 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
  align-items: start;
}
.region-content:has(#mgr-rejoindre-intro) > #block-darkplus-texteintrorejoindrelereseaufr {
  grid-column: 1; grid-row: 1; margin: 0 !important;
}
.region-content:has(#mgr-rejoindre-intro) > #block-darkplus-checklistcvrejoindrefr {
  grid-column: 1; grid-row: 2; margin: 0 !important; align-self: start;
}
.region-content:has(#mgr-rejoindre-intro) > #block-darkplus-content {
  grid-column: 2; grid-row: 1 / 3; margin: 0 !important; min-width: 0;
}

/* Habillage panneau gauche */
#mgr-rejoindre-intro {
  background: linear-gradient(160deg,#0a1628 0%,#013b5c 100%);
  border-radius: 16px; padding: 44px 40px; color: #fff;
  box-shadow: 0 12px 40px rgba(1,59,92,.18);
}
#mgr-rejoindre-intro .mgr-eyebrow { display:block; color:#7bb9e0; font-size:12.5px; font-weight:700; letter-spacing:2px; text-transform:uppercase; margin-bottom:18px; }
#mgr-rejoindre-intro h1 { color:#fff !important; font-size:28px; line-height:1.25; margin:0 0 16px; font-weight:800; }
#mgr-rejoindre-intro .mgr-rule { width:55px; height:3px; background:#4fa1d8; border-radius:3px; margin-bottom:26px; }
#mgr-rejoindre-intro .mgr-accroche { font-size:18px; line-height:1.45; color:#fff; margin:0 0 20px; }
#mgr-rejoindre-intro .mgr-accroche strong { color:#7bb9e0; }
#mgr-rejoindre-intro .mgr-intro { font-size:15.5px; line-height:1.7; color:rgba(255,255,255,.88); margin:0 0 26px; }
#mgr-rejoindre-intro .mgr-intro strong { color:#fff; }
#mgr-rejoindre-intro .mgr-encart { background:rgba(79,161,216,.12); border-left:4px solid #4fa1d8; border-radius:0 10px 10px 0; padding:20px 22px; }
#mgr-rejoindre-intro .mgr-encart p { margin:0; font-size:14.5px; line-height:1.6; color:#fff; }
#mgr-rejoindre-intro .mgr-encart strong { color:#fff; }
#mgr-rejoindre-intro .mgr-encart .mgr-sub { color:rgba(255,255,255,.72); font-size:13.5px; }
#mgr-rejoindre-intro .mgr-encart .mgr-sep { border-top:1px dashed rgba(255,255,255,.22); margin:14px 0 0; padding-top:14px; }

/* Habillage checklist */
#mgr-rejoindre-cv { background:#fcfdfd; border:1px solid #e1e8ed; border-radius:12px; padding:28px 30px; }
#mgr-rejoindre-cv h3 { color:#013b5c; font-size:15px; text-transform:uppercase; margin:0 0 12px; font-weight:700; }
#mgr-rejoindre-cv .mgr-cv-intro { color:#444; font-size:14px; line-height:1.5; margin:0 0 18px; }
#mgr-rejoindre-cv ul { list-style:none; display:flex; flex-direction:column; gap:12px; margin:0; padding:0; }
#mgr-rejoindre-cv li { position:relative; padding-left:22px; color:#444; font-size:14px; line-height:1.5; }
#mgr-rejoindre-cv li::before { content:"›"; position:absolute; left:4px; top:-1px; color:#4fa1d8; font-size:18px; font-weight:700; }
#mgr-rejoindre-cv .mgr-cv-concl { color:#5a7385; font-size:14px; line-height:1.5; font-style:italic; margin:20px 0 0; }

/* Icônes (s'affichent si les spans sont présents dans le HTML) */
#mgr-rejoindre-intro .mgr-ico-refresh {
  display:inline-block; width:16px; height:16px; margin-right:8px; vertical-align:-2px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237bb9e0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 4v6h-6'/%3E%3Cpath d='M20.49 15a9 9 0 1 1-2.12-9.36L23 10'/%3E%3C/svg%3E");
  background-size:contain; background-repeat:no-repeat;
}
#mgr-rejoindre-cv .mgr-ico-file {
  display:inline-block; width:16px; height:16px; margin-right:8px; vertical-align:-2px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fa1d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
  background-size:contain; background-repeat:no-repeat;
}

/* Mobile : tout empilé */
@media (max-width: 992px) {
  .region-content:has(#mgr-rejoindre-intro) {
    grid-template-columns: 1fr; grid-template-rows: auto; gap: 24px;
  }
  .region-content:has(#mgr-rejoindre-intro) > #block-darkplus-texteintrorejoindrelereseaufr,
  .region-content:has(#mgr-rejoindre-intro) > #block-darkplus-checklistcvrejoindrefr,
  .region-content:has(#mgr-rejoindre-intro) > #block-darkplus-content {
    grid-column: 1 !important; grid-row: auto !important;
  }
}