/* ==========================================================================
   fivestudents.com — 2021-era templates
   Used by /home/, /politique-de-confidentialite/, /cgv/, /privacy-policy/,
   /product/*, /ar/*. Values from Elementor post-14 (home), post-631 (header),
   post-852 (footer) and the yoyoVisio child theme.
   ========================================================================== */

:root {
  --c-legacy-header:  #7598ba;  /* child theme .sticky-header !important */
  --c-legacy-footer:  #073783;
  --c-legacy-bar:     #2C2C2C;
  --c-legacy-link:    #788491;
  --legacy-width:     1140px;
}

/* Custom icon font used by the cycle bullet lists (Elementor custom-icons/omega) */
@font-face {
  font-family: 'omega';
  src: url('../fonts/omega.woff') format('woff'),
       url('../fonts/omega.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
.icon-omega { font-family: 'omega'; font-style: normal; font-weight: normal; line-height: 1; }
.icon-omega::before { content: "\ea66"; }

/* --- Legacy shell ------------------------------------------------------- */
.legacy-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.legacy-wrap > main { flex: 1 0 auto; }

.legacy-container {
  width: 100%;
  max-width: var(--legacy-width);
  margin-inline: auto;
  padding-inline: 20px;
}

/* --- 2021 header (post-631) --------------------------------------------- */
.legacy-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--c-legacy-header);
  transition: background-color .4s, backdrop-filter .4s;
}
.legacy-header.is-stuck {
  background-color: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.legacy-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1300px;
  margin-inline: auto;
  min-height: 100px;
  padding-inline: 20px;
  transition: min-height .4s;
}
.legacy-header.is-stuck .legacy-header__inner { min-height: 70px; }

.legacy-header__flags { display: none; align-items: center; gap: 10px; }
.legacy-header__flags img { display: block; }
.legacy-header__logo { flex: 0 0 auto; margin-inline-end: auto; }
.legacy-header__logo img { display: block; width: 100%; max-width: 240px; }
.legacy-header.is-stuck .legacy-header__logo img { max-width: 168px; }

.legacy-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0; padding: 0;
  list-style: none;
}
.legacy-nav a {
  display: block;
  padding: 4px 11px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--c-secondary);
  text-decoration: none;
  transition: color .3s;
}
.legacy-nav a:hover, .legacy-nav a:focus { color: var(--c-white); }
.legacy-header.is-stuck .legacy-nav a { color: #535353; }
.legacy-header.is-stuck .legacy-nav a:hover { color: var(--c-secondary); }

.legacy-header__lang { display: flex; align-items: center; gap: 10px; }
.legacy-header__lang img { display: block; height: 34px; width: auto; }

.legacy-header .nav-toggle { color: var(--c-white); }
.legacy-header.is-stuck .nav-toggle { color: #535353; }

@media (max-width: 1024px) {
  .legacy-header .nav-toggle { display: inline-flex; }
  .legacy-header__inner { position: relative; flex-wrap: wrap; }
  .legacy-nav ul {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background-color: #FAFAFA;
    display: none;
  }
  .legacy-nav ul.is-open { display: flex; }
  .legacy-nav a { padding: 7px 31px; color: var(--c-primary); }
  .legacy-nav a:hover { background-color: #E0E0E0; color: var(--c-secondary); }
  .legacy-header__lang { display: none; }
  .legacy-header__flags { display: flex; }
  .legacy-header__flags img { height: 30px; width: auto; }
  .legacy-header__logo img { max-width: 160px; }
}

/* --- 2021 footer (post-852) --------------------------------------------- */
.legacy-footer { background-color: var(--c-legacy-footer); color: var(--c-white); }
.legacy-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  max-width: var(--legacy-width);
  margin-inline: auto;
  padding: 30px 20px;
}
.legacy-footer__brand { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.legacy-footer__brand img { width: 200px; max-width: 100%; display: block; padding: 0 21px 8px 0; }
.legacy-footer__mid { flex: 1 1 260px; text-align: center; }
.legacy-footer__end { flex: 1 1 220px; display: flex; flex-direction: column; align-items: center; gap: 6px; }

.legacy-btn-outline {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--font-body);
  color: var(--c-yellow);
  background-color: transparent;
  border: 2px solid var(--c-yellow);
  text-decoration: none;
  transition: color .3s, border-color .3s;
}
.legacy-btn-outline:hover, .legacy-btn-outline:focus { color: var(--c-white); border-color: var(--c-white); }

.legacy-btn-green {
  display: inline-block;
  padding: 7px 35px 7px 28px;
  font-family: var(--font-body);
  color: var(--c-white);
  background-color: var(--c-green);
  border-radius: 58px;
  text-decoration: none;
  transition: background-color .3s;
}
.legacy-btn-green:hover, .legacy-btn-green:focus { background-color: var(--c-secondary); color: var(--c-white); }

.legacy-copy { color: var(--c-secondary); font-size: 15px; margin: 0 0 6px; }
.legacy-designby { color: #FFFFFF54; font-family: var(--font-body); font-weight: 300; text-decoration: none; }
.legacy-designby:hover { color: #FF634C; }
.legacy-follow { color: var(--c-white); font-size: 15px; margin: 6px 0 0; }

.legacy-social { display: flex; gap: 22px; }
.legacy-social a { color: var(--c-yellow); text-decoration: none; transition: color .3s; }
.legacy-social a:hover { color: var(--c-white); }
.legacy-social svg { width: 31px; height: 31px; fill: currentColor; display: block; }

.legacy-footer__bar { background-color: var(--c-legacy-bar); }
.legacy-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  max-width: var(--legacy-width);
  margin-inline: auto;
  padding: 14px 20px;
}
.legacy-footer__bar a {
  font-family: var(--font-body);
  color: var(--c-legacy-link);
  text-decoration: none;
  transition: color .3s;
}
.legacy-footer__bar a:hover { color: var(--c-secondary); }

@media (max-width: 767px) {
  .legacy-footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .legacy-footer__brand { align-items: center; }
  .legacy-footer__brand img { padding: 0 0 8px; }
  .legacy-social { gap: 20px; }
  .legacy-social svg { width: 20px; height: 20px; }
}

/* --- Whatsapp floating button (click-to-chat plugin) -------------------- */
.legacy-whatsapp {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background-color: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.legacy-whatsapp svg { width: 30px; height: 30px; fill: currentColor; }

/* ==========================================================================
   /home/ — 2021 landing page (post-14)
   ========================================================================== */
.legacy-hero {
  position: relative;
  margin-block: -90px 15px;
  padding: 100px 0 0;
  overflow: hidden;
  isolation: isolate;
  color: var(--c-white);
}
.legacy-hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.legacy-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #004A96;
  opacity: .53;
  z-index: -1;
}
.legacy-hero__inner { max-width: 980px; margin-inline: auto; padding: 10px 20px 0; text-align: center; }
.legacy-hero h1 {
  color: var(--c-white);         /* .white-title override */
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  margin-block: .5rem;
}
.legacy-hero__sub {
  color: var(--c-white);
  font-size: 24px;
  font-weight: 400;
  text-shadow: 0 0 10px rgba(0, 0, 0, .3);
  margin-block-end: 0;
}
.legacy-divider { padding-block: 11px; }
.legacy-divider hr { width: 18%; margin-inline: auto; border: 0; border-top: 3px solid var(--c-yellow); }

.legacy-usp {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 24px;
  margin: 0; padding: 0;
  list-style: none;
}
.legacy-usp li { display: inline-flex; align-items: center; gap: 8px; }
.legacy-usp svg { width: 32px; height: 32px; fill: var(--c-white); }
.legacy-usp span { color: var(--c-yellow); font-size: 31px; font-weight: 700; }

.legacy-cta {
  display: inline-block;
  margin-block-start: 12px;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  color: var(--c-white);
  background-color: var(--c-accent);
  border-radius: 50px;
  text-decoration: none;
  transition: background-color .3s;
}
.legacy-cta:hover, .legacy-cta:focus { background-color: var(--c-yellow); color: var(--c-white); }

.legacy-range { max-width: 980px; margin-inline: auto; padding: 39px 20px 0; text-align: center; }
.legacy-range h2 { color: var(--c-white); font-family: var(--font-head); margin: 0; }
.legacy-range .arrow { display: inline-block; width: .8em; height: .8em; fill: currentColor; vertical-align: -.05em; }

.legacy-usp-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1288px;
  margin: -22px auto 80px;
  padding-inline: 20px;
}
.legacy-usp-card {
  margin: 16px 30px 31px;
  padding: 10px;
  border-top: 5px solid var(--c-yellow);
  border-radius: 8px 0 8px 0;
  text-align: center;
  transition: background-color .3s, border-color .3s;
}
.legacy-usp-card:hover { background-color: var(--c-white); border-top-color: var(--c-white); }
.legacy-usp-card img { width: 61%; height: auto; display: block; margin: 0 auto 12px; }
.legacy-usp-card p {
  color: var(--c-primary);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1em;
  margin: 0;
}

.legacy-cycles-intro { max-width: 837px; margin: 84px auto; padding-inline: 20px; text-align: center; }
.legacy-cycles-intro h1 { color: var(--c-primary); font-family: var(--font-head); }
.legacy-cycles-intro h2 { color: var(--c-secondary); font-family: var(--font-head); }

.legacy-cycle {
  position: relative;
  padding: 70px 2px 70px 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.legacy-cycle--primaire { background-color: #F6F6F6B8; background-image: url('../img/home-bg-primaire.jpg'); }
.legacy-cycle--college { background-color: #FFFFFF; background-image: url('../img/home-bg-college.jpg'); }
.legacy-cycle--lycee   { background-color: #F6F6F6B8; background-image: url('../img/home-bg-lycee.jpg'); }

.legacy-cycle__inner {
  display: flex;
  align-items: center;
  max-width: var(--legacy-width);
  margin-inline: auto;
}
.legacy-cycle__media { flex: 0 0 20.625%; max-width: 20.625%; }
.legacy-cycle__media img { display: block; width: 73%; height: auto; }
.legacy-cycle--primaire .legacy-cycle__media,
.legacy-cycle--lycee .legacy-cycle__media { padding-inline-end: 71px; }
.legacy-cycle--primaire .legacy-cycle__media img,
.legacy-cycle--lycee .legacy-cycle__media img { margin: 17px -142px 0 0; }
.legacy-cycle--college .legacy-cycle__media { padding-inline-start: 70px; }
.legacy-cycle--college .legacy-cycle__media img { margin: 21px 0 0 -138px; }

.legacy-cycle__panel {
  position: relative;
  flex: 0 0 79.375%;
  max-width: 79.375%;
  padding: 40px 100px;
  isolation: isolate;
  color: var(--c-white);
  text-align: center;
}
.legacy-cycle__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
}
.legacy-cycle--primaire .legacy-cycle__panel { border-radius: 0 80px 0 80px; }
.legacy-cycle--primaire .legacy-cycle__panel::before { background-color: var(--c-primary); opacity: .5; }
.legacy-cycle--college .legacy-cycle__panel { border-radius: 80px 0 80px 0; }
.legacy-cycle--college .legacy-cycle__panel::before { background-color: #00503E; opacity: .5; }
.legacy-cycle--lycee .legacy-cycle__panel { border-radius: 0 80px 0 80px; }
.legacy-cycle--lycee .legacy-cycle__panel::before { background-color: #53015D; opacity: .6; }

.legacy-cycle__panel h2 { color: var(--c-white); font-size: 59px; font-family: var(--font-head); margin-block: .5rem 1rem; }
.legacy-cycle__panel h3 { color: var(--c-white); font-family: var(--font-head); }
.legacy-cycle__list {
  margin: 0 0 1rem;
  padding: 0 0 0 30px;
  list-style: none;
  text-align: left;
}
.legacy-cycle__list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--c-secondary);
  font-size: 26px;
}
.legacy-cycle__list .icon-omega { color: var(--c-accent); font-size: 26px; }

@media (max-width: 1024px) {
  .legacy-usp-cards { grid-template-columns: repeat(2, 1fr); }
  .legacy-cycle__inner { flex-direction: column; }
  .legacy-cycle__media, .legacy-cycle__panel { flex: 0 0 100%; max-width: 100%; }
  .legacy-cycle__media { padding: 0 !important; }
  .legacy-cycle__media img { width: auto; max-width: 60%; margin: 0 auto 20px !important; }
  .legacy-cycle__panel { padding: 30px; }
}
@media (max-width: 767px) {
  .legacy-hero { margin-block: -55px 30px; }
  .legacy-hero h1 { font-size: 39px; }
  .legacy-hero__sub { font-size: 24px; }
  .legacy-usp span { font-size: 22px; }
  .legacy-usp-cards { grid-template-columns: 1fr; }
  .legacy-usp-card { margin: 16px 0 20px; }
  .legacy-cycle__panel h2 { font-size: 40px; }
  .legacy-cycle__list li { font-size: 20px; }
}

/* ==========================================================================
   Long-form legal pages (no header on the live site — footer only)
   ========================================================================== */
.legal { max-width: 900px; margin-inline: auto; padding: 60px 20px 80px; }
.legal :is(h1, h2, h3) { font-family: var(--font-head); color: var(--c-primary); }
/* WordPress boilerplate outline (privacy-policy): h2 sections, h3 subsections */
.legal h1 { font-size: 32px; margin-block: 0 1.25rem; }
.legal h2 { font-size: 32px; margin-block: 2rem 1rem; }
.legal h3 { font-size: 24px; margin-block: 1.75rem .75rem; }
/* FR legal documents: title / ARTICLE n / lettered subsection */
.legal--shifted h2 { font-size: 24px; margin-block: 1.75rem .75rem; }
.legal--shifted h3 { font-size: 19px; color: var(--c-secondary); margin-block: 1.5rem .5rem; }
.legal p, .legal li { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--c-body); }
.legal ul { padding-inline-start: 1.25em; }
.legal a { color: var(--c-primary); }

/* ==========================================================================
   WooCommerce single product (2021 template)
   ========================================================================== */
.woo-breadcrumb { max-width: var(--legacy-width); margin-inline: auto; padding: 30px 20px 0; font-size: 14px; color: var(--c-body); }
.woo-breadcrumb a { color: var(--c-primary); text-decoration: none; }
.woo-breadcrumb a:hover { text-decoration: underline; }

.product {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: var(--legacy-width);
  margin-inline: auto;
  padding: 24px 20px 70px;
}
.product__media { flex: 1 1 320px; }
.product__media img { display: block; width: 100%; height: auto; border: 1px solid #e6e6e6; }
.product__summary { flex: 1 1 380px; }
.product__summary h1 { color: var(--c-primary); font-family: var(--font-head); font-size: 32px; margin-block-start: 0; }
.product__meta { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--c-body); }
.product__meta strong { color: var(--c-primary); }
.product__price {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  color: var(--c-primary);
  margin-block: 18px;
}
.product__form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product__qty {
  width: 84px;
  padding: 10px;
  font: inherit;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
}
.product__note {
  margin-block-start: 18px;
  font-size: 14px;
  color: var(--c-body);
}

/* ==========================================================================
   /ar/* — Arabic WooCommerce pages
   The live site serves these with <html lang="en-US"> and no RTL stylesheet;
   only the form itself is flipped by the child theme (`.arabic_form`).
   The Markazi Text webfont the child theme names is never actually loaded,
   so the live pages fall back to the system serif. Reproduced as-is.
   ========================================================================== */
.arabic-page { font-family: 'Markazi Text', serif; }
.arabic-page .legacy-container { padding-block: 50px; }

.arabic-card { max-width: 560px; margin-inline: auto; }
.arabic-card h2 { font-size: 28px; text-align: center; color: var(--c-primary); }
.arabic-form { direction: rtl; text-align: right; padding-block: 3em; }
.arabic-form .form-group { margin-block-end: 18px; }
.arabic-form label {
  display: block;
  padding-block-end: 10px;
  font-family: 'Markazi Text', serif;
  font-size: 20px;
  font-weight: 400;
  color: #000;
}
.arabic-form input[type="text"],
.arabic-form input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 14px;
  font-size: 16px;
  direction: rtl;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
}
.arabic-form input[type="submit"] {
  height: 48px;
  padding-inline: 32px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--c-accent);
  border: 0;
  border-radius: 50px;
  cursor: pointer;
}
.arabic-form .chck-bx { display: flex; align-items: center; gap: 10px; margin-block: 15px; }
.arabic-form .chck-bx input { width: 20px; height: 20px; }
.arabic-form .chck-bx label { padding: 0; font-size: 16px; }
.arabic-form .lost-password { display: block; margin-block-start: 8px; }

.google_acc { margin-block-end: 22px; text-align: center; }
.google_acc a {
  display: inline-block;
  padding: 0 .7em 0 0;
  line-height: 2.5em;
  height: 2.5em;
  font-family: inherit;
  font-weight: 700;
  color: #fff;
  background: #4285f4;
  border: 1px solid #4285f4;
  border-radius: 50px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
}
.google_acc .si-google {
  display: inline-block;
  vertical-align: top;
  width: 2.5em; height: 2.5em;
  margin-inline-end: .7em;
  background: #fff url('../img/google.png') no-repeat 50% / 1.8em 1.8em;
  border-start-start-radius: 1px;
  border-end-start-radius: 1px;
}
.border_top span {
  display: table;
  width: 85%;
  margin: 0 auto 1em;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: 2px;
  color: rgb(117, 117, 117);
  text-align: center;
}
.border_top span::before, .border_top span::after {
  content: "";
  display: table-cell;
  position: relative;
  top: .8em;
  width: 42%;
  border-top: 1px solid rgb(189, 189, 189);
}
.cart-empty { padding: 60px 20px; text-align: center; font-size: 20px; }
