:root{
  --azul: #123B57;
  --azul-2: #17496A;
  --azul-3: #1D5A80;
  --cream: #FBF1DE;
  --amarelo: #F4A93B;
  --terracota: #E0623B;
  --verde: #4FAE7C;
  --line: rgba(251,241,222,0.16);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--azul);
  color:var(--cream);
  font-family:'Karla', sans-serif;
  overflow-x:hidden;
}
.display{font-family:'Fraunces', serif; font-weight:700;}
.mono{font-family:'IBM Plex Mono', monospace;}
img{max-width:100%; display:block;}
a{color:inherit;}

/* reveal is visible by default; JS only adds a subtle polish animation */
.reveal{ opacity:1; transform:none; }
/* content is ALWAYS visible — this is cosmetic polish only, never a visibility gate.
   If the observer below never fires (slow load, sandboxed preview, JS blocked), nothing stays hidden. */
.reveal.armed{ opacity:1; transform:translateY(10px); transition:transform .5s ease; }
.reveal.armed.in-view{ transform:translateY(0); }

/* ---------- wave divider ---------- */
.wave{ width:100%; height:34px; display:block; }
.wave path{ fill:none; stroke:var(--amarelo); stroke-width:2.5; opacity:.75; }

/* ---------- nav ---------- */
nav.site-nav{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px clamp(20px,5vw,64px);
  background:rgba(18,59,87,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none;}
.brand-badge{
  width:42px;height:42px;border-radius:50%;
  background:var(--amarelo); color:var(--azul);
  display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces',serif; font-weight:700; font-size:14px;
  position:relative;
}
.brand-badge::after{
  content:""; position:absolute; inset:-5px; border-radius:50%;
  border:1px solid var(--amarelo); opacity:0;
  animation: bell-pulse 2.8s ease-out infinite;
}
@keyframes bell-pulse{ 0%{transform:scale(0.85); opacity:.55;} 80%{transform:scale(1.32); opacity:0;} 100%{opacity:0;} }
.brand-text{ line-height:1.15; }
.brand-text b{ display:block; font-family:'Fraunces',serif; font-size:15px; letter-spacing:.01em;}
.brand-text span{ font-family:'IBM Plex Mono',monospace; font-size:10px; letter-spacing:.1em; color:var(--amarelo); text-transform:uppercase;}
.nav-links{display:flex; gap:22px; font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.05em; flex-wrap:wrap;}
.nav-links a{color:var(--cream); text-decoration:none; opacity:.75; transition:opacity .2s;}
.nav-links a:hover, .nav-links a.active{opacity:1; color:var(--amarelo);}

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; border:1px solid var(--line); border-radius:8px;
  background:transparent; cursor:pointer; padding:0 8px;
}
.nav-toggle span{ display:block; width:100%; height:2px; background:var(--cream); transition:transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:900px){
  .nav-toggle{ display:flex; }
  .nav-links{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0; padding:8px 20px 18px;
    background:var(--azul); border-bottom:1px solid var(--line);
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:12px 0; border-top:1px solid var(--line); opacity:.9; }
  .nav-links a:first-child{ border-top:none; }
  nav.site-nav{ position:relative; flex-wrap:wrap; }
}

/* ---------- hero ---------- */
.hero{
  position:relative;
  padding: clamp(50px,8vw,90px) clamp(20px,6vw,64px) clamp(40px,6vw,64px);
}
.hero.split{ display:grid; grid-template-columns: 1.15fr 0.85fr; gap:40px; align-items:center; }
@media (max-width:900px){ .hero.split{ grid-template-columns:1fr; } }
.kicker{
  font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.2em;
  color:var(--amarelo); text-transform:uppercase; margin-bottom:16px;
  display:flex; align-items:center; gap:10px;
}
.kicker::before{content:""; width:26px; height:2px; background:var(--amarelo); display:inline-block;}
.breadcrumb{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:rgba(251,241,222,0.55); margin-bottom:14px; letter-spacing:.04em;}
.breadcrumb a{ text-decoration:none; color:rgba(251,241,222,0.75); }
.breadcrumb a:hover{ color:var(--amarelo); }

.hero-title{ font-size:clamp(38px, 5.6vw, 68px); line-height:1.03; color:var(--cream); }
.hero-title .accent{ color:var(--amarelo); font-style:italic; }
.hero-tag{ margin-top:18px; max-width:620px; font-size:clamp(15.5px,1.6vw,18px); line-height:1.65; color:rgba(251,241,222,0.82);}

.cta-row{display:flex; flex-wrap:wrap; gap:14px; margin-top:30px;}
.pill{
  font-family:'IBM Plex Mono',monospace; font-size:13px; letter-spacing:.03em;
  padding:12px 22px; border-radius:40px;
  border:1px solid var(--cream);
  color:var(--cream); text-decoration:none;
  display:inline-flex; align-items:center; gap:8px;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  cursor:pointer; background:transparent;
}
.pill.primary{ background:var(--amarelo); border-color:var(--amarelo); color:var(--azul); font-weight:700;}
.pill:hover{ transform: translateY(-2px); }
.pill.primary:hover{ background:#ffbb5c; }
.pill:not(.primary):hover{ border-color:var(--amarelo); color:var(--amarelo); }

/* ---------- roda emblem (decorative) ---------- */
.roda-wrap{ display:flex; justify-content:center; align-items:center; position:relative; height:300px; }
.roda-ring{ position:absolute; width:270px; height:270px; border-radius:50%; border:1.5px dashed rgba(244,169,59,0.5); animation: spin 50s linear infinite; }
.roda-ring.inner{ width:195px; height:195px; border-color:rgba(224,98,59,0.5); animation-duration:36s; animation-direction:reverse;}
@keyframes spin{ from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
.roda-center{
  position:relative; z-index:2; width:120px; height:120px; border-radius:50%; overflow:hidden;
  border:3px solid var(--amarelo); box-shadow: 0 0 0 8px rgba(244,169,59,0.08);
  background: radial-gradient(circle at 35% 30%, var(--azul-3), var(--azul-2) 70%);
  display:flex; align-items:center; justify-content:center;
  font-family:'Fraunces',serif; font-weight:700; font-size:30px; color:var(--amarelo);
}
.roda-center img{ width:100%; height:100%; object-fit:cover; display:block;}
.instrument{ position:absolute; width:270px; height:270px; top:0; left:0; animation: spin 50s linear infinite; }
.instrument .dot-wrap{ position:absolute; top:50%; left:50%; transform-origin:0 0; }
.instrument .dot{ width:14px; height:14px; border-radius:50%; background:var(--verde); border:2px solid var(--azul); animation: spin-rev 50s linear infinite; }
@keyframes spin-rev{ from{transform:rotate(0deg);} to{transform:rotate(-360deg);} }
.i1 .dot{ background:var(--amarelo); } .i2 .dot{ background:var(--terracota); } .i3 .dot{ background:var(--verde); }
.i4 .dot{ background:var(--amarelo); } .i5 .dot{ background:var(--terracota); }

/* ---------- ticker ---------- */
.ticker-wrap{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden; position:relative; padding:14px 0;}
.ticker{ display:flex; gap:44px; white-space:nowrap; width:max-content; animation: scroll-left 24s linear infinite; }
@keyframes scroll-left{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
.ticker span{ font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.06em; color:rgba(251,241,222,0.72); display:flex; align-items:center; gap:10px;}
.ticker b{color:var(--amarelo); font-weight:600;}
.ticker .dot-sep{width:5px;height:5px;border-radius:50%; background:var(--terracota); display:inline-block;}

/* ---------- section shell ---------- */
section{ padding: clamp(50px,7vw,80px) clamp(20px,6vw,64px); }
.section-head{ display:flex; align-items:baseline; gap:14px; margin-bottom:36px; flex-wrap:wrap;}
.section-num{ font-family:'IBM Plex Mono',monospace; color:var(--terracota); font-size:13px;}
.section-title{ font-size:clamp(26px,3.6vw,40px); }
.lede{ max-width:780px; font-size:clamp(16px,1.7vw,18.5px); line-height:1.7; color:rgba(251,241,222,0.85); margin-bottom:20px;}
.lede + .lede{ margin-top:-6px; }

/* ---------- generic card ---------- */
.card{ background:var(--azul-2); border-left:3px solid var(--amarelo); padding:clamp(22px,4vw,36px); border-radius:6px; }
.card p{ font-size:15.5px; line-height:1.7; color:var(--cream);}
.card p + p{ margin-top:14px; }

/* ---------- grids ---------- */
.grid{ display:grid; gap:20px; }
.grid.cols-2{ grid-template-columns:1fr 1fr; }
.grid.cols-3{ grid-template-columns:repeat(3,1fr); }
.grid.cols-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){ .grid.cols-3{ grid-template-columns:1fr 1fr; } .grid.cols-4{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .grid.cols-2, .grid.cols-3, .grid.cols-4{ grid-template-columns:1fr; } }

/* ---------- tile (nav card with image) ---------- */
.tile{
  position:relative; border-radius:8px; overflow:hidden; text-decoration:none;
  aspect-ratio:4/3; display:flex; align-items:flex-end; background:var(--azul-2);
  border-top:3px solid var(--amarelo);
}
.tile img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.55; transition:transform .5s ease, opacity .3s ease;}
.tile:hover img{ transform:scale(1.06); opacity:.7; }
.tile::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 30%, rgba(18,59,87,0.92) 100%);}
.tile-label{ position:relative; z-index:2; padding:18px; font-family:'Fraunces',serif; font-weight:700; font-size:19px; display:flex; align-items:center; justify-content:space-between; width:100%;}
.tile-label span.arrow{ font-family:'IBM Plex Mono',monospace; color:var(--amarelo); font-size:14px;}

/* ---------- schedule card ---------- */
.schedule-card{ background:var(--azul-2); border-radius:8px; padding:26px; border-top:3px solid var(--amarelo); }
.schedule-card:nth-child(2){ border-top-color:var(--terracota); }
.schedule-card:nth-child(3){ border-top-color:var(--verde); }
.schedule-card h3{ font-family:'Fraunces',serif; font-size:19px; margin-bottom:4px;}
.schedule-card .age{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--amarelo); letter-spacing:.06em; text-transform:uppercase; margin-bottom:14px; display:block;}
.schedule-row{ display:flex; justify-content:space-between; padding:9px 0; border-top:1px solid var(--line); font-size:14px; gap:10px;}
.schedule-row:last-of-type{ border-bottom:1px solid var(--line); }
.schedule-row span:first-child{ color:rgba(251,241,222,0.65); }
.schedule-row span:last-child{ font-family:'IBM Plex Mono',monospace; font-size:12.5px; text-align:right;}
.schedule-note{ margin-top:14px; font-size:13px; color:rgba(251,241,222,0.65); line-height:1.5;}
.schedule-note b{ color:var(--amarelo); font-weight:600;}

/* ---------- chip ---------- */
.chip{
  font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.03em;
  padding:6px 12px; border-radius:20px; border:1px solid var(--line); color:rgba(251,241,222,0.75);
  transition: transform .15s ease, border-color .15s ease, color .15s ease; display:inline-block;
}
.chip:hover{ transform:translateY(-2px); border-color:var(--amarelo); color:var(--amarelo);}
.tag-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }

/* ---------- timeline ---------- */
.timeline{ position:relative; max-width:760px; padding-left:34px; }
.timeline::before{ content:""; position:absolute; left:9px; top:6px; bottom:6px; width:2px; background:var(--line); }
.timeline-item{ position:relative; padding-bottom:34px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-dot{ position:absolute; left:-34px; top:2px; width:20px; height:20px; border-radius:50%; border:3px solid var(--azul); box-shadow:0 0 0 2px currentColor; }
.timeline-item.c1 .timeline-dot{ background:var(--amarelo); color:var(--amarelo);}
.timeline-item.c2 .timeline-dot{ background:var(--terracota); color:var(--terracota);}
.timeline-item.c3 .timeline-dot{ background:var(--verde); color:var(--verde);}
.timeline-item.c4 .timeline-dot{ background:var(--amarelo); color:var(--amarelo);}
.timeline-tag{ font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.08em; color:rgba(251,241,222,0.6); text-transform:uppercase; margin-bottom:6px;}
.timeline-title{ font-family:'Fraunces',serif; font-weight:700; font-size:clamp(17px,2.2vw,21px); margin-bottom:2px;}
.timeline-item p{ font-size:14.5px; color:rgba(251,241,222,0.78); line-height:1.6; max-width:600px;}

/* ---------- gallery ---------- */
.gallery{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media (max-width:900px){ .gallery{ grid-template-columns:repeat(3,1fr);} }
@media (max-width:640px){ .gallery{ grid-template-columns:repeat(2,1fr);} }
.gallery a{ display:block; border-radius:6px; overflow:hidden; aspect-ratio:1/1; position:relative; border-top:2px solid transparent; transition:border-color .2s;}
.gallery a:nth-child(4n+1){ border-top-color:var(--amarelo); }
.gallery a:nth-child(4n+2){ border-top-color:var(--terracota); }
.gallery a:nth-child(4n+3){ border-top-color:var(--verde); }
.gallery a:nth-child(4n+4){ border-top-color:var(--amarelo); }
.gallery img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease;}
.gallery a:hover img{ transform:scale(1.08); }

/* ---------- contact cards ---------- */
.contact-card{ background:var(--azul-2); border-radius:8px; padding:26px; border-top:3px solid var(--amarelo);}
.contact-card:nth-child(2){ border-top-color:var(--terracota); }
.contact-card:nth-child(3){ border-top-color:var(--verde); }
.contact-card h4{ font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.12em; color:var(--amarelo); text-transform:uppercase; margin-bottom:12px;}
.contact-card .value{ font-family:'Fraunces',serif; font-size:19px; font-weight:700; text-decoration:none; display:block; margin-bottom:4px;}
.contact-card .value:hover{ color:var(--amarelo); }
.contact-card .sub{ font-size:13px; color:rgba(251,241,222,0.65); }

.map-frame{ width:100%; height:280px; border:0; border-radius:8px; filter:grayscale(.3) sepia(.15) hue-rotate(150deg); }

/* ---------- footer ---------- */
footer.site-footer{ padding: clamp(50px,7vw,80px) clamp(20px,6vw,64px) 34px; background:var(--azul-2); }
.footer-grid{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:40px; }
.footer-title{ font-family:'Fraunces',serif; font-weight:700; font-size:clamp(26px,4.2vw,42px); max-width:480px; line-height:1.08;}
.footer-title .accent{ color:var(--amarelo); font-style:italic;}
.footer-sub{ margin-top:14px; color:rgba(251,241,222,0.7); font-size:14px; max-width:420px; line-height:1.5;}
.footer-cols{ display:flex; gap:56px; flex-wrap:wrap; }
.footer-col h5{ font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.1em; color:var(--amarelo); text-transform:uppercase; margin-bottom:14px;}
.footer-col a{ display:block; text-decoration:none; color:rgba(251,241,222,0.8); font-size:13.5px; margin-bottom:10px; transition:color .2s;}
.footer-col a:hover{ color:var(--amarelo); }
.social-row{ display:flex; gap:12px; margin-top:6px; }
.social-row a{ width:34px; height:34px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; text-decoration:none; transition:border-color .2s, color .2s;}
.social-row a:hover{ border-color:var(--amarelo); color:var(--amarelo);}
.foot-bottom{ margin-top:44px; padding-top:20px; border-top:1px solid var(--line); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-family:'IBM Plex Mono',monospace; font-size:10.5px; color:rgba(251,241,222,0.55); letter-spacing:.04em;}

svg.icon{ width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:1.6; flex:none; }

/* ---------- professeur page: about stats, formation strip, skills, langues ---------- */
.about-meta{ display:flex; gap:26px; margin-top:24px; flex-wrap:wrap;}
.about-meta div{ font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:rgba(251,241,222,0.65);}
.about-meta b{ display:block; font-family:'Fraunces',serif; font-size:22px; color:var(--amarelo); font-weight:700;}

.belt-strip{ display:flex; flex-direction:column; gap:0; max-width:740px; }
.belt-item{ display:grid; grid-template-columns:130px 1fr; gap:18px; padding:18px 0; border-top:1px solid var(--line); align-items:center;}
.belt-item:last-child{border-bottom:1px solid var(--line);}
.belt-year{ font-family:'IBM Plex Mono',monospace; color:var(--verde); font-size:12.5px;}
.belt-title{ font-size:16.5px; font-weight:700; }
.belt-sub{ font-size:13px; color:rgba(251,241,222,0.65); margin-top:2px;}

.skill-card{ background:var(--azul-2); border-radius:8px; padding:24px; border-top:3px solid var(--amarelo);}
.skill-card:nth-child(2){ border-top-color:var(--terracota); }
.skill-card h3{ font-family:'Fraunces',serif; font-size:18px; margin-bottom:8px; font-weight:700;}
.skill-card p{ color:rgba(251,241,222,0.75); font-size:14.5px; line-height:1.55;}

.info-grid{ display:grid; grid-template-columns:1fr 1fr; gap:36px; max-width:880px;}
@media (max-width:680px){ .info-grid{ grid-template-columns:1fr; gap:26px;} }
.info-block h4{ font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.12em; color:var(--amarelo); margin-bottom:14px; text-transform:uppercase;}
.lang-row{ display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--line); font-size:14.5px;}
.lang-row span:last-child{ font-family:'IBM Plex Mono',monospace; font-size:10.5px; color:rgba(251,241,222,0.6);}
.interest-cloud{ display:flex; flex-wrap:wrap; gap:9px; }

/* ---------- inscription: HelloAsso widget frame ---------- */
.ha-frame-wrap{ background:var(--cream); border-radius:8px; padding:4px; border-top:3px solid var(--amarelo); max-width:820px; }
.ha-frame-wrap iframe{ border-radius:6px; display:block; }

@keyframes pulse-dot{ 0%,100%{ box-shadow:0 0 0 0 currentColor; opacity:1;} 50%{ box-shadow:0 0 0 4px transparent; opacity:.55;} }

/* ---------- homepage flash banners ---------- */
.flash-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:800px){ .flash-grid{ grid-template-columns:1fr; } }
.flash-banner{
  display:flex; flex-direction:column; gap:8px;
  padding:20px 22px; border-radius:8px; text-decoration:none; color:var(--cream);
  background: linear-gradient(135deg, rgba(244,169,59,0.14), var(--azul-2) 55%);
  border:1px solid var(--line); border-left:3px solid var(--amarelo);
  transition: transform .18s ease, border-color .18s ease;
}
.flash-banner.flash-terracota{
  background: linear-gradient(135deg, rgba(224,98,59,0.16), var(--azul-2) 55%);
  border-left-color: var(--terracota);
}
.flash-banner:hover{ transform:translateY(-3px); border-left-width:4px; }
.flash-tag{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono',monospace; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--amarelo);
}
.flash-banner.flash-terracota .flash-tag{ color:var(--terracota); }
.flash-dot{ width:7px; height:7px; border-radius:50%; background:currentColor; animation: pulse-dot 1.6s ease-in-out infinite; }
.flash-text{ font-size:15px; line-height:1.5; color:rgba(251,241,222,0.92); }
.flash-text b{ color:var(--cream); }
.flash-cta{ font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--cream); opacity:.8; margin-top:2px; }
.flash-banner:hover .flash-cta{ opacity:1; }

/* ---------- calendrier: month/day lists per course ---------- */
.cal-card{ background:var(--azul-2); border-radius:8px; padding:24px; border-top:3px solid var(--amarelo); }
.cal-card:nth-child(2){ border-top-color:var(--terracota); }
.cal-card:nth-child(3){ border-top-color:var(--verde); }
.cal-card h3{ font-family:'Fraunces',serif; font-size:18px; margin-bottom:2px; font-weight:700;}
.cal-card .age{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--amarelo); letter-spacing:.05em; text-transform:uppercase; display:block; margin-bottom:2px;}
.cal-card .where{ font-size:12.5px; color:rgba(251,241,222,0.6); margin-bottom:14px; display:block;}
.cal-row{ display:flex; gap:14px; padding:7px 0; border-top:1px solid var(--line); font-size:13px; }
.cal-row:last-child{ border-bottom:1px solid var(--line); }
.cal-month{ font-family:'IBM Plex Mono',monospace; color:var(--amarelo); min-width:64px; flex:none; text-transform:capitalize;}
.cal-days{ color:rgba(251,241,222,0.8); line-height:1.5; }
.break-row{ display:flex; justify-content:space-between; gap:10px; padding:12px 0; border-top:1px solid var(--line); font-size:14px; flex-wrap:wrap;}
.break-row:last-child{ border-bottom:1px solid var(--line); }
.break-row b{ color:var(--cream); }
.break-row span.range{ font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--amarelo); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}
