/* =====================================================================
   Europool France — FER
   Feuille de style principale (site statique moderne)
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --blue-900: #0f3a63;
  --blue-800: #14487a;
  --blue-700: #1a5595;   /* primaire */
  --blue-600: #2a6aad;
  --blue-500: #335c85;
  --blue-100: #e8f0f8;
  --blue-50:  #f4f8fc;

  --orange:   #d75110;   /* accent */
  --orange-dark: #b53f08;
  --red:      #97140a;

  --ink:      #1c2b3a;   /* texte principal */
  --ink-soft: #4a5b6b;   /* texte secondaire */
  --line:     #e3e9f0;
  --bg:       #ffffff;
  --bg-alt:   #f5f8fc;

  --radius:   14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15,58,99,.06), 0 2px 8px rgba(15,58,99,.06);
  --shadow-md: 0 8px 30px rgba(15,58,99,.10);
  --shadow-lg: 0 20px 50px rgba(15,58,99,.16);

  --container: 1180px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Poppins", var(--font-sans);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--blue-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue-900); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--blue { background: var(--blue-700); color: #fff; }
.btn--blue:hover { background: var(--blue-800); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--outline { background: #fff; color: var(--blue-700); border-color: var(--line); }
.btn--outline:hover { border-color: var(--blue-700); color: var(--blue-700); }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; }

/* ===================================================================
   HEADER
   =================================================================== */
.topbar { background: var(--blue-900); color: #cfe0f0; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.topbar__tag { letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.topbar__links { display: flex; gap: 20px; }
.topbar__links a { color: #cfe0f0; }
.topbar__links a:hover { color: #fff; }

.navbar { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--blue-900); }
.brand img { height: 54px; width: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--blue-900); letter-spacing: -.01em; }
.brand__sub { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-top: 2px; }

.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--blue-900);
  padding: .55rem .9rem; border-radius: 8px; }
.primary-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.primary-nav a.is-active { color: var(--orange); }
.primary-nav a.is-active::after { content: ""; display: block; height: 3px; border-radius: 3px; background: var(--orange); margin-top: 4px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; height: 2.5px; width: 24px; background: var(--blue-900); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; position: relative; }
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

/* ===================================================================
   HERO (accueil)
   =================================================================== */
.hero { position: relative; background: linear-gradient(120deg, var(--blue-900), var(--blue-700) 60%, var(--blue-600));
  color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(215,81,16,.35), transparent 62%); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 72px 0 84px; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .4em; }
.hero__eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; color: #ffd2b8; background: rgba(215,81,16,.22);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.2rem; }
.hero__lead { font-size: 1.15rem; color: #dce8f4; max-width: 34ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero__badge { position: absolute; bottom: -22px; left: -22px; background: #fff; color: var(--blue-900);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-md); font-family: var(--font-head); }
.hero__badge b { display: block; font-size: 1.6rem; color: var(--orange); }
.hero__badge span { font-size: .82rem; color: var(--ink-soft); }

/* ===================================================================
   SECTIONS génériques
   =================================================================== */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  font-size: .78rem; color: var(--orange); display: block; margin-bottom: .6rem; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Cartes pôles */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-700); margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.card__tag { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--orange); margin-bottom: .3rem; }
.card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 1.1rem; }
.card__link { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--blue-700); }
.card__link::after { content: " →"; }

/* Bandeau de compétences / chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem;
  font-size: .9rem; color: var(--blue-800); font-weight: 500; transition: all .15s ease; }
.chip:hover { border-color: var(--blue-700); color: var(--blue-700); box-shadow: var(--shadow-sm); }

/* Bandeau statistiques / valeurs */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat { text-align: center; padding: 24px; }
.stat b { font-family: var(--font-head); font-size: 2.4rem; color: var(--orange); display: block; }
.stat span { color: var(--ink-soft); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-800), var(--blue-600)); color: #fff; border-radius: var(--radius);
  padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: #dce8f4; margin: 0; }

/* Actualités */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.news__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); }
.news__item .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--orange); margin-bottom: .6rem; }
.news__item h3 { font-size: 1.05rem; }
.news__item p { color: var(--ink-soft); font-size: .92rem; }

/* ===================================================================
   PAGE INTÉRIEURE
   =================================================================== */
.page-hero { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); color: #fff; padding: 46px 0 54px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -140px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(215,81,16,.28), transparent 62%); }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0; max-width: 22ch; position: relative; z-index: 1; }
.page-hero .lead { color: #dce8f4; font-size: 1.1rem; margin: .8rem 0 0; max-width: 60ch; position: relative; z-index: 1; }

.breadcrumb { font-size: .85rem; margin-bottom: 1rem; color: #bcd2e8; position: relative; z-index: 1; }
.breadcrumb a { color: #bcd2e8; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #fff; }
.breadcrumb .sep { margin: 0 .5rem; opacity: .6; }

.page { padding: 56px 0 72px; }
.page__grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; align-items: start; }
.page__grid--full { grid-template-columns: minmax(0,1fr); }

/* Prose (contenu éditorial) */
.prose { color: var(--ink); font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; color: var(--blue-800); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; margin: 1.6rem 0 .6rem; color: var(--blue-700); }
.prose p { margin: 0 0 1.1rem; }
.prose a { text-decoration: underline; text-decoration-color: rgba(26,85,149,.3); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--orange); }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.prose ul li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  background: var(--orange); border-radius: 2px; transform: rotate(45deg); }
.prose ol { padding-left: 1.3rem; margin: 0 0 1.4rem; }
.prose ol li { margin-bottom: .5rem; }
.prose img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin: 1.2rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--orange);
  background: var(--blue-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--blue-900); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; vertical-align: top; }
.prose th { background: var(--blue-50); color: var(--blue-900); font-family: var(--font-head); }
.table-wrap { overflow-x: auto; }

.lead-em { font-size: 1.1rem; color: var(--blue-800); font-weight: 500; }
.callout { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 20px 24px; margin: 1.4rem 0; }
.callout--orange { background: #fdf2ea; border-color: #f6d8c4; }
.signature { text-align: right; margin-top: 2rem; }
.signature b { display: block; font-family: var(--font-head); color: var(--blue-900); }
.signature span { color: var(--ink-soft); font-size: .9rem; }

/* Grille de "poles"/domaines dans le contenu */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; margin: 1.5rem 0; list-style: none; padding: 0; }
.tiles li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px;
  box-shadow: var(--shadow-sm); }
.tiles li::before { display: none; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 96px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.widget__head { background: var(--blue-800); color: #fff; font-family: var(--font-head); font-weight: 600;
  padding: .8rem 1.1rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.widget__body { padding: 16px 18px; }
.subnav { list-style: none; margin: 0; padding: 0; }
.subnav li { border-bottom: 1px solid var(--line); }
.subnav li:last-child { border-bottom: 0; }
.subnav a { display: block; padding: .7rem 18px; color: var(--blue-900); font-size: .93rem; font-weight: 500; }
.subnav a:hover { background: var(--blue-50); color: var(--blue-700); padding-left: 22px; }
.subnav a.is-active { color: var(--orange); border-left: 3px solid var(--orange); padding-left: 15px; background: var(--blue-50); }

.widget--cta { background: linear-gradient(140deg, var(--blue-800), var(--blue-600)); color: #fff; padding: 22px; text-align: center; }
.widget--cta h4 { color: #fff; margin-bottom: .4rem; }
.widget--cta p { color: #dce8f4; font-size: .9rem; margin-bottom: 1rem; }

.widget--search form { display: flex; gap: 8px; align-items: stretch; }
.widget--search input { flex: 1 1 auto; min-width: 0; width: 100%; border: 1px solid var(--line);
  border-radius: 8px; padding: 0 .8rem; height: 42px; font: inherit; -webkit-appearance: none; appearance: none; }
.widget--search input::-webkit-search-decoration, .widget--search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.widget--search input:focus { outline: 2px solid var(--blue-600); border-color: var(--blue-600); }
.widget--search .btn { flex: 0 0 auto; height: 42px; padding: 0 1.1rem; border-radius: 8px; }

/* ===================================================================
   FORMULAIRE
   =================================================================== */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form .field--full { grid-column: 1 / -1; }
.form label { font-weight: 600; font-size: .9rem; color: var(--blue-900); }
.form input, .form select, .form textarea {
  border: 1px solid var(--line); border-radius: 9px; padding: .7rem .85rem; font: inherit; color: var(--ink); background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue-600); border-color: var(--blue-600); }
.form textarea { resize: vertical; min-height: 130px; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--blue-900); color: #b9cde0; margin-top: 40px; }
.site-footer a { color: #b9cde0; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 40px; }
.footer__brand img { height: 74px; width: auto; background: #fff; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.footer__brand p { font-size: .9rem; color: #91aac6; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: .55rem; font-size: .92rem; }
.site-footer ul li::before { display: none; }
.footer__contact p { font-size: .92rem; margin-bottom: .5rem; color: #b9cde0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #8aa5c2; }
.footer__bottom a { color: #8aa5c2; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero__media { display: none; }
  .page__grid { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .topbar { display: none; }
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: 76px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); max-height: calc(100dvh - 76px); overflow-y: auto;
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s ease; }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .primary-nav a { padding: .9rem 20px; border-radius: 0; }
  .primary-nav a.is-active::after { display: none; }
  .primary-nav li .btn { margin: 10px 20px; justify-content: center; }
}
@media (max-width: 620px) {
  .form { grid-template-columns: 1fr; }
  .cta-band { padding: 32px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 52px 0; }
  .footer__bottom { flex-direction: column; }
  /* on garde le nom de marque lisible, on masque seulement la baseline */
  .brand__sub { display: none; }
  .brand__name { font-size: 1.12rem; }
  .brand img { height: 46px; }
  .navbar__inner { min-height: 66px; }
  .nav-toggle { margin-right: -8px; }
  .primary-nav { top: 66px; max-height: calc(100dvh - 66px); }
}
@media (max-width: 380px) {
  .brand__name { font-size: 1rem; }
  .hero__cta .btn, .hero__cta { width: 100%; }
  .hero__cta { flex-direction: column; }
}
