/* ==================================================================
   Inter Evreux — feuille de style principale
   Univers visuel DISTINCT : theme eau / vague, bleu/cyan + accent ocre,
   derive du logo (assets/img/logo.png). Tokens prefixe --k-*.
   Premier jet. Inter a self-hoster plus tard (fallback system-ui ici).
   ================================================================== */

:root {
  /* --- Palette (derivee du logo) --- */
  --k-cyan:        #2bb8e6;   /* eau claire */
  --k-blue:        #1e7dc4;   /* bleu moyen */
  --k-blue-deep:   #0b3f7a;   /* bleu profond (titres logo) */
  --k-blue-night:  #07294f;   /* fonce */
  --k-ocre:        #ef8a1e;   /* accent secondaire (sous-titre logo) */
  --k-ocre-dark:   #d4760f;

  --k-bg:          #f5fbfe;   /* fond clair teinte cyan */
  --k-surface:     #ffffff;
  --k-surface-alt: #eaf5fb;
  --k-text:        #15293c;
  --k-text-muted:  #5a7184;
  --k-border:      #d6e7f1;

  --k-grad-water:  linear-gradient(135deg, var(--k-cyan) 0%, var(--k-blue) 55%, var(--k-blue-deep) 100%);

  /* --- Mesures --- */
  --k-radius:   12px;
  --k-radius-s: 8px;
  --k-maxw:     1120px;
  --k-shadow:   0 6px 24px rgba(11, 63, 122, .10);
  --k-shadow-s: 0 2px 8px rgba(11, 63, 122, .08);

  --k-font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
}

/* --- Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--k-font);
  background: var(--k-bg);
  color: var(--k-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--k-blue); text-decoration: none; }
a:hover { color: var(--k-blue-deep); }

.container { max-width: var(--k-maxw); margin: 0 auto; padding: 0 24px; }

/* ============================ Header / nav ====================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--k-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; }
.brand-text { line-height: 1.15; }
.brand-text strong {
  display: block; font-size: 18px; font-weight: 800;
  color: var(--k-blue-deep); letter-spacing: .3px;
}
.brand-text span { font-size: 11px; color: var(--k-text-muted); text-transform: uppercase; letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: var(--k-radius-s);
  font-weight: 600; font-size: 15px; color: var(--k-text);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--k-surface-alt); color: var(--k-blue-deep); }
.nav a.is-active { color: var(--k-blue-deep); background: var(--k-surface-alt); }

.nav-toggle {
  display: none; border: 1px solid var(--k-border); background: var(--k-surface);
  border-radius: var(--k-radius-s); padding: 8px 10px; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--k-blue-deep);
}

/* ============================ Boutons ========================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--k-radius-s);
  font-weight: 700; font-size: 15px; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--k-ocre); color: #fff; box-shadow: 0 4px 14px rgba(239,138,30,.35); }
.btn--primary:hover { background: var(--k-ocre-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn--blue { background: var(--k-blue-deep); color: #fff; }
.btn--blue:hover { background: var(--k-blue-night); color: #fff; }

/* ============================ Hero ============================= */
.hero {
  position: relative; overflow: hidden;
  background: var(--k-grad-water); color: #fff;
  padding: 80px 0 110px;
}
.hero::after {
  /* vague decorative en bas */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background:
    radial-gradient(60px 60px at 25% 0, transparent 58%, var(--k-bg) 60%),
    radial-gradient(60px 60px at 75% 0, transparent 58%, var(--k-bg) 60%);
  background-size: 120px 60px; background-repeat: repeat-x;
}
.hero .container { position: relative; z-index: 1; max-width: 760px; text-align: center; }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.1;
  text-shadow: 0 2px 12px rgba(7,41,79,.25);
}
.hero .lead { font-size: clamp(16px, 2.2vw, 20px); margin: 18px auto 32px; max-width: 620px; opacity: .95; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================ Sections ======================== */
.section { padding: 72px 0; }
.section--alt { background: var(--k-surface-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--k-ocre); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); color: var(--k-blue-deep); line-height: 1.2; }
.section-head p { color: var(--k-text-muted); margin-top: 14px; font-size: 17px; }

/* --- Grille cards --- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--k-surface); border: 1px solid var(--k-border);
  border-radius: var(--k-radius); padding: 28px; box-shadow: var(--k-shadow-s);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--k-shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--k-grad-water); color: #fff; font-size: 24px; margin-bottom: 16px;
}
.card h3 { color: var(--k-blue-deep); font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--k-text-muted); font-size: 15.5px; }

/* --- Bloc discipline detaille --- */
.discipline {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--k-surface); border: 1px solid var(--k-border);
  border-radius: var(--k-radius); padding: 36px; box-shadow: var(--k-shadow-s);
  margin-bottom: 28px;
}
.discipline:nth-child(even) .discipline-media { order: 2; }
.discipline-media {
  background: var(--k-grad-water); border-radius: var(--k-radius-s);
  min-height: 220px; display: grid; place-items: center; color: #fff; font-size: 64px;
}
.discipline h3 { color: var(--k-blue-deep); font-size: 24px; margin-bottom: 6px; }
.discipline .tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--k-ocre);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px;
}
.discipline p { color: var(--k-text-muted); margin-bottom: 10px; }
.discipline ul { list-style: none; margin-top: 10px; }
.discipline li { padding-left: 24px; position: relative; margin-bottom: 6px; color: var(--k-text); }
.discipline li::before { content: "→"; position: absolute; left: 0; color: var(--k-ocre); font-weight: 800; }

/* --- Tableau horaires --- */
.table-wrap { overflow-x: auto; border-radius: var(--k-radius); box-shadow: var(--k-shadow-s); }
table.schedule { width: 100%; border-collapse: collapse; background: var(--k-surface); min-width: 520px; }
table.schedule th, table.schedule td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--k-border); }
table.schedule thead th { background: var(--k-blue-deep); color: #fff; font-size: 14px; letter-spacing: .3px; }
table.schedule tbody tr:hover { background: var(--k-surface-alt); }
.placeholder { color: var(--k-ocre); font-weight: 700; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--k-border); }
.contact-list .ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--k-surface-alt); color: var(--k-blue-deep); font-size: 20px;
}
.contact-list .lbl { font-size: 13px; color: var(--k-text-muted); text-transform: uppercase; letter-spacing: .5px; }
.contact-list .val { font-size: 17px; font-weight: 600; color: var(--k-text); }
.map { display: flex; flex-direction: column; gap: 10px; }
.map iframe {
  width: 100%; min-height: 300px; border: 1px solid var(--k-border);
  border-radius: var(--k-radius); box-shadow: var(--k-shadow-s);
}
.map-link { font-weight: 600; font-size: 14px; }

/* --- Prose (paragraphes de contenu) --- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--k-text-muted); font-size: 17px; margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }

/* --- FAQ (details/summary) --- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--k-surface); border: 1px solid var(--k-border);
  border-radius: var(--k-radius-s); margin-bottom: 12px; box-shadow: var(--k-shadow-s);
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--k-blue-deep);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--k-ocre); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--k-text-muted); }
.faq details p a { font-weight: 600; }

/* --- Bandeau CTA --- */
.cta-band { background: var(--k-grad-water); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 12px; }
.cta-band p { opacity: .95; margin-bottom: 26px; font-size: 17px; }

/* ============================ Footer ========================== */
.site-footer { background: var(--k-blue-night); color: #c7d8e6; padding: 48px 0 28px; margin-top: auto; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.site-footer a { color: #c7d8e6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand strong { color: #fff; font-size: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #93acc2;
}
.footer-bottom a { color: #93acc2; text-decoration: underline; }

/* ============================ Responsive ====================== */
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--k-surface); border-bottom: 1px solid var(--k-border); padding: 12px 24px;
    gap: 2px; box-shadow: var(--k-shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .grid--3, .grid--2, .contact-grid { grid-template-columns: 1fr; }
  .discipline { grid-template-columns: 1fr; }
  .discipline:nth-child(even) .discipline-media { order: 0; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* --- Accessibilite : reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
