/* --------------------------------------------------------------------------
   css/accompagnement.css — Accompagnement, Objectif Rebond, missions

   1.   OFFRE « OBJECTIF REBOND » (page accompagnement)
   2.   OBJECTIF REBOND — QUESTIONNAIRE (formulaire d'offre d'accompagnement)
   3.   ESPACE ACCOMPAGNATEURS (Missions / Demandes reçues)
   4.   PAGES DÉTAIL ACCOMPAGNEMENT (Mission / Demande)
   -------------------------------------------------------------------------- */

/* ==========================================================================
   1. OFFRE « OBJECTIF REBOND » (page accompagnement)
   ========================================================================== */

/* --- Hero : 2 colonnes (photo | bordeaux) sur bureau, photo en fond sur tablette --- */
.wp-block-group.hero-accompagnement {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.wp-block-group.hero-accompagnement > * {
  margin: 0;
}
.hero-accompagnement__image {
  background: url('/wp-content/uploads/2025/02/accompagnement-1-800px.jpg') center / cover no-repeat;
}
.wp-block-group.hero-accompagnement__texte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 7.5%;
}
.hero-accompagnement__sur-titre {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 3px;
  font-weight: 500;
  text-transform: uppercase;
  color: #ebf5ee;
}
.hero-accompagnement__titre {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}
.hero-accompagnement__accroche {
  margin: 40px 0 0;
  font-size: 20px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .wp-block-group.hero-accompagnement {
    display: block;
    min-height: 0;
    background: url('/wp-content/uploads/2025/02/accompagnement-4-nb-800px.jpg') top right / cover no-repeat;
  }
  .wp-block-group.hero-accompagnement::before {   /* voile bordeaux « multiply » */
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--wp--preset--color--bordeaux);
    mix-blend-mode: multiply;
    opacity: 0.9;
    pointer-events: none;
  }
  .hero-accompagnement__image { display: none; }
  .wp-block-group.hero-accompagnement__texte {
    position: relative;
    background-color: transparent;
  }
  .hero-accompagnement__titre { font-size: 32px; }
  .hero-accompagnement__accroche { margin-top: 20px; font-size: 18px; }
}
@media (max-width: 781px) {
  .hero-accompagnement__titre { font-size: 7vw; }
  .hero-accompagnement__accroche { font-size: 17px; }
}

/* --- Section « Comment ça marche » (fond blanc) --- */
.section-accompagnement-intro {
  padding-block: 50px 40px;
}
.section-accompagnement-intro h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 40px;
}
.section-accompagnement-intro .blurb::before {
  color: var(--wp--preset--color--bordeaux);
}
.section-accompagnement-intro .blurb__titre {
  color: var(--wp--preset--color--bordeaux);
}
@media (max-width: 980px) {
  .section-accompagnement-intro h2 { font-size: 32px; }
}
@media (max-width: 781px) {
  .section-accompagnement-intro { padding-block: 30px; }
  .section-accompagnement-intro h2 { font-size: 8vw; }
}

/* --- Section « Qu'est-ce que l'offre » (photo + voile bordeaux) --- */
.section-programme {
  position: relative;
  padding-block: 50px 30px;
  background: url('/wp-content/uploads/2025/02/accompagnement-2nb-1920x1280-1.jpg') center / cover no-repeat;
}
.section-programme::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--wp--preset--color--bordeaux);
  mix-blend-mode: multiply;
  opacity: 0.9;
  pointer-events: none;
}
.section-programme > * {
  position: relative;               /* au-dessus du voile */
}
.section-programme h2 {
  margin-bottom: 15px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--wp--preset--color--orange);
}
.accroche-centree {
  font-size: 24px;
  line-height: 1.4;
}
.section-programme .wp-block-buttons {
  margin-top: 50px;
}
.section-programme .wp-block-button__link {
  font-size: 20px;
}
@media (max-width: 781px) {
  .section-programme h2 { font-size: 8vw; }
}

/* --- Bloc « icône + titre + liste » (commun aux deux sections) --- */
.blurb {
  position: relative;
  margin-block: 25px;
  padding-left: 32px;               /* 25px d'icône + 7px d'espace */
  margin-top: 50px;
}
.blurb {
  --icone-fleche: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 1a11 11 0 1 0 0 22 11 11 0 1 0 0-22zM5.1 11.1H15.428L11.464 7.136L12.736 5.864L18.872 12L12.736 18.136L11.464 16.864L15.428 12.9H5.1Z"/></svg>');
}
.blurb::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 25px;
  height: 25px;
  background-color: currentColor;
  mask: var(--icone-fleche) center / contain no-repeat;
  -webkit-mask: var(--icone-fleche) center / contain no-repeat;
}
.blurb__titre {
  margin: 0 0 0.5em;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}
.blurb ul {
  margin: 0;
  padding-bottom: 0;
}
.blurb li {
  font-weight: 400;
}
.blurb li:not(:last-child) {
  padding-bottom: 15px;
}
.blurb ul:not(:first-child) {
  margin-top: 20px;
}

/* Variante « encart tarif » : carte blanche, pas d'icône */
.blurb--tarif {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 5px;
  color: color-mix(in srgb, var(--wp--preset--color--bordeaux) 75%, black);
}
.blurb--tarif::before {
  content: none;
}
.blurb--tarif .blurb__titre {
  color: inherit;
}
.blurb__note {
  font-size: 0.8em;
  line-height: 1.2;
}

/* « Pourquoi choisir… » : colonne étroite centrée (550px, comme le blurb Divi) */
.section-accompagnement-intro > .blurb {
  max-width: 550px;
}


/* ==========================================================================
   2. OBJECTIF REBOND — QUESTIONNAIRE (formulaire d'offre d'accompagnement)
   ========================================================================== */

/* Bandeau bordeaux */
.bandeau-rebond { margin-block: 0; padding-block: 54px 40px; }
.bandeau-rebond h1 {
  margin: 0;
  font-size: clamp(1.9rem, 9vw, 2.625rem);   /* 42px max */
  font-weight: 700;
  line-height: 1.4;
}
.bandeau-rebond h2 {
  margin: 0;
  font-size: clamp(1.4rem, 6vw, 1.75rem);    /* 28px max */
  line-height: 1.2;
}
.rebond-intro { margin-top: 30px; column-gap: 40px; line-height: 1.6; }
.rebond-intro p { margin: 0; }

/* Zone du formulaire (60 % / 80 % / 85 %) */
.section-questionnaire { margin-block: 0; padding-block: 40px 54px; }
.conteneur-formulaire { width: 60%; max-width: none; margin-inline: auto; }
@media (max-width: 980px) { .conteneur-formulaire { width: 80%; } }
@media (max-width: 767px) { .conteneur-formulaire { width: 85%; } }


/* Formulaire ACF ([ap_formulaire_offre_accompagnement]) */
.conteneur-formulaire .acf-field-group > .acf-label label {
  font-size: clamp(1.25rem, 5vw, 1.5rem);    /* 24px max */
}
.conteneur-formulaire .acf-fields.-border { border: 0; }
body .conteneur-formulaire select {
  appearance: none;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  height: 32px;
  padding: 0 34px 0 10px;
  color: var(--wp--preset--color--texte-fonce);
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  cursor: pointer;
}
/* Largeurs de champs posées en inline par ACF : pleine largeur sous 980px (remplace les 12 règles data-name) */
@media (max-width: 980px) {
  .conteneur-formulaire .acf-field[data-width] {
    width: 100% !important;
    min-height: min-content !important;
  }
}
/* Bouton d'envoi (le plugin sort encore la classe Divi et_pb_button) */
.conteneur-formulaire button.et_pb_button {
  border-color: var(--wp--preset--color--bordeaux);
  background-color: var(--wp--preset--color--bordeaux);
  color: var(--wp--preset--color--blanc);
  cursor: pointer;
}
.conteneur-formulaire button.et_pb_button:hover {
  background-color: var(--wp--preset--color--blanc);
  color: var(--wp--preset--color--bordeaux);
}
.conteneur-formulaire .notice {
  display: inline-block;
  margin-bottom: 30px;
  padding: 10px 20px;
  border-left: 4px solid;
  border-radius: 5px;
}
.conteneur-formulaire .notice.notice-success {
  border-left-color: var(--wp--preset--color--succes);
  background-color: color-mix(in srgb, var(--wp--preset--color--succes) 10%, var(--wp--preset--color--blanc));
}

/* Lien « retour à l'offre » (bloc Boutons) */
.retour-offre { margin: 0 0 20px; }


/* ==========================================================================
   3. ESPACE ACCOMPAGNATEURS (Missions / Demandes reçues)
   ========================================================================== */
/* Page Mission : sortie de [ap_mission] */
.ap-mission h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
}

/* Historique (le plugin pose du padding en inline : un !important est nécessaire) */
.ap-mission table { border-collapse: collapse; }
.ap-mission table td {
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--texte-fonce) 12%, var(--wp--preset--color--blanc));
}
.ap-mission table tr:last-child td { border-bottom: 0; }
.ap-mission table td:first-child {
  padding-right: 20px !important;
  white-space: nowrap;
}

/* Formulaire de mise à jour */
.ap-mission form div { margin-bottom: 20px; }
.ap-mission form label { display: inline-block; width: 150px; }
.ap-mission form select,
.ap-mission form input:not([type="hidden"]) {
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--texte-fonce) 40%, var(--wp--preset--color--blanc));
  border-radius: 5px;
  background-color: var(--wp--preset--color--blanc);
  color: var(--wp--preset--color--texte-fonce);
  font-size: 15px;
}
.ap-mission form input:not([type="hidden"]) { width: 200px; }
.ap-mission form select {
  appearance: none;
  min-width: 260px;
  max-width: 100%;
  margin-right: 10px;
  padding-right: 38px;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}
.ap-mission button {
  padding: 10px 14px;
  border: 1px solid var(--wp--preset--color--bleu-clair);
  border-radius: 5px;
  background-color: var(--wp--preset--color--bleu-clair);
  color: var(--wp--preset--color--blanc);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.ap-mission button:hover {
  background-color: color-mix(in srgb, var(--wp--preset--color--bleu-clair) 85%, black);
}
.ap-mission .notice {
  display: inline-block;
  margin-bottom: 30px;
  padding: 10px 20px;
  border-left: 4px solid;
  border-radius: 5px;
}
.ap-mission .notice.notice-success {
  border-left-color: var(--wp--preset--color--succes);
  background-color: color-mix(in srgb, var(--wp--preset--color--succes) 10%, var(--wp--preset--color--blanc));
}
@media (max-width: 600px) {
  .ap-mission form label { display: block; width: auto; margin-bottom: 5px; }
}


/* ==========================================================================
   4. PAGES DÉTAIL ACCOMPAGNEMENT (Mission / Demande)
   ========================================================================== */
.section-liste--retour { padding-top: 30px; }
.retour-liste { margin: 0 0 20px; }


/* Contenu de [ap_demande] */
.demande-contenu h3 {
  margin: 30px 0 0;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
}
.demande-contenu p { margin: 0; padding-bottom: 5px; }



.wp-block-navigation .wp-block-navigation-item.accompagnement > .wp-block-navigation-item__content {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  height: 37px;
  padding: 0 0.9rem;
  border: 1px solid var(--wp--preset--color--bleu-clair);
  border-radius: 5px;
  background-color: var(--wp--preset--color--blanc);
  color: var(--wp--preset--color--bleu-clair);
}
.wp-block-navigation .wp-block-navigation-item.accompagnement > .wp-block-navigation-item__content:hover {
  background-color: var(--wp--preset--color--bleu-clair);
  color: var(--wp--preset--color--blanc);
}
/* Overlay mobile : hauteur libre, comme les autres items */
body nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .accompagnement > a {
  height: auto;
  min-height: 37px;
  padding: 0.7rem 0.75rem;
  justify-content: center;
}






/* Tableaux des listes (Missions / Demandes reçues) */
.section-liste table:has(th) {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.section-liste table:has(th) th {
  padding: 10px 15px;
  border-bottom: 2px solid var(--wp--preset--color--bleu-clair);
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.section-liste table:has(th) td {
  padding: 10px 15px;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--texte-fonce) 12%, var(--wp--preset--color--blanc));
  vertical-align: middle;
}
.section-liste table:has(th) tbody tr:hover td {
  background-color: color-mix(in srgb, var(--wp--preset--color--bleu-clair) 8%, var(--wp--preset--color--blanc));
}
.section-liste table:has(th) td a {
  color: var(--wp--preset--color--bleu-clair);
  font-weight: 600;
}
@media (max-width: 767px) {
  .section-liste table:has(th) { display: block; overflow-x: auto; }
}
