/* Famille « institution » : /rse/, /rse/inedee-medaille-ecovadis-platinum/, /demande-de-contact/, pages de remerciement,
   /mentions-legales/, /politique-confidentialite/, /politique-de-cookies/ et la page 404.
   Valeurs relevées sur le site actuel : Elementor post-9676 (RSE), 9685 (EcoVadis), 75 (contact), 7443 et 7449
   (remerciements), 6363 (mentions), 3 (confidentialité) ; thème Hello et document Complianz (cookies, 404). */

/* ---------- Bandeau de tête centré (50vh, vague gris clair en bas) ---------- */
.inst-hero { position: relative; display: flex; padding-block: clamp(48px, 7vw, 88px); }
.inst-hero__textes { display: flex; flex-direction: column; justify-content: center; width: 100%; padding: 0 6%; text-align: center; }
.inst-hero__surtitre { margin: 0 0 14px; font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--texte); }
.inst-hero__titre { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(40px, 5vw, 60px); font-weight: 500; line-height: 1.08; color: var(--encre); }
.inst-hero__texte { max-width: 60ch; margin: 0 auto; font-family: var(--sans); font-size: 18px; font-weight: 400; line-height: 1.55; color: var(--texte); }
.inst-hero__suite { margin-top: 16px; }
.inst-hero__texte a { color: var(--action); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* remerciements après un formulaire : textes dans un cadre teinté */
.inst-hero--cadre { padding-inline: 4%; }
.inst-hero--cadre .inst-hero__textes { max-width: 1100px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px); border-radius: var(--rayon); background: var(--brume); }

/* ---------- Bande grise des logos clients ---------- */
.inst-logos { position: relative; display: flex; gap: 20px; padding: 0 4% 2%; background: var(--gris-clair); }
.inst-logos--large { padding: 1% 4% 4%; }
.inst-logos__texte { flex: 0 1 40%; display: flex; flex-direction: column; justify-content: center; margin-left: 3%; padding: 10px; }
.inst-logos__texte p { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 32px; letter-spacing: -.01em; color: rgba(14, 14, 63, .6); }
.inst-logos__carr { flex: 0 1 60%; display: flex; flex-direction: column; justify-content: center; min-width: 0; margin-right: 1%; }
.inst-carr { margin: 0 30px; }
.inst-carr .carrousel__piste { gap: 10px; }
.inst-carr__logo { display: flex; justify-content: center; width: calc((100% - 30px) / 4); height: 95px; }
.inst-carr__logo img { height: 95px; object-fit: contain; }
.inst-carr__noir { filter: brightness(0); }
.inst-carr .carrousel__fleche { top: 20px; width: 60px; height: 60px; color: var(--marine); transform: none; }
.inst-carr .carrousel__fleche:hover { color: var(--bleu); }
.inst-carr .carrousel__fleche svg { width: 60px; height: 60px; }
.inst-carr .carrousel__fleche--prec { left: -55px; }
.inst-carr .carrousel__fleche--suiv { right: -49px; }

/* ---------- Texte légal (éditeur de texte Elementor, boîte de 1280 px) ---------- */
.inst-texte { padding: 30px 0 65px; }
.inst-texte--politique-confidentialite { padding-bottom: 30px; }
.inst-texte__corps { max-width: var(--conteneur); margin: 0 auto; font-family: var(--open); font-size: 16px; line-height: 1.5; color: var(--marine); }
.inst-texte__corps h2, .inst-texte__corps h3 { margin: .5rem 0 1rem; font-family: var(--open); font-weight: 500; line-height: 1.2; color: inherit; }
.inst-texte__corps h2 { font-size: 2rem; }
.inst-texte__corps h3 { font-size: 1.75rem; }
.inst-texte__corps p { margin: 0 0 .9rem; }
.inst-texte__corps a { color: var(--action); text-decoration: underline; }
.inst-texte__corps p, .inst-texte__corps li { max-width: 72ch; }
.inst-texte__corps ul { padding-left: 40px; list-style: disc; }
.inst-texte__corps ul ul { list-style: circle; }
.inst-texte__corps figure { margin: 0 0 1em; }
.inst-texte__corps img { display: inline-block; }
.inst-texte__corps figure img { display: block; }
.inst-texte__corps .wp-block-table { overflow-x: auto; }
.inst-texte__corps table { width: 100%; margin-bottom: 15px; border-collapse: collapse; border-spacing: 0; table-layout: fixed; font-size: .9em; }
.inst-texte__corps thead { border-bottom: 3px solid; }
.inst-texte__corps td, .inst-texte__corps th { padding: .5em; border: 1px solid; line-height: 1.5; vertical-align: top; word-break: break-word; }
.inst-texte__corps th { font-weight: 700; }
.inst-texte__corps tbody > tr:nth-child(odd) > td { background: hsla(0, 0%, 50%, .071); }

/* ---------- Document du thème Hello : politique de cookies (document Complianz) ---------- */
.inst-doc { width: 100%; max-width: 1140px; margin: 0 auto; }
.inst-doc { padding-top: clamp(32px, 5vw, 64px); }
.inst-doc__titre { margin: 8px 0 20px; font-family: var(--serif); font-size: clamp(36px, 5vw, 52px); font-weight: 500; line-height: 1.1; color: var(--encre); }
.inst-doc__texte { max-width: 800px; padding-bottom: 1px; font-size: 14px; line-height: 1.5; }
.inst-doc__texte p { margin: 0 0 .9rem; }
.inst-doc__texte h2, .inst-doc__texte h3 { margin: 15px 0 10px; padding-bottom: 10px; font-family: var(--open); font-size: 22px; font-weight: 500; line-height: 1.2; color: inherit; }
.inst-doc__texte h4 { margin: 15px 0 5px; font-family: var(--open); font-size: 18px; font-weight: 500; line-height: 1.2; color: inherit; }
.inst-doc__texte h5 { margin: 10px 0 5px; font-family: var(--open); font-size: 14px; font-weight: 500; line-height: 1.2; color: inherit; }
.inst-doc__texte a { color: var(--action); text-decoration: underline; }
.inst-doc__texte a[target=_blank]::after { content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==); margin: 0 3px 0 5px; }
.inst-doc__texte ul { margin: 0 0 15px 15px; padding-left: 40px; list-style: disc; }
.inst-doc__texte b { display: block; }
/* liste des traceurs, présentée comme celle de Complianz */
.inst-cookie { margin: 0; background: rgba(239, 239, 239, .25); }
.inst-cookie[open] { padding-bottom: 1px; }
.inst-cookie summary { display: block; margin: 5px 0; padding: 5px 10px; background: rgba(239, 239, 239, .5); list-style: none; cursor: pointer; }
.inst-cookie summary::-webkit-details-marker { display: none; }
.inst-cookie summary > div { display: grid; grid-template-columns: 2fr auto 0 0 25px; gap: 15px; align-items: center; }
.inst-cookie summary h3 { margin: 0; padding: 0 5px; font-size: 18px; }
.inst-cookie summary p { margin: 0; text-align: right; }
.inst-cookie summary svg { grid-column: 5; width: 18px; height: 18px; margin: 3px; color: #000; transition: transform .5s ease; }
.inst-cookie[open] summary svg { transform: rotate(180deg); }
.inst-cookie h4 { margin: 5px 0; font-size: 15px; }
.inst-cookie__usage, .inst-cookie__partage { display: inline-block; width: calc(50% - 35px); padding: 0 15px 15px; vertical-align: top; }
.inst-cookie__usage p, .inst-cookie__partage p { margin: 0; }
/* grille de Complianz : sur grand écran, les en-têtes répétés se superposent sur une seule ligne ; sur petit écran, paires en-tête / valeur */
.inst-cookie__liste { display: grid; grid-template-columns: 100px 1fr; gap: 1px; margin-bottom: 10px; border: 1px solid #dadada; background: #dadada; }
.inst-cookie__liste > div { padding: 15px; background: #fff; }
.inst-cookie__liste .inst-cookie__finalite { grid-column: span 2; }
.inst-cookie__liste > .inst-cookie__tete { background: #f7f7f7; }
@media (min-width: 600px) {
  .inst-cookie__liste { grid-template: "purpose purpose purpose" "header1 header2 header3" auto; }
  .inst-cookie__liste .inst-cookie__finalite { grid-area: purpose; }
  .inst-cookie__liste .inst-cookie__tete--1 { grid-area: header1; }
  .inst-cookie__liste .inst-cookie__tete--2 { grid-area: header2; }
  .inst-cookie__liste .inst-cookie__tete--3 { grid-area: header3; }
}
@media (max-width: 600px) {
  .inst-cookie__usage, .inst-cookie__partage { width: 100%; }
}
.inst-cookie__liste h5 { margin: 0; line-height: 1.8; }
.inst-consentement { min-height: 45px; padding: 10px 20px; border: 1px solid #333; border-radius: 5px; background: #333; color: #fff; cursor: pointer;
  font-family: var(--open); font-size: 14px; font-weight: 600; text-transform: uppercase; }

/* ---------- Page 404 (thème Hello) ---------- */
.inst-404 { padding-block: clamp(48px, 7vw, 96px); }
.inst-404__titre { margin: 12px 0 12px; font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); font-weight: 500; line-height: 1.1; color: var(--encre); }
.inst-404__texte p { margin: 0; font-size: 18px; color: var(--texte); }
.inst-404__boutons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.inst-404__pistes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.inst-404__pistes a { display: grid; gap: 4px; height: 100%; padding: 18px; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--fond); transition: border-color .2s; }
.inst-404__pistes a:hover { border-color: var(--encre); }
.inst-404__pistes strong { color: var(--encre); }
.inst-404__pistes span { font-size: 14px; line-height: 1.45; color: var(--texte); }

/* ---------- Boutons Elementor de la famille ---------- */
.inst-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; padding: 12px 20px; border-radius: 6px;
  font-family: var(--poppins); font-size: 14px; font-weight: 500; line-height: 24px; text-transform: uppercase; color: #fff; }
.inst-btn svg { flex: 0 0 auto; width: 14px; height: 14px; }
.inst-btn--marine { background: var(--marine); }
.inst-btn--violet { background: var(--violet); }
.inst-btn--rose { background: var(--rose); }

/* ---------- RSE : carte de l'actualité EcoVadis ---------- */
.inst-rse { padding: 0 4%; background: var(--gris-clair); }
.inst-rse__inner { display: flex; flex-direction: column; justify-content: center; max-width: var(--conteneur); margin: 0 auto; padding: 6% 0; }
.inst-rse__carte { display: flex; }
.inst-rse__image { flex: 0 0 50%; }
.inst-rse__image img { width: 100%; border-radius: 12px 0 0 12px; }
.inst-rse__textes { flex: 0 0 50%; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 0 60px 0 30px; border-radius: 0 12px 12px 0; background: #fff; }
.inst-rse__titre { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1; color: var(--marine); }
.inst-rse__texte { font-family: var(--open); font-size: 14px; line-height: 1.5; color: var(--marine); }
.inst-rse__texte p { margin: 0 0 .9rem; }
.inst-rse__bouton { width: 80%; text-align: right; }

/* bandeau marine (lien vers la page de reconnaissance EcoVadis) */
.inst-bandeau { display: flex; flex-direction: column; justify-content: center; min-height: 40vh; padding: 0 10px; background: var(--marine); }
.inst-bandeau__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; width: 100%; max-width: var(--conteneur); margin: 0 auto; padding: 10px 0; text-align: center; }
.inst-bandeau__texte { font-family: var(--open); font-size: 24px; font-weight: 500; line-height: 1.5; color: #fff; }
.inst-bandeau__texte p { margin: 0 0 .9rem; }

/* ---------- EcoVadis ---------- */
.inst-eco-hero { position: relative; min-height: 50vh; display: flex; }
.inst-eco-hero__inner { display: flex; width: 100%; max-width: var(--conteneur); margin: 0 auto; }
.inst-eco-hero__textes, .inst-eco-hero__image { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; }
.inst-eco-hero__surtitre { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 50px; text-transform: uppercase; color: var(--gris); }
.inst-eco-hero__titre { margin: 0 0 20px; font-family: var(--serif); font-size: 60px; font-weight: 400; line-height: 64px; color: var(--marine); }
.inst-eco-hero__image img { width: 100%; height: 300px; border-radius: 12px; object-fit: contain; }

.inst-eco { display: flex; flex-direction: column; min-height: 80vh; padding: 0 4%; background: #fff; }
.inst-eco--gris { background: var(--gris-clair); }
.inst-eco--court { min-height: 40vh; padding: 0 10px; }
.inst-eco__inner { display: flex; flex-direction: column; justify-content: flex-start; gap: 20px; flex: 1 0 auto; width: 100%; max-width: var(--conteneur); margin: 0 auto; padding: 4% 0; }
.inst-eco__inner--centre { justify-content: center; }
.inst-eco--court .inst-eco__inner { padding: 10px 0; }
.inst-eco ::marker { color: var(--violet); }
.inst-eco sup { position: relative; top: -.5em; font-size: 75%; line-height: 0; vertical-align: baseline; }
.inst-eco__texte { font-family: var(--open); font-size: 16px; line-height: 1.5; color: var(--marine); }
.inst-eco__texte p { margin: 0 0 .9rem; }
.inst-eco__texte--centre { text-align: center; }
.inst-eco__bouton { text-align: center; }
.inst-eco__titre { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1; text-align: center; color: var(--marine); }
.inst-eco__titre--marge { margin: 40px 20px 20px; }
.inst-eco__soustitre { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1; color: var(--marine); }
.inst-eco__note { font-family: var(--poppins); font-size: 16px; font-weight: 400; line-height: 18px; text-align: center; color: var(--marine); }

.inst-eco__medailles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: center; min-height: 30px; padding: 30px; border-radius: 12px; background: #fff; }
.inst-medaille { text-align: center; }
/* figure en ligne (inline-block), comme Elementor : la ligne qui la porte ajoute quelques pixels sous l'image */
.inst-medaille__image { display: inline-block; width: 30%; margin: 0 0 15px; line-height: 24px; }
.inst-medaille__image img { width: 100%; }
.inst-medaille__annee { margin: 8px 0 16px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; color: var(--marine); }
.inst-medaille__texte { margin: 0; font-family: var(--open); font-size: 14px; line-height: 1.5; color: var(--marine); }

.inst-eco__piliers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; min-height: 30px; padding: 10px; }
.inst-pilier { padding: 20px; border-radius: 12px; background: var(--marine); text-align: center; color: #fff; }
.inst-pilier--gris { background: var(--gris-clair); color: var(--marine); }
.inst-pilier__titre { margin: 8px 0 16px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; color: inherit; }
.inst-pilier__texte { margin: 0; font-family: var(--open); font-size: 16px; line-height: 1.5; color: inherit; }

.inst-atouts { display: flex; gap: 40px; min-height: 30px; padding: 10px; }
.inst-atouts__image { flex: 0 1 35%; }
.inst-atouts__image img { width: 100%; }
.inst-atouts__liste { flex: 0 1 100%; display: flex; flex-direction: column; min-height: 30px; padding: 10px; }
.inst-atout { display: flex; gap: 20px; padding: 10px; }
.inst-atout__icone { flex: 0 1 20%; display: flex; justify-content: center; align-items: flex-start; color: var(--violet); }
.inst-atout__icone svg { width: 50px; height: 50px; }
.inst-atout__texte { flex: 0 1 80%; font-family: var(--open); font-size: 16px; line-height: 1.5; color: var(--marine); }
.inst-atout__texte p { margin: 0 0 .9rem; }

/* ---------- Contact ---------- */
.inst-page-contact .demo, .inst-page-merci .demo { display: none; }   /* ni la page contact ni les remerciements n'ont le formulaire de démo du pied */
.inst-equipe { padding: 0 10px; }
.inst-equipe__inner { max-width: var(--conteneur); margin: 0 auto; padding: 10px 0; }
.inst-equipe__ligne { display: flex; align-items: center; gap: 10px 0; min-height: 40vh; margin-top: 4%; }
.inst-equipe__textes { flex: 0 0 50%; display: flex; flex-direction: column; gap: 10px; min-height: 13vh; }
.inst-equipe__titre { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1; color: var(--marine); }
.inst-equipe__liste { padding-right: 60px; font-family: var(--open); font-size: 16px; line-height: 24px; color: var(--marine); }
.inst-equipe__liste li { display: flex; align-items: flex-start; gap: 9px; }
.inst-equipe__liste li + li { margin-top: 5px; }
.inst-equipe__liste li:not(:last-child) { padding-bottom: 5px; }
.inst-equipe__liste a { display: flex; align-items: flex-start; gap: 9px; transition: color .3s; }
.inst-equipe__liste svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 5px; transition: fill .3s; }
.inst-equipe__liste li:hover, .inst-equipe__liste li:hover a { color: var(--violet); }
.inst-equipe__image { flex: 0 0 50%; }
.inst-equipe__image img { width: 100%; height: 330px; border-radius: 12px; box-shadow: var(--ombre-douce); object-fit: cover; }

.inst-contact { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 80px) 10px; }
.inst-contact__inner { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 40px; width: 100%; max-width: var(--conteneur); margin: 0 auto; padding: 10px 0; }
.form-demo.inst-form-contact { width: 60%; }
.form-demo .inst-form-contact__besoin { flex-direction: column; align-items: stretch; gap: 10px; }
.inst-form-contact__besoin > label { text-align: left; font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 18px; color: var(--encre); }
.inst-select { position: relative; display: flex; width: 100%; }
.form-demo .inst-select select { flex: 1; min-height: 40px; padding: 5px 20px 5px 14px; line-height: 18px; appearance: none; cursor: pointer; }
.inst-select__caret { position: absolute; top: 12px; right: 10px; font-size: 11px; color: var(--marine); pointer-events: none; }
.form-demo.inst-form-contact textarea { padding: 5px 14px; }
.form-demo.inst-form-contact .champ--equipe label { font-size: 14px; font-weight: 600; line-height: 18px; color: var(--encre); white-space: nowrap; }
.form-demo.inst-form-contact .envoi { padding-right: 0; }
.form-demo.inst-form-contact .envoi .btn { font-weight: 500; }
.inst-select__caret svg { width: 1em; height: 1em; overflow: visible; }

/* largeurs du thème Hello (politique de cookies, 404) */
@media (max-width: 1199px) { .inst-doc { max-width: 800px; } }
@media (max-width: 991px) { .inst-doc { max-width: 600px; } }
@media (max-width: 767px) { .inst-doc { max-width: 500px; } }
@media (max-width: 575px) {
  .inst-doc { max-width: none; padding: 0 10px; }
  .inst-doc .inst-doc__titre { padding: 0 10px; }
}

/* ========== ≤ 1366 px ========== */
@media (max-width: 1366px) {
  .inst-eco-hero__inner { padding: 20px; }
  .inst-equipe__ligne { padding: 0 20px; }
}

/* ========== ≤ 1200 px ========== */
@media (max-width: 1200px) {
  .inst-logos__texte p { font-size: 24px; line-height: 1.1; }
  .inst-rse__image img { height: 35vh; object-fit: cover; }
  .inst-rse__textes { min-height: 35vh; }
}

/* ========== Tablette (≤ 1024 px) ========== */
@media (max-width: 1024px) {
  .inst-rse__image img { height: 43vh; }
  .inst-rse__textes { min-height: 43vh; }
  .inst-eco__medailles, .inst-eco__piliers { grid-template-columns: repeat(4, 1fr); }
  .form-demo.inst-form-contact { width: 65%; }
}

/* ========== Téléphone (≤ 767 px) ========== */
@media (max-width: 767px) {
  .inst-hero { flex-wrap: wrap; }
  .inst-hero__textes { padding: 5%; }
  .inst-hero__titre { font-size: 40px; line-height: 1.2; }
  .inst-hero--cadre .inst-hero__texte br { display: none; }   /* retours à la ligne de l'ordinateur : lignes orphelines sur téléphone */
  .inst-logos { flex-wrap: wrap; padding: 0 4% 2%; }
  .inst-logos--large { padding: 1% 4% 4%; }
  .inst-logos--colle { gap: 0; }
  .inst-logos__texte, .inst-logos__carr { flex-basis: 100%; }
  .inst-logos__texte p { font-size: 22px; }
  .inst-carr__logo { width: 100%; }
  .inst-texte { padding: 30px 20px; }

  .inst-rse__carte { flex-wrap: wrap; }
  .inst-rse__image, .inst-rse__textes { flex-basis: 100%; }
  .inst-rse__image img { border-radius: 12px 12px 0 0; }
  .inst-rse__textes { min-height: 54vh; border-radius: 0 0 12px 12px; }

  .inst-eco-hero__inner { flex-wrap: wrap; padding: 20px 0; margin: 0 20px; }
  .inst-eco-hero__textes, .inst-eco-hero__image { flex-basis: 100%; padding: 5%; }
  .inst-eco-hero__titre { font-size: 40px; line-height: 1.2; }
  .inst-eco__medailles { grid-template-columns: repeat(2, 1fr); }
  .inst-eco__piliers { grid-template-columns: 1fr; }
  .inst-atouts { flex-direction: column; align-items: center; }
  .inst-atouts__image { flex: 0 0 auto; width: 53%; }
  .inst-atout { flex-wrap: wrap; }
  .inst-atout__icone { flex: 0 0 20%; height: 56px; }
  .inst-atout__texte { flex: 0 0 100%; }
  .inst-bandeau__texte { font-size: 18px; }

  .inst-equipe__ligne { flex-wrap: wrap; }
  .inst-equipe__textes, .inst-equipe__image { flex-basis: 100%; }
  .form-demo.inst-form-contact { width: 100%; }
}
