/* Thème edl : base commune, en-tête et pied de page.
   En-tête et pied identiques à ceux de Divi pour l'instant (décision de Fred, 24/10/2026). */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #666; font: 400 14px/1.7 'Open Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- En-tête ---------- */
.edl-en-tete { position: relative; z-index: 99; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .1); font-family: 'Open Sans', Arial, sans-serif; }
.edl-en-tete__rangee { width: 80%; max-width: 1080px; margin: 0 auto; min-height: 80px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.edl-en-tete__logo { display: block; margin-left: 4px; line-height: 0; }
.edl-en-tete__logo img { display: block; height: 43px; width: auto; }
/* Tailles relevées sur les captures de Divi (son script agrandit le logo) ; l'en-tête passe à 92 px avec le bouton du compte */
.edl-en-tete:has(.connected) .edl-en-tete__logo img { height: 49.5px; }
.edl-en-tete__nav { align-self: flex-end; padding-top: 33px; }
.edl-menu, .edl-menu ul { list-style: none; margin: 0; padding: 0; }
.edl-menu { display: flex; align-items: baseline; column-gap: 4px; } /* alignés sur la ligne de base, avec l'espace entre éléments en ligne de Divi */
.edl-menu > li { position: relative; padding-right: 22px; font-size: 14px; font-weight: 600; line-height: 1em; }
.edl-menu > li:last-child { padding-right: 0; }
.edl-menu a { display: block; color: rgba(0, 0, 0, .6); text-decoration: none; transition: opacity .4s ease-in-out, background-color .4s ease-in-out; }
.edl-menu > li > a { padding-bottom: 33px; }
.edl-menu a:hover { opacity: .7; }
.edl-menu > .current-menu-item > a { color: #2ea3f2; }
/* Sous-menu (compte connecté) : celui de Divi */
.edl-menu .menu-item-has-children > a { padding-right: 20px; }
.edl-menu .menu-item-has-children > a::after { content: ""; position: absolute; right: 22px; top: 2px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.edl-menu > li:last-child.menu-item-has-children > a::after { right: 0; }
.edl-menu .sub-menu { position: absolute; top: 100%; left: 0; z-index: 9999; width: 240px; padding: 20px 0; background: #fff; border-top: 3px solid #2ea3f2; box-shadow: 0 2px 5px rgba(0, 0, 0, .1); text-align: left; visibility: hidden; opacity: 0; transition: opacity .2s ease-in-out, visibility .2s; }
.edl-menu li:hover > .sub-menu, .edl-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.edl-menu .sub-menu li { padding: 0 20px; line-height: 2em; }
.edl-menu .sub-menu a { width: 200px; padding: 6px 20px; font-size: 14px; }
.edl-menu .sub-menu a:hover { opacity: .7; background: rgba(0, 0, 0, .03); }
/* Repris du CSS additionnel de Divi (#796) : élément « connecté » et son sous-menu en bouton bleu */
.edl-menu .connected a, .edl-menu .connected .sub-menu a { color: #fff; padding: 10px; background-color: #2ea3f4; }
.edl-menu .connected > a { line-height: 16px; }
.edl-menu .connected > a::after { position: relative; display: inline-block; margin-left: 15px; top: -3px; right: auto; }
.edl-menu > li.connected:last-child { padding-right: 0; }
.edl-menu .red a:hover { color: red; padding: 10px; }

.edl-en-tete__bouton { display: none; }
@media (max-width: 980px) {
	.edl-en-tete__rangee { min-height: 0; padding: 24px 0; }
	.edl-en-tete__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 5%; background: #fff; border-top: 3px solid #2ea3f2; box-shadow: 0 2px 5px rgba(0, 0, 0, .1); }
	.est-ouvert .edl-en-tete__nav { display: block; }
	.edl-menu { display: block; }
	.edl-menu > li { padding: 0; }
	.edl-menu a, .edl-menu > li > a { padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, .03); }
	.edl-menu .sub-menu { position: static; visibility: visible; opacity: 1; width: auto; padding: 0 0 0 20px; border: 0; box-shadow: none; }
	.edl-menu .sub-menu li { padding: 0; }
	.edl-menu .sub-menu a { width: auto; }
	.edl-menu .menu-item-has-children > a::after { display: none; }
	.edl-en-tete__bouton { display: block; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; color: #2ea3f2; }
	.edl-en-tete__bouton span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.edl-en-tete__bouton::before { content: ""; display: block; width: 26px; height: 3px; margin: 0 auto; background: currentColor; box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor; }
	.est-ouvert .edl-en-tete__bouton::before { box-shadow: none; transform: rotate(45deg); }
	.est-ouvert .edl-en-tete__bouton::after { content: ""; display: block; width: 26px; height: 3px; margin: -3px auto 0; background: currentColor; transform: rotate(-45deg); }
}

/* Repris du CSS additionnel de Divi (#796) : iPad en paysage, conteneur pleine largeur */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
	.edl-en-tete__rangee, .edl-pied__rangee { width: 100%; max-width: none; }
	.edl-accueil p { padding-left: 30px; } /* sur Divi, tous les paragraphes : limité à l'accueil, qui reste identique */
}

/* ---------- Pied de page ---------- */
.edl-pied { background: #171717; color: #fff; padding: 15px 0; text-align: center; font: 400 14px/1.7 'Open Sans', Arial, sans-serif; }
.edl-pied__rangee { width: 80%; max-width: 1080px; margin: 0 auto; }
.edl-pied a { color: #fff; font-weight: 700; text-decoration: none; }

/* ==========================================================================
   Pages intérieures (maquette validée par Fred le 20/10/2026) : Inter, bleu éduSanté
   #1673b9, marine #0f3a5f, texte #3d4a57, un seul style de bouton, cartes blanches.
   L'accueil garde sa mise en page d'origine (accueil.css) ; en-tête et pied restent ceux de Divi.
   ========================================================================== */
:root {
	--edl-bleu: #1673b9; --edl-bleu-fonce: #0f5c95; --edl-bleu-pale: #eaf3fb; --edl-marine: #0f3a5f;
	--edl-encre: #1c2733; --edl-texte: #3d4a57; --edl-discret: #5b6774; --edl-trait: #e3e8ee;
	--edl-trait-doux: #edf1f5; --edl-fond: #f5f7fa; --edl-vert: #1e7a45;
	--edl-ombre: 0 1px 3px rgba(16, 32, 48, .08), 0 1px 2px rgba(16, 32, 48, .06);
	--edl-ombre-haute: 0 10px 20px rgba(16, 32, 48, .08), 0 3px 6px rgba(16, 32, 48, .06);
	--edl-police: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.edl-fond { background: var(--edl-fond); color: var(--edl-encre); font: 400 16px/1.55 var(--edl-police); min-height: 50vh; }
.edl-rangee { width: 80%; max-width: 1080px; margin: 0 auto; }
@media (max-width: 980px) { .edl-rangee { width: auto; margin: 0 16px; } }
.edl-fond a { color: var(--edl-bleu); }
.edl-fond a:hover { color: var(--edl-bleu-fonce); }
.edl-fond :focus-visible { outline: 2px solid var(--edl-bleu); outline-offset: 2px; }
.edl-fond h1, .edl-fond h2, .edl-fond h3 { color: var(--edl-marine); font-family: var(--edl-police); letter-spacing: -.01em; }

/* Page simple : titre, contenu sur une ligne de lecture confortable */
.edl-page { padding: 48px 0 64px; }
.edl-titre-page { margin: 0 0 12px; font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.edl-chapo { max-width: 640px; margin: 0 0 32px; font-size: 17px; line-height: 1.65; color: var(--edl-texte); }
.edl-contenu { color: var(--edl-texte); font-size: 17px; line-height: 1.65; }
.edl-contenu > * { max-width: 760px; }
.edl-contenu > .wp-block-columns, .edl-contenu > .alignwide, .edl-contenu > .alignfull, .edl-contenu > .edl-large { max-width: none; }
.edl-contenu p { margin: 0 0 1em; }
.edl-contenu h2 { font-size: 24px; margin: 1.6em 0 .5em; }
.edl-contenu h3 { font-size: 19px; margin: 1.4em 0 .4em; }
.edl-contenu ul, .edl-contenu ol { padding-left: 1.3em; margin: 0 0 1em; }
.edl-contenu li { margin: .25em 0; }
.edl-contenu img { border-radius: 10px; }

/* Cartes, boutons, pastilles, barre de progression */
.edl-carte { background: #fff; border-radius: 12px; box-shadow: var(--edl-ombre); padding: 24px; }
.edl-carte__titre { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.edl-carte p:last-child { margin-bottom: 0; }
.edl-bouton, .edl-fond .wp-block-button__link, .edl-fond .gform_button, .edl-fond input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
	border: 1px solid #cfd8e1; border-radius: 8px; background: #fff; color: var(--edl-encre);
	font: 600 15px/1.2 var(--edl-police); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.edl-fond .edl-bouton { color: var(--edl-encre); }
.edl-bouton:hover, .edl-fond .edl-bouton:hover { border-color: var(--edl-bleu); color: var(--edl-bleu); }
.edl-bouton--plein, .edl-fond .edl-bouton--plein, .edl-fond .wp-block-button:not(.is-style-outline) .wp-block-button__link, .edl-fond .gform_button, .edl-fond input[type="submit"] {
	min-height: 48px; border-color: var(--edl-bleu); background: var(--edl-bleu); color: #fff; font-size: 16px;
}
.edl-bouton--plein:hover, .edl-fond .edl-bouton--plein:hover, .edl-fond .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover, .edl-fond .gform_button:hover, .edl-fond input[type="submit"]:hover { background: var(--edl-bleu-fonce); border-color: var(--edl-bleu-fonce); color: #fff; }
.edl-bouton--contour, .edl-fond .edl-bouton--contour, .edl-fond .is-style-outline .wp-block-button__link { border-color: var(--edl-bleu); color: var(--edl-bleu); background: #fff; }
.edl-fond .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1em 0; }
.edl-pastille { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #f0f3f6; color: #4f5b67; font-size: 12px; font-weight: 500; white-space: nowrap; }
.edl-barre { height: 8px; border-radius: 4px; background: var(--edl-trait); overflow: hidden; }
.edl-barre span { display: block; height: 100%; border-radius: 4px; background: var(--edl-vert); }
.edl-barre--fine { height: 6px; }
.edl-surtitre { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--edl-bleu); }
.edl-alerte { display: flex; gap: 14px; padding: 16px 20px; border-radius: 10px; }
.edl-alerte > svg { flex-shrink: 0; margin-top: 2px; }
.edl-alerte strong:first-child { display: block; }
.edl-alerte--attention { background: #fff4e2; color: #5c3a00; }
.edl-alerte--attention > svg { color: #a35a00; }
.edl-alerte--info { background: var(--edl-bleu-pale); color: var(--edl-marine); }
.edl-alerte--info > svg { color: var(--edl-bleu); }

/* Aide : formulaire à gauche, FAQ et contacts à droite */
.edl-fond .edl-aide { gap: 40px; align-items: flex-start; margin: 0; }
.edl-aide__cote { display: flex; flex-direction: column; gap: 20px; }
.edl-liens { list-style: none; margin: 0 0 14px; padding: 0; }
.edl-liens li { margin: 0; border-bottom: 1px solid var(--edl-trait-doux); }
.edl-fond .edl-liens a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--edl-encre); text-decoration: none; font-size: 15px; }
.edl-fond .edl-liens a::after { content: "›"; color: var(--edl-bleu); font-size: 20px; line-height: 1; }
.edl-contacts p { margin: 0 0 10px; }
.edl-fond .edl-contact a { display: inline-flex; gap: 10px; align-items: center; color: var(--edl-encre); text-decoration: none; font-size: 15px; }
.edl-contact a::before { content: ""; width: 18px; height: 18px; background: var(--edl-bleu); -webkit-mask: var(--icone) center / contain no-repeat; mask: var(--icone) center / contain no-repeat; }
.edl-contact--tel { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.edl-contact--mel { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7.2L4.4 7H4v.4l8 5.5 8-5.5V7h-.4z'/%3E%3C/svg%3E"); }
@media (max-width: 781px) { .edl-aide__cote { flex-basis: auto !important; } }

/* Formulaires Gravity Forms (Aide, Écrire à Myriam) aux couleurs du site */
.edl-fond .gform_wrapper .gfield_label, .edl-fond .gform_wrapper legend { font: 500 14px/1.4 var(--edl-police); color: var(--edl-encre); }
.edl-fond .gform_wrapper input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.edl-fond .gform_wrapper select, .edl-fond .gform_wrapper textarea {
	min-height: 44px; padding: 8px 12px; border: 1px solid #cfd8e1; border-radius: 8px; background: #fff;
	font: 400 16px/1.4 var(--edl-police); color: var(--edl-encre);
}
.edl-fond .gform_wrapper textarea { min-height: 160px; }
.edl-fond .gform_wrapper input:focus, .edl-fond .gform_wrapper textarea:focus, .edl-fond .gform_wrapper select:focus { border-color: var(--edl-bleu); outline: 2px solid rgba(22, 115, 185, .25); outline-offset: 0; }
.edl-fond .gform_footer { padding-top: 8px; }

/* « Votre espace personnel » : le résumé de LearnDash ([ld_course_info]) en carte */
.edl-contenu #ld_course_info { max-width: 760px; padding: 24px; border-radius: 12px; background: #fff; box-shadow: var(--edl-ombre); font-size: 16px; }
.edl-contenu #ld_course_info h4, .edl-contenu #ld_course_info .ld-course-info-section-header { margin: 0 0 8px; font: 600 18px/1.3 var(--edl-police); color: var(--edl-marine); }
.edl-contenu #ld_course_info a { font-weight: 600; }

/* Logo qui rétrécit proportionnellement quand le menu prend de la place (menu d'un admin :
   Tuteurs, Admin… ; demande de Fred du 24/10/2026). Le menu garde sa taille, sur une ligne. */
.edl-en-tete__rangee { gap: 24px; }
.edl-en-tete__logo { flex: 0 1 auto; min-width: 110px; }
.edl-en-tete__logo img, .edl-en-tete:has(.connected) .edl-en-tete__logo img { width: 100%; max-width: 295px; height: auto; max-height: 43px; object-fit: contain; object-position: left center; }
.edl-en-tete:has(.connected) .edl-en-tete__logo img { max-width: 340px; max-height: 49.5px; }
.edl-en-tete__nav { flex: 0 0 auto; }
.edl-menu a { white-space: nowrap; }

/* Aide : questions qui se déplient sur place (Fred, 24/10/2026) */
.edl-fond .edl-question { margin: 0; border-bottom: 1px solid var(--edl-trait-doux); }
.edl-fond .edl-question summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 10px 0; color: var(--edl-encre); font-size: 15px; cursor: pointer; list-style: none; }
.edl-fond .edl-question summary::-webkit-details-marker { display: none; }
.edl-fond .edl-question summary::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-right: 4px; border: solid var(--edl-bleu); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.edl-fond .edl-question[open] summary::after { transform: rotate(-135deg); }
.edl-fond .edl-question summary:hover { color: var(--edl-bleu); }
.edl-fond .edl-question p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--edl-texte); }
.edl-carte > .edl-question:last-of-type + p { margin-top: 14px; }

/* Cartes : pas de marge au-dessus du premier élément ; formulaires pleine largeur sur téléphone */
.edl-carte > :first-child, .edl-carte .gform_wrapper:first-child, .edl-aide__formulaire > h2:first-child { margin-top: 0; }
.edl-fond .gform_wrapper.gravity-theme .gform_fields { row-gap: 20px; }
@media (max-width: 640px) {
	.edl-fond .gform_wrapper .ginput_container input, .edl-fond .gform_wrapper .ginput_container select { width: 100% !important; }
	.edl-carte { padding: 20px; }
	.edl-titre-page { font-size: 32px; }
}

/* « Accueil » retiré du menu : le logo y ramène (Fred, 24/10/2026). Masqué ici plutôt que supprimé
   du menu, pour qu'un retour à Divi le retrouve. */
.edl-menu > #menu-item-224 { display: none; }
