/*
Theme Name: ALCG Divi
Template: Divi
Description: Thème enfant Divi pour A-Level College of Geneva (alevels.ch). En-tête, pied de page et charte repris du site Lovable.
Version: 1.0.0
Text Domain: alcg
*/

:root {
	--alcg-bg: #f9fafb;
	--alcg-ink: #10293d;
	--alcg-primary: #1f517a;
	--alcg-primary-dark: #123654;
	--alcg-primary-light: #3f78a6;
	--alcg-navy: #1c2b4a;
	--alcg-gold: #d1a347;
	--alcg-gold-light: #e0b96c;
	--alcg-gold-ink: #7e5d1b;
	--alcg-gold-bright: #ecc679;
	--alcg-on-gold: #0d2031;
	--alcg-cream: #faf5eb;
	--alcg-secondary: #e9edf2;
	--alcg-muted: #52626f;
	--alcg-border: #dae0e7;
	--alcg-heading: 'Montserrat', sans-serif;
	--alcg-body: 'Source Sans 3', sans-serif;
}

/* ---------- Base ---------- */
body { font-family: var(--alcg-body); color: var(--alcg-ink); background: var(--alcg-bg); font-size: 16px; line-height: 1.5; }
#page-container { padding-top: 0 !important; margin-top: 0 !important; }
h1, h2, h3, h4, h5, h6, .et_pb_module_header { font-family: var(--alcg-heading); color: var(--alcg-ink); font-weight: 700; line-height: 1.25; padding-bottom: .5em; }
h1 { font-size: 52px; }
h2 { font-size: 30px; }
h3 { font-size: 18px; }
p { padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }
a { color: var(--alcg-primary); }
.et_pb_text ul, .et_pb_text ol { padding-bottom: 1em; }
.screen-reader-text, .alcg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Header ---------- */
.alcg-header { position: sticky; top: 0; z-index: 9999; background: #fff; box-shadow: 0 1px 0 var(--alcg-border); }
.admin-bar .alcg-header { top: 32px; }
#main-header.alcg-header { position: sticky !important; top: 0 !important; width: 100%; padding: 0 !important; }
.admin-bar #main-header.alcg-header { top: 32px !important; }
#page-container { padding-top: 0 !important; }
.alcg-container { max-width: 1344px; margin: 0 auto; padding: 0 48px; }
.alcg-topbar { background: var(--alcg-primary-dark); color: #fff; font-size: 14px; }
.alcg-topbar .alcg-container { display: flex; justify-content: space-between; align-items: center; min-height: 49px; gap: 16px; }
.alcg-topbar a { color: #fff; text-decoration: none; margin-right: 24px; opacity: .9; }
.alcg-topbar a:hover { opacity: 1; }
.alcg-lang { display: inline-flex; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; overflow: hidden; }
.alcg-lang a { margin: 0; padding: 3px 12px; font-family: var(--alcg-heading); font-weight: 600; font-size: 12px; opacity: 1; }
.alcg-lang a.is-current { background: #fff; color: var(--alcg-navy); }
.alcg-navbar .alcg-container { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.alcg-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--alcg-navy); }
.alcg-logo img { width: 56px; height: 56px; }
.alcg-logo span { display: flex; flex-direction: column; font-family: var(--alcg-heading); line-height: 1.15; }
.alcg-logo b { font-size: 20px; font-weight: 700; }
.alcg-logo i { font-style: normal; font-size: 15px; font-weight: 400; }
.alcg-nav { display: flex; align-items: center; gap: 8px; }
.alcg-nav ul { list-style: none; margin: 0; padding: 0; }
.alcg-menu { display: flex; align-items: center; }
.alcg-menu > li { position: relative; }
.alcg-menu a { display: block; font-family: var(--alcg-heading); font-weight: 500; font-size: 14px; color: var(--alcg-ink); padding: 8px 12px; text-decoration: none; border-radius: 6px; }
.alcg-menu a:hover, .alcg-menu .current-menu-item > a { color: var(--alcg-primary); }
.alcg-menu > li.menu-item-has-children > a::after { content: "▾"; margin-left: 4px; font-size: 11px; }
.alcg-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--alcg-border); border-radius: 8px; box-shadow: 0 10px 30px rgba(16,41,61,.12); padding: 8px; z-index: 10; }
.alcg-menu li:hover > .sub-menu, .alcg-menu li:focus-within > .sub-menu { display: block; }
.alcg-menu .sub-menu a { font-weight: 400; }
.alcg-menu .sub-menu a:hover { background: var(--alcg-bg); }
.alcg-burger { display: none; background: none; border: 0; font-size: 28px; color: var(--alcg-ink); cursor: pointer; }
.alcg-announce { background: var(--alcg-primary); color: var(--alcg-gold-bright); font-size: 14px; text-align: center; position: relative; }
.alcg-announce a { color: var(--alcg-gold-bright); display: block; padding: 8px 48px; text-decoration: none; font-weight: 600; }
.alcg-announce button { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }
.alcg-announce.is-hidden { display: none; }

/* ---------- Buttons ---------- */
.alcg-btn, .et_pb_button.alcg-btn-gold, .alcg-btn-gold { display: inline-flex; align-items: center; justify-content: center; background: var(--alcg-gold) !important; color: var(--alcg-on-gold) !important; font-family: var(--alcg-heading) !important; font-weight: 700 !important; font-size: 16px !important; letter-spacing: .02em; border: 0 !important; border-radius: 6px !important; padding: 12px 32px !important; text-decoration: none; box-shadow: 0 4px 14px rgba(209,163,71,.25); transition: background .2s; line-height: 1.5 !important; }
.alcg-btn:hover, .alcg-btn-gold:hover { background: var(--alcg-gold-light) !important; }
.alcg-btn-sm { font-size: 14px !important; font-weight: 600 !important; padding: 8px 16px !important; }
.et_pb_button.alcg-btn-outline, .alcg-btn-outline { display: inline-flex; background: transparent !important; color: var(--alcg-primary) !important; border: 2px solid var(--alcg-primary) !important; border-radius: 6px !important; font-family: var(--alcg-heading) !important; font-weight: 500 !important; font-size: 16px !important; padding: 10px 32px !important; text-decoration: none; }
.et_pb_button.alcg-btn-outline-white, .alcg-btn-outline-white { display: inline-flex; background: transparent !important; color: #fff !important; border: 2px solid #fff !important; border-radius: 6px !important; font-family: var(--alcg-heading) !important; font-weight: 600 !important; font-size: 16px !important; padding: 6px 16px !important; text-decoration: none; cursor: pointer; }
.et_pb_button::after, .et_pb_button::before { display: none !important; }
.alcg-link { font-weight: 600; color: var(--alcg-primary); text-decoration: none; }
.alcg-link:hover { text-decoration: underline; }

/* ---------- Sections (classes set on Divi sections) ---------- */
.alcg-hero { background-size: cover; background-position: center; position: relative; }
.alcg-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,58,89,.92) 0%, rgba(23,63,97,.88) 40%, rgba(29,79,120,.35) 100%); }
.alcg-hero > .et_pb_row { position: relative; z-index: 1; }
.alcg-hero h1, .alcg-hero h2, .alcg-hero h3, .alcg-hero p, .alcg-hero li { color: #fff; }
.alcg-hero p.alcg-lead { font-size: 20px; line-height: 1.4; opacity: .9; }
.alcg-hero .alcg-link { color: rgba(255,255,255,.9); }
.alcg-hero .alcg-note { font-size: 14px; opacity: .8; }
.alcg-trust { list-style: none !important; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; margin-top: 32px; }
.alcg-trust li::before { content: "✓"; color: var(--alcg-gold); font-weight: 700; margin-right: 10px; }
.alcg-pagehero { background: var(--alcg-primary-dark); }
.alcg-pagehero h1 { font-size: 44px; }
.alcg-gradient { background: linear-gradient(180deg, #f9fafb, #e9edf2) !important; }
.alcg-grey { background: #f5f5f5 !important; }
.alcg-white { background: #fff !important; }
.alcg-dark { background: var(--alcg-ink) !important; }
.alcg-cta { background: var(--alcg-primary) !important; text-align: center; }
.alcg-cta h2, .alcg-cta h3, .alcg-cta p, .alcg-cta li, .alcg-dark h2, .alcg-dark h3, .alcg-dark p, .alcg-dark li { color: #fff; }
.alcg-cta .alcg-link, .alcg-dark .alcg-link { color: rgba(255,255,255,.9); }
.alcg-cta ul { list-style: none; padding: 0; }
.alcg-center { text-align: center; }
.alcg-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Cards */
.alcg-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none !important; padding: 0 !important; }
.alcg-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.alcg-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.alcg-card { background: #fff; border: 1px solid var(--alcg-border); border-radius: 12px; padding: 24px; }
.alcg-cards.alt > .alcg-card:nth-child(odd) { background: var(--alcg-cream); }
.alcg-cards.centered .alcg-card { text-align: center; }
.alcg-card h3 { font-size: 16px; }
.alcg-stat { display: block; font-family: var(--alcg-heading); font-weight: 700; font-size: 36px; color: var(--alcg-gold); line-height: 1.2; margin-bottom: 8px; }
.alcg-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none !important; padding: 0 !important; }
.alcg-tiles a { display: flex; align-items: center; justify-content: center; min-height: 64px; background: #fff; border: 1px solid var(--alcg-border); border-radius: 8px; padding: 12px; font-family: var(--alcg-heading); font-weight: 600; color: var(--alcg-ink); text-decoration: none; text-align: center; }
.alcg-tiles a:hover { border-color: var(--alcg-primary); color: var(--alcg-primary); }
blockquote, .alcg-quote { background: #fff; border-left: 4px solid var(--alcg-gold) !important; border-radius: 0 12px 12px 0; padding: 16px 20px !important; font-style: italic; margin: 24px 0; }
.alcg-team { display: flex; gap: 24px; flex-wrap: wrap; list-style: none !important; padding: 0 !important; margin: 24px 0; }
.alcg-team li { display: flex; align-items: center; gap: 12px; }
.alcg-team img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.alcg-team small { display: block; color: var(--alcg-muted); }
.alcg-photo img { border-radius: 16px; width: 100%; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; background: #fff; }
th, td { border: 1px solid var(--alcg-border); padding: 10px 14px; text-align: left; }
th { font-family: var(--alcg-heading); font-weight: 600; background: var(--alcg-secondary); }

/* Accordions */
.et_pb_toggle { border: 0 !important; border-bottom: 1px solid var(--alcg-border) !important; background: transparent !important; padding: 16px 0 !important; margin-bottom: 0 !important; }
.et_pb_toggle .et_pb_toggle_title { font-family: var(--alcg-heading); font-weight: 600; font-size: 16px; color: var(--alcg-ink); }
.et_pb_toggle_title::before { color: var(--alcg-primary) !important; }

/* ---------- Modals ---------- */
.alcg-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(16,41,61,.6); display: none; align-items: center; justify-content: center; padding: 16px; }
.alcg-modal.is-open { display: flex; }
.alcg-modal-box { background: #fff; border-radius: 12px; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; padding: 32px; position: relative; }
.alcg-modal-close { position: absolute; right: 16px; top: 12px; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--alcg-ink); }

/* ---------- Footer ---------- */
.alcg-footer { background: var(--alcg-primary-dark); color: #fff; font-size: 14px; }
.alcg-footer .alcg-container { padding-top: 64px; padding-bottom: 32px; }
.alcg-footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr; gap: 40px; }
.alcg-footer h4 { color: var(--alcg-gold); font-size: 14px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.alcg-footer a { color: #fff; text-decoration: none; }
.alcg-footer a:hover { text-decoration: underline; }
.alcg-footer ul { list-style: none; padding: 0; margin: 0; }
.alcg-footer li { margin-bottom: 8px; }
.alcg-footer .alcg-logo { color: #fff; margin-bottom: 16px; }
.alcg-footer small { opacity: .75; display: block; }
.alcg-footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 24px; display: flex; flex-direction: column; gap: 4px; opacity: .8; font-size: 13px; }

/* ---------- Pages (contenu généré : sections alcg-sec) ---------- */
html { scroll-padding-top: 180px; }
.alcg-anchor { display: block; position: relative; top: -10px; }
#page-container .et_pb_section { padding: 0; }
#page-container .alcg-sec { padding: 96px 0; }
#page-container .alcg-sec .et_pb_row { width: calc(100% - 48px); max-width: 1248px; padding: 0; }
#page-container .alcg-sec .et_pb_row + .et_pb_row { margin-top: 32px; }
.alcg-sec .et_pb_module { margin-bottom: 24px; }
.alcg-sec .et_pb_module:last-child { margin-bottom: 0; }
.alcg-sec h2 { text-align: center; margin-bottom: 8px; }
.alcg-sec h2 + p { text-align: center; max-width: 672px; margin: 0 auto 40px; color: var(--alcg-muted); }
.alcg-cta h2 + p, .alcg-dark h2 + p { color: rgba(255,255,255,.9); }
.alcg-sec h2 + .alcg-cards, .alcg-sec h2 + .alcg-tiles { margin-top: 32px; }
.alcg-sec h3 { margin-top: 8px; }
.alcg-sec ul + p, .alcg-sec ol + p, .alcg-sec .alcg-table + p { margin-top: 0; }
.alcg-sec ul:not(.alcg-cards):not(.alcg-tiles):not(.alcg-team):not(.alcg-trust), .alcg-sec ol { padding-left: 1.3em; margin-bottom: 1em; }
.alcg-sec li { margin-bottom: 4px; }
.alcg-after { text-align: center; margin-top: 32px; }
.alcg-after p { padding-bottom: .5em; }
.alcg-strip { text-align: center; }
#page-container .alcg-strip { padding: 48px 0; }
.alcg-strip p { color: var(--alcg-muted); font-size: 15px; }
.alcg-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 8px; }
.alcg-center .alcg-actions, .alcg-cta .alcg-actions, .alcg-after .alcg-actions, .alcg-strip .alcg-actions, .alcg-dark .alcg-actions { justify-content: center; }
.alcg-actions br { display: none; }
.alcg-after .alcg-actions, .alcg-sec .alcg-actions:has(br) { flex-direction: column; gap: 8px; }
.alcg-note { font-size: 14px; color: var(--alcg-muted); }
.alcg-cta .alcg-note, .alcg-dark .alcg-note, .alcg-hero .alcg-note, .alcg-pagehero .alcg-note { color: rgba(255,255,255,.8); }
.alcg-cta ul { margin: 8px auto 16px; }
.alcg-cta h3 { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.2); color: #fff; }
.alcg-cta .et_pb_row { max-width: 760px !important; }
.alcg-dark h2 + p { font-size: 22px; font-style: italic; max-width: 760px; }

/* Héros */
#page-container .alcg-hero { min-height: 640px; display: flex; align-items: center; padding: 96px 0; }
#page-container .alcg-hero .et_pb_row { width: calc(100% - 48px); max-width: 1248px; }
.alcg-hero .et_pb_text { max-width: 720px; }
.alcg-hero h1 { color: #fff; }
.alcg-hero .alcg-btn { font-size: 18px !important; padding: 16px 40px !important; border-radius: 8px !important; }
#page-container .alcg-pagehero { padding: 96px 0 80px; position: relative; background-size: cover; background-position: center; }
.alcg-pagehero.has-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,54,84,.94) 0%, rgba(18,54,84,.86) 55%, rgba(18,54,84,.6) 100%); }
.alcg-pagehero > .et_pb_row { position: relative; z-index: 1; width: calc(100% - 48px) !important; max-width: 1248px !important; }
.alcg-pagehero .et_pb_text { max-width: 820px; }
.alcg-pagehero h1, .alcg-pagehero p, .alcg-pagehero li, .alcg-pagehero a:not(.alcg-btn) { color: #fff; }
.alcg-pagehero p.alcg-lead, .alcg-hero p.alcg-lead { font-size: 20px; line-height: 1.45; opacity: .92; margin-top: 8px; }
.alcg-pagehero .alcg-byline { font-size: 15px; }
.alcg-pagehero .alcg-trust { margin-top: 24px; }
.alcg-breadcrumb { font-size: 14px; margin-bottom: 16px; opacity: .85; }
.alcg-breadcrumb a { text-decoration: underline; text-underline-offset: 2px; }

/* Cartes */
.alcg-card > p:last-child, .alcg-card > ul:last-child { padding-bottom: 0; margin-bottom: 0; }
.alcg-card h3 { padding-bottom: 8px; margin-top: 0; }
.alcg-card h3 a { color: var(--alcg-ink); text-decoration: none; }
.alcg-card h3 a:hover { color: var(--alcg-primary); }
.alcg-card ul { text-align: left; }
.alcg-card .alcg-actions { justify-content: flex-start; }
.alcg-cards.centered .alcg-card .alcg-actions { justify-content: center; }
.alcg-tag { display: inline-block; font-family: var(--alcg-heading); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--alcg-gold-ink); margin-bottom: 8px; }
.alcg-price { font-family: var(--alcg-heading); font-weight: 700; font-size: 26px; color: var(--alcg-primary); }
.alcg-badge { display: inline-block; background: var(--alcg-cream); color: var(--alcg-gold-ink); border: 1px solid #ecd9ad; border-radius: 999px; padding: 2px 12px !important; font-size: 13px; font-weight: 600; margin: 16px 0 8px; }
.alcg-members .alcg-card { text-align: center; }
.alcg-members img.alcg-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; }
.alcg-role { color: var(--alcg-gold-ink); font-weight: 600; }
.alcg-members p { font-size: 15px; }
img.alcg-avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
#team h3 { text-align: center; margin: 40px 0 16px; }
.alcg-team small { font-size: 13px; }
.alcg-team small { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.alcg-team small a.alcg-li-icon { margin: 0; flex: 0 0 auto; }
.alcg-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-bottom: 24px !important; }
.alcg-card .alcg-chips { justify-content: flex-start; padding-bottom: 12px !important; }
.alcg-chip { display: inline-block; border: 1px solid var(--alcg-border); background: #fff; border-radius: 999px; padding: 6px 14px; font-family: var(--alcg-heading); font-size: 13px; font-weight: 600; color: var(--alcg-ink); text-decoration: none; }
a.alcg-chip:hover { border-color: var(--alcg-primary); color: var(--alcg-primary); }

/* Deux colonnes */
.alcg-split-sec .et_pb_row { display: flex; gap: 56px; align-items: center; }
.alcg-split-sec .et_pb_column { margin-right: 0 !important; width: 50% !important; }
.alcg-split-sec h2, .alcg-split-sec h2 + p { text-align: left; margin-left: 0; }
.alcg-split-sec h2 + p { max-width: none; margin-bottom: 0; color: inherit; }
.alcg-li-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; background: #0a66c2; color: #fff !important; font: 700 12px/1 var(--alcg-heading); font-style: normal; text-decoration: none; vertical-align: middle; margin: 0 4px; }
.alcg-split-sec .alcg-actions { justify-content: flex-start; }
.alcg-split-sec .alcg-photo img, .alcg-photo img { border-radius: 16px; width: 100%; object-fit: cover; }
.alcg-caption { font-family: var(--alcg-heading); font-style: italic; font-weight: 600; text-align: center; color: var(--alcg-primary); margin-top: -8px; }
.alcg-split-sec .alcg-form { margin-top: 8px; }
.alcg-split-sec:has(.alcg-form) .et_pb_row { align-items: flex-start; }

/* Galerie, carte */
.alcg-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.alcg-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.alcg-map { margin: 16px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--alcg-border); }
.alcg-map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Accordéons (FAQ étroite) */
.alcg-faq .et_pb_row { max-width: 760px !important; }
#pathways .et_pb_row { max-width: 980px !important; }
.alcg-acc .et_pb_toggle_content { padding-top: 12px; }
.alcg-acc.et_pb_toggle { margin-top: 16px; }
.et_pb_toggle_title { padding-right: 32px; }

/* Encadrés, tableaux, schéma */
.alcg-callout { background: var(--alcg-cream); border: 1px solid #ecd9ad; border-left: 4px solid var(--alcg-gold); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 16px 0 24px; }
.alcg-callout.warn { background: #fdf2f2; border-color: #f1c4c4; border-left-color: var(--alcg-destructive, #c52020); }
.alcg-box { background: var(--alcg-bg); border: 1px solid var(--alcg-border); border-radius: 12px; padding: 24px 28px; margin: 0 0 32px; }
.alcg-toc-title { font-family: var(--alcg-heading); font-weight: 700; }
.alcg-table { overflow-x: auto; margin-bottom: 1.5em; }
.alcg-table table { margin-bottom: 0; font-size: 15px; }
.alcg-flow { display: grid; gap: 14px; max-width: 640px; margin: 32px auto; }
.alcg-flow-step { position: relative; background: #fff; border: 1px solid var(--alcg-border); border-radius: 12px; padding: 14px 18px; text-align: center; }
.alcg-flow-step + .alcg-flow-step::before { content: "↓"; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); color: var(--alcg-gold); font-weight: 700; line-height: 1; }
.alcg-flow-step:first-child { background: var(--alcg-cream); font-style: italic; }
.alcg-flow-branch { color: var(--alcg-primary); font-weight: 600; }
.alcg-flow-end { background: var(--alcg-primary); color: #fff; font-family: var(--alcg-heading); font-weight: 700; }
.alcg-flow + p { text-align: center; color: var(--alcg-muted); }

/* Articles (guides, politiques) */
.alcg-article .et_pb_row { max-width: 820px !important; }
.alcg-article h2 { text-align: left; margin-top: 40px; }
.alcg-article h2 + p { text-align: left; max-width: none; margin: 0 0 1em; color: inherit; }
.alcg-article .alcg-box h2 { margin-top: 0; }
.alcg-article .alcg-cards { margin-top: 16px; }
.alcg-article .alcg-actions { justify-content: flex-start; }

/* Barre d'ancres du programme */
#page-container .alcg-tabbar { padding: 0; position: sticky; top: 165px; z-index: 50; border-bottom: 1px solid var(--alcg-border); }
.admin-bar #page-container .alcg-tabbar { top: 197px; }
.alcg-tabnav { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 12px 0; }
.alcg-tabnav a { font-family: var(--alcg-heading); font-weight: 600; font-size: 14px; color: var(--alcg-ink); text-decoration: none; padding: 8px 16px; border-radius: 999px; }
.alcg-tabnav a:hover { background: var(--alcg-secondary); color: var(--alcg-primary); }

/* Calculateur de frais */
.alcg-calc { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--alcg-border); border-radius: 16px; padding: 32px; box-shadow: 0 10px 30px rgba(16,41,61,.06); }
.alcg-calc-q, .alcg-calc-label { font-family: var(--alcg-heading); font-weight: 600; margin-bottom: 12px; }
.alcg-calc-label { font-size: 14px; margin-top: 20px; }
.alcg-calc-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.alcg-calc button { cursor: pointer; font-family: var(--alcg-body); background: #fff; border: 2px solid var(--alcg-border); border-radius: 10px; color: var(--alcg-ink); transition: border-color .15s, background .15s; }
.alcg-calc-opts button { padding: 14px 16px; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.alcg-calc-opts strong { font-family: var(--alcg-heading); font-size: 15px; }
.alcg-calc-opts span { font-size: 13px; color: var(--alcg-muted); }
.alcg-calc-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.alcg-calc-pills button { min-width: 48px; padding: 8px 16px; font-weight: 600; }
.alcg-calc button:hover { border-color: var(--alcg-primary-light); }
.alcg-calc button.is-active { border-color: var(--alcg-primary); background: #eef4f9; }
.alcg-calc-result { margin-top: 24px; background: var(--alcg-bg); border-radius: 12px; padding: 20px 24px; }
.alcg-calc-rows { margin: 0; }
.alcg-calc-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--alcg-border); }
.alcg-calc-rows dd { margin: 0; font-weight: 600; white-space: nowrap; }
.alcg-calc-rows .is-total { font-weight: 700; }
.alcg-calc-rows .is-grand { border-bottom: 0; font-family: var(--alcg-heading); font-weight: 700; font-size: 18px; color: var(--alcg-primary); }
.alcg-calc-note { font-size: 14px; color: var(--alcg-muted); padding-top: 8px; }

/* Formulaires WPForms */
.alcg-form, .alcg-sec .wpforms-container { max-width: 720px; margin-left: auto; margin-right: auto; }
.alcg-split-sec .alcg-form, .alcg-split-sec .wpforms-container { margin-left: 0; }
.alcg-sec .wpforms-container, .alcg-modal .wpforms-container { margin: 16px 0 0 !important; }
.alcg-sec .wpforms-form input[type=text], .alcg-sec .wpforms-form input[type=email], .alcg-sec .wpforms-form input[type=number], .alcg-sec .wpforms-form select, .alcg-sec .wpforms-form textarea,
.alcg-modal .wpforms-form input[type=text], .alcg-modal .wpforms-form input[type=email], .alcg-modal .wpforms-form select, .alcg-modal .wpforms-form textarea { border: 1px solid var(--alcg-border) !important; border-radius: 6px !important; background: #fff !important; font-family: var(--alcg-body) !important; max-width: 100% !important; }
.wpforms-container .wpforms-field-label { font-family: var(--alcg-heading); font-weight: 600 !important; font-size: 14px !important; color: var(--alcg-ink) !important; }
.wpforms-container .wpforms-field-description { font-size: 13px !important; color: var(--alcg-muted) !important; }
.wpforms-container button[type=submit], .wpforms-container .wpforms-submit { background: var(--alcg-gold) !important; color: var(--alcg-on-gold) !important; font-family: var(--alcg-heading) !important; font-weight: 700 !important; border: 0 !important; border-radius: 6px !important; padding: 12px 28px !important; height: auto !important; font-size: 16px !important; }
.wpforms-container button[type=submit]:hover { background: var(--alcg-gold-light) !important; }
.alcg-form-note { margin-top: 16px; }
.alcg-footer .wpforms-container { margin: 8px 0 0 !important; }
.alcg-footer .wpforms-form { display: flex; gap: 8px; align-items: flex-start; }
.alcg-footer .wpforms-field-container { flex: 1; }
.alcg-footer .wpforms-field { padding: 0 !important; }
.alcg-footer .wpforms-form input[type=email] { background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.25) !important; color: #fff !important; border-radius: 6px !important; height: 38px !important; max-width: 100% !important; }
.alcg-footer .wpforms-form input::placeholder { color: rgba(255,255,255,.7); }
.alcg-footer .wpforms-submit-container { padding: 0 !important; margin: 0 !important; }
.alcg-footer .wpforms-container button[type=submit] { background: var(--alcg-primary) !important; color: #fff !important; font-weight: 500 !important; font-size: 14px !important; padding: 8px 16px !important; height: 38px !important; }
.alcg-modal-box h2 { font-size: 24px; }
.alcg-modal-box ul { padding-left: 1.2em; margin-bottom: 1em; }

@media print {
	.alcg-header, .alcg-footer, .alcg-cta, .alcg-actions, .alcg-modal, #wpadminbar { display: none !important; }
	.alcg-pagehero { background: none !important; }
	.alcg-pagehero h1, .alcg-pagehero a, .alcg-pagehero p { color: #000 !important; }
	#page-container .alcg-sec, #page-container .alcg-pagehero { padding: 16px 0 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.alcg-burger { display: block; }
	.alcg-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 24px; border-top: 1px solid var(--alcg-border); }
	.alcg-nav.is-open { display: flex; }
	.alcg-navbar { position: relative; }
	.alcg-menu { flex-direction: column; align-items: stretch; }
	.alcg-menu .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
	.alcg-cards { grid-template-columns: repeat(2, 1fr); }
	.alcg-tiles { grid-template-columns: repeat(3, 1fr); }
	.alcg-footer-cols { grid-template-columns: 1fr 1fr; }
	#page-container .alcg-tabbar { top: 129px; }
}
@media (max-width: 980px) {
	.alcg-split-sec .et_pb_row { flex-direction: column; gap: 32px; }
	.alcg-split-sec .et_pb_column { width: 100% !important; }
	.alcg-gallery { grid-template-columns: repeat(2, 1fr); }
	.alcg-calc-opts { grid-template-columns: 1fr; }
	#page-container .alcg-sec { padding: 64px 0; }
}
@media (max-width: 680px) {
	.alcg-container { padding: 0 20px; }
	.alcg-topbar a.alcg-hide-sm { display: none; }
	h1, .alcg-pagehero h1 { font-size: 34px; }
	h2 { font-size: 26px; }
	.alcg-cards, .alcg-cards.cols-3, .alcg-cards.cols-2, .alcg-trust, .alcg-footer-cols { grid-template-columns: 1fr; }
	.alcg-tiles { grid-template-columns: repeat(2, 1fr); }
	#page-container .alcg-sec .et_pb_row, #page-container .alcg-hero .et_pb_row, .alcg-pagehero > .et_pb_row { width: calc(100% - 32px) !important; }
	#page-container .alcg-hero { min-height: 0; }
	.alcg-hero .alcg-btn { font-size: 16px !important; padding: 12px 28px !important; }
	.alcg-pagehero p.alcg-lead, .alcg-hero p.alcg-lead { font-size: 18px; }
	.alcg-calc { padding: 20px; }
	.alcg-footer .wpforms-form { flex-direction: column; }
	#page-container .alcg-tabbar { position: static; }
	html { scroll-padding-top: 140px; }
}

/* ==========================================================================
   Retouches du 2026-12-03 : menu, annonce, cartes « Why us », « Where A-Levels »
   ========================================================================== */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* Menu : graisse plus nette, interlettrage léger, soulignement or au survol */
.alcg-menu > li > a { font-family: var(--alcg-heading); font-weight: 600; font-size: 15px; letter-spacing: .01em; color: var(--alcg-ink); padding: 10px 14px; position: relative; border-radius: 0; }
.alcg-menu > li > a::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--alcg-gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.alcg-menu > li > a:hover::before, .alcg-menu > li.current-menu-item > a::before, .alcg-menu > li.current-menu-ancestor > a::before, .alcg-menu > li.current-page-ancestor > a::before { transform: scaleX(1); }
.alcg-menu > li > a:hover { color: var(--alcg-primary); }
.alcg-menu > li.menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.alcg-menu .sub-menu a { font-family: var(--alcg-body); font-weight: 400; font-size: 15px; padding: 8px 12px; border-radius: 6px; }
.alcg-menu .sub-menu a:hover { color: var(--alcg-primary); background: var(--alcg-bg); }

/* Barre d'annonce : icône calendrier au trait */
.alcg-announce a { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--alcg-body); }
.alcg-announce .alcg-ico { flex: 0 0 auto; color: var(--alcg-gold); }

/* Médaillons (icône ou chiffre) */
.alcg-badge { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--alcg-cream); color: var(--alcg-gold-dark, #a67f30); border: 1px solid rgba(209,163,71,.35); margin: 0 auto 18px; flex: 0 0 auto; }
.alcg-badge-num { font-family: var(--alcg-heading); font-weight: 700; font-size: 22px; color: var(--alcg-gold-ink); letter-spacing: -.01em; }
.alcg-badge-navy { background: var(--alcg-primary); color: var(--alcg-gold-bright); border: 0; box-shadow: 0 6px 16px rgba(31,81,122,.25); }

/* « Why us » : 4 cartes identiques, contenus alignés */
.alcg-why { align-items: stretch; }
.alcg-why > .alcg-card { background: #fff !important; display: flex; flex-direction: column; align-items: center; border-top: 3px solid var(--alcg-gold); padding: 32px 24px 28px; transition: transform .25s ease, box-shadow .25s ease; }
.alcg-why > .alcg-card h3 { min-height: 2.6em; display: flex; align-items: center; justify-content: center; padding-bottom: 0; margin-bottom: 10px; }
.alcg-why > .alcg-card p { color: var(--alcg-muted); }
.alcg-why > .alcg-card .alcg-actions { margin-top: auto; padding-top: 14px; }
.alcg-why > .alcg-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,41,61,.08); }

/* « Where A-Levels can take you » : cartes destinations */
.alcg-where { align-items: stretch; counter-reset: dest; }
.alcg-where > .alcg-dest { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; background: #fff; border: 1px solid var(--alcg-border); border-radius: 14px; padding: 36px 28px 30px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.alcg-where > .alcg-dest::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--alcg-primary), var(--alcg-gold)); transform: scaleX(.25); transform-origin: left; transition: transform .45s ease; }
.alcg-where > .alcg-dest:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16,41,61,.12); border-color: transparent; }
.alcg-where > .alcg-dest:hover::before { transform: scaleX(1); }
.alcg-where > .alcg-dest .alcg-badge { transition: transform .3s ease; }
.alcg-where > .alcg-dest:hover .alcg-badge { transform: scale(1.08) rotate(-4deg); }
.alcg-where > .alcg-dest h3 { font-size: 19px; color: var(--alcg-primary); }
.alcg-where > .alcg-dest p { color: var(--alcg-muted); font-size: 15px; }
.alcg-pills { list-style: none !important; padding: 0 !important; margin: 36px 0 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.alcg-pills li { display: inline-flex; align-items: center; gap: 8px; background: var(--alcg-cream); border: 1px solid rgba(209,163,71,.4); color: var(--alcg-ink); border-radius: 999px; padding: 8px 16px; font-family: var(--alcg-heading); font-weight: 600; font-size: 14px; }
.alcg-pills svg { width: 16px; height: 16px; color: var(--alcg-gold); }

/* Apparition au défilement (ajoutée par alcg.js) */
.alcg-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.alcg-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.alcg-reveal { opacity: 1; transform: none; transition: none; }
	.alcg-why > .alcg-card, .alcg-where > .alcg-dest, .alcg-where > .alcg-dest::before { transition: none; }
}
@media (max-width: 1100px) {
	.alcg-menu > li > a::before { display: none; }
	.alcg-why > .alcg-card h3 { min-height: 0; }
}
@media (max-width: 1100px) and (min-width: 681px) {
	.alcg-where { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   Alignement des blocs (toutes les pages) : rangées incomplètes centrées,
   contenus alignés d'une carte à l'autre (complété par alcg.js)
   ========================================================================== */
.alcg-cards { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: stretch; --alcg-cols: 4; --alcg-gap: 24px; gap: var(--alcg-gap); }
.alcg-cards.cols-3 { --alcg-cols: 3; }
.alcg-cards.cols-2 { --alcg-cols: 2; }
.alcg-cards > li { flex: 0 0 calc((100% - (var(--alcg-cols) - 1) * var(--alcg-gap)) / var(--alcg-cols)); max-width: calc((100% - (var(--alcg-cols) - 1) * var(--alcg-gap)) / var(--alcg-cols)); box-sizing: border-box; }
.alcg-cards > .alcg-card { display: flex; flex-direction: column; }
.alcg-cards.centered > .alcg-card { align-items: center; }
.alcg-cards.centered > .alcg-card > * { max-width: 100%; }
.alcg-cards > .alcg-card > br { display: none; }
.alcg-cards > .alcg-card > .alcg-actions, .alcg-cards > .alcg-card > p:last-child > a.alcg-btn, .alcg-cards > .alcg-card > p:last-child > a.alcg-btn-outline { margin-top: auto; }
.alcg-cards > .alcg-card > .alcg-actions { padding-top: 12px; }
.alcg-tiles { display: flex !important; flex-wrap: wrap; justify-content: center; --alcg-cols: 5; }
.alcg-tiles > li { flex: 0 0 calc((100% - (var(--alcg-cols) - 1) * 12px) / var(--alcg-cols)); }
.alcg-gallery { justify-content: center; }
.alcg-dark .et_pb_text, .alcg-cta .et_pb_text { text-align: center; }
@media (max-width: 1100px) {
	.alcg-cards, .alcg-cards.cols-3 { --alcg-cols: 2; }
	.alcg-tiles { --alcg-cols: 3; }
}
@media (max-width: 1100px) and (min-width: 681px) {
	.alcg-cards.alcg-where { --alcg-cols: 1; }
}
@media (max-width: 680px) {
	.alcg-cards, .alcg-cards.cols-3, .alcg-cards.cols-2 { --alcg-cols: 1; }
	.alcg-tiles { --alcg-cols: 2; }
}

/* ==========================================================================
   Revue design (2026-12-03) : pied de page, en-tête mobile
   ========================================================================== */
#main-footer.alcg-footer, .alcg-footer { background-color: var(--alcg-primary-dark) !important; }
@media (max-width: 680px) {
	/* Le bandeau contact défile, seuls le logo/menu et l'annonce restent visibles */
	#main-header.alcg-header { top: -45px !important; }
	.admin-bar #main-header.alcg-header { top: 1px !important; }
	.alcg-topbar .alcg-container { min-height: 45px; }
	.alcg-navbar .alcg-container { min-height: 64px; }
	.alcg-logo img { width: 44px; height: 44px; }
	.alcg-logo b { font-size: 17px; }
	.alcg-logo i { font-size: 13px; }
	.alcg-announce { font-size: 13px; }
	.alcg-announce a { padding: 7px 40px 7px 16px; justify-content: flex-start; text-align: left; line-height: 1.35; }
	.alcg-announce button { right: 8px; }
}

/* Revue design : lisibilité du texte, équipe, FAQ, lien secondaire du hero */
.et_pb_text, .et_pb_text p, .et_pb_text li, .et_pb_toggle_content, .et_pb_toggle_content p { font-size: 16px; line-height: 1.65; }
.alcg-cards .alcg-card p, .alcg-cards .alcg-card li { font-size: 15px; line-height: 1.6; }
.alcg-hero p.alcg-lead { font-size: 20px; line-height: 1.5; }
.alcg-hero .alcg-link { font-size: 16px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(236,198,121,.7); text-decoration-thickness: 2px; }
.alcg-hero .alcg-link:hover { text-decoration-color: var(--alcg-gold); }
@media (min-width: 681px) {
	.alcg-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
.et_pb_toggle_open { border-bottom-color: var(--alcg-gold) !important; }
.et_pb_toggle_open .et_pb_toggle_title { color: var(--alcg-primary) !important; }
.et_pb_toggle_open .et_pb_toggle_title::before { display: block !important; content: "\e04f" !important; color: var(--alcg-gold) !important; }

@media (min-width: 681px) {
	.alcg-team li { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
	.alcg-team li > span { display: flex; flex-direction: column; align-items: center; }
	.alcg-team small { justify-content: center; }
	.alcg-team img { width: 64px; height: 64px; }
}

/* Formulaires WPForms aux couleurs du site */
.et_pb_text .wpforms-container { background: #fff; border: 1px solid var(--alcg-border); border-radius: 14px; padding: 32px 36px; max-width: 760px; margin: 24px auto; box-shadow: 0 10px 30px rgba(16,41,61,.05); }
.alcg-footer .wpforms-container, .alcg-modal .wpforms-container { background: transparent; border: 0; padding: 0; box-shadow: none; margin: 0; }
.wpforms-container .wpforms-field-label { font-family: var(--alcg-heading) !important; font-weight: 600 !important; font-size: 14px !important; color: var(--alcg-ink) !important; }
.wpforms-container input[type=text], .wpforms-container input[type=email], .wpforms-container input[type=tel], .wpforms-container input[type=number], .wpforms-container select, .wpforms-container textarea { border: 1px solid var(--alcg-border) !important; border-radius: 8px !important; padding: 10px 14px !important; font-size: 16px !important; font-family: var(--alcg-body) !important; max-width: 100% !important; background: #fff !important; transition: border-color .2s, box-shadow .2s; }
.wpforms-container input:focus, .wpforms-container select:focus, .wpforms-container textarea:focus { border-color: var(--alcg-primary) !important; box-shadow: 0 0 0 3px rgba(31,81,122,.15) !important; outline: none !important; }
.wpforms-container .wpforms-field { padding: 10px 0 !important; }
.wpforms-container .wpforms-submit-container button[type=submit] { background: var(--alcg-gold) !important; color: var(--alcg-on-gold) !important; border: 0 !important; border-radius: 6px !important; font-family: var(--alcg-heading) !important; font-weight: 700 !important; font-size: 16px !important; padding: 12px 32px !important; height: auto !important; cursor: pointer; box-shadow: 0 4px 14px rgba(209,163,71,.25); }
.wpforms-container .wpforms-submit-container button[type=submit]:hover { background: var(--alcg-gold-light) !important; }
.alcg-footer .wpforms-container input[type=email] { background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.25) !important; color: #fff !important; }
.alcg-footer .wpforms-container input::placeholder { color: rgba(255,255,255,.6); }
.alcg-footer .wpforms-container .wpforms-submit-container button[type=submit] { background: var(--alcg-primary) !important; color: #fff !important; box-shadow: none; font-weight: 600 !important; font-size: 14px !important; padding: 9px 20px !important; }
.wpforms-confirmation-container-full { background: #eef6ee !important; border: 1px solid #b9dcb9 !important; border-radius: 10px !important; }
@media (max-width: 680px) { .et_pb_text .wpforms-container { padding: 20px 18px; } }
.et_pb_text .alcg-form { background: #fff; border: 1px solid var(--alcg-border); border-radius: 14px; padding: 32px 36px; max-width: 760px; margin: 24px auto; box-shadow: 0 10px 30px rgba(16,41,61,.05); }
.et_pb_text .alcg-form .wpforms-container { background: transparent; border: 0; padding: 0; box-shadow: none; margin: 0 !important; max-width: none; }
.alcg-footer .wpforms-form { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.alcg-footer .wpforms-form .wpforms-field-container { flex: 1 1 auto; min-width: 0; }
.alcg-footer .wpforms-form .wpforms-field { padding: 0 !important; }
.alcg-footer .wpforms-form .wpforms-field input[type=email] { width: 100% !important; height: 40px !important; margin: 0 !important; }
.alcg-footer .wpforms-form .wpforms-submit-container { padding: 0 !important; margin: 0 !important; flex: 0 0 auto; }
.alcg-footer .wpforms-form .wpforms-submit-container button[type=submit] { height: 40px !important; padding: 0 18px !important; }
@media (max-width: 680px) { .et_pb_text .alcg-form { padding: 20px 18px; } }

/* Boutons à l'intérieur des cartes : contour discret, sur une ligne */
.alcg-cards .alcg-card a.alcg-btn { background: transparent !important; color: var(--alcg-primary) !important; border: 2px solid var(--alcg-primary) !important; box-shadow: none; font-weight: 600 !important; font-size: 15px !important; padding: 8px 18px !important; white-space: nowrap; max-width: 100%; }
.alcg-cards .alcg-card a.alcg-btn:hover { background: var(--alcg-primary) !important; color: #fff !important; }
@media (max-width: 400px) { .alcg-cards .alcg-card a.alcg-btn { white-space: normal; } }
