/* telep.top — feuille de style (sobre, sans dépendance externe) */
:root {
  --ink: #0f1b2d;
  --ink-soft: #1c2b44;
  --text: #25324a;
  --muted: #55627a;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --accent: #0e7c86;
  --accent-dark: #0a5f67;
  --accent-light: #6ee7d8;
  --radius: 10px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 27, 45, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.brand span { color: var(--accent-light); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a { color: #d7deea; text-decoration: none; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; border-bottom-color: var(--accent-light); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%); color: #fff; padding: 5rem 0 4rem; }
.eyebrow { color: var(--accent-light); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; margin: 0 0 .6rem; letter-spacing: -.01em; }
.hero .role { font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: #e6ecf5; margin: 0 0 1.2rem; font-weight: 500; }
.hero .lead { max-width: 46rem; color: #c9d3e3; margin: 0 0 2rem; }
.tags { list-style: none; padding: 0; margin: 0 0 2.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: .25rem .85rem; font-size: .9rem; color: #e6ecf5; }
.btn { display: inline-block; text-decoration: none; padding: .8rem 1.4rem; border-radius: 8px; font-weight: 600; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-primary { background: var(--accent-light); color: var(--ink); }
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; margin-left: .6rem; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Chiffres clés */
.figures { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.figures ul { list-style: none; margin: 0; padding: 2rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem; }
.figures strong { display: block; font-size: 1.9rem; color: var(--ink); line-height: 1.2; }
.figures span { color: var(--muted); font-size: .95rem; }

/* Sections */
section { padding: 4rem 0; }
section.alt { background: var(--bg-alt); }
h2 { color: var(--ink); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .4rem; letter-spacing: -.01em; }
h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--accent); margin-top: .6rem; border-radius: 2px; }
.section-intro { color: var(--muted); max-width: 46rem; margin: 1rem 0 2rem; }
h3 { color: var(--ink); font-size: 1.15rem; margin: 0 0 .5rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.card li { margin-bottom: .3rem; }

/* Parcours */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 2.2rem 1.8rem; }
.timeline > li::before { content: ""; position: absolute; left: -7px; top: .5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--accent); }
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; align-items: baseline; }
.job-head h3 { margin: 0; }
.period { color: var(--accent-dark); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.company { margin: .1rem 0 .2rem; font-weight: 600; color: var(--ink-soft); }
.context { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; }
.timeline ul { margin: 0; padding-left: 1.1rem; }
.timeline li li { margin-bottom: .25rem; }
.earlier { margin-top: .5rem; color: var(--muted); }
.earlier li { margin-bottom: .4rem; }

/* Formation */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }

/* Contact */
.contact-box { background: var(--ink); color: #e6ecf5; border-radius: 14px; padding: 2.5rem; }
.contact-box h2 { color: #fff; }
.contact-box a { color: var(--accent-light); }
.contact-box .mail { font-size: 1.35rem; font-weight: 600; word-break: break-all; }

/* Pied de page */
.site-footer { background: var(--ink); color: #aab6cb; font-size: .92rem; padding: 2rem 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer a { color: #d7deea; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; }

/* Pages secondaires */
.page { padding: 3.5rem 0 4.5rem; max-width: 820px; }
.page h1 { color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 1.5rem; }
.page h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.page h2::after { display: none; }
.todo { background: #fff6dd; border: 1px dashed #c9a227; padding: 0 .3rem; border-radius: 3px; }

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }
  .btn-ghost { margin: .6rem 0 0; }
  section { padding: 3rem 0; }
  .contact-box { padding: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .skip-link, .btn { display: none; }
  .hero { background: none; color: #000; padding: 1rem 0; }
  .hero h1, .hero .role, .hero .lead, .tags li { color: #000; border-color: #999; }
  body { font-size: 11pt; }
  section { padding: 1.2rem 0; }
}

/* Liens vers organismes (ADIRA, certifications) */
.cert-list { list-style: none; padding: 0 !important; margin: .4rem 0 1rem; display: grid; gap: .6rem; }
.badge-link { display: block; text-decoration: none; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: .6rem .9rem; background: var(--bg-alt); transition: border-color .15s, box-shadow .15s; }
.badge-link strong { display: block; color: var(--ink); }
.badge-link span { color: var(--muted); font-size: .9rem; }
.badge-link:hover, .badge-link:focus-visible { border-left-color: var(--ink); box-shadow: 0 2px 8px rgba(15, 27, 45, .12); }

/* Logo ADIRA (version blanche, fonds sombres uniquement) */
.adira-card { display: inline-flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--ink); border-radius: 8px; padding: .8rem 1.1rem; text-decoration: none; }
.adira-card img { height: 49px; width: auto; display: block; }
.adira-card span { color: #d7deea; font-size: .92rem; }
.adira-card:hover, .adira-card:focus-visible { box-shadow: 0 2px 10px rgba(15, 27, 45, .3); }
.footer-adira { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.footer-adira img { height: 30px; width: auto; display: block; }
.adira-light { display: inline-flex; align-items: center; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; padding: .7rem 1rem; text-decoration: none; background: #fff; }
.adira-light img { height: 40px; width: auto; display: block; }
.adira-light span { color: var(--muted); font-size: .92rem; }
.adira-light:hover, .adira-light:focus-visible { border-color: var(--accent); box-shadow: 0 2px 8px rgba(15, 27, 45, .12); }

/* Certifications avec logos */
.badge-link.has-logo { display: flex; align-items: center; gap: 1rem; background: #fff; }
.badge-link.has-logo img { flex: 0 0 auto; width: 120px; height: auto; max-height: 52px; object-fit: contain; }
.badge-link.has-logo .txt { display: block; }
.logo-miage { width: 180px; height: auto; display: block; margin-top: .4rem; }
@media (max-width: 420px) { .badge-link.has-logo { flex-direction: column; align-items: flex-start; } }

/* Photo de profil */
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.portrait { width: 212px; height: 212px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent-light); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .portrait { order: -1; width: 150px; height: 150px; }
}

.two-col { margin-top: 2rem; }
