/* =========================================================
   ARES – style commun des pages intérieures (Elementor)
   Classes à utiliser dans Elementor (onglet Avancé → Classes CSS) :
   ares-hero, ares-section, ares-fond-clair, ares-fond-bleu,
   ares-titre (+ ares-gauche), ares-intro, ares-carte, ares-num,
   ares-alerte, ares-equation (+ ares-equation--rouge / --vert),
   ares-bouton (+ ares-bouton--clair), ares-etape
   ========================================================= */
:root {
	--ares-navy: #1d1a6e;
	--ares-navy-2: #2c27a3;
	--ares-blue: #0b45d6;
	--ares-yellow: #ffc400;
	--ares-green: #5fb80b;
	--ares-red: #e8230e;
	--ares-ink: #17173a;
	--ares-muted: #5d5d7a;
	--ares-tint: #f4f5fc;
	--ares-shadow: 0 10px 30px rgba(29, 26, 110, .12);
	--ares-shadow-lg: 0 24px 60px rgba(29, 26, 110, .2);
	--ares-ease: cubic-bezier(.2, .8, .2, 1);
	--ares-back: cubic-bezier(.34, 1.56, .64, 1);
}

body:not(.ares-home) {
	font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--ares-ink);
	-webkit-font-smoothing: antialiased;
}
body:not(.ares-home) h1, body:not(.ares-home) h2, body:not(.ares-home) h3, body:not(.ares-home) h4,
body:not(.ares-home) .elementor-heading-title { font-family: "Nunito", sans-serif; font-weight: 900; color: var(--ares-navy); line-height: 1.2; }
body:not(.ares-home) #masthead, body:not(.ares-home) #colophon { display: none; }

/* Pages Elementor « Pleine largeur » : les fonds de section vont d'un bord à l'autre */
.elementor-template-full-width #content, .elementor-template-full-width .site-content { padding: 0 !important; margin: 0 !important; }
.elementor-template-full-width #content > .ast-container { max-width: none !important; width: 100%; padding: 0 !important; display: block; }

/* ---------- En-tête ---------- */
.ares-top { position: sticky; top: 0; z-index: 999; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .3s; }
.admin-bar .ares-top { top: 32px; }
.ares-top.is-scrolled { box-shadow: 0 6px 24px rgba(29,26,110,.1); }
.ares-top__in { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 72px; display: flex; align-items: center; gap: 20px; }
.ares-top__logo img { height: 52px; width: auto; display: block; transition: transform .4s var(--ares-back); }
.ares-top__logo:hover img { transform: rotate(-4deg) scale(1.05); }
.ares-top__nav { margin-left: auto; }
.ares-top__nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ares-top__nav li { position: relative; margin: 0; }
.ares-top__nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s; }
.ares-top__nav .has-sub:hover > a::after { transform: rotate(-135deg) translate(-2px, -2px); }
.ares-top__nav .ares-sub {
	position: absolute; top: 100%; left: 0; z-index: 5; min-width: 250px; margin: 6px 0 0; padding: 8px; list-style: none;
	background: #fff; border-radius: 14px; box-shadow: var(--ares-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .3s var(--ares-ease), visibility 0s .3s;
}
.ares-top__nav .ares-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.ares-top__nav .has-sub:hover > .ares-sub, .ares-top__nav .has-sub:focus-within > .ares-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ares-ease); }
.ares-top__nav .ares-sub a { padding: 10px 12px; white-space: nowrap; box-shadow: none !important; border-radius: 10px !important; }
.ares-top__nav .ares-sub a:hover { color: var(--ares-blue); }
.ares-top__nav a { display: block; padding: 8px 11px; border-radius: 10px; font-weight: 800; font-size: 15px; color: var(--ares-navy); text-decoration: none; transition: background .25s, color .25s; }
.ares-top__nav a:hover { background: var(--ares-tint); color: var(--ares-navy); }
.ares-top__nav a.is-active { color: var(--ares-blue); box-shadow: inset 0 -4px 0 var(--ares-blue); border-radius: 10px 10px 0 0; }
.ares-top__user { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ares-navy); color: #fff; transition: transform .35s var(--ares-back), background .3s; }
.ares-top__user:hover { transform: scale(1.1) rotate(8deg); background: var(--ares-blue); color: #fff; }
.ares-top__burger { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; }
.ares-top__burger:hover, .ares-top__burger:focus { background: none; }
.ares-top__burger span { position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 3px; background: var(--ares-navy); transition: transform .35s var(--ares-ease), opacity .2s; }
.ares-top__burger span:nth-child(1) { top: 13px; } .ares-top__burger span:nth-child(2) { top: 20px; } .ares-top__burger span:nth-child(3) { top: 27px; }
.ares-nav-open .ares-top__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ares-nav-open .ares-top__burger span:nth-child(2) { opacity: 0; }
.ares-nav-open .ares-top__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Pied de page ---------- */
.ares-bottom { background: var(--ares-navy); color: #fff; padding: 44px 20px 24px; margin-top: 0; border-top: 6px solid; border-image: linear-gradient(90deg, var(--ares-blue) 0 25%, var(--ares-yellow) 25% 50%, var(--ares-green) 50% 75%, var(--ares-red) 75%) 1; }
.ares-bottom__in { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.ares-bottom__logo { display: inline-block; padding: 12px 22px; border-radius: 18px; background: #fff; transition: transform .4s var(--ares-back); }
.ares-bottom__logo:hover { transform: translateY(-4px) rotate(-2deg); }
.ares-bottom__logo img { height: 74px; width: auto; display: block; }
.ares-bottom__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; max-width: 560px; }
.ares-bottom__nav a { color: #fff; opacity: .85; font-weight: 800; text-decoration: none; }
.ares-bottom__nav a:hover { opacity: 1; color: var(--ares-yellow); }
.ares-bottom__copy { text-align: center; margin: 28px 0 0; opacity: .6; font-size: 14px; }

/* ---------- Sections ---------- */
.e-con.ares-hero { background: var(--ares-navy); color: #fff; padding-top: 70px; padding-bottom: 70px; position: relative; overflow: hidden; }
.e-con.ares-hero::after { content: ""; position: absolute; left: -70px; bottom: -70px; width: 240px; height: 240px; border-radius: 50% 50% 50% 14%; background: var(--ares-yellow); opacity: .12; pointer-events: none; }
body .ares-hero .elementor-heading-title, body .ares-fond-bleu .elementor-heading-title { color: #fff; }
.ares-hero .elementor-widget-text-editor, .ares-fond-bleu .elementor-widget-text-editor { color: rgba(255,255,255,.92); }
.ares-hero h1.elementor-heading-title { font-size: clamp(34px, 4.4vw, 56px); }
.ares-surtitre .elementor-heading-title { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--ares-yellow); color: var(--ares-navy) !important; font-size: 14px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.e-con.ares-section { padding-top: 80px; padding-bottom: 80px; }
.e-con.ares-fond-clair { background: var(--ares-tint); }
.e-con.ares-fond-bleu { background: var(--ares-navy); color: #fff; }
.e-con.ares-fond-bleu .ares-carte { color: var(--ares-ink); }
body .e-con.ares-fond-bleu .ares-carte .elementor-heading-title { color: var(--ares-navy); }

/* ---------- Titres ---------- */
.ares-titre .elementor-heading-title { position: relative; display: inline-block; text-transform: uppercase; letter-spacing: .04em; padding-bottom: 14px; font-size: clamp(28px, 3.2vw, 40px); }
.ares-titre .elementor-heading-title::after {
	content: ""; position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: 110px; height: 5px; border-radius: 5px;
	background: linear-gradient(90deg, var(--ares-blue) 0 25%, var(--ares-yellow) 25% 50%, var(--ares-green) 50% 75%, var(--ares-red) 75%);
}
.ares-titre { text-align: center; }
.ares-titre.ares-gauche { text-align: left; }
.ares-titre.ares-gauche .elementor-heading-title::after { left: 0; translate: 0 0; }
.ares-intro { max-width: 760px; margin-left: auto !important; margin-right: auto !important; text-align: center; color: var(--ares-muted); font-size: 18px; }
.ares-fond-bleu .ares-intro { color: rgba(255,255,255,.85); }

/* ---------- Cartes ---------- */
.e-con.ares-carte {
	background: #fff; border-radius: 18px; box-shadow: var(--ares-shadow);
	padding: 28px; transition: transform .35s var(--ares-ease), box-shadow .35s;
	border-top: 6px solid var(--ares-c, var(--ares-blue));
}
.e-con.ares-carte:hover { transform: translateY(-6px); box-shadow: var(--ares-shadow-lg); }
.e-con > .ares-carte:nth-child(4n+1), .e-con-inner > .ares-carte:nth-child(4n+1) { --ares-c: var(--ares-blue); }
.e-con > .ares-carte:nth-child(4n+2), .e-con-inner > .ares-carte:nth-child(4n+2) { --ares-c: var(--ares-yellow); }
.e-con > .ares-carte:nth-child(4n+3), .e-con-inner > .ares-carte:nth-child(4n+3) { --ares-c: var(--ares-green); }
.e-con > .ares-carte:nth-child(4n+4), .e-con-inner > .ares-carte:nth-child(4n+4) { --ares-c: var(--ares-red); }
.ares-carte .elementor-heading-title { font-size: 20px; }
.ares-carte .elementor-widget-text-editor { color: var(--ares-muted); font-size: 16px; }
.ares-carte .elementor-widget-image img { border-radius: 14px; }

/* numéros dans une bulle ARES */
.ares-num .elementor-heading-title {
	display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50% 50% 50% 14%;
	background: var(--ares-c, var(--ares-blue)); color: #fff !important; font-size: 24px; line-height: 1;
	box-shadow: 0 8px 18px rgba(29,26,110,.18); transition: transform .4s var(--ares-back);
}
.ares-carte:hover .ares-num .elementor-heading-title, .ares-etape:hover .ares-num .elementor-heading-title { transform: rotate(-8deg) scale(1.08); }

/* ---------- Encadrés ---------- */
.e-con.ares-alerte { background: #fdecea; border-left: 6px solid var(--ares-red); border-radius: 12px; padding: 22px 26px; }
.ares-alerte .elementor-widget-text-editor { color: var(--ares-ink); }
.e-con.ares-equation { border-radius: 18px; padding: 26px; text-align: center; background: #e9f6dc; }
.e-con.ares-equation--rouge { background: #fdecea; }
.ares-equation .elementor-widget-text-editor { font-weight: 800; font-size: 17px; color: var(--ares-ink); }
.ares-equation .elementor-widget-text-editor p { margin: 4px 0; }

/* ---------- Étapes (frise) ---------- */
.e-con.ares-etape { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--ares-shadow); padding: 22px 26px; border-left: 6px solid var(--ares-c, var(--ares-blue)); transition: transform .35s var(--ares-ease); }
.e-con.ares-etape:hover { transform: translateX(6px); }
.e-con > .ares-etape:nth-child(4n+1), .e-con-inner > .ares-etape:nth-child(4n+1) { --ares-c: var(--ares-blue); }
.e-con > .ares-etape:nth-child(4n+2), .e-con-inner > .ares-etape:nth-child(4n+2) { --ares-c: var(--ares-yellow); }
.e-con > .ares-etape:nth-child(4n+3), .e-con-inner > .ares-etape:nth-child(4n+3) { --ares-c: var(--ares-green); }
.e-con > .ares-etape:nth-child(4n+4), .e-con-inner > .ares-etape:nth-child(4n+4) { --ares-c: var(--ares-red); }
.ares-etape .elementor-widget-text-editor { color: var(--ares-muted); }

/* ---------- Boutons ---------- */
.ares-bouton .elementor-button {
	background: var(--ares-navy); color: #fff; border-radius: 999px; padding: 15px 28px;
	font-family: "Nunito", sans-serif; font-weight: 900; font-size: 16px;
	transition: transform .3s var(--ares-back), box-shadow .3s, background .3s;
}
.ares-bouton .elementor-button:hover { background: var(--ares-navy-2); color: #fff; transform: translateY(-3px); box-shadow: var(--ares-shadow-lg); }
.ares-bouton--clair .elementor-button { background: #fff; color: var(--ares-navy); }
.ares-bouton--clair .elementor-button:hover { background: var(--ares-yellow); color: var(--ares-navy); }

/* Images arrondies et illustrations du Livre des métiers */
.ares-image img { border-radius: 20px; }
.ares-illus img { background: #fff; padding: 18px; border-radius: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); max-height: 440px; width: auto; margin: 0 auto; }
.ares-illus-petite img { max-height: 170px; width: auto; margin: 0 auto; border-radius: 14px; }
.ares-illus-carte img { height: 190px; width: 100%; object-fit: contain; border-radius: 14px; }
.e-con.ares-boutons { justify-content: center; }
.e-con.ares-boutons .elementor-widget { width: auto; }

/* ---------- À propos ---------- */
.ares-photo-hero img { border-radius: 24px; border: 6px solid #fff; box-shadow: 0 24px 60px rgba(0,0,0,.3); rotate: 2deg; }
.ares-photo-ronde img { border-radius: 50% 50% 50% 16%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--ares-shadow-lg); }
.ares-frise { position: relative; }
.ares-frise::before { content: ""; position: absolute; left: 82px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: linear-gradient(var(--ares-blue), var(--ares-yellow), var(--ares-green), var(--ares-red)); opacity: .35; }
.ares-date .elementor-heading-title {
	display: inline-block; min-width: 140px; padding: 8px 12px; border-radius: 12px; text-align: center;
	background: var(--ares-c, var(--ares-blue)); color: #fff !important; font-size: 14px; font-weight: 900; line-height: 1.25;
}
.e-con.ares-date-ligne { align-items: center; }
.ares-citation blockquote { margin: 0 auto; max-width: 820px; padding: 0 0 0 28px; border-left: 6px solid var(--ares-yellow); font-size: clamp(18px, 2vw, 22px); line-height: 1.6; font-style: italic; color: #fff; }
.ares-citation blockquote p { margin: 0 0 14px; }
.ares-citation .ares-signature { max-width: 820px; margin: 18px auto 0; padding-left: 34px; color: rgba(255,255,255,.85); }
.ares-citation .ares-signature strong { color: var(--ares-yellow); }
.ares-carte .elementor-widget-text-editor a { color: var(--ares-blue); font-weight: 800; }
@media (max-width: 767px) {
	.ares-frise::before { display: none; }
	.ares-date .elementor-heading-title { min-width: 0; }
}

/* ---------- Pages de texte (politique de confidentialité) ---------- */
.e-con.ares-section--texte > .e-con-inner { max-width: 880px; }
.ares-carte--texte h2.elementor-heading-title { font-size: 22px; }
.ares-carte--texte .elementor-widget-text-editor { font-size: 16.5px !important; line-height: 1.7; color: var(--ares-ink) !important; }
.ares-carte--texte .elementor-widget-text-editor ul { padding-left: 20px; margin: 0; }
.ares-carte--texte .elementor-widget-text-editor li { margin: 6px 0; }
.ares-carte--texte a { color: var(--ares-blue); font-weight: 800; }
.ares-bottom__copy a, .site-footer__copy a { color: inherit; text-decoration: underline; }

/* ---------- Formations ---------- */
.ares-module-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.ares-bientot .elementor-heading-title { display: inline-block; padding: 4px 12px; border-radius: 99px; background: #fff4dc; color: #8a5a00 !important; font-size: 13px; font-weight: 900; }

/* ---------- Page Test d'orientation ---------- */
.e-con.ares-hero--court { padding-top: 54px; padding-bottom: 54px; text-align: center; }
.e-con.ares-hero--court .elementor-widget-text-editor { max-width: 680px; margin: 0 auto; }
.e-con.ares-section--test { padding-top: 50px; }

/* ---------- Fiches métiers ---------- */
/* tuiles du sommaire : tout le bloc est cliquable */
.e-con.ares-tuile {
	position: relative; background: #fff; border-radius: 16px; padding: 18px 20px;
	box-shadow: var(--ares-shadow); border-left: 6px solid var(--ares-c, var(--ares-blue));
	transition: transform .3s var(--ares-back), box-shadow .3s;
}
.e-con.ares-tuile:hover { transform: translateY(-5px); box-shadow: var(--ares-shadow-lg); }
.e-con > .ares-tuile:nth-child(4n+1), .e-con-inner > .ares-tuile:nth-child(4n+1) { --ares-c: var(--ares-blue); }
.e-con > .ares-tuile:nth-child(4n+2), .e-con-inner > .ares-tuile:nth-child(4n+2) { --ares-c: var(--ares-yellow); }
.e-con > .ares-tuile:nth-child(4n+3), .e-con-inner > .ares-tuile:nth-child(4n+3) { --ares-c: var(--ares-green); }
.e-con > .ares-tuile:nth-child(4n+4), .e-con-inner > .ares-tuile:nth-child(4n+4) { --ares-c: var(--ares-red); }
.ares-tuile .elementor-heading-title { font-size: 18px; }
.ares-tuile .elementor-heading-title a { color: var(--ares-navy); text-decoration: none; }
.ares-tuile .elementor-heading-title a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.ares-tuile .elementor-widget-text-editor { color: var(--ares-muted); font-size: 14px; line-height: 1.45; }
.ares-tuile .elementor-widget-text-editor p { margin: 0; }

/* fiche d'un secteur */
.ares-accroche .elementor-heading-title { color: var(--ares-blue) !important; font-size: 20px; font-weight: 800; }
.ares-sous-themes h4 { font-size: 17px; font-weight: 900; color: var(--ares-navy); margin: 18px 0 4px; padding-left: 14px; border-left: 4px solid var(--ares-yellow); }
.ares-sous-themes h4:nth-of-type(2) { border-color: var(--ares-green); }
.ares-sous-themes h4:nth-of-type(3) { border-color: var(--ares-red); }
.ares-sous-themes p { color: var(--ares-muted); margin: 0 0 4px; padding-left: 18px; }
.e-con.ares-encadre { border-radius: 16px; padding: 22px 24px; }
.e-con.ares-encadre--apprendre { background: #fff4dc; }
.e-con.ares-encadre--filieres { background: var(--ares-navy); }
.ares-encadre .elementor-heading-title { font-size: 17px; }
body .ares-encadre--filieres .elementor-heading-title { color: var(--ares-yellow); }
.ares-encadre ul { list-style: none; margin: 0; padding: 0; }
.ares-encadre li { position: relative; padding: 5px 0 5px 22px; font-weight: 700; font-size: 15px; line-height: 1.4; }
.ares-encadre li::before { content: ""; position: absolute; left: 0; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--ares-green); }
.ares-encadre--apprendre li { color: var(--ares-ink); }
.ares-encadre--filieres li { color: #fff; }
.ares-encadre--filieres li::before { background: var(--ares-yellow); }
.ares-secteur-illus img { width: 100%; max-height: 270px; object-fit: contain; background: #fff; border-radius: 22px; padding: 10px; box-shadow: var(--ares-shadow); }
.ares-fond-clair .ares-secteur-illus img { box-shadow: none; }
/* case photo d'un secteur : toujours au format 4:3, la photo est recadrée automatiquement */
.ares-secteur-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--ares-shadow); }
.ares-retour .elementor-heading-title { font-size: 14px; font-weight: 800; }
.ares-retour .elementor-heading-title a { color: var(--ares-blue); text-decoration: none; }
.ares-retour .elementor-heading-title a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ares-top__nav a { padding: 8px 7px; font-size: 14px; }
}
@media (max-width: 960px) {
	.ares-top__burger { display: block; }
	.ares-top__nav { position: fixed; left: 0; right: 0; top: 72px; margin: 0; background: #fff; box-shadow: var(--ares-shadow-lg); clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ares-ease); }
	.admin-bar .ares-top__nav { top: 118px; }
	.ares-nav-open .ares-top__nav { clip-path: inset(0 0 0 0); }
	.ares-top__nav > ul { flex-direction: column; padding: 12px 20px 22px; max-height: calc(100vh - 90px); overflow-y: auto; }
	.ares-top__nav .ares-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin: 0 0 6px 14px; padding: 0 0 0 10px; min-width: 0; border-left: 3px solid var(--ares-tint); border-radius: 0; }
	.ares-top__nav .ares-sub a { font-size: 16px; padding: 8px 12px; white-space: normal; }
	.ares-top__nav .has-sub > a::after { display: none; }
	.ares-top__nav a { font-size: 18px; padding: 12px; }
	.ares-top__nav a.is-active { box-shadow: inset 4px 0 0 var(--ares-blue); border-radius: 0 10px 10px 0; }
	.ares-top__user { margin-left: auto; }
	.e-con.ares-section { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 782px) {
	.admin-bar .ares-top { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
	.e-con.ares-carte, .e-con.ares-etape, .ares-bouton .elementor-button { transition: none; }
}
