/*
Theme Name: Centre I-TSA
Theme URI: https://centretsa.org
Description: Bilingual (English / French) one-page theme for Centre I-TSA, Brampton. The home page design and text live in parts/home-content.php; the main stylesheet is assets/css/styles.css.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: centre-itsa
*/

/* Inner pages (privacy policy, blog posts) reuse the site header and footer. */
.wp-page { padding-block: clamp(40px, 6vw, 72px); min-height: 55vh; }
.wp-page .wrap { max-width: 820px; }
.wp-page h1 { margin-bottom: .6em; }
.wp-page .entry + .entry { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.wp-page img { max-width: 100%; height: auto; border-radius: 16px; }
.wp-page a { color: var(--accent); }

/* Keep the sticky header below the WordPress admin bar for logged-in users. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }


/* Brand logo (stick-figure artwork) */
.brand-logo { display: block; flex: none; height: 48px; width: auto; }
.site-footer .brand-logo { height: 52px; padding: 6px 10px; background: #fff; border-radius: 12px; }
@media (max-width: 600px) { .brand-logo { height: 38px; } }


/* Back-to-top: more visible, filled button */
body .itsa-top { background: #6b3fa0; color: #fff; border-color: #6b3fa0; width: 52px; height: 52px; }
body .itsa-top:hover, body .itsa-top:focus-visible { background: #c8336f; border-color: #c8336f; color: #fff; }

/* Comfort settings: floating tab on the right edge once the top bar has scrolled away */
body.comfort-floating #comfort-btn {
  position: fixed; top: 50%; right: 0; z-index: 81;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 10px; margin: 0;
  background: #6b3fa0; color: #fff; border: 0;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 8px 22px -10px rgba(43, 33, 64, .55);
  font-weight: 600; letter-spacing: .02em; cursor: pointer;
  animation: itsaComfortIn .25s ease-out;
}
body.comfort-floating #comfort-btn .ico { transform: rotate(90deg); color: #fff; }
body.comfort-floating #comfort-btn:hover,
body.comfort-floating #comfort-btn:focus-visible,
body.comfort-floating #comfort-btn[aria-expanded="true"] { background: #c8336f; }
body.comfort-floating #comfort-panel {
  position: fixed; top: 50%; right: 60px; transform: translateY(-50%);
  max-height: 85vh; overflow: auto;
}
@keyframes itsaComfortIn { from { opacity: 0; right: -20px; } to { opacity: 1; right: 0; } }
@media (prefers-reduced-motion: reduce) { body.comfort-floating #comfort-btn { animation: none; } }

/* Contact & information: left column cards */
.cd { display: flex; flex-direction: column; gap: 16px; }
.cd-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-info a.cd-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid #e6dfee; text-decoration: none; color: #2b2140; box-shadow: 0 10px 24px -18px rgba(43,33,64,.45); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
.contact-info a.cd-tile:hover { transform: translateY(-2px); border-color: #6b3fa0; box-shadow: 0 16px 28px -18px rgba(107,63,160,.6); }
.cd-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #f1eaf8; color: #6b3fa0; margin-bottom: 6px; }
.cd-tile.pink .cd-ic { background: #fce7ef; color: #c8336f; }
.cd-ic .ico { width: 22px; height: 22px; }
.cd-k { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5d5470; }
.cd-v { font-family: Nunito, system-ui, sans-serif; font-weight: 800; font-size: 1.12rem; color: #6b3fa0; overflow-wrap: anywhere; }
.cd-tile.pink .cd-v { color: #c8336f; }
.cd-s { font-size: .88rem; color: #5d5470; }
.cd-card { background: #fff; border: 1px solid #e6dfee; border-radius: 22px; padding: 20px; box-shadow: 0 10px 24px -18px rgba(43,33,64,.45); }
.cd-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: Nunito, system-ui, sans-serif; font-size: 1.05rem; font-weight: 800; color: #2b2140; }
.cd-h .ico { width: 20px; height: 20px; color: #6b3fa0; }
.cd-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cd-hours li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: #f8f4fc; }
.cd-hours li > span { color: #5d5470; font-weight: 600; }
.cd-hours li strong { color: #2b2140; text-align: right; }
.contact-info a.cd-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; color: #6b3fa0; text-decoration: none; }
.contact-info a.cd-more:hover { text-decoration: underline; }
.cd-more .ico { width: 16px; height: 16px; }
.cd-loc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cd-loc address { font-style: normal; line-height: 1.55; color: #2b2140; }
.cd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-info .cd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none; border: 2px solid #6b3fa0; background: #6b3fa0; color: #fff; cursor: pointer; font-family: inherit; }
.contact-info a.cd-btn:not(.ghost), .contact-info a.cd-btn:not(.ghost) * { color: #fff; }
.contact-info .cd-btn.ghost { background: #fff; color: #6b3fa0; }
.contact-info .cd-btn:hover, .contact-info .cd-btn:hover * { background: #c8336f; border-color: #c8336f; color: #fff; }
.contact-info .cd-btn:hover * { background: transparent; }
.cd-btn .ico { width: 16px; height: 16px; }
.cd-map { margin-top: 16px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 8; border: 1px solid #e6dfee; }
.cd-map iframe { border: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 520px) { .cd-quick { grid-template-columns: 1fr; } }

/* Cookie consent banner (Law 25) */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998; max-width: 760px; margin: 0 auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 20px; background: #fff; color: #2b2140; border: 1px solid #e6dfee; border-radius: 20px; box-shadow: 0 20px 50px -20px rgba(43,33,64,.55); opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-banner[hidden] { display: none; }
.cookie-text { flex: 1 1 360px; }
.cookie-text p { margin: 0; font-size: .95rem; line-height: 1.5; color: #5d5470; }
.cookie-text .cookie-title { font-family: Nunito, system-ui, sans-serif; font-weight: 800; font-size: 1.05rem; color: #2b2140; margin-bottom: 4px; }
.cookie-text a { color: #6b3fa0; font-weight: 700; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions .btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; font-weight: 700; border: 2px solid #6b3fa0; cursor: pointer; font-family: inherit; font-size: .95rem; }
.cookie-actions .btn-primary { background: #6b3fa0; color: #fff; }
.cookie-actions .btn-ghost { background: #fff; color: #6b3fa0; }
.cookie-actions .btn:hover { background: #c8336f; border-color: #c8336f; color: #fff; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }

/* Map placeholder until Google Maps is allowed */
.cd-map { position: relative; background: #f8f4fc; }
.cd-map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; background: repeating-linear-gradient(45deg, #f8f4fc, #f8f4fc 12px, #f3edf9 12px, #f3edf9 24px); }
.cd-map-ph[hidden] { display: none; }
.cd-map-ph p { margin: 0; font-size: .9rem; color: #5d5470; max-width: 300px; }

/* Footer legal links */
.site-footer .legal-links { margin: 6px 0 0; font-size: .9rem; opacity: .9; }
.site-footer .legal-links a, .site-footer .link-btn { color: inherit; text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Cookie policy page */
.itsa-policy h2 { margin-top: 1.6em; }
.itsa-policy h3 { margin-top: 1.2em; font-size: 1.1rem; }
.itsa-policy code { background: #f3edf9; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
article.entry:has(.itsa-policy) > h1 { display: none; } /* the policy has its own bilingual title */

/* Contact: form card matches the height of the left column; message box fills the extra space */
.contact-grid { align-items: stretch; }
.contact-grid .contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-grid .contact-form > .btn { align-self: flex-start; }
.contact-grid .contact-form .field:has(#f-msg) { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.contact-grid .contact-form #f-msg { flex: 1 1 auto; min-height: 160px; }

/* "I'm not a robot" check */
.human-check { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid #e6dfee; border-radius: 14px; background: #f8f4fc; }
.human-box { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; color: #2b2140; margin: 0; }
.human-box input { width: 24px; height: 24px; margin: 0; accent-color: #6b3fa0; cursor: pointer; flex: none; }
.human-box input[aria-invalid="true"] { outline: 2px solid #c8336f; outline-offset: 2px; }
.human-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: #5d5470; text-transform: uppercase; letter-spacing: .06em; }
.human-badge .ico { width: 16px; height: 16px; color: #6b3fa0; }

/* Family area */
.fd { display: grid; gap: 24px; }
.fd-intro { display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; border: 1px solid #e6dfee; border-radius: 28px; overflow: hidden; box-shadow: 0 18px 40px -28px rgba(43,33,64,.5); }
.fd-visual { background: #ebe1f7; display: flex; align-items: flex-end; justify-content: center; padding: 28px 28px 0; min-height: 320px; }
.fd-visual img { width: 100%; max-width: 460px; height: auto; display: block; }
.fd-body { padding: 32px; display: flex; flex-direction: column; gap: 18px; justify-content: center; min-width: 0; }
.fd-lead { margin: 0; font-size: 1.08rem; line-height: 1.6; color: #2b2140; }
.fd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: fd; }
.fd-steps li { display: flex; gap: 14px; align-items: flex-start; counter-increment: fd; }
.fd-steps li::before { content: counter(fd); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #6b3fa0; color: #fff; font: 800 .95rem Nunito, system-ui, sans-serif; }
.fd-steps strong { display: block; color: #2b2140; font-family: Nunito, system-ui, sans-serif; }
.fd-steps .d { color: #5d5470; font-size: .95rem; }
.fd-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fd a.fd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid #6b3fa0; background: #6b3fa0; color: #fff; text-align: center; }
.fd a.fd-btn * { color: inherit; }
.fd a.fd-btn.ghost { background: #fff; color: #6b3fa0; }
.fd a.fd-btn:hover, .fd a.fd-btn:focus-visible { background: #c8336f; border-color: #c8336f; color: #fff; }
.fd-btn .ico { width: 18px; height: 18px; flex: none; }
.fd-lock { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: #5d5470; background: #f8f4fc; border-radius: 999px; padding: 6px 12px; align-self: flex-start; }
.fd-lock .ico { width: 16px; height: 16px; color: #6b3fa0; }
.fd-sub { margin: 8px 0 -6px; font: 800 1.25rem Nunito, system-ui, sans-serif; color: #2b2140; }
.fd-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fd-card { background: #fff; border: 1px solid #e6dfee; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.fd-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--fd-fg); }
.fd-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(43,33,64,.5); }
.fd-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--fd-bg); color: var(--fd-fg); margin: 4px 0 6px; flex: none; }
.fd-ic .ico { width: 24px; height: 24px; }
.fd-card h3 { margin: 0; font: 800 1.08rem Nunito, system-ui, sans-serif; color: #2b2140; }
.fd-card p { margin: 0; color: #5d5470; font-size: .95rem; line-height: 1.5; }
.fd-event { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px 28px; border-radius: 24px; background: linear-gradient(120deg, #fff4d1, #ffefc2 55%, #fde6ee); border: 1px solid #f6e3a8; }
.fd-event .fd-ic { background: #fff; color: #b7791f; width: 56px; height: 56px; margin: 0; }
.fd-event h3 { margin: 0 0 4px; font: 800 1.15rem Nunito, system-ui, sans-serif; color: #2b2140; }
.fd-event p { margin: 0; color: #5d5470; }
.fd-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a5a12; margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .fd-card { transition: none; } .fd-card:hover { transform: none; } }
/* Tablets */
@media (max-width: 980px) {
  .fd-grid { grid-template-columns: repeat(2, 1fr); }
  .fd-intro { grid-template-columns: 1fr; }
  .fd-visual { min-height: 0; padding: 24px 24px 0; }
  .fd-visual img { max-width: 380px; }
  .fd-event { grid-template-columns: auto 1fr; }
  .fd-event > .fd-btn { grid-column: 1 / -1; justify-self: start; }
}
/* Phones */
@media (max-width: 600px) {
  .fd { gap: 18px; }
  .fd-intro { border-radius: 22px; }
  .fd-visual { padding: 18px 18px 0; }
  .fd-visual img { max-width: 280px; }
  .fd-body { padding: 22px 18px; gap: 16px; }
  .fd-lead { font-size: 1rem; }
  .fd-cta { flex-direction: column; align-items: stretch; }
  .fd a.fd-btn { width: 100%; padding: 13px 18px; }
  .fd-lock { align-self: stretch; justify-content: center; text-align: center; }
  .fd-grid { grid-template-columns: 1fr; gap: 12px; }
  .fd-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 18px; }
  .fd-card .fd-ic { margin: 0; width: 44px; height: 44px; }
  .fd-card h3 { flex: 1; }
  .fd-card p { flex-basis: 100%; }
  .fd-event { grid-template-columns: 1fr; gap: 14px; padding: 22px 18px; }
  .fd-event > .fd-btn { justify-self: stretch; }
}

/* Staff section */
.td { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: stretch; }
.td-dir { background: #fff; border: 1px solid #e6dfee; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 18px 40px -28px rgba(43,33,64,.5); min-width: 0; }
.td-band { height: 96px; background: linear-gradient(120deg, #ebe1f7, #fde6ee 60%, #ffefc2); position: relative; overflow: hidden; }
.td-band::after { content: ""; position: absolute; right: -30px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.45); }
.td-dbody { padding: 0 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.td-avatar { width: 104px; height: 104px; margin-top: -52px; border-radius: 30px; display: grid; place-items: center; background: linear-gradient(135deg, #6b3fa0, #c8336f); color: #fff; font: 800 2.1rem Nunito, system-ui, sans-serif; letter-spacing: .02em; border: 5px solid #fff; box-shadow: 0 12px 24px -12px rgba(107,63,160,.6); position: relative; z-index: 1; }
.td-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b3fa0; background: #f1eaf8; border-radius: 999px; padding: 5px 12px; }
.td-dir h3 { margin: 0; font: 800 1.5rem Nunito, system-ui, sans-serif; color: #2b2140; }
.td-title { margin: -6px 0 0; color: #c8336f; font-weight: 700; }
.td-desc { margin: 0; color: #5d5470; line-height: 1.6; }
.td-resp { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.td-resp li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #f8f4fc; color: #2b2140; font-weight: 600; font-size: .9rem; min-width: 0; }
.td-resp .ico { width: 18px; height: 18px; color: #6b3fa0; flex: none; }
.td-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.td a.td-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid #6b3fa0; background: #6b3fa0; color: #fff; }
.td a.td-btn * { color: inherit; }
.td a.td-btn.ghost { background: #fff; color: #6b3fa0; }
.td a.td-btn:hover, .td a.td-btn:focus-visible { background: #c8336f; border-color: #c8336f; color: #fff; }
.td-btn .ico { width: 18px; height: 18px; flex: none; }
.td-edu { background: #f6f1fb; border: 1px solid #e6dfee; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.td-edu-head { display: flex; align-items: center; gap: 14px; }
.td-edu-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: #6b3fa0; box-shadow: 0 8px 18px -12px rgba(43,33,64,.5); flex: none; }
.td-edu-ic .ico { width: 26px; height: 26px; }
.td-edu h3 { margin: 0; font: 800 1.3rem Nunito, system-ui, sans-serif; color: #2b2140; }
.td-edu-head p { margin: 2px 0 0; color: #5d5470; font-size: .95rem; }
.td-roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; flex: 1 1 auto; }
.td-role { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid #e6dfee; border-radius: 20px; padding: 18px; transition: transform .15s, box-shadow .15s; min-width: 0; }
.td-role:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -18px rgba(43,33,64,.5); }
.td-ric { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--td-bg); color: var(--td-fg); flex: none; }
.td-ric .ico { width: 22px; height: 22px; }
.td-role h4 { margin: 2px 0 4px; font: 800 1rem Nunito, system-ui, sans-serif; color: #2b2140; }
.td-role p { margin: 0; color: #5d5470; font-size: .9rem; line-height: 1.45; }
.td-meet { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px dashed #cdbbe6; border-radius: 18px; padding: 14px 18px; }
.td-meet p { margin: 0; color: #2b2140; font-weight: 700; }
.td a.td-link { display: inline-flex; align-items: center; gap: 6px; color: #6b3fa0; font-weight: 800; text-decoration: none; }
.td a.td-link:hover { text-decoration: underline; }
.td-link .ico { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .td-role { transition: none; } .td-role:hover { transform: none; } }
/* Tablets */
@media (max-width: 980px) { .td { grid-template-columns: 1fr; } .td-actions { margin-top: 4px; } }
/* Phones */
@media (max-width: 600px) {
  .td { gap: 18px; }
  .td-dir, .td-edu { border-radius: 22px; }
  .td-band { height: 80px; }
  .td-dbody { padding: 0 18px 22px; }
  .td-avatar { width: 88px; height: 88px; margin-top: -44px; font-size: 1.8rem; border-radius: 26px; }
  .td-dir h3 { font-size: 1.3rem; }
  .td-resp { grid-template-columns: 1fr; }
  .td-actions { flex-direction: column; }
  .td a.td-btn { width: 100%; padding: 13px 18px; }
  .td-edu { padding: 20px 16px; }
  .td-edu-head { align-items: flex-start; }
  .td-roles { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .td-role { padding: 16px; }
  .td-meet { flex-direction: column; align-items: flex-start; }
}

/* About the centre: vision, mission, values, objectives in four columns */
.ah { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.ah-col { background: #fff; border: 1px solid #e6dfee; border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ah-col.is-vision { background: #6b3fa0; border-color: #6b3fa0; color: #fff; }
.ah-head { display: flex; align-items: center; gap: 10px; }
.ah-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #f1eaf8; color: #6b3fa0; flex: none; }
.ah-col.is-vision .ah-ic { background: rgba(255,255,255,.18); color: #fff; }
.ah-ic .ico { width: 19px; height: 19px; }
.ah-col h3 { margin: 0; }
.ah-col.is-vision h3 { color: #fff; }
.ah-col p { margin: 0; font-size: .95rem; line-height: 1.6; color: #5d5470; }
.ah-col.is-vision p { color: #f3ecfb; }
.ah-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ah-list li { display: flex; align-items: flex-start; gap: 9px; font-size: .92rem; line-height: 1.45; color: #2b2140; }
.ah-list .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #6b3fa0; }
.ah-list.objs .ico { color: #2f8f7a; }
@media (max-width: 1000px) { .ah { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ah { grid-template-columns: 1fr; gap: 12px; } .ah-col { padding: 20px 18px; } }
/* Objectives moved into About: the remaining "Who we support" card is centred on its own */
#objectives .split { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }

/* Who we support */
#objectives .split { max-width: none; }
.ws { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center; background: #fff; border: 1px solid #e6dfee; border-radius: 28px; padding: 32px; box-shadow: 0 18px 40px -28px rgba(43,33,64,.45); max-width: 1100px; margin: 0 auto; width: 100%; }
.ws-intro { min-width: 0; }
.ws-intro .eyebrow { margin: 0 0 8px; }
.ws-intro h2 { margin: 0 0 10px; }
.ws-intro p.ws-lead { margin: 0 0 18px; color: #5d5470; font-size: .98rem; line-height: 1.6; }
.ws a.ws-link { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; background: #6b3fa0; color: #fff; border: 2px solid #6b3fa0; }
.ws a.ws-link * { color: inherit; }
.ws a.ws-link:hover, .ws a.ws-link:focus-visible { background: #c8336f; border-color: #c8336f; }
.ws-link .ico { width: 18px; height: 18px; }
.ws-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ws-grid li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ws-bg); color: #2b2140; font-weight: 600; font-size: .95rem; line-height: 1.4; min-width: 0; }
.ws-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--ws-fg); flex: none; }
.ws-ic .ico { width: 19px; height: 19px; }
@media (max-width: 900px) { .ws { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px; } }
@media (max-width: 600px) { .ws { padding: 22px 16px; border-radius: 22px; } .ws-grid { grid-template-columns: 1fr; } .ws a.ws-link { width: 100%; justify-content: center; } }

/* Admission pop-up */
.adm-popup { padding: 0; border: 0; border-radius: 28px; width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: #2b2140; box-shadow: 0 40px 80px -30px rgba(43,33,64,.6); }
.adm-popup::backdrop { background: rgba(43,33,64,.55); backdrop-filter: blur(2px); }
.adm-popup[open] { animation: admIn .25s ease-out; }
@keyframes admIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.adm-wrap { display: grid; grid-template-columns: 5fr 7fr; }
.adm-side { background: linear-gradient(150deg, #6b3fa0, #8a4fb8 55%, #c8336f); color: #fff; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.adm-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.adm-badge .ico { width: 15px; height: 15px; }
.adm-side h2 { margin: 0; color: #fff; font-size: 1.6rem; line-height: 1.25; }
.adm-side p { margin: 0; color: #f3ecfb; line-height: 1.6; font-size: .97rem; }
.adm-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.adm-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.adm-points .ico { width: 18px; height: 18px; flex: none; background: rgba(255,255,255,.2); border-radius: 50%; padding: 3px; }
.adm-popup a.adm-call { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; color: #6b3fa0; font-weight: 800; text-decoration: none; }
.adm-call .ico { width: 17px; height: 17px; }
.adm-form { position: relative; padding: 30px 30px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adm-form h3 { margin: 0 40px 4px 0; }
.adm-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e6dfee; background: #fff; color: #5d5470; display: grid; place-items: center; cursor: pointer; }
.adm-close:hover, .adm-close:focus-visible { background: #f1eaf8; color: #6b3fa0; }
.adm-close .ico { width: 18px; height: 18px; }
.adm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.adm-field label { font-weight: 700; font-size: .9rem; }
.adm-field input, .adm-field select, .adm-field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid #e6dfee; border-radius: 12px; font: inherit; font-size: .97rem; color: #2b2140; background: #fff; }
.adm-field textarea { resize: vertical; min-height: 76px; }
.adm-field input:focus, .adm-field select:focus, .adm-field textarea:focus { outline: none; border-color: #6b3fa0; box-shadow: 0 0 0 3px rgba(107,63,160,.18); }
.adm-field [aria-invalid="true"] { border-color: #c8336f; }
.adm-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.adm-later { background: none; border: 0; padding: 6px 2px; font: inherit; font-weight: 700; color: #5d5470; text-decoration: underline; cursor: pointer; }
.adm-status { margin: 0; min-height: 1.2em; font-size: .92rem; font-weight: 600; color: #6b3fa0; }
@media (prefers-reduced-motion: reduce) { .adm-popup[open] { animation: none; } }
@media (max-width: 760px) {
  .adm-popup { border-radius: 22px; }
  .adm-wrap { grid-template-columns: 1fr; }
  .adm-side { padding: 22px 20px; gap: 10px; }
  .adm-side h2 { font-size: 1.3rem; padding-right: 44px; }
  .adm-side p, .adm-points, .adm-popup a.adm-call { display: none; }
  .adm-form { padding: 20px; position: static; }
  .adm-close { top: 14px; right: 14px; background: rgba(255,255,255,.95); }
  .adm-popup { position: fixed; }
  .adm-row { grid-template-columns: 1fr; }
  .adm-actions .btn { width: 100%; justify-content: center; }
  .adm-later { width: 100%; text-align: center; }
}

/* Admission pop-up: fallback for older browsers (e.g. older Safari) without native <dialog> */
.adm-popup:not([open]) { display: none; }
.adm-popup.adm-fallback { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 10000; box-shadow: 0 0 0 100vmax rgba(43,33,64,.55), 0 40px 80px -30px rgba(43,33,64,.6); -webkit-overflow-scrolling: touch; }
body.adm-lock { overflow: hidden; }

/* Contact form: robot check + Send button line up with the bottom of the map card on the left */
.contact-grid .contact-form .form-status { margin: 0; }
.contact-grid .contact-form .form-status:empty { display: none; }
@media (min-width: 981px) { .contact-grid .contact-form { padding-bottom: 21px; } }

/* Admission pop-up: logo card, aligned buttons */
.adm-logo { display: flex; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%; background: #fff; border-radius: 18px; padding: 10px 20px 10px 12px; margin-bottom: 10px; box-shadow: 0 12px 24px -16px rgba(0,0,0,.45); }
.adm-logo img { height: 60px; width: auto; display: block; flex: none; }
.adm-logo span { font-weight: 800; color: #2b2140; font-size: 1.15rem; white-space: nowrap; }
.adm-logo span b { color: #6b3fa0; }
#adm-popup .adm-status { margin: 0; }
#adm-popup .adm-status:empty { display: none; }
#adm-popup .adm-form { padding-bottom: 32px; }
#adm-popup a.adm-call { min-height: 52px; box-sizing: border-box; padding-left: 20px; padding-right: 20px; }
@media (max-width: 760px) {
  .adm-side { flex-direction: column; align-items: flex-start; padding-right: 64px; }
  .adm-logo { padding: 8px 14px 8px 10px; margin-bottom: 4px; border-radius: 14px; }
  .adm-logo img { height: 44px; }
  .adm-logo span { font-size: 1rem; }
  #adm-popup .adm-form { padding-bottom: 20px; }
}
@media (max-width: 360px) { .adm-logo span { display: none; } }

/* Admission pop-up logo: tablets */
@media (min-width: 761px) and (max-width: 1000px) { .adm-logo { padding: 8px 14px 8px 10px; } .adm-logo img { height: 46px; } .adm-logo span { font-size: 1rem; } }

/* About the centre: vision/mission banner, values row, objectives grid */
.ax { display: grid; gap: 18px; max-width: 1120px; margin: 0 auto; }
.ax-band { display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; overflow: hidden; background: linear-gradient(120deg, #5b3492, #6b3fa0 45%, #8a3f9e); color: #fff; box-shadow: 0 22px 44px -30px rgba(43,33,64,.7); position: relative; }
.ax-band::after { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.ax-vm { padding: 24px 30px; display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.ax-vm + .ax-vm { border-left: 1px solid rgba(255,255,255,.18); }
.ax-vic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.16); flex: none; }
.ax-vic .ico { width: 22px; height: 22px; color: #fff; }
.ax-vm h3 { margin: 0 0 6px; color: #fff; }
.ax-vm p { margin: 0; color: #efe6fa; line-height: 1.6; font-size: .98rem; }
.ax-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.ax-row h3 { margin: 0; font-size: 1rem; color: #6b3fa0; display: flex; align-items: center; gap: 8px; }
.ax-row h3 .ico { width: 18px; height: 18px; }
.ax-values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ax-values li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #e6dfee; font-weight: 700; font-size: .92rem; color: #2b2140; }
.ax-values .ico { width: 16px; height: 16px; color: #c8336f; flex: none; }
.ax-obj { background: #fff; border: 1px solid #e6dfee; border-radius: 24px; padding: 18px 22px; }
.ax-obj h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.ax-hic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #f1eaf8; color: #6b3fa0; flex: none; }
.ax-hic .ico { width: 18px; height: 18px; }
.ax-objs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; }
.ax-objs li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: #f8f4fc; color: #2b2140; font-weight: 600; font-size: .94rem; line-height: 1.4; min-width: 0; }
.ax-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #c8336f; font-weight: 800; font-size: .8rem; box-shadow: 0 4px 10px -6px rgba(43,33,64,.4); }
@media (min-width: 981px) { .ax-obj { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; } .ax-obj h3 { margin: 0; flex-direction: column; align-items: flex-start; gap: 8px; } }
@media (max-width: 980px) { .ax-band { grid-template-columns: 1fr; } .ax-vm + .ax-vm { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); } .ax-objs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ax { gap: 16px; } .ax-band { border-radius: 22px; } .ax-vm { padding: 22px 18px; gap: 12px; } .ax-vic { width: 38px; height: 38px; } .ax-obj { padding: 18px 16px; border-radius: 22px; } .ax-objs { grid-template-columns: 1fr; } .ax-row { gap: 10px; } .ax-values li { font-size: .86rem; padding: 7px 12px; } }

/* Comfort panel: fit every screen */
#comfort-panel { max-height: calc(100vh - 70px); overflow-y: auto; overscroll-behavior: contain; }
body.comfort-floating #comfort-panel { max-height: 85vh; width: min(380px, calc(100vw - 88px)); }
@media (max-width: 600px) {
  body.comfort-floating #comfort-panel { left: 12px; right: 12px; width: auto; max-height: calc(100vh - 120px); z-index: 90; }
  #comfort-panel { max-height: calc(100vh - 90px); }
}
@media (max-height: 560px) { body.comfort-floating #comfort-panel { top: 12px; transform: none; max-height: calc(100vh - 24px); } }

/* Admission pop-up: short screens (small laptops, landscape tablets) - keep the whole form visible */
@media (min-width: 761px) and (max-height: 720px) {
  .adm-popup { max-height: calc(100vh - 20px); }
  .adm-side { padding: 20px 22px; gap: 10px; }
  .adm-side p, .adm-points { display: none; }
  .adm-side h2 { font-size: 1.35rem; }
  .adm-logo { margin-bottom: 4px; padding: 8px 14px 8px 10px; }
  .adm-logo img { height: 46px; }
  #adm-popup .adm-form { padding: 18px 24px 20px; gap: 8px; }
  .adm-form h3 { margin-bottom: 0; }
  .adm-row { gap: 10px; }
  .adm-field { gap: 3px; }
  .adm-field input, .adm-field select, .adm-field textarea { padding: 8px 12px; }
  .adm-field textarea { min-height: 40px; height: 44px; }
  .adm-form h3 { font-size: 1.1rem; }
  .adm-field label { font-size: .85rem; }
  #adm-popup .human-check { padding: 8px 14px; }
  .adm-close { top: 12px; right: 12px; width: 36px; height: 36px; }
}

/* Hide chat bubble and back-to-top while Comfort settings is open (all screen sizes) */
body.comfort-open .itsa-chat, body.comfort-open .itsa-top { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* Comfort settings: make the panel stand out (dimmed page behind, purple header) */
.comfort-scrim { position: fixed; inset: 0; z-index: 79; background: rgba(43,33,64,.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
body.comfort-open .comfort-scrim { opacity: 1; visibility: visible; }
#comfort-panel .comfort-inner { border: 1px solid #cdb8ea; box-shadow: 0 30px 70px -20px rgba(43,33,64,.65); overflow: hidden; }
#comfort-panel .comfort-head { margin: -20px -20px 14px; padding: 16px 20px; background: linear-gradient(120deg, #6b3fa0, #8a4fb8 60%, #c8336f); }
#comfort-panel .comfort-head h2 { color: #fff; }
#comfort-panel #comfort-close { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.55); color: #fff; }
#comfort-panel #comfort-close:hover, #comfort-panel #comfort-close:focus-visible { background: #fff; color: #6b3fa0; }
@media (prefers-reduced-motion: reduce) { .comfort-scrim { transition: none; } }

/* Admission pop-up: compact phone layout - whole form visible without scrolling */
@media (max-width: 760px) {
  .adm-popup { width: calc(100vw - 20px); max-height: calc(100vh - 20px); border-radius: 20px; }
  .adm-side { padding: 12px 54px 12px 14px; gap: 8px; }
  .adm-logo { padding: 5px 10px 5px 7px; margin: 0; border-radius: 12px; gap: 8px; }
  .adm-logo img { height: 30px; }
  .adm-logo span { font-size: .88rem; }
  .adm-side h2 { font-size: clamp(.86rem, 4.3vw, 1.08rem); white-space: nowrap; padding-right: 0; line-height: 1.2; }
  .adm-close { top: 10px; right: 10px; width: 34px; height: 34px; }
  #adm-popup .adm-form { padding: 12px 14px 14px; gap: 7px; }
  .adm-form h3 { display: none; }
  .adm-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .adm-field { gap: 3px; }
  .adm-field label { font-size: .8rem; }
  .adm-field input, .adm-field select, .adm-field textarea { padding: 8px 10px; font-size: 16px; border-radius: 10px; }
  .adm-field textarea { min-height: 40px; height: 44px; }
  #adm-popup .human-check { padding: 7px 12px; }
  #adm-popup .human-box input { width: 22px; height: 22px; }
  #adm-popup .human-badge { font-size: .68rem; }
  .adm-actions { flex-wrap: nowrap; gap: 10px; }
  .adm-actions .btn { flex: 1 1 auto; width: auto; padding-top: 11px; padding-bottom: 11px; }
  .adm-later { width: auto; flex: none; padding: 6px 4px; }
}
@media (max-width: 340px) { .adm-row { grid-template-columns: 1fr; } #adm-popup .human-badge { display: none; } }

/* Get admission on smaller screens: button inside the mobile menu */
.nav .nav-cta { display: none; }
@media (max-width: 1080px) {
  .nav .nav-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 13px 18px; border-radius: 999px; background: #c8336f; color: #fff; font-weight: 800; text-decoration: none; }
  .nav .nav-cta * { color: inherit; }
  .nav .nav-cta .ico { width: 18px; height: 18px; }
  .nav .nav-cta:hover, .nav .nav-cta:focus-visible { background: #6b3fa0; color: #fff; }
}

/* Communication icons on phones: tidy 2-column list (icon beside label) so tiles never overlap or hyphenate */
@media (max-width: 720px) {
  #approach .pictos { grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; margin-left: auto; margin-right: auto; }
  #approach .pictos li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 14px 10px; background: #fff; border-radius: 18px; box-shadow: 0 10px 22px -16px rgba(43,33,64,.45); text-align: center; font-size: .9rem; line-height: 1.25; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; }
  #approach .picto { width: 48px; height: 48px; max-width: none; flex: none; aspect-ratio: auto; border-radius: 14px; background: #f1eaf8; box-shadow: none; }
  #approach .picto svg { width: 26px; height: 26px; }
  #approach .pictos li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
}
@media (max-width: 340px) { #approach .pictos { grid-template-columns: 1fr; } #approach .pictos li:last-child:nth-child(odd) { justify-self: stretch; } }

/* Stop phones from enlarging text on their own (keeps layouts as designed) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Admission pop-up: narrow phones / phones with larger display zoom (e.g. Samsung) */
@media (max-width: 400px) {
  .adm-popup { width: calc(100vw - 16px); max-width: calc(100vw - 16px); overflow-x: hidden; }
  .adm-actions { flex-wrap: wrap; justify-content: center; gap: 4px; }
  .adm-actions .btn { flex: 1 1 100%; justify-content: center; }
  .adm-later { padding: 4px; font-size: .9rem; }
  #adm-popup .adm-form { padding: 10px 12px 10px; gap: 6px; }
  .adm-side { padding: 10px 50px 10px 12px; }
}
@media (max-width: 340px) {
  .adm-row:has(#adm-email) { grid-template-columns: 1fr 1fr; }
  .adm-field input, .adm-field select, .adm-field textarea { padding: 7px 9px; }
  .adm-field textarea { height: 40px; }
}
