/* =======================
   PapayaPog Campus — style.css
   Tech-futuristic aesthetic using brand colors & fonts
   Mobile-first • Flexbox-only • Accessible • No CSS Grid/Columns
   ======================= */

/* -----------------------
   0) RESET & NORMALIZE
------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0; line-height: 1.6; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0 0 0 1.1rem; }
h1, h2, h3, h4, h5, h6, p { margin: 0 0 16px; }
button { cursor: pointer; font: inherit; border: none; background: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #00E5FF; outline-offset: 2px; }

/* -----------------------
   1) THEME TOKENS
------------------------- */
:root {
  /* Brand */
  --brand-primary: #113355; /* deep blue */
  --brand-secondary: #2D7D46; /* green */
  --brand-accent: #F5F7FA; /* light surface */

  /* Tech Futuristic Accents (neon) */
  --neon-cyan: #00E5FF;
  --neon-green: #00FFB2;
  --neon-violet: #7C4DFF;

  /* Surfaces & Text */
  --bg-body: #0D1626; /* dark backdrop */
  --bg-surface: #14263c; /* elevated surface */
  --text-primary: #E9F1FA; /* light text */
  --text-secondary: #BBD0E4; /* mid text */
  --text-inverse: #0E1B2B; /* dark text for light cards */

  /* Effects */
  --shadow-soft: 0 6px 18px rgba(0, 229, 255, 0.08), 0 2px 8px rgba(17, 51, 85, 0.4);
  --shadow-strong: 0 10px 28px rgba(0, 229, 255, 0.12), 0 4px 16px rgba(17, 51, 85, 0.55);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  /* Spacing scale */
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-40: 40px;
  --space-60: 60px;

  /* Transitions */
  --t-fast: 160ms ease;
  --t-med: 240ms ease;
}

/* -----------------------
   2) TYPOGRAPHY
------------------------- */
body {
  font-family: Verdana, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-body);
}
h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, system-ui, sans-serif; letter-spacing: 0.2px; }
h1 { font-size: 34px; line-height: 1.2; }
h2 { font-size: 28px; line-height: 1.25; }
h3 { font-size: 22px; line-height: 1.3; }
p, li, address, small { color: var(--text-secondary); font-size: 16px; }
strong { color: #ffffff; font-weight: 700; }
small { font-size: 14px; }

/* Responsive type */
@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
}

/* -----------------------
   3) GLOBAL LAYOUT (FLEX ONLY)
------------------------- */
.container {
  width: 100%;
  padding: 0 var(--space-16);
  display: flex; /* Flex container */
  justify-content: center; /* center inner wrapper */
}
.content-wrapper {
  width: 100%;
  max-width: 1180px;
  display: flex; /* Flex container */
  flex-direction: column;
  gap: var(--space-20);
  padding: var(--space-24);
  background: rgba(20, 38, 60, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.content-wrapper::before { /* subtle neon edge */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 255, 178, 0.08), 0 0 24px rgba(0, 229, 255, 0.05) inset;
}

/* Mandatory spacing & alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: rgba(20,38,60,0.5); border: 1px solid rgba(0,229,255,0.1); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--brand-accent); color: var(--text-inverse); border-radius: var(--radius-md); border: 1px solid rgba(17,51,85,0.12); box-shadow: 0 6px 18px rgba(17,51,85,0.12); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure minimum spacing between any content blocks */
section + section { margin-top: var(--space-40); }

/* -----------------------
   4) HEADER & NAV
------------------------- */
header {
  position: relative;
  z-index: 50;
  background: rgba(13, 22, 38, 0.8);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}
header .container { align-items: center; }
header .content-wrapper { background: transparent; border: none; box-shadow: none; padding: 0; }

header .container { padding-top: var(--space-12); padding-bottom: var(--space-12); }
header .container > * { align-self: center; }

.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; filter: drop-shadow(0 0 10px rgba(0,229,255,0.2)); }

.main-nav { display: none; align-items: center; gap: var(--space-20); }
.main-nav a {
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.main-nav a:hover { color: #ffffff; background: rgba(0,229,255,0.08); box-shadow: 0 0 0 1px rgba(0,229,255,0.18) inset; }

/* Header layout row: logo | nav | cta | burger */
header .container { gap: var(--space-16); }
header .container { display: flex; justify-content: space-between; }

/* CTA in header */
.button.cta { background: var(--brand-secondary); border-color: rgba(0,255,178,0.3); box-shadow: 0 6px 18px rgba(0,255,178,0.18), 0 0 0 1px rgba(0,255,178,0.25) inset; }
.button.cta:hover { background: #289042; }

/* Mobile nav toggle */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  color: #ffffff;
  background: rgba(20,38,60,0.6);
  border: 1px solid rgba(0,229,255,0.24);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-strong); background: rgba(20,38,60,0.75); }

/* Desktop breakpoint: show main nav, hide burger */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* -----------------------
   5) MOBILE MENU (SLIDE-IN)
------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
  background: rgba(10, 18, 32, 0.85);
  backdrop-filter: saturate(160%) blur(6px);
  transform: translateX(100%);
  transition: transform 280ms ease;
}
.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  margin: 16px;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(20,38,60,0.7);
  border: 1px solid rgba(0,229,255,0.24);
  border-radius: 10px;
}
.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 6px 18px 28px; }
.mobile-nav a {
  display: flex; align-items: center;
  min-height: 48px; padding: 12px 14px;
  background: rgba(20,38,60,0.65);
  border: 1px solid rgba(0,229,255,0.16);
  border-radius: 12px;
  color: #EAF4FF;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.mobile-nav a:hover { background: rgba(20,38,60,0.85); transform: translateX(2px); box-shadow: var(--shadow-soft); }

/* Opening states supported */
.mobile-menu.open,
.mobile-menu.active,
body.menu-open .mobile-menu { transform: translateX(0); }

/* Hide mobile menu on desktop to avoid redundancy */
@media (min-width: 992px) {
  .mobile-menu { display: none; }
}

/* -----------------------
   6) BUTTONS & LINKS
------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap;
  min-height: 44px; padding: 10px 18px;
  font-weight: 700; color: #0C1830;
  background: #00E5FF; /* neon cyan */
  border: 1px solid rgba(0,229,255,0.55);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,229,255,0.28), 0 0 0 1px rgba(0,229,255,0.4) inset;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,229,255,0.35), 0 0 0 1px rgba(0,229,255,0.55) inset; }
.button:active { transform: translateY(0); }

/* Secondary look (outlined on dark) */
.button.is-ghost { background: transparent; color: #EAF4FF; border-color: rgba(0,229,255,0.35); box-shadow: none; }
.button.is-ghost:hover { background: rgba(0,229,255,0.08); }

/* Links hover accent */
a:hover { color: #ffffff; }
a[href] { transition: color var(--t-fast), box-shadow var(--t-fast); box-shadow: inset 0 -2px 0 rgba(0,229,255,0.25); }
a[href]:hover { box-shadow: inset 0 -14px 0 rgba(0,229,255,0.15); }

/* -----------------------
   7) SECTIONS & CONTENT BLOCKS
------------------------- */
main section { padding-top: var(--space-20); padding-bottom: var(--space-20); }

/* Hero blocks: elevate subtly */
main section[aria-labelledby^="hero-"] .content-wrapper {
  background: rgba(17, 51, 85, 0.55);
  border-color: rgba(0,229,255,0.2);
  box-shadow: var(--shadow-strong);
}

/* Lists styling */
ul li { margin-bottom: 10px; }
ul li::marker { color: var(--neon-cyan); }
ol { counter-reset: step; }
ol li { counter-increment: step; margin-bottom: 10px; position: relative; padding-left: 6px; }

/* Text + items row that wraps (cards style for children) */
.text-image-section > div, .text-image-section > ul, .text-image-section > ol {
  flex: 1 1 280px;
  min-width: 260px;
  background: rgba(20,38,60,0.45);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: var(--radius-md);
  padding: var(--space-20);
  box-shadow: var(--shadow-soft);
}
.text-image-section > div:hover { box-shadow: var(--shadow-strong); }

/* Stats & simple lists surface */
section ul:not(.mobile-nav) {
  background: rgba(20,38,60,0.35);
  border: 1px solid rgba(0,229,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-16) var(--space-20);
}

/* Testimonials: light for readability */
.testimonial-card p { color: var(--text-inverse); }
.testimonial-card strong { color: #081524; }

/* Footer */
footer { margin-top: var(--space-40); padding: var(--space-20) 0; background: rgba(13,22,38,0.9); border-top: 1px solid rgba(0,229,255,0.1); }
footer .content-wrapper { background: transparent; border: none; box-shadow: none; padding: var(--space-24) 0; }
footer .content-wrapper { display: flex; flex-wrap: wrap; gap: var(--space-20); justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: var(--space-12); }
footer nav a { color: var(--text-secondary); padding: 6px 10px; border-radius: 8px; }
footer nav a:hover { background: rgba(0,229,255,0.08); color: #fff; }

/* Address block */
address { font-style: normal; }

/* -----------------------
   8) CARDS & MICRO INTERACTIONS
------------------------- */
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }

/* Subtle reveal animation utility */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 420ms ease, transform 420ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* -----------------------
   9) RESPONSIVE FLEX BEHAVIOR
------------------------- */
/* Mobile-first: columns stack */
.text-image-section { flex-direction: column; }

@media (min-width: 768px) {
  /* On tablet+, text-image sections can row-align */
  .text-image-section { flex-direction: row; align-items: center; }
}

/* Content grids using flex only */
.content-grid { justify-content: space-between; }
.content-grid > * { flex: 1 1 320px; min-width: 280px; }

/* Ensure adequate breathing between blocks */
.content-wrapper > * + * { margin-top: 6px; }

/* -----------------------
   10) ACCESSIBILITY & STATES
------------------------- */
::selection { background: rgba(0,229,255,0.28); color: #071427; }
[hidden] { display: none !important; }

/* -----------------------
   11) COOKIE CONSENT BANNER & MODAL
------------------------- */
/* Banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
  display: flex; justify-content: center; align-items: center;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 320ms ease;
}
.cookie-banner__inner {
  width: 100%; max-width: 1180px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--brand-accent);
  color: var(--text-inverse);
  border: 1px solid rgba(17,51,85,0.18);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(17,51,85,0.15);
}
.cookie-banner.show, body.cookie-banner-open .cookie-banner { transform: translateY(0); }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-actions .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 14px;
  border-radius: 10px; font-weight: 700; transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.cookie-actions .btn-accept { background: var(--brand-secondary); color: #fff; box-shadow: 0 8px 18px rgba(0,255,178,0.25); }
.cookie-actions .btn-reject { background: #E6ECF3; color: #0E1B2B; border: 1px solid rgba(17,51,85,0.2); }
.cookie-actions .btn-settings { background: #00E5FF; color: #0E1B2B; border: 1px solid rgba(0,229,255,0.45); }
.cookie-actions .btn:hover { transform: translateY(-1px); }

/* Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 3500;
  display: none; flex-direction: column; justify-content: center; align-items: center;
  background: rgba(7, 14, 24, 0.7);
  backdrop-filter: blur(4px);
}
.cookie-modal.open { display: flex; }
.cookie-modal__content {
  width: min(760px, 92%);
  display: flex; flex-direction: column; gap: 14px;
  background: #FFFFFF;
  color: #0E1B2B;
  border-radius: 16px;
  border: 1px solid rgba(17,51,85,0.18);
  box-shadow: 0 18px 42px rgba(17,51,85,0.25);
  padding: 18px;
}
.cookie-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #E8EEF5; }
.cookie-row:last-child { border-bottom: none; }
.cookie-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 8px; background: #E6F9F0; color: #0E1B2B; font-weight: 700; }

/* Toggle switch */
.toggle { display: inline-flex; align-items: center; gap: 10px; }
.toggle input { appearance: none; width: 44px; height: 26px; background: #DDE7F0; border-radius: 26px; position: relative; transition: background var(--t-fast); border: 1px solid #C8D6E5; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform var(--t-fast); }
.toggle input:checked { background: #00E5FF; border-color: #00C9E0; }
.toggle input:checked::after { transform: translateX(18px); }

.cookie-modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-modal__actions .btn { padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.cookie-modal__actions .btn-save { background: var(--brand-secondary); color: #fff; }
.cookie-modal__actions .btn-cancel { background: #E6ECF3; color: #0E1B2B; }

/* -----------------------
   12) PAGE-SPECIFIC TWEAKS (shared)
------------------------- */
/* Breadcrumb small text */
nav[aria-label="Fil d'Ariane"] small { color: var(--text-secondary); opacity: 0.9; }

/* Pricing highlight text */
#plans .text-image-section > div span { display: inline-flex; align-items: center; padding: 4px 8px; background: rgba(0,229,255,0.12); color: #DFF8FF; border: 1px solid rgba(0,229,255,0.24); border-radius: 8px; }

/* Ordered lists inside content wrappers get cleaner spacing */
.content-wrapper ol { padding-left: 1.2rem; }

/* Ensure all links in content are visible */
.content-wrapper a { color: #fff; }
.content-wrapper a:hover { color: #BDF0FF; }

/* Cards feel on course/catalog items */
#catalogue .text-image-section > div a,
#featured .text-image-section > div a { margin-top: 6px; display: inline-flex; }

/* -----------------------
   13) LAYOUT SAFETY & SPACING RULES
------------------------- */
/* Minimum gaps everywhere */
.content-wrapper > * { scroll-margin-top: 90px; }

/* Prevent overlap by clear paddings */
section .container { padding-top: var(--space-16); padding-bottom: var(--space-16); }

/* -----------------------
   14) UTILITIES
------------------------- */
.hide-mobile { display: none !important; }
@media (min-width: 768px) { .hide-mobile { display: initial !important; } }

.centered { display: flex; align-items: center; justify-content: center; }

/* -----------------------
   15) PRINT BASICS
------------------------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  header, footer { box-shadow: none; border: none; }
  body { background: #ffffff; color: #000; }
}

/* -----------------------
   16) DESKTOP REFINEMENTS
------------------------- */
@media (min-width: 1024px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .content-wrapper { padding: 28px 32px; }
  .text-image-section > div, .text-image-section > ul, .text-image-section > ol { padding: 22px 22px; }
}

/* -----------------------
   17) VISUAL BRAND FLAIR (subtle neon borders)
------------------------- */
/* Delicate neon baseline on wrappers */
.content-wrapper { box-shadow: 0 1px 0 rgba(0,229,255,0.18) inset, var(--shadow-soft); }

/* Section separators */
main section:not(:last-of-type) .content-wrapper { border-bottom: 1px solid rgba(0,229,255,0.08); }

/* -----------------------
   18) FLEX-ONLY ASSERTIONS (no grid)
------------------------- */
/* Ensure any potential layout container uses flex */
nav[aria-label], header .container, footer .content-wrapper, .main-nav, .mobile-nav, .card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item { display: flex; }

/* Maintain alignment per requirements */
nav[aria-label], .main-nav, .mobile-nav { align-items: center; }

/* -----------------------
   END OF FILE
------------------------- */