/* ============================================================
   ORT Strasbourg — Landing pages Press·Agrum
   Design system commun · 2026
   ============================================================
   Couleurs officielles ORT (extraites du logo) :
     #001489 bleu marine ORT
     #41B6E6 bleu clair Strasbourg
   ============================================================ */

:root {
  /* Couleurs officielles ORT */
  --ort-blue:        #001489;
  --ort-blue-dark:   #000d5e;
  --ort-cyan:        #41B6E6;
  --ort-cyan-dark:   #2090c0;
  --ort-blue-soft:   #e6e9f4;
  --ort-cyan-soft:   #e0f3fc;
  --ort-gold:        #c9a557;
  --ort-gold-soft:   #f5edd8;

  /* Neutres */
  --bg:              #fafaf7;
  --bg-card:         #ffffff;
  --text:            #1a1a1a;
  --text-muted:      #6b6b6b;
  --text-light:      #9a9a9a;
  --line:            #e5e5e0;
  --line-strong:     #c4c4bd;

  /* États */
  --success:         #1e7d4a;
  --success-soft:    #e3f4ea;
  --error:           #c0382b;
  --error-soft:      #fbe9e7;

  /* Variantes par formation */
  --accent-bts:      var(--ort-blue);
  --accent-bachelor: #1d6f5b;
  --accent-mastere:  #1a1a1a;
  --accent-lycee:    #8b5a2b;

  /* Typographie */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Échelle de tailles */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   22px;
  --fs-xl:   28px;
  --fs-h2:   32px;
  --fs-h1:   42px;
  --fs-hero: 56px;

  /* Espacements */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Rayons */
  --r-sm: 6px;  --r-md: 10px; --r-lg: 16px; --r-pill: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);

  /* Layout */
  --container-narrow: 720px;
  --container:        960px;
  --container-wide:   1180px;
  --header-h:         56px;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent, var(--ort-blue)); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0; padding: 0 0 0 var(--sp-5); }
li { margin: var(--sp-1) 0; }

/* ===== Layout primitives ===== */
.l-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
.l-container-narrow { max-width: var(--container-narrow); }
.l-container-wide   { max-width: var(--container-wide); }
.l-section { padding: var(--sp-8) 0; }
@media (min-width: 768px) { .l-section { padding: var(--sp-9) 0; } }
.l-section--alt   { background: var(--bg-card); }
.l-section--dark  { background: var(--text); color: #fff; }
.l-section--accent{ background: var(--accent-soft, var(--ort-blue-soft)); }

/* ===== Header signature — fond noir compact ===== */
.l-header {
  height: var(--header-h);
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center;
  position: relative;
  z-index: 10;
}
.l-header__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
}
.l-header__brand {
  display: flex; align-items: center; gap: var(--sp-3);
  text-decoration: none !important;
  min-width: 0;
}
.l-header__logo { height: 28px; width: auto; flex-shrink: 0; }
.l-header__sub {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
  border-left: 1px solid rgba(255,255,255,.18);
  padding-left: var(--sp-3);
  display: none;
  white-space: nowrap;
}
@media (min-width: 700px) { .l-header__sub { display: block; } }
.l-header__nav {
  display: none;
  gap: var(--sp-5);
  font-size: var(--fs-sm);
}
@media (min-width: 900px) { .l-header__nav { display: flex; } }
.l-header__nav a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color .15s;
}
.l-header__nav a:hover { color: var(--ort-cyan); text-decoration: none; }

/* CTA Header — cyan qui claque sur noir, le clou de la signature */
.l-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--ort-cyan);
  color: #0a0a0a !important;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none !important;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 0 0 0 rgba(65,182,230,0);
  white-space: nowrap;
}
.l-header__cta::after {
  content: "→";
  transition: transform .15s;
}
.l-header__cta:hover {
  background: #5dc4ee;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(65,182,230,.55);
}
.l-header__cta:hover::after { transform: translateX(2px); }

/* ===== Typographie ===== */
.l-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent, var(--ort-blue));
  font-weight: 600;
  margin-bottom: var(--sp-3);
}
.l-h1, h1.l-h1 { font-size: var(--fs-h1); line-height: 1.1; margin: 0 0 var(--sp-4); }
@media (min-width: 768px) { .l-h1, h1.l-h1 { font-size: var(--fs-hero); } }
.l-h2, h2.l-h2 { font-size: var(--fs-xl); margin: 0 0 var(--sp-5); }
@media (min-width: 768px) { .l-h2, h2.l-h2 { font-size: var(--fs-h2); } }
.l-lede { font-size: var(--fs-md); color: var(--text-muted); max-width: 60ch; margin: 0 0 var(--sp-6); }
.l-muted { color: var(--text-muted); }
.l-small { font-size: var(--fs-sm); }

/* ===== Hero ===== */
.l-hero {
  padding: var(--sp-9) 0 var(--sp-8);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--line);
}
.l-hero__inner { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) { .l-hero__inner { grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); } }
.l-hero__visual {
  aspect-ratio: 4/3;
  background: var(--accent-soft, var(--ort-blue-soft));
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent, var(--ort-blue));
  font-size: var(--fs-sm);
}

/* ===== CTA ===== */
.l-cta {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  background: var(--accent, var(--ort-blue));
  color: #fff !important;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--fs-base);
  text-decoration: none !important;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: var(--shadow-sm);
}
.l-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: var(--ort-blue-dark); }
.l-cta:active { transform: translateY(0); }
.l-cta--ghost {
  background: transparent;
  color: var(--accent, var(--ort-blue)) !important;
  border: 1.5px solid currentColor;
  box-shadow: none;
}
.l-cta--ghost:hover { background: var(--accent-soft, var(--ort-blue-soft)); }

/* ===== Bloc urgence ===== */
.l-urgent {
  background: #fff8e6;
  border-left: 4px solid var(--ort-gold);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-6);
}
.l-urgent__title { font-weight: 700; margin-bottom: var(--sp-2); color: #6b4f0c; }

/* ===== Grille d'arguments ===== */
.l-args { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 700px) {
  .l-args--3 { grid-template-columns: repeat(3, 1fr); }
  .l-args--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .l-args--4 { grid-template-columns: repeat(4, 1fr); } }
.l-arg { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-6); }
.l-arg__icon {
  width: 40px; height: 40px;
  background: var(--accent-soft, var(--ort-blue-soft));
  color: var(--accent, var(--ort-blue));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4); font-weight: 700;
}
.l-arg__title { font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--sp-2); }
.l-arg__text { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

/* ===== Cards formations (home) ===== */
.l-formations { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 700px) { .l-formations { grid-template-columns: 1fr 1fr; } }
.l-formation {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  text-decoration: none !important;
  color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.l-formation:hover {
  border-color: var(--ort-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.l-formation__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ort-blue);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}
.l-formation__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.l-formation__desc { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-5); flex-grow: 1; }
.l-formation__link {
  font-size: var(--fs-sm);
  color: var(--ort-blue);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.l-formation__link::after { content: "→"; transition: transform .2s; }
.l-formation:hover .l-formation__link::after { transform: translateX(3px); }

/* ===== Accordion ===== */
.l-accordion { border-top: 1px solid var(--line); }
.l-accordion details { border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; }
.l-accordion summary {
  cursor: pointer; font-weight: 600; font-size: var(--fs-md); padding: var(--sp-2) 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.l-accordion summary::-webkit-details-marker { display: none; }
.l-accordion summary::after {
  content: "+"; font-size: var(--fs-lg); color: var(--accent, var(--ort-blue));
  font-weight: 400; transition: transform .2s;
}
.l-accordion details[open] summary::after { transform: rotate(45deg); }
.l-accordion details > *:not(summary) { padding-top: var(--sp-3); color: var(--text-muted); }

/* ===== Témoignage ===== */
.l-quote {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  border-left: 4px solid var(--accent, var(--ort-blue));
}
.l-quote__text { font-family: var(--font-serif); font-size: var(--fs-lg); font-style: italic; line-height: 1.45; margin: 0 0 var(--sp-4); }
.l-quote__author { display: flex; align-items: center; gap: var(--sp-3); }
.l-quote__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft, var(--ort-blue-soft)); }
.l-quote__name { font-weight: 600; font-size: var(--fs-sm); }
.l-quote__role { color: var(--text-muted); font-size: var(--fs-xs); }

/* ===== Stats ===== */
.l-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  text-align: center;
}
@media (min-width: 700px) { .l-stats { grid-template-columns: repeat(4, 1fr); } }
.l-stat__num { font-size: var(--fs-h1); font-weight: 700; color: var(--ort-blue); line-height: 1; margin-bottom: var(--sp-2); }
.l-stat__lbl { font-size: var(--fs-sm); color: var(--text-muted); }

/* ===== Formulaire ===== */
.l-form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  box-shadow: var(--shadow-md);
  position: relative;
}
.l-form-card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.l-form-card__subtitle { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.l-form { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 600px) {
  .l-form--2col { grid-template-columns: 1fr 1fr; }
  .l-form--2col .l-field--full { grid-column: 1 / -1; }
}
.l-field { display: flex; flex-direction: column; gap: var(--sp-2); position: relative; }
.l-field label { font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.l-field label .req { color: var(--error); margin-left: 2px; }
.l-field input, .l-field select, .l-field textarea {
  font-family: inherit; font-size: var(--fs-base);
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.l-field input:focus, .l-field select:focus, .l-field textarea:focus {
  outline: none;
  border-color: var(--accent, var(--ort-blue));
  box-shadow: 0 0 0 3px var(--accent-soft, var(--ort-blue-soft));
}
.l-field textarea { resize: vertical; min-height: 120px; }
.l-field--error input, .l-field--error select, .l-field--error textarea { border-color: var(--error); }
.l-field--error::after { content: attr(data-error); font-size: var(--fs-xs); color: var(--error); }
.l-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.l-form-card.is-success .l-form,
.l-form-card.is-success .l-form-card__title,
.l-form-card.is-success .l-form-card__subtitle { display: none; }
.l-form-card.is-success::before {
  content: "✓ Votre demande est bien envoyée. Nous vous recontactons sous 48 h.";
  display: block; color: var(--success); background: var(--success-soft);
  padding: var(--sp-5); border-radius: var(--r-md);
  font-weight: 500; text-align: center;
}
.l-form-card.is-failure::after {
  content: "Une erreur est survenue. Merci de réessayer ou de nous contacter directement.";
  display: block; color: var(--error); background: var(--error-soft);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  margin-top: var(--sp-4); font-size: var(--fs-sm);
}

/* ===== Footer ===== */
.l-footer {
  padding: var(--sp-7) 0 var(--sp-6);
  border-top: 1px solid var(--line);
  background: var(--bg-card);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.l-footer__inner { display: flex; flex-wrap: wrap; gap: var(--sp-5); justify-content: space-between; align-items: center; }
.l-footer a { color: inherit; text-decoration: underline; }

/* ===== Utilitaires ===== */
.is-hidden { display: none !important; }
.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
