/* DIPG – Nouveau site : direction « affiche » (aplats violet / jaune / vert / orange, typographie massive, photos
   posées comme des autocollants), reprise de la maquette des-idees-pour-grandir.
   Tout est rangé sous la classe .dipg (posée sur chaque section des nouvelles pages) : l'en-tête, le pied de page et
   les autres pages du site ne sont pas touchés. Les sélecteurs sont un cran plus précis que ceux d'Elementor et du
   kit du site ; un réglage fait à la main dans Elementor (marge, couleur…) reste prioritaire.
   Couleurs : les éléments importés ont leur couleur réglée sur une variable (--dipg-titre, --dipg-texte,
   --dipg-bouton-fond, --dipg-bouton-texte). Sans valeur, titres et textes prennent la couleur de leur bande. */

@font-face { font-family: "Rubik DIPG"; src: url("polices/rubik-normal-500-900.woff2") format("woff2"); font-weight: 500 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson DIPG"; src: url("polices/atkinson-hyperlegible-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson DIPG"; src: url("polices/atkinson-hyperlegible-normal-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson DIPG"; src: url("polices/atkinson-hyperlegible-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

.dipg {
  --violet: #742f86; --violet-nuit: #2a1736; --jaune: #ffd100; --rouge: #e5332a; --vert: #8dc63f;
  --orange: #f39200; --turquoise: #2bb3a8; --blanc: #fff; --gris-violet: #f4eff6; --encre: #2a1736; --encre-douce: #57486a;
  --titre: "Rubik DIPG", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  --texte: "Atkinson DIPG", Verdana, "Segoe UI", sans-serif;
  --gouttiere: clamp(16px, 4vw, 40px);
  background: var(--blanc); color: var(--encre);
  font-family: var(--texte); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}

/* Tailles en px, pas en rem : le thème EduBlink fixe la taille de base à 10 px (html { font-size: 62.5% }). */

/* ---------- Remise à zéro des espacements Elementor dans nos sections ---------- */
.e-con.dipg {
  --padding-top: clamp(44px, 6vw, 72px); --padding-bottom: clamp(44px, 6vw, 72px);
  --padding-left: var(--gouttiere); --padding-right: var(--gouttiere);
  --content-width: min(100%, 1180px); --gap: 17.6px; --row-gap: 17.6px; --column-gap: 17.6px;
  --flex-direction: column; position: relative; overflow: hidden;
}
.dipg .e-con { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 17.6px; --row-gap: 17.6px; --column-gap: 17.6px; --flex-direction: column; --width: 100%; }
.dipg .elementor-widget:not(:last-child) { margin-block-end: 0; }
.dipg .elementor-widget-text-editor, .dipg .elementor-widget-heading .elementor-heading-title { color: inherit; }
.dipg .elementor-widget-text-editor { font-family: var(--texte); font-size: inherit; line-height: inherit; font-weight: 400; }
.dipg .elementor-widget-text-editor p, .dipg .elementor-widget-text-editor ul, .dipg .elementor-widget-text-editor ol { margin: 0; }
.dipg .elementor-widget-text-editor > * + *, .dipg .elementor-widget-text-editor .elementor-widget-container > * + * { margin-top: 9.6px; }
.dipg .elementor-widget-text-editor ul { padding-left: 18.4px; display: flex; flex-direction: column; gap: 4px; }
.dipg .elementor-widget-text-editor a { color: inherit; text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.dipg .elementor-widget-text-editor a:hover { text-decoration-color: currentColor; }
.dipg strong { font-weight: 700; }
.dipg p, .dipg li, .dipg label span { text-wrap: pretty; } /* pas de mot seul sur la dernière ligne */
.dipg li { margin-top: 0; margin-bottom: 0; } /* le thème EduBlink ajoute 10 px au-dessus et au-dessous (ul li) */
.dipg img { max-width: 100%; height: auto; display: block; }

/* ---------- Titres ---------- */
.dipg .elementor-widget-heading .elementor-heading-title { font-family: var(--titre); font-weight: 800; line-height: 1.04; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.dipg .elementor-widget-heading h1.elementor-heading-title { font-size: clamp(35.2px, 5.6vw, 67.2px); font-weight: 900; }
.dipg .elementor-widget-heading h2.elementor-heading-title { font-size: clamp(30.4px, 4.2vw, 49.6px); }
.dipg .elementor-widget-heading h3.elementor-heading-title { font-size: clamp(19.2px, 2vw, 24px); font-weight: 700; line-height: 1.15; }
.dipg .dipg-titre-bande .elementor-heading-title { max-width: 20ch; }
.dipg .dipg-titre-bande { margin-bottom: clamp(9.6px, 2vw, 22.4px); }
.dipg .dipg-titre-long .elementor-heading-title { max-width: 28ch; } /* un titre en forme de question, plus long */
.dipg .dipg-titre-moyen h2.elementor-heading-title { font-size: clamp(24px, 2.8vw, 33.6px); }
.dipg .dipg-titre-suite { margin-top: clamp(24px, 4vw, 40px); } /* second titre dans une même bande */
.dipg .dipg-etiquette { --dipg-titre: var(--violet); }
.dipg .dipg-etiquette .elementor-heading-title { font-family: var(--titre); font-size: 15.68px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.dipg.dipg-violet .dipg-etiquette, .dipg.dipg-nuit .dipg-etiquette { --dipg-titre: var(--jaune); }
.dipg.dipg-jaune .dipg-etiquette, .dipg.dipg-vert .dipg-etiquette, .dipg.dipg-orange .dipg-etiquette,
.dipg.dipg-turquoise .dipg-etiquette { --dipg-titre: var(--encre); }
.dipg .dipg-categories .dipg-etiquette { --dipg-titre: var(--violet); } /* bloc blanc, même sur une bande colorée */
.dipg .dipg-h1-citation h1.elementor-heading-title { font-size: clamp(25.6px, 2.7vw, 35.2px); line-height: 1.1; }
.dipg .dipg-h1-citation .elementor-heading-title span { display: block; font-size: clamp(16.8px, 1.9vw, 21.6px); font-weight: 700; letter-spacing: 0; color: var(--jaune); margin-bottom: 9.6px; }

/* ---------- Textes ---------- */
.dipg .dipg-chapeau { font-size: clamp(17.92px, 1.8vw, 20.8px); line-height: 1.55; max-width: 60ch; }
.dipg.dipg-violet .dipg-chapeau, .dipg.dipg-nuit .dipg-chapeau, .dipg.dipg-heros .dipg-chapeau { --dipg-texte: #f1e6f5; }
.dipg .dipg-lecture { max-width: 70ch; }
.dipg .dipg-petit, .dipg .dipg-maj { font-size: 14.72px; }
.dipg .dipg-maj { font-weight: 700; }
.dipg .dipg-mention { font-size: 14.4px; font-weight: 700; color: var(--violet); }
.dipg .dipg-role { font-weight: 700; color: var(--violet); }
.dipg .dipg-fil { font-size: 14.72px; font-weight: 700; }
.dipg .dipg-citation { font-family: var(--titre); font-weight: 800; font-size: clamp(25.6px, 3.4vw, 41.6px); line-height: 1.12; max-width: 24ch; }
.dipg .dipg-citation p::before { content: "« "; color: var(--jaune); }
.dipg .dipg-citation p::after { content: " »"; color: var(--jaune); }
.dipg .dipg-faits ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 32px; font-family: var(--titre); font-weight: 700; font-size: clamp(16.8px, 1.7vw, 20px); line-height: 1.25; }
.dipg .dipg-faits li { display: flex; align-items: flex-start; gap: 9.6px; text-wrap: balance; }
.dipg .dipg-faits li::before { content: ""; width: 12px; height: 12px; margin-top: .32em; border-radius: 50%; background: var(--violet); flex: none; }
@media (max-width: 1060px) { .dipg .dipg-faits ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dipg .dipg-faits ul { grid-template-columns: 1fr; } }

/* À compléter : bien visible, à retirer une fois le contenu fourni */
.dipg .dipg-a-completer { --dipg-texte: var(--encre); border: 2.5px dashed var(--encre); background: #fff7cc; border-radius: 12px; padding: 12px 16px; font-size: 15.2px; max-width: 880px; }

/* Présentation d'une formation : premier paragraphe en accroche */
.dipg .dipg-presentation { max-width: 64ch; }
.dipg .dipg-presentation p:first-child { font-size: clamp(17.6px, 1.7vw, 20px); line-height: 1.55; font-weight: 700; }

/* « Quelle formation pour votre équipe ? » (accueil) : carte blanche, menu déroulant, deux formats, bouton */
.dipg .dipg-carte-choix { --dipg-texte: var(--encre-douce); background: var(--blanc); border: 3px solid var(--encre); border-radius: 22px; box-shadow: 6px 6px 0 var(--encre); --padding-top: clamp(22.4px, 4vw, 41.6px); --padding-bottom: clamp(22.4px, 4vw, 41.6px); --padding-left: clamp(19.2px, 4vw, 41.6px); --padding-right: clamp(19.2px, 4vw, 41.6px); max-width: 760px; margin-inline: auto; }
.dipg .dipg-choix { display: flex; flex-direction: column; gap: 17.6px; margin-top: 9.6px; color: var(--encre); }
.dipg .dipg-choix fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.dipg .dipg-choix-titre { display: block; font-family: var(--titre); font-weight: 700; font-size: 16.8px; margin-bottom: 7.2px; padding: 0; }
.dipg .dipg-choix select, .dipg .dipg-choix input[type="text"], .dipg .dipg-choix input[type="tel"], .dipg .dipg-choix input[type="email"],
.dipg .dipg-choix input[type="number"], .dipg .dipg-choix textarea { width: 100%; font: 400 16.8px/1.3 var(--texte); color: var(--encre); background: var(--blanc); border: 2.5px solid var(--encre); border-radius: 12px; padding: 12.8px 16px; }
.dipg .dipg-choix-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 12.8px; }
.dipg .dipg-choix-formats label { position: relative; cursor: pointer; }
.dipg .dipg-choix-formats input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dipg .dipg-choix-formats span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6px; height: 100%; padding: 13.6px 12.8px; border: 2.5px solid var(--encre); border-radius: 14px; font-size: 15.2px; line-height: 1.3; transition: background-color .12s; }
.dipg .dipg-choix-formats strong { font-family: var(--titre); font-size: 17.6px; }
.dipg .dipg-choix-formats input:checked + span { background: var(--jaune); box-shadow: 4px 4px 0 var(--encre); }
.dipg .dipg-choix-formats input:focus-visible + span, .dipg .dipg-choix select:focus-visible, .dipg .dipg-choix button:focus-visible,
.dipg .dipg-champs input:focus-visible, .dipg .dipg-champs textarea:focus-visible, .dipg .dipg-champ-email input:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
.dipg .dipg-choix button { align-self: center; font: 800 17.6px/1.15 var(--titre); color: var(--blanc); background: var(--violet); border: 2.5px solid var(--encre); border-radius: 14px; box-shadow: 4px 4px 0 var(--encre); padding: 15.2px 25.6px; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.dipg .dipg-choix button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.dipg .dipg-choix-note { margin: 0; text-align: center; font-size: 14.72px; color: var(--encre-douce); }
.dipg .dipg-choix-mention { margin: 14.4px 0 0; font-size: 15.2px; line-height: 1.45; color: var(--encre-douce); }
.dipg .dipg-carte-choix > .dipg-lien { text-align: center; }
@media (max-width: 560px) { .dipg .dipg-choix-formats { grid-template-columns: 1fr; } }

/* Formulaires envoyés à DIPG (demande de devis, structure à contacter) : champs sur deux colonnes */
.dipg .dipg-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* champ réservé aux robots */
.dipg .dipg-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14.4px 16px; align-items: end; }
.dipg .dipg-champs label, .dipg .dipg-champ-email { display: flex; flex-direction: column; gap: 4.8px; font-weight: 700; font-size: 15.68px; line-height: 1.3; }
.dipg .dipg-champs .dipg-champ-large { grid-column: 1 / -1; }
.dipg .dipg-champ-email { margin-top: 14.4px; }
.dipg .dipg-choix small { font-weight: 400; font-size: 14.4px; color: var(--encre-douce); }
.dipg .dipg-champs .dipg-case { flex-direction: row; align-items: center; gap: 9.6px; font-weight: 400; cursor: pointer; }
.dipg .dipg-case input { flex: none; width: 20px; height: 20px; accent-color: var(--violet); }
.dipg .dipg-choix-recontact span { justify-content: center; }
@media (max-width: 560px) { .dipg .dipg-champs { grid-template-columns: 1fr; } }

/* Page Demander un devis : formulaire et « Votre formation en bref » côte à côte */
.dipg .dipg-devis-grille { --display: grid; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 3vw, 40px); align-items: start; margin-top: 9.6px; }
.dipg .dipg-devis-grille .dipg-carte-choix { max-width: none; margin: 0; }
.dipg .dipg-recap-carte { --dipg-texte: var(--encre); background: var(--blanc); border: 3px solid var(--encre); border-radius: 22px; --padding-top: clamp(22.4px, 4vw, 35.2px); --padding-bottom: clamp(22.4px, 4vw, 35.2px); --padding-left: clamp(19.2px, 4vw, 35.2px); --padding-right: clamp(19.2px, 4vw, 35.2px); }
.dipg .dipg-recap, .dipg .dipg-recap-vide { color: var(--encre); font-size: 16px; line-height: 1.5; }
.dipg .dipg-recap p, .dipg .dipg-recap-vide p { margin: 0; }
.dipg .dipg-recap-vide p + p { margin-top: 12.8px; }
.dipg .dipg-recap-cat { font-family: var(--titre); font-weight: 700; font-size: 14.72px; color: var(--violet); }
.dipg .dipg-recap-titre { font-family: var(--titre); font-weight: 800; font-size: 20.8px; line-height: 1.2; margin: 3.2px 0 14.4px; text-wrap: balance; color: var(--encre); }
.dipg .dipg-recap dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5.6px 16px; margin: 0 0 16px; padding: 12.8px 0; border-block: 1.5px solid var(--encre); }
.dipg .dipg-recap dt { font-weight: 700; }
.dipg .dipg-recap dd { margin: 0; }
.dipg .dipg-recap ul { margin: 4.8px 0 16px; padding-left: 18.4px; display: flex; flex-direction: column; gap: 4.8px; }
.dipg .dipg-recap a, .dipg .dipg-recap-vide a { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 4px; text-underline-offset: .25em; }
.dipg .dipg-recap[hidden], .dipg .dipg-recap-vide[hidden] { display: none; }
@media (max-width: 900px) { .dipg .dipg-devis-grille { grid-template-columns: 1fr; } }

/* Encadré */
.dipg .dipg-encadre { --dipg-texte: var(--encre); border: 3px solid var(--encre); border-radius: 18px; padding: clamp(20px, 3vw, 28px); background: var(--blanc); max-width: 880px; }
.dipg .dipg-infos p + ul { margin-top: 3.2px; }
.dipg .dipg-infos ul + p, .dipg .dipg-infos p + p { margin-top: 8px; }
.dipg .dipg-infos p:has(strong:only-child) { margin-top: 16px; font-family: var(--titre); }
.dipg .dipg-infos p:first-child { margin-top: 0; }

/* ---------- Bandes de couleur ---------- */
.dipg.dipg-violet { background: var(--violet); color: var(--blanc); }
.dipg.dipg-nuit { background: var(--violet-nuit); color: var(--blanc); }
.dipg.dipg-jaune { background: var(--jaune); }
.dipg.dipg-vert { background: var(--vert); }
.dipg.dipg-orange { background: var(--orange); }
.dipg.dipg-turquoise { background: var(--turquoise); }
.dipg.dipg-pale { background: var(--gris-violet); }
.e-con.dipg-bande-courte { --padding-top: clamp(25.6px, 4vw, 38.4px); --padding-bottom: clamp(25.6px, 4vw, 38.4px); }

/* ---------- Boutons (autocollant : contour épais + ombre décalée) ---------- */
.dipg .dipg-boutons { --display: flex; display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: center; }
.dipg .dipg-boutons > .elementor-widget { width: auto; }
.dipg .dipg-boutons + .dipg-duo { margin-top: 19.2px; }
.dipg .dipg-bouton { --dipg-bouton-fond: var(--jaune); --dipg-bouton-texte: var(--encre); }
.dipg .dipg-bouton-blanc { --dipg-bouton-fond: var(--blanc); }
.dipg.dipg-jaune .dipg-bouton:not(.dipg-bouton-blanc) { --dipg-bouton-fond: var(--violet); --dipg-bouton-texte: var(--blanc); }
.dipg .dipg-bouton-contour { --dipg-bouton-fond: transparent; --dipg-bouton-texte: var(--blanc); }
.dipg .dipg-lien { --dipg-bouton-fond: transparent; --dipg-bouton-texte: currentColor; }
.dipg .dipg-bouton .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  font: 800 16.8px/1.15 var(--titre); letter-spacing: .005em; text-decoration: none;
  padding: 14.4px 22.4px; border: 2.5px solid var(--encre); border-radius: 14px;
  background-color: var(--dipg-bouton-fond); color: var(--dipg-bouton-texte); fill: currentColor; box-shadow: 4px 4px 0 var(--encre);
  transition: transform .12s, box-shadow .12s;
}
.dipg .dipg-bouton .elementor-button:hover, .dipg .dipg-bouton .elementor-button:focus { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); background-color: var(--dipg-bouton-fond); color: var(--dipg-bouton-texte); }
.dipg .dipg-bouton-contour .elementor-button, .dipg .dipg-bouton-contour .elementor-button:hover { border-color: var(--blanc); box-shadow: none; transform: none; }
.dipg .dipg-bouton-contour .elementor-button:hover { background-image: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)); }
.dipg.dipg-heros .dipg-bouton:not(.dipg-bouton-contour) .elementor-button { border-color: var(--violet-nuit); box-shadow: 4px 4px 0 var(--violet-nuit); }
.dipg .dipg-lien .elementor-button, .dipg .dipg-lien .elementor-button:hover {
  background-color: var(--dipg-bouton-fond); border: 0; box-shadow: none; padding: 0; border-radius: 0; color: var(--dipg-bouton-texte); transform: none;
  font: 700 16px/1.4 var(--texte); text-decoration: underline; text-decoration-color: var(--jaune);
  text-decoration-thickness: 4px; text-underline-offset: .25em; white-space: normal; text-align: left;
}
.dipg .dipg-lien .elementor-button:hover { text-decoration-color: currentColor; }
.dipg.dipg-jaune .dipg-lien .elementor-button, .dipg .dipg-bloc .dipg-lien .elementor-button { text-decoration-color: currentColor; }
.dipg .elementor-button:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }

/* ---------- Photos « autocollant » et logos ---------- */
.dipg .dipg-autocollant img { width: 100%; object-fit: cover; background: var(--blanc); padding: clamp(6px, .8vw, 10px); box-shadow: 0 2px 0 rgba(42, 23, 54, .15), 0 18px 34px -18px rgba(42, 23, 54, .6); transform: rotate(var(--r, 0deg)); }
.dipg .dipg-portrait img { aspect-ratio: 3 / 4; }
.dipg .dipg-paysage img { aspect-ratio: 3 / 2; }
.dipg .dipg-carree img { aspect-ratio: 1; }
.dipg .dipg-logo img { background: var(--blanc); border: 2.5px solid var(--encre); border-radius: 12px; padding: 9.6px; width: auto; max-height: 110px; }
.dipg .dipg-logo-grand img { max-height: none; width: min(300px, 100%); }
.dipg .dipg-logo-nuit img { background: var(--violet-nuit); }
.dipg .dipg-logos { --display: flex; display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: center; }
.dipg .dipg-logos > .elementor-widget { width: auto; }
.dipg .dipg-galerie { --display: grid; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); margin-block: 8px 24px; }
.dipg .dipg-galerie > :nth-child(1) { --r: -2deg; }
.dipg .dipg-galerie > :nth-child(2) { --r: 2deg; margin-top: 24px; }
.dipg .dipg-galerie > :nth-child(3) { --r: -1deg; }
@media (max-width: 760px) { .dipg .dipg-galerie { grid-template-columns: 1fr 1fr; } .dipg .dipg-galerie > :nth-child(3) { display: none; } }

/* ---------- Héros de l'accueil ---------- */
.dipg.dipg-heros { background: var(--violet); color: var(--blanc); --padding-top: clamp(32px, 5vw, 56px); --padding-bottom: clamp(80px, 9vw, 112px); }
.dipg.dipg-heros::after {
  content: ""; position: absolute; left: -5%; right: -5%; bottom: 0; height: clamp(70px, 9vw, 120px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath d='M-20 170 C 90 90, 170 210, 280 150 S 420 40, 520 120 C 580 170, 640 150, 650 105 C 662 55, 600 40, 585 85 C 570 135, 640 185, 740 165 S 930 60, 1040 120 S 1180 170, 1230 110' fill='none' stroke='%23ffd100' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.dipg .dipg-heros-grille { --display: grid; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.dipg .dipg-heros-grille > .dipg-pile { gap: 24px; }
.dipg .dipg-collage { --display: block; display: block; position: relative; aspect-ratio: 1 / .92; }
.dipg .dipg-collage > .elementor-widget { position: absolute; }
.dipg .dipg-collage .dipg-c1 { width: 66%; left: 0; top: 10%; --r: -4deg; z-index: 3; } /* la photo principale passe devant */
.dipg .dipg-collage .dipg-c1 img { aspect-ratio: 4 / 3; object-position: center 20%; } /* photo carrée : on garde les visages */
.dipg .dipg-collage .dipg-c2 { width: 40%; right: 2%; top: 0; --r: 5deg; z-index: 1; }
.dipg .dipg-collage .dipg-c2 img { aspect-ratio: 9 / 16; }
.dipg .dipg-collage .dipg-c3 { width: 40%; right: 6%; bottom: 0; --r: -2deg; z-index: 2; }
.dipg .dipg-collage .dipg-c3 img { aspect-ratio: 1; }
@media (max-width: 860px) {
  .dipg .dipg-heros-grille { grid-template-columns: 1fr; }
  .dipg .dipg-collage { max-width: 520px; width: 100%; margin-inline: auto; }
}

/* ---------- En-tête des pages intérieures ---------- */
.dipg.dipg-entete-page { --padding-top: clamp(32px, 5vw, 56px); --padding-bottom: clamp(32px, 5vw, 56px); border-bottom: 3px solid var(--encre); }
.dipg .dipg-entete-grille { --display: grid; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.dipg .dipg-entete-grille > .dipg-pile { gap: 20.8px; }
.dipg .dipg-entete-grille > .elementor-widget { justify-self: end; width: 100%; max-width: 420px; --r: 3deg; }
.dipg .dipg-entete-grille > .dipg-logo { width: auto; }
@media (max-width: 860px) {
  .dipg .dipg-entete-grille { grid-template-columns: 1fr; }
  .dipg .dipg-entete-grille > .elementor-widget { justify-self: start; max-width: 320px; }
}

/* ---------- Mises en page ---------- */
.dipg .dipg-pile { gap: 17.6px; }
.dipg .dipg-duo { --display: grid; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.dipg .dipg-duo-haut { align-items: start; }
.dipg .dipg-duo > .dipg-logo { justify-self: center; }
@media (max-width: 860px) { .dipg .dipg-duo { grid-template-columns: 1fr; } }

/* Listes « affiche » : filets épais, pas de cartes */
.dipg .dipg-liste, .dipg .dipg-faq { --display: grid; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 64px); row-gap: 0; }
.dipg .dipg-liste-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dipg .dipg-faq { grid-template-columns: 1fr; max-width: 860px; }
@media (max-width: 860px) { .dipg .dipg-liste-3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .dipg .dipg-liste { grid-template-columns: 1fr; } }
.dipg .dipg-item { border-top: 3px solid currentColor; --padding-top: 17.6px; --padding-bottom: 25.6px; --gap: 8px; --row-gap: 8px; padding-block: 17.6px 25.6px; }
.dipg .dipg-item .dipg-lien { margin-top: auto; padding-top: 6.4px; }
.dipg [class*="dipg-forme-"] > .elementor-widget-heading:first-child h3.elementor-heading-title,
.dipg [class*="dipg-forme-"] > .elementor-widget-heading:first-of-type h3.elementor-heading-title { display: flex; align-items: center; gap: 11.2px; }
.dipg [class*="dipg-forme-"] h3.elementor-heading-title::before { content: ""; flex: none; width: 22px; height: 22px; }
.dipg .dipg-forme-triangle h3.elementor-heading-title::before { background: var(--turquoise); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dipg .dipg-forme-rond h3.elementor-heading-title::before { background: var(--rouge); border-radius: 50%; }
.dipg .dipg-forme-demi h3.elementor-heading-title::before { background: var(--orange); border-radius: 22px 0 0 22px; width: 11px; }
.dipg .dipg-forme-carre h3.elementor-heading-title::before { background: var(--vert); }

/* Catégories du catalogue : quatre blocs à égalité */
.dipg .dipg-categories { --display: grid; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 3px solid var(--encre); gap: 0; background: var(--blanc); color: var(--encre); margin-block: 8px 16px; }
.dipg .dipg-categorie { --gap: 9.6px; --row-gap: 9.6px; padding: clamp(20px, 3vw, 32px); border-top: 14px solid var(--c, var(--jaune)); }
.dipg .dipg-categorie:nth-child(odd) { border-right: 3px solid var(--encre); }
.dipg .dipg-categorie:nth-child(n+3) { box-shadow: inset 0 3px 0 var(--encre); }
.dipg .dipg-categorie-jaune { --c: var(--jaune); }
.dipg .dipg-categorie-orange { --c: var(--orange); }
.dipg .dipg-categorie-vert { --c: var(--vert); }
.dipg .dipg-categorie-turquoise { --c: var(--turquoise); }
.dipg .dipg-categorie ul { font-family: var(--titre); font-weight: 700; font-size: 17.28px; line-height: 1.3; gap: 7.2px; padding-left: 17.6px; }
.dipg .dipg-categorie li::marker { color: var(--violet); }
.dipg .dipg-categorie li a { text-decoration: none; } /* liste de liens : le soulignement n'apparaît qu'au survol */
.dipg .dipg-categorie li a:hover, .dipg .dipg-categorie li a:focus-visible { text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.dipg .dipg-categorie li span { display: block; font-family: var(--texte); font-weight: 400; font-size: 14.72px; color: var(--encre-douce); }
@media (max-width: 760px) {
  .dipg .dipg-categories { grid-template-columns: 1fr; }
  .dipg .dipg-categorie:nth-child(odd) { border-right: 0; }
  .dipg .dipg-categorie:nth-child(n+2) { box-shadow: inset 0 3px 0 var(--encre); }
}

/* Leviers : colonnes séparées par des filets */
.dipg .dipg-leviers { --display: grid; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.dipg .dipg-leviers-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dipg .dipg-levier { --gap: 12.8px; --row-gap: 12.8px; padding: 0 clamp(16px, 3vw, 36px); border-left: 3px solid currentColor; }
.dipg .dipg-levier:first-child { border-left: 0; padding-left: 0; }
.dipg .dipg-levier .dipg-lien { margin-top: auto; }
.dipg .dipg-leviers-clairs .dipg-levier { border-left-color: rgba(255, 255, 255, .5); }
@media (max-width: 860px) {
  .dipg .dipg-leviers, .dipg .dipg-leviers-2 { grid-template-columns: 1fr; gap: 32px; }
  .dipg .dipg-levier, .dipg .dipg-levier:first-child { border-left: 0; border-top: 3px solid currentColor; padding: 20px 0 0; }
}

/* Blocs de couleur (portes d'entrée) */
.dipg .dipg-blocs { --display: grid; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 3px solid var(--encre); gap: 0; color: var(--encre); }
.dipg .dipg-bloc { --gap: 9.6px; --row-gap: 9.6px; padding: clamp(20px, 2.5vw, 30.4px); min-height: 230px; border-right: 3px solid var(--encre); }
.dipg .dipg-bloc:last-child { border-right: 0; }
.dipg .dipg-bloc h3.elementor-heading-title { font-size: clamp(22.4px, 2.4vw, 30.4px); }
.dipg .dipg-bloc .dipg-lien { margin-top: auto; }
.dipg .dipg-bloc-liens { margin-top: auto; --gap: 8px; --row-gap: 8px; }
.dipg .dipg-bloc-liens .dipg-lien { margin-top: 0; }
.dipg .dipg-bloc-jaune { background: var(--jaune); }
.dipg .dipg-bloc-vert { background: var(--vert); }
.dipg .dipg-bloc-orange { background: var(--orange); }
.dipg .dipg-bloc-turquoise { background: var(--turquoise); }
@media (max-width: 980px) {
  .dipg .dipg-blocs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dipg .dipg-bloc:nth-child(2) { border-right: 0; }
  .dipg .dipg-bloc:nth-child(-n+2) { border-bottom: 3px solid var(--encre); }
}
@media (max-width: 560px) {
  .dipg .dipg-blocs { grid-template-columns: 1fr; }
  .dipg .dipg-bloc, .dipg .dipg-bloc:nth-child(2) { border-right: 0; border-bottom: 3px solid var(--encre); min-height: 0; }
  .dipg .dipg-bloc:last-child { border-bottom: 0; }
}

/* Témoignages : la citation en grand, le nom dessous */
.dipg .dipg-temoignages { --display: grid; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.dipg .dipg-temoignage { border-left: 6px solid var(--jaune); padding-left: 17.6px; }
.dipg .dipg-temoignage p:first-child { font-family: var(--titre); font-weight: 600; font-size: 17.92px; line-height: 1.4; }
.dipg.dipg-jaune .dipg-temoignage { border-left-color: var(--violet); }

/* Étapes numérotées */
.dipg .dipg-etapes { --display: grid; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(24px, 3vw, 40px); counter-reset: etape; }
.dipg .dipg-etape { counter-increment: etape; --gap: 8px; --row-gap: 8px; }
.dipg .dipg-etape::before { content: counter(etape); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--jaune); color: var(--encre); border: 2.5px solid var(--encre); font: 900 22.4px var(--titre); margin-bottom: 4.8px;
  position: static; opacity: 1; mix-blend-mode: normal; } /* Elementor pose déjà un ::before absolu (calque de fond) sur ses conteneurs */

/* Équipe et ingénieurs pédagogiques */
.dipg .dipg-equipe { --display: grid; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); column-gap: 32px; row-gap: 0; }
.dipg .dipg-personne { border-top: 3px solid var(--encre); --gap: 6.4px; --row-gap: 6.4px; padding-block: 16px 25.6px; }
.dipg .dipg-dessin img { width: min(170px, 60%); height: auto; margin-bottom: 6.4px; } /* portraits dessinés du site actuel */

/* Qualiopi : le financement, puis le logo intact et sa mention obligatoire juste dessous */
.dipg .dipg-qualiopi { --gap: 8px; --row-gap: 8px; border-top: 3px solid var(--encre); padding-top: 24px; max-width: 880px; }
.dipg .dipg-qualiopi .dipg-logo { margin-top: 11.2px; text-align: left; }
.dipg .dipg-qualiopi .dipg-logo img { width: 230px; max-height: none; }
.dipg .dipg-mention-qualiopi { font-size: 15.2px; max-width: 48ch; }

/* Indicateurs de résultats : deux grands chiffres posés sur la page (pas de tuiles) */
.e-con.dipg.dipg-filet { border-top: 3px solid var(--encre); }
.dipg .dipg-indicateurs p { display: inline-flex; flex-direction: column; gap: 3.2px; vertical-align: top; margin: 0 clamp(32px, 7vw, 88px) 9.6px 0; font-family: var(--titre); font-weight: 700; font-size: clamp(16.8px, 1.7vw, 20px); line-height: 1.25; }
.dipg .dipg-indicateurs strong { font-size: clamp(51.2px, 9vw, 96px); font-weight: 900; line-height: .95; letter-spacing: -.03em; color: var(--violet); white-space: nowrap; }

/* Références : les logos seuls, sur fond blanc ; le partenaire de confiance à part */
.dipg .dipg-refs { --display: grid; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; align-items: center; }
.dipg .dipg-ref img { width: 100%; height: 104px; object-fit: contain; background: var(--blanc); border-radius: 10px; padding: 14.4px 16px; }
.dipg .dipg-partenaire { --display: flex; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 19.2px; border-top: 3px solid var(--encre); padding-top: 20.8px; margin-top: 19.2px; }
.dipg .dipg-partenaire > .elementor-widget { width: auto; }
.dipg .dipg-partenaire .dipg-ref img { width: 180px; }

/* Newsletter : le formulaire Mailjet de DIPG (iframe), sur fond blanc pour rester lisible sur la bande jaune */
.dipg .dipg-newsletter { background: var(--blanc); border: 3px solid var(--encre); border-radius: 18px; padding: 8px; max-width: 760px; }

@media (prefers-reduced-motion: reduce) { .dipg * { transition: none !important; } }
