/* ==============================================
   ISERP — Feuille de style globale
   Police : Nunito (lisible, non fatiguante)
   Palette : navy #0d1b2a | bleu #0077b6 | jaune #f5c400
   ============================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Playfair+Display:wght@600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: #f0f4f8;
  color: #1a2a3a;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #e8eff5; }
::-webkit-scrollbar-thumb { background: #0077b6; border-radius: 3px; }

:root {
  --navy:    #0d1b2a;
  --navy2:   #1c2e44;
  --navy3:   #22395a;
  --blue:    #0077b6;
  --blue2:   #0096d6;
  --blue-lt: #e0f2fc;
  --yellow:  #f5c400;
  --yellow2: #ffe066;
  --white:   #ffffff;
  --light:   #f0f4f8;
  --gray:    #6b7f90;
  --border:  #d0dce8;
  --text:    #1a2a3a;
  --text2:   #4a6070;
  --radius:  10px;
  --shadow:  0 4px 20px rgba(0,0,0,.10);
  --shadow2: 0 8px 36px rgba(0,0,0,.15);
}


/* ── Dropdown Nav ── */
.nav-menu li { position: relative; }
.nav-menu li .dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--navy2); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; min-width: 220px; box-shadow: 0 12px 40px rgba(0,0,0,.35);
  z-index: 999; padding: .5rem 0; overflow: hidden;
}
.nav-menu li .dropdown.dropdown-wide { min-width: 520px; display: none; grid-template-columns: 1fr 1fr; gap: 0; }
.nav-menu li:hover .dropdown { display: block; }
.nav-menu li:hover .dropdown.dropdown-wide { display: grid; }
.dropdown a {
  display: block; padding: .55rem 1.2rem; font-size: .82rem; font-weight: 700;
  color: rgba(255,255,255,.75); transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.dropdown a:hover { background: rgba(255,255,255,.07); color: #fff; border-left-color: var(--yellow); }
.dropdown-col { padding: .5rem 0; }
.dropdown-col .dd-title {
  font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--yellow); padding: .5rem 1.2rem .25rem; margin-bottom: .15rem;
}
.dropdown-col .dropdown-divider { height: 1px; background: rgba(255,255,255,.07); margin: .3rem .8rem; }
.nav-menu > li > a::after { content: none !important; }
.nav-menu li:has(.dropdown) > a::after { content: none !important; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 70px; background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 42px; width: auto; }
.brand-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: .5px; }
.brand-tagline { font-size: .62rem; font-weight: 700; color: var(--yellow); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 1px; }
.nav-menu { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav-menu a { font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.75); padding: .45rem 1rem; border-radius: 6px; transition: all .2s; }
.nav-menu a:hover, .nav-menu a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-cta { background: var(--yellow) !important; color: var(--navy) !important; font-weight: 800 !important; }
.nav-cta:hover { background: var(--yellow2) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.mob-nav { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--navy); z-index: 999; padding: 1.5rem 2rem; flex-direction: column; gap: .4rem; border-top: 1px solid rgba(255,255,255,.08); }
.mob-nav.open { display: flex; }
.mob-nav a { color: rgba(255,255,255,.8); font-size: 1rem; font-weight: 700; padding: .75rem 1rem; border-radius: 6px; transition: background .2s; }
.mob-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.mob-cta { background: var(--yellow); color: var(--navy) !important; font-weight: 800; text-align: center; margin-top: .5rem; border-radius: 6px; }

/* ── PAGE BODY ── */
.page-body { padding-top: 70px; min-height: 100vh; }

/* ── SECTIONS ── */
.sec { padding: 5rem 2.5rem; }
.sec-inner { max-width: 1240px; margin: 0 auto; }

.sec-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue); margin-bottom: .5rem;
}
.sec-label::before { content: ''; width: 24px; height: 2px; background: var(--blue); border-radius: 1px; }
.sec-label.on-dark { color: var(--yellow); }
.sec-label.on-dark::before { background: var(--yellow); }

.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: .8rem;
}
.sec-title span { color: var(--blue); }
.sec-title.on-dark { color: #fff; }
.sec-title.on-dark span { color: var(--yellow); }
.sec-subtitle { font-size: .95rem; color: var(--text2); max-width: 580px; line-height: 1.75; margin-bottom: 2.5rem; }
.sec-subtitle.on-dark { color: rgba(255,255,255,.6); }
.text-center { text-align: center; }
.text-center .sec-subtitle { margin-left: auto; margin-right: auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .75rem 1.8rem; border-radius: 7px;
  font-family: 'Nunito', sans-serif; font-size: .92rem; font-weight: 800;
  cursor: pointer; border: 2px solid transparent;
  transition: all .22s; text-decoration: none;
}
.btn-blue   { background: var(--blue);   color: #fff;        border-color: var(--blue);  }
.btn-blue:hover   { background: var(--blue2);  border-color: var(--blue2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,119,182,.35); }
.btn-yellow { background: var(--yellow); color: var(--navy); border-color: var(--yellow);}
.btn-yellow:hover { background: var(--yellow2); border-color: var(--yellow2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,196,0,.4); }
.btn-outline-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-w:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline-n { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-n:hover { background: var(--navy); color: #fff; }

/* ── PAGE HEADER (inner pages) ── */
.page-hdr {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
  padding: 3.5rem 2.5rem 4.5rem; position: relative; overflow: hidden;
}
.page-hdr::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 50px; background: var(--light);
  clip-path: polygon(0 50px, 100% 0, 100% 50px);
}
.page-hdr .inner { max-width: 1240px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: .8rem; }
.breadcrumb span { font-size: .75rem; color: rgba(255,255,255,.4); font-weight: 600; }
.breadcrumb .cur { color: var(--yellow); }
.breadcrumb .sep { color: rgba(255,255,255,.2); }
.page-hdr h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 700; color: #fff; margin-bottom: .4rem; }
.page-hdr p { color: rgba(255,255,255,.58); font-size: .92rem; max-width: 560px; font-weight: 600; }

/* ── TABS ── */
.tabs-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tab-btn {
  padding: .5rem 1.2rem; border-radius: 6px;
  border: 2px solid var(--border); background: #fff;
  font-family: 'Nunito', sans-serif; font-size: .84rem; font-weight: 700;
  color: var(--text2); cursor: pointer; transition: all .2s;
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── CARDS ── */
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow2); }
.card-img-wrap { overflow: hidden; position: relative; }
.card-img-wrap img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s; }
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card-badge { position: absolute; top: 12px; left: 12px; font-size: .65rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: .25rem .75rem; border-radius: 4px; }
.badge-blue   { background: var(--blue);   color: #fff; }
.badge-yellow { background: var(--yellow); color: var(--navy); }
.badge-green  { background: #059669;       color: #fff; }
.badge-red    { background: #e05c3a;       color: #fff; }
.badge-gray   { background: #6b7f90;       color: #fff; }
.card-body { padding: 1.3rem; }
.card-body h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: .35rem; line-height: 1.35; }
.card-body .card-meta { font-size: .75rem; color: var(--gray); margin-bottom: .5rem; font-weight: 600; }
.card-body p { font-size: .84rem; color: var(--text2); line-height: 1.65; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.3rem; border-top: 1px solid var(--border); }
.card-price { font-weight: 800; font-size: .88rem; color: var(--navy); }
.card-price.free { color: #059669; }
.card-arrow { width: 34px; height: 34px; border-radius: 6px; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--blue); transition: all .2s; }
.card:hover .card-arrow { background: var(--yellow); color: var(--navy); }

/* ── ICON BUTTONS ── */
.icon-actions { display: flex; gap: .45rem; }
.ico-btn { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; text-decoration: none; }
.ico-btn:hover { background: var(--yellow); border-color: var(--yellow); }
.ico-btn img { width: 18px; height: 18px; object-fit: contain; }

/* ── COURSE ROW ── */
.courses-list { display: flex; flex-direction: column; gap: .75rem; }
.course-row {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.3rem; display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: all .2s;
  border-left: 4px solid transparent;
}
.course-row:hover { border-left-color: var(--yellow); transform: translateX(4px); }
.course-row img { width: 76px; height: 60px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.cr-info { flex: 1; }
.cr-info h4 { font-size: .95rem; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.cr-info p { font-size: .78rem; color: var(--gray); font-weight: 600; }

/* ── MATIERE CHIP ── */
.matiere-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.mat-chip {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 50px; padding: .35rem .9rem;
  font-size: .8rem; font-weight: 700; color: var(--navy);
  box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: all .2s;
}
.mat-chip:hover { background: var(--blue-lt); border-color: var(--blue); color: var(--blue); }
.mat-chip .mc-icon { font-size: 1rem; }

/* ── NOTICE BOX ── */
.notice { background: #fffbe8; border: 1px solid #ffe57a; border-left: 4px solid var(--yellow); border-radius: 7px; padding: 1rem 1.3rem; font-size: .84rem; color: #7a5f00; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.6; }
.notice.info { background: var(--blue-lt); border-color: #93c5fd; border-left-color: var(--blue); color: #1e3a5f; }

/* ── FORM ── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .7rem 1rem; border: 2px solid var(--border); border-radius: 7px;
  font-family: 'Nunito', sans-serif; font-size: .9rem; font-weight: 600; color: var(--text);
  outline: none; transition: border-color .2s; background: var(--light);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); background: #fff; }
.form-group textarea { resize: vertical; min-height: 90px; }
.btn-submit { width: 100%; padding: .82rem; background: var(--navy); color: #fff; border: none; border-radius: 7px; font-family: 'Nunito', sans-serif; font-size: .95rem; font-weight: 800; cursor: pointer; transition: background .2s; }
.btn-submit:hover { background: var(--blue); }

/* ── SEARCH BAR ── */
.search-bar { display: flex; gap: .7rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; align-items: center; }
.search-bar input { flex: 1; min-width: 180px; border: none; outline: none; font-family: 'Nunito', sans-serif; font-size: .92rem; font-weight: 600; color: var(--text); }
.search-bar input::placeholder { color: var(--gray); font-weight: 400; }
.search-bar select { border: 1px solid var(--border); border-radius: 6px; padding: .45rem .8rem; font-family: 'Nunito', sans-serif; font-size: .82rem; font-weight: 600; color: var(--text2); outline: none; cursor: pointer; background: var(--light); }
.search-bar button { background: var(--blue); color: #fff; border: none; border-radius: 6px; padding: .5rem 1.3rem; font-family: 'Nunito', sans-serif; font-size: .84rem; font-weight: 800; cursor: pointer; transition: background .2s; }
.search-bar button:hover { background: var(--blue2); }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 4rem 2.5rem 1.5rem; }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand img { height: 44px; margin-bottom: 1rem; }
.footer-brand p { font-size: .8rem; color: rgba(255,255,255,.4); line-height: 1.75; max-width: 250px; font-weight: 600; }
.footer-col h5 { font-family: 'Playfair Display', serif; font-size: .9rem; color: var(--yellow); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.45); margin-bottom: .45rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .72rem; color: rgba(255,255,255,.3); font-weight: 600; }
.footer-socials { display: flex; gap: .6rem; }
.soc-btn { width: 34px; height: 34px; border-radius: 6px; border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.45); font-size: .82rem; font-weight: 800; transition: all .2s; text-decoration: none; }
.soc-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.au  { animation: fadeUp .55s ease both; }
.au2 { animation: fadeUp .55s .12s ease both; }
.au3 { animation: fadeUp .55s .24s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 1.2rem; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .sec { padding: 3.5rem 1.2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .page-hdr { padding: 2.5rem 1.2rem 3.5rem; }
}

/* ── Dropdown menus ── */
.nav-menu li { position: relative; }
.nav-menu li.has-dropdown > a { cursor: pointer; }
.dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--navy2); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; min-width: 200px; box-shadow: 0 16px 48px rgba(0,0,0,.4);
  z-index: 999; padding: .5rem 0;
}
.dropdown.dropdown-wide {
  min-width: 460px; display: none;
  grid-template-columns: 1fr 1fr;
}
.nav-menu li.has-dropdown:hover .dropdown { display: block; }
.nav-menu li.has-dropdown:hover .dropdown.dropdown-wide { display: grid; }
.dropdown a {
  display: block; padding: .5rem 1.1rem; font-size: .82rem; font-weight: 700;
  color: rgba(255,255,255,.72); transition: all .15s;
  border-left: 3px solid transparent; text-decoration: none;
}
.dropdown a:hover { background: rgba(255,255,255,.07); color: #fff; border-left-color: var(--yellow); }
.dd-col { padding: .4rem 0; }
.dd-head {
  font-size: .6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--yellow);
  padding: .5rem 1.1rem .2rem; opacity: .85;
}
.dd-sep { height: 1px; background: rgba(255,255,255,.07); margin: .3rem .8rem; }
/* ── FOOTER ── */
footer{background:var(--navy);padding:4rem 2.5rem 1.5rem}
.footer-inner{max-width:1240px;margin:0 auto}
.footer-top{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2.5rem;margin-bottom:2.5rem}
.fb-logo{font-family:'Playfair Display', serif;font-size:1.3rem;font-weight:900;color:var(--yellow);letter-spacing:-1px}
.footer-brand p{
  font-size:.77rem;color:rgba(255,255,255,.32);line-height:1.8;max-width:240px;font-weight:300;margin-top:.8rem
}
.footer-col h5{
  font-family:'Playfair Display', serif;font-size:.86rem;font-weight:700;color:rgba(255,255,255,.75);margin-bottom:1rem
}
.footer-col a{
  display:block;font-size:.76rem;color:rgba(255,255,255,.32);margin-bottom:.42rem;transition:color .2s;font-weight:300;
}
.footer-col a:hover{color:rgba(255,255,255,.75)}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.06);padding-top:1.4rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem
}
.footer-bottom p{font-size:.7rem;color:rgba(255,255,255,.2);font-weight:300}
.footer-socials{display:flex;gap:.5rem}
.soc{
  width:30px;height:30px;border-radius:7px;border:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.3);font-size:.78rem;font-weight:700;transition:all .22s;
}
.soc:hover{background:rgba(255,255,255,.1);color:#fff}

@media(max-width:1100px){
  .footer-top{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  .footer-top{grid-template-columns:1fr;gap:1.8rem}
}
