/* RESET & VARIABLES ------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #F6F6F6;
  background: linear-gradient(135deg, #132a44 0%, #174075 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* subtle grain overlay effect */
  background-blend-mode: overlay;
}

:root {
  --color-primary: #174075;
  --color-secondary: #F1B24A;
  --color-accent: #F6F6F6;
  --color-bg-dark: #121c2b;
  --color-bg-card: #182d49;
  --color-link: #6fe2ff;
  --color-neon: #5efcff;
  --color-danger: #ff3e6b;
  --color-success: #96ff72;
  --font-display: 'Montserrat', 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 7px;
  --shadow-elevate: 0 6px 28px 0 rgba(22, 240, 255,.08), 0 1.5px 15px 0 rgba(41, 79, 190,.10);
  --shadow-card: 0 2px 12px 1px rgba(40,80,180,.13);
  --shadow-neon: 0 0 8px 2px #5efcff80;
}

/* TYPOGRAPHY ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 500;
}

p, ul, ol, dl, li, dt, dd, address {
  font-family: var(--font-body);
  color: #ecf2fa;
  font-size: 1rem;
}
p {
  margin-bottom: 16px;
}
ul, ol {
  margin-bottom: 18px;
  padding-left: 22px;
}
li {
  margin-bottom: 6px;
  padding-left: 2px;
}
strong, b {
  color: #F1B24A;
}
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--color-neon);
}

/* LAYOUT BASES ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius-lg);
}
section:not(.hero):not(.cta) {
  background: rgba(19,42,68, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 38px;
}
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}

/* FLEXBOX LAYOUT ---------------------------------------------------- */
.card-container, .team-bios, .feature-grid, .course-catalog, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  min-width: 240px;
  flex: 1 1 250px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #1A2233;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 16px 0 rgba(11,36,57,.16);
  margin-bottom: 20px;
  border-left: 5px solid var(--color-secondary);
  max-width: 570px;
  font-size: 1.13rem;
}
.testimonial-card span {
  font-family: var(--font-body);
  font-weight: 700;
  color: #233355;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO/CTA --------------------------------------------------------- */
.hero {
  background: linear-gradient(117deg, #191f2a 28%, #1c437d 100%);
  box-shadow: 0 7px 26px -8px #5efcff55;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 44px;
}
.hero .container, .cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero h1, .cta h2 {
  color: #fff;
  text-shadow: 0 2px 12px #17407599;
  font-size: 2.5rem;
  margin-bottom: 4px;
}
.hero p, .cta p {
  color: #e8edfa;
  max-width: 570px;
}
.cta {
  background: linear-gradient(108deg, #0b2341 68%, #194e8b 100%);
  box-shadow: 0 2px 16px 0 #17407522;
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  padding: 20px 0;
}
.cta a.btn-primary {
  margin-top: 16px;
}

/* BUTTONS, BADGES, INTERACTIVE ---------------------------------- */
.btn-primary, .btn-secondary {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border: none;
  border-radius: var(--radius-sm);
  margin-right: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-elevate), var(--shadow-neon);
  transition: background 0.17s, color 0.19s, transform 0.15s, box-shadow 0.13s;
}
.btn-primary {
  background: var(--color-secondary);
  color: #174075;
  text-shadow: 0 1px 3px #ffffff80;
}
.btn-primary:hover, .btn-primary:focus {
  background: #ffd084;
  color: #1e3148;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 14px 0 #f1b24aaa, var(--shadow-neon);
}
.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: #174075;
  box-shadow: 0 0 18px 0 #f1b24aaa, var(--shadow-neon);
} 
.badge {
  background: #1e475b;
  color: var(--color-secondary);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.9em;
  font-family: var(--font-display);
  font-weight: 600;
  margin-left: 8px;
  margin-bottom: 2px;
  border: 1.5px solid #f1b24a44;
  box-shadow: 0 0 6px 1.5px #F1B24A44;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.96);
}

/* NAVIGATION --------------------------------------------------------- */
header {
  background: #182d49;
  box-shadow: 0 2px 14px -2px #5efcff17;
  position: sticky;
  top: 0; left: 0; z-index: 48;
  width: 100%;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center; 
  justify-content: flex-start;
  gap: 14px;
  padding: 18px 0;
}
.main-nav a {
  color: #F6F6F6;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.17s, color 0.17s;
  position: relative;
}
.main-nav a:not(.btn-primary):hover, .main-nav a:not(.btn-primary):focus {
  background: #233355;
}
.main-nav img {
  height: 38px;
  margin-right: 18px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--color-neon);
  border: none;
  font-size: 2.2rem;
  position: absolute;
  right: 22px;
  top: 16px;
  z-index: 60;
  cursor: pointer;
  transition: color 0.13s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-neon);
  color: #e9efef;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(14,32,49, 0.98);
  transform: translateX(-110vw);
  transition: transform 0.27s cubic-bezier(.7,.1,.33,1.1);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  display: block;
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  margin: 22px 0 12px 24px;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.14s;
  z-index: 512;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-left: 30px;
  margin-top: 18px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18rem;
  font-family: var(--font-display);
  padding: 13px 12px 11px 0;
  border-radius: var(--radius-md);
  font-weight: 500;
  margin-bottom: 3px;
  width: 240px;
  transition: background 0.13s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #233355;
  color: var(--color-secondary);
}

/* NAV RESPONSIVE */
@media (max-width: 980px) {
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 5px;
    font-size: 0.96rem;
  }
  .main-nav img {
    margin-right: 10px;
    height: 31px;
  }
}
@media (max-width: 780px) {
  .main-nav a:not(:first-child), .main-nav .btn-primary {
    display: none !important;
  }
  .main-nav img {
    margin-right: 4px;
    height: 29px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav {
    padding-right: 44px;
  }
}
@media (max-width: 480px) {
  .mobile-nav a {
    width: 90vw;
    font-size: 1rem;
  }
  .mobile-menu-close {
    margin-left: 10px;
  }
}

/* COOKIE CONSENT ----------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: #0b1627f6;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  padding: 18px 18px;
  justify-content: center;
  box-shadow: 0 -1.5px 8px #06405c77;
  border-top: 3px solid var(--color-secondary);
  gap: 18px;
  flex-wrap: wrap;
  animation: fadein 0.45s;
}
.cookie-banner .cookie-msg {
  max-width: 70vw;
  margin-right: 22px;
  color: white;
}
.cookie-banner button {
  margin-right: 12px;
}
.cookie-banner .btn-accept {
  background: var(--color-success);
  color: #041014;
}
.cookie-banner .btn-reject {
  background: var(--color-danger);
  color: #fff;
}
.cookie-banner .btn-settings {
  background: #213c62;
  color: var(--color-secondary);
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1em;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  margin-bottom: 2px;
  cursor: pointer;
  margin-left: 7px;
  font-weight: 600;
  box-shadow: 0 0 10px 0 #f1b24b14;
  transition: background 0.13s, color 0.16s;
}
.cookie-banner button:focus {
  outline: 2px solid var(--color-secondary);
}

/* COOKIE MODAL ------------------------------------------------------- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0;top: 0; right:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(7,16,29,0.89);
  z-index: 1201;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #232f47;
  border-radius: var(--radius-lg);
  padding: 38px 34px 26px 34px;
  box-shadow: 0 0 28px 5px #17407566;
  max-width: 380px;
  min-width: 265px;
  position: relative;
  text-align: left;
}
.cookie-modal h3 {
  font-size: 1.26rem;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.cookie-modal .modal-section {
  margin-bottom: 18px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 3px 0;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}
.cookie-modal .modal-buttons {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .btn-modal-save {
  background: var(--color-success);
  color: #054017;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  box-shadow: 0 4px 12px #f1b24a14;
  cursor: pointer;
  transition: background .16s;
}
.cookie-modal .btn-modal-close {
  background: #fff;
  color: var(--color-danger);
  border: 1.5px solid #f23e6b99;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  box-shadow: 0 1.5px 8px #f14a2228;
  cursor: pointer;
  transition: background .16s, color .16s;
}
.cookie-modal .btn-modal-close:hover {
  background: #ffe5ee;
  color: #820a36;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CARDS & FEATURES -------------------------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: #19314e;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 32px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid var(--color-secondary);
  min-width: 190px;
  max-width: 300px;
  transition: box-shadow .18s, transform .13s;
}
.feature-grid > div:hover {
  box-shadow: 0 0 18px 2px #5efcff66, var(--shadow-card);
  transform: translateY(-3px) scale(1.02);
}
.feature-grid img {
  width: 40px;
  margin-bottom: 2px;
}
.course-catalog {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 22px 0 16px 0;
}
.course-catalog > div {
  flex: 1 1 210px;
  background: #1e3759;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px 18px;
  margin-bottom: 18px;
  transition: box-shadow .16s, transform .13s;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-left: 4px solid var(--color-secondary);
}
.course-catalog > div:hover {
  box-shadow: 0 0 19px 2px #5efcff77;
  transform: translateY(-2.5px) scale(1.01);
}

.team-bios {
  gap: 24px;
}
.bio {
  background: #1a2945;
  color: #e9f2fb;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 17px;
  min-width: 190px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .16s, transform .13s;
  border-left: 3.5px solid #5efcff94;
}
.bio:hover {
  box-shadow: 0 0 15px 2px #5efcff99;
  transform: translateY(-3px);
}

/* CONTACT INFO ------------------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: #162235;
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  margin-bottom: 26px;
  color: #F6F6F6;
}
.contact-info img {
  vertical-align: middle;
  width: 20px;
  margin-right: 3px;
  margin-bottom: 2px;
}

/* FOOTER ------------------------------------------------------------- */
footer {
  background: #17273a;
  color: #ddebfa;
  box-shadow: 0 -1.5px 9px #3d90ef0e;
  padding: 47px 0 0 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.footer-nav {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 20px;
  padding: 0 18px;
}
.footer-nav img {
  height: 28px;
  margin-right: 24px;
}
.footer-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.footer-nav nav a {
  color: #F6F6F6;
  font-size: 0.93rem;
  padding: 4px 15px;
  border-radius: var(--radius-md);
  transition: background 0.16s;
  font-family: var(--font-display);
}
.footer-nav nav a:hover {
  background: #223153;
  color: #F1B24A;
}
.footer-contact {
  display: flex;
  gap: 42px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 17px;
  padding: 17px 20px 0 20px;
}
.footer-contact address {
  font-size: 0.96em;
  color: #f0c664;
  line-height: 1.65;
  font-style: normal;
  font-family: var(--font-body);
}
.footer-contact img {
  width: 17px;
  margin-right: 5px;
  position:relative;top:2px;
}
.footer-contact a {
  color: #42e6ff;
  text-decoration: underline;
}
.footer-newsletter {
  margin-left: 15px;
  max-width: 320px;
  color: #eaf4fa;
}
.footer-newsletter h3 {
  color: #F1B24A;
  font-size: 1.11em;
  margin-bottom: 4px;
}
.footer-newsletter p {
  font-size: 0.99em;
}
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 18px;
  margin-bottom: 18px;
}
.footer-social a img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 6px #5efcff44);
  transition: filter 0.14s;
}
.footer-social a:hover img {
  filter: drop-shadow(0 0 10px #5efcffcc) grayscale(0.4) brightness(1.1);
}
.footer-copyright {
  text-align: center;
  color: #BAC6DA;
  font-size: 0.91em;
  margin: 15px 0 0 0;
  padding-bottom: 24px;
}

/* RGPD/LEGAL PAGES -------------------------------------------------- */
ul, ol {
  padding-left: 22px;
}
ul ul, ul ol, ol ul, ol ol {
  margin-bottom: 0;
}
dt {
  font-weight: 700;
  color: var(--color-secondary);
  margin-top: 8px;
}
dd {
  margin-left: 0;
  margin-bottom: 11px;
}

/* MISC: BADGES, ICONS, ETC ------------------------------------------ */
img, svg {
  vertical-align: middle;
  max-width: 100%;
}

hr {
  border: none;
  border-top: 1.5px solid #404f67;
  margin: 32px 0;
}

/* SPACING / UTILITIES ----------------------------------------------- */
@media (max-width: 700px) {
  .section, .content-wrapper {
    padding: 25px 7vw !important;
  }
  .feature-grid, .course-catalog, .team-bios {
    gap: 14px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .footer-contact {
    flex-direction: column;
    gap: 11px;
    margin-left: 0;
    padding: 10px 8px 0 10px;
  }
}
@media (max-width: 520px) {
  .content-wrapper, .section {
    padding: 14px 4vw !important;
    margin-bottom: 22px !important;
  }
  .feature-grid, .course-catalog, .team-bios {
    gap: 14px;
  }
  h1 { font-size: 1.47rem; }
  h2 { font-size: 1.13rem; }
  .cta { padding: 8px 0; }
  .testimonial-card { font-size: 1rem; }
  .course-catalog > div, .feature-grid > div, .bio {
    min-width: 120px;
    padding: 14px 7px !important; 
  }
}

/* FLEX-COLUMN for vertical break on mobile for .text-image-section */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 13px;
  }
  .feature-grid, .course-catalog, .team-bios {
    flex-direction: column;
  }
}

/* FINE PRINT -------------------------------------------------------- */
::-webkit-selection {
  background: #F1B24A66;
  color: #193462;
}
::selection {
  background: #F1B24A66;
  color: #193462;
}

input, textarea, select, button {
  font-family: var(--font-body);
}
button:focus, a:focus {
  outline: 2px solid #5efcff88;
}

/* Accessibility for testimonials/reviews: Dark text, high contrast */
.testimonial-card,
.cookie-modal,
.cookie-banner {
  color: #232f47;
}
.testimonial-card p {
  color: #232f47;
}

/* Hide visually */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Small transition for hover on cards */
.card, .feature-grid > div, .course-catalog > div, .bio {
  transition: box-shadow 0.15s, transform 0.13s;
  will-change: transform, box-shadow;
}

/* End of stylesheet */
