/* Index Européen - feuille de styles unique */

:root {
  --background: oklch(100% 0 0);
  --foreground: oklch(18% .05 265);
  --primary: oklch(36% .19 265);
  --primary-foreground: oklch(100% 0 0);
  --secondary: oklch(96% .012 265);
  --muted: oklch(97% .008 265);
  --muted-foreground: oklch(48% .03 265);
  --border: oklch(90% .015 265);
  --border-strong: oklch(36% .19 265);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.01em; }
p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
main { flex: 1; }

.container { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: 1.25rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.muted { color: var(--muted-foreground); }
.accent { color: var(--primary); }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}
.logo { display: flex; align-items: center; gap: .625rem; }
.logo-mark { width: 1.875rem; height: 1.25rem; flex-shrink: 0; display: block; }
.logo-text {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: .75rem; font-size: .875rem; }
.site-nav .link {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color .15s;
}
.site-nav .link:hover { color: var(--primary); }
.site-nav .hide-mobile { display: none; }

/* ---------- Boutons et puces ---------- */

.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  transition: opacity .15s, background-color .15s, color .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: .9; }
.btn-light { background: var(--primary-foreground); color: var(--primary); }
.btn-light:hover { opacity: .9; }
.btn-ghost { border: 1px solid color-mix(in oklch, var(--primary-foreground) 50%, transparent); }
.btn-ghost:hover { background: var(--primary-foreground); color: var(--primary); }
.btn-outline { border: 1px solid var(--border-strong); color: var(--primary); }
.btn-outline:hover { background: var(--secondary); }
.site-nav .btn { padding: .5rem .75rem; font-size: .8125rem; white-space: nowrap; }

.pill {
  display: inline-block;
  padding: .375rem .75rem;
  border: 1px solid color-mix(in oklch, var(--primary-foreground) 40%, transparent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
a.pill { transition: background-color .15s, color .15s; }
a.pill:hover { background: var(--primary-foreground); color: var(--primary); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: .125rem .5rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--muted-foreground);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .75rem;
  border: 1px solid var(--border);
  background: var(--background);
  font-size: .875rem;
  transition: border-color .15s, color .15s;
}
.tag:hover { border-color: var(--primary); color: var(--primary); }
.tag .count { color: var(--muted-foreground); }
.tag .note { color: var(--muted-foreground); font-size: .75rem; }

.row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Bandeaux ---------- */

.hero { background: var(--primary); color: var(--primary-foreground); border-bottom: 1px solid var(--border); }
.hero .container { padding-block: 3.5rem; }
.hero .eyebrow { color: color-mix(in oklch, var(--primary-foreground) 70%, transparent); }
.hero h1 { margin-top: 1.25rem; max-width: 62rem; font-size: 2rem; line-height: 1.05; }
.hero .lead {
  margin-top: 1.5rem;
  max-width: 52rem;
  line-height: 1.65;
  color: color-mix(in oklch, var(--primary-foreground) 85%, transparent);
}
.hero .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-compact .container { padding-block: 2.5rem; }
.hero-compact h1 { margin-top: 1.5rem; font-size: 1.875rem; line-height: 1.05; }
.hero-compact .lead { margin-top: .75rem; }
.hero-compact .row { margin-top: 1.75rem; }
.back { transition: color .15s; }
.back:hover { color: var(--primary-foreground); }

.page-head { border-bottom: 1px solid var(--border); }
.page-head .container { padding-block: 2.5rem; }
.page-head h1 { margin-top: 1rem; font-size: 1.875rem; line-height: 1.15; }
.page-head .lead { margin-top: 1rem; max-width: 42rem; color: var(--muted-foreground); }

/* ---------- Sections ---------- */

.section { padding-block: 3rem; }
.section-muted { background: var(--muted); border-block: 1px solid var(--border); }
.section-primary { background: var(--primary); color: var(--primary-foreground); }
.section-primary .container { padding-block: 3rem; }
.section-primary p { margin-top: .75rem; max-width: 42rem; color: color-mix(in oklch, var(--primary-foreground) 85%, transparent); }
.section-primary .row { margin-top: 1.5rem; }
.section-primary h2 { font-size: 1.5rem; }
[id] { scroll-margin-top: 4.5rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-head h2 { font-size: 1.5rem; }
.section-head p { font-size: .875rem; color: var(--muted-foreground); }
.section h2.sub { font-size: 1.5rem; }
.section h2.small { margin-top: 3.5rem; font-size: 1.25rem; }

/* ---------- Grilles et cartes ---------- */

.grid { display: grid; gap: 1rem; margin-top: 1.5rem; }

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--background);
  transition: border-color .15s;
}
.card:hover { border-color: var(--primary); }
.card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.card h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.25; transition: color .15s; }
.card:hover h3 { color: var(--primary); }
.card p { margin-top: .5rem; font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.card-top .eyebrow { flex-shrink: 0; padding-top: .25rem; color: var(--muted-foreground); }
.card .chips { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .375rem; }
.card-cat .eyebrow { color: var(--primary); }
.card-cat h3 { margin-top: .75rem; }

.empty {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
  font-size: .875rem;
  color: var(--muted-foreground);
}

/* ---------- Filtres ---------- */

.filters { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.filters input, .filters select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--background);
  color: inherit;
  font: inherit;
  font-size: .875rem;
  outline: none;
  transition: border-color .15s;
}
.filters input:focus, .filters select:focus { border-color: var(--primary); }
.filters input::placeholder { color: var(--muted-foreground); }
.filter-btn {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted-foreground);
  font: inherit;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.results { margin-top: 1rem; font-size: .875rem; color: var(--muted-foreground); }
.card[hidden] { display: none; }

/* ---------- Fiche outil ---------- */

.tool-layout { display: grid; gap: 2.5rem; padding-block: 2.5rem; }
.tool-layout .intro { margin-top: 1rem; font-size: 1rem; line-height: 1.65; }
.tool-layout h2.eyebrow { color: var(--primary); }
.tool-layout h2.eyebrow + .row { margin-top: 1rem; }
.tool-layout h2.spaced { margin-top: 2.5rem; }
.factsheet { align-self: start; padding: 1.25rem; border: 1px solid var(--border); }
.factsheet dl { margin-top: 1rem; font-size: .875rem; }
.factsheet dl div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .625rem; }
.factsheet dl div + div { border-top: 1px solid var(--border); }
.factsheet dt { color: var(--muted-foreground); }
.factsheet dd { text-align: right; font-weight: 500; }
.factsheet .links { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.factsheet .affiliate-note { margin-top: .75rem; font-size: .75rem; line-height: 1.5; color: var(--muted-foreground); }
.factsheet .none { padding: .75rem 1rem; text-align: center; font-size: .875rem; color: var(--muted-foreground); border: 1px dashed var(--border); }

/* ---------- Pied de page ---------- */

.site-footer { border-top: 1px solid var(--border); }
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-block: 2rem;
  font-size: .875rem;
  color: var(--muted-foreground);
}
.site-footer .eyebrow { color: var(--primary); }
.footer-note { margin-top: .25rem; font-size: .8125rem; }
.footer-note a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.footer-note a:hover { text-decoration-thickness: 2px; }
.footer-legal { margin-top: .25rem; font-size: .75rem; color: #767676; }

/* ---------- Tailles d'écran ---------- */

@media (min-width: 640px) {
  .logo-text { font-size: 1rem; letter-spacing: .14em; }
  .site-nav { gap: 1.5rem; }
  .site-nav .hide-mobile { display: inline; }
  .site-nav .btn { padding: .5rem 1rem; font-size: .875rem; }
  .hero .container { padding-block: 6rem; }
  .hero h1 { font-size: 3rem; }
  .hero .lead { font-size: 1.125rem; }
  .hero-compact .container { padding-block: 4rem; }
  .hero-compact h1, .page-head h1 { font-size: 3rem; }
  .page-head .container { padding-block: 3.5rem; }
  .page-head .lead { font-size: 1.125rem; }
  .section { padding-block: 5rem; }
  .section-head h2 { font-size: 2.25rem; }
  .section-primary .container { padding-block: 4rem; }
  .section-primary h2, .section h2.sub { font-size: 1.875rem; }
  .section h2.small { font-size: 1.5rem; }
  .card, .factsheet { padding: 1.5rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .filters { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .filters input { flex: 1 1 14rem; width: auto; min-width: 12rem; }
  .filters select { flex: 1 1 13rem; width: auto; }
  .filters .filter-pricing { flex: 1 1 100%; }
  .tool-layout { padding-block: 3.5rem; }
  .tool-layout .intro { font-size: 1.125rem; }
  .site-footer .container { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .tool-layout { grid-template-columns: 1fr 20rem; gap: 4rem; }
  .factsheet { position: sticky; top: 5.5rem; }
}

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

/* ---------- Logos des produits ---------- */

.tool-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--background);
}
.tool-logo img { width: 100%; height: 100%; object-fit: contain; }
.tool-logo-sm { width: 2.5rem; height: 2.5rem; padding: .25rem; }
.tool-logo-lg { width: 4.5rem; height: 4.5rem; padding: .5rem; border-color: transparent; }
.tool-logo-initials {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .02em;
}
.tool-logo-sm.tool-logo-initials { font-size: .8125rem; }
.tool-logo-lg.tool-logo-initials { font-size: 1.5rem; }

.card-title { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.tool-heading { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.tool-heading h1 { margin-top: 0; }

/* ---------- Sélecteur de langue ---------- */

.lang-menu { position: relative; }
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .375rem .5rem;
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--primary); }
.lang-caret { font-size: .625rem; transition: transform .15s; }
.lang-menu[open] .lang-caret { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + .25rem);
  z-index: 60;
  min-width: 10rem;
  margin: 0;
  padding: .25rem 0;
  list-style: none;
  background: var(--background);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px color-mix(in oklch, var(--foreground) 12%, transparent);
}
.lang-menu a { display: flex; gap: .5rem; padding: .5rem .875rem; font-size: .875rem; }
.lang-menu a:hover { background: var(--secondary); color: var(--primary); }
.lang-menu a[aria-current] { font-weight: 600; color: var(--primary); }
.lang-code { font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--muted-foreground); min-width: 1.5rem; }

.fallback-notice { margin: 0; background: var(--secondary); border-bottom: 1px solid var(--border); font-size: .875rem; }
.fallback-notice .container { display: block; padding-block: .625rem; color: var(--primary); }

/* ---------- Formulaire ---------- */

.form { max-width: 48rem; }
.form fieldset { margin: 0 0 2.5rem; padding: 0; border: 0; }
.form legend {
  width: 100%;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.field { margin-bottom: 1.25rem; }
.field-grid { display: grid; gap: 0 1.25rem; }
.field label, .field .label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 600; }
.field .req { color: var(--primary); }
.field .opt { font-weight: 400; color: var(--muted-foreground); }
.form input[type="text"], .form input[type="url"], .form input[type="email"], .form select, .form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--background);
  color: inherit;
  font: inherit;
  font-size: .9375rem;
  outline: none;
  transition: border-color .15s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary); }
.form .field [aria-invalid="true"] { border-color: oklch(55% .22 27); }
.help { margin: 0 0 .5rem; font-size: .8125rem; color: var(--muted-foreground); }
.field-error { margin-top: .375rem; font-size: .8125rem; color: oklch(50% .2 27); }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.check {
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
  margin: 0 !important;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  font-weight: 400 !important;
  cursor: pointer;
}
.check input { accent-color: var(--primary); width: 1rem; height: 1rem; }
.field-check { display: flex; align-items: flex-end; }
.form button { border: 0; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { max-width: 48rem; margin-bottom: 2rem; padding: 1.25rem 1.5rem; border: 1px solid; }
.notice h2 { font-size: 1.5rem; }
.notice p { margin-top: .5rem; }
.notice-success { border-color: var(--primary); background: var(--secondary); }
.notice-error { border-color: oklch(55% .22 27); background: oklch(97% .02 27); color: oklch(40% .18 27); }
.notice-error p { margin: 0; }

@media (min-width: 640px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Drapeaux ---------- */

.flag { display: inline-block; flex-shrink: 0; width: 1rem; height: .75rem; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); vertical-align: -1px; }
.flag-lg { width: 2.5rem; height: 1.875rem; }
.card-country, .pill-flag, .dd-flag, .h1-flag { display: inline-flex; align-items: center; gap: .375rem; }
.h1-flag { gap: .875rem; }
.dd-flag { justify-content: flex-end; }

/* ---------- Nom du site et baseline (header) ---------- */

.logo-words { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo-tagline { margin-top: .125rem; font-size: .625rem; font-weight: 400; letter-spacing: .01em; text-transform: none; color: color-mix(in oklch, var(--muted-foreground) 70%, var(--background)); }
@media (max-width: 420px) { .logo-tagline { display: none; } }

.hero .lead-sovereignty { margin-top: .875rem; }
.hero .lead a { color: var(--primary-foreground); text-decoration: underline; text-underline-offset: 3px; }
.hero .lead a:hover { text-decoration-thickness: 2px; }

@media (min-width: 1100px) {
  .filters { flex-wrap: nowrap; }
  .filters input { flex: 1 1 auto; }
  .filters select { flex: 0 0 12.5rem; min-width: 0; text-overflow: ellipsis; }
  .filters .filter-pricing { flex: 0 0 auto; flex-wrap: nowrap; }
}

/* ---------- « J'utilise cet outil » ---------- */

.chip-likes { gap: .3em; color: var(--primary); border-color: color-mix(in oklch, var(--primary) 30%, var(--border)); text-transform: none; letter-spacing: 0; }
.like-box { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); text-align: center; }
.btn-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--background);
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
}
.btn-like:hover { background: var(--secondary); }
.btn-like:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-like.is-liked { background: var(--primary); color: var(--primary-foreground); }
.btn-like .like-heart { font-size: 1rem; line-height: 1; transition: transform .15s; }
.btn-like.is-liked .like-heart { transform: scale(1.15); }
.like-count { margin-top: .5rem; font-size: .875rem; font-weight: 600; color: var(--foreground); }
.like-hint { margin-top: .25rem; font-size: .75rem; line-height: 1.5; color: var(--muted-foreground); }

/* ---------- « Améliorer cette fiche » ---------- */

.improve-link { margin-top: .75rem; text-align: right; font-size: .75rem; }
.improve-link a { color: var(--muted-foreground); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.improve-link a:hover, .improve-link a:focus-visible { color: var(--primary); text-decoration-color: currentColor; }
.btn-small { padding: .5rem .875rem; font-size: .8125rem; line-height: 1.4; text-align: left; }
.form details.help summary { cursor: pointer; color: var(--primary); }

/* Tuiles : le modèle de prix se distingue des catégories */
.chip-pricing { background: var(--secondary); color: var(--foreground); border-color: transparent; }

/* ---------- Outils similaires : version compacte après les 3 premières tuiles ---------- */

.mini-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.mini-card {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem .875rem;
  border: 1px solid var(--border);
  background: var(--background);
  transition: border-color .15s, color .15s;
}
.mini-card:hover { border-color: var(--primary); color: var(--primary); }
.mini-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mini-name { flex: 1; min-width: 0; font-weight: 600; font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-card .card-country { flex-shrink: 0; color: var(--muted-foreground); }
.related-more { margin-top: 1.25rem; font-size: .875rem; }
.related-more .link { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Jaune des étoiles du drapeau européen : titre de l'accueil et cœur « Vous utilisez cet outil » */
.eu-yellow, .btn-like.is-liked .like-heart { color: #FFCC00; }

/* ---------- Événements ---------- */

.event-hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.event-hero .tool-heading h1 { font-size: 2rem; }
.event-tagline { max-width: 46rem; }
.event-hero .row { margin-top: 1.25rem; }
.event-cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.badge-sponsored { display: inline-block; margin-bottom: .375rem; padding: .125rem .5rem; background: #FFCC00; color: var(--foreground); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Compte à rebours : jaune des étoiles du drapeau européen */
.countdown {
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 9.5rem;
  padding: 1rem 1.5rem;
  border: 2px solid #FFCC00;
  color: var(--primary-foreground);
  text-align: center;
}
.countdown-kicker { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.countdown-number { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; line-height: 1; color: #FFCC00; font-variant-numeric: tabular-nums; }
.countdown-unit { font-size: .875rem; font-weight: 600; }
.countdown-label { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.countdown-ongoing, .countdown-today { background: #FFCC00; color: var(--foreground); }
.countdown-past, .countdown-tbc { border-color: color-mix(in oklch, var(--primary-foreground) 40%, transparent); }

.event-past-notice { background: var(--secondary); border-bottom: 1px solid var(--border); font-size: .875rem; color: var(--muted-foreground); }
.event-past-notice .container { display: block; padding-block: .75rem; }

.tag-main { border-color: var(--primary); color: var(--primary); font-weight: 600; }

.speakers-head { margin-top: 3rem; }
.speakers { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.speaker { display: flex; gap: .875rem; align-items: flex-start; padding: .875rem; border: 1px solid var(--border); background: var(--background); }
.speaker-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary);   /* même bleu que le bandeau (hero) de la page d'accueil */
  color: #FFCC00;        /* jaune des étoiles du drapeau européen */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9375rem;
}
.speaker-body { min-width: 0; }
.speaker-name { font-weight: 600; line-height: 1.3; }
.speaker-name a { color: var(--primary); }
.speaker-name a:hover { text-decoration: underline; }
.speaker-role { margin-top: .125rem; font-size: .8125rem; color: var(--muted-foreground); line-height: 1.4; }
.speaker-talk { margin-top: .375rem; font-size: .8125rem; font-style: italic; line-height: 1.4; }

.factsheet .dl-block { flex-direction: column; gap: .25rem; }
.factsheet .dl-block dd { text-align: left; font-weight: 400; line-height: 1.5; }
.factsheet .dl-note { padding-top: 0; border-top: 0 !important; }
.factsheet .dl-note dd { text-align: right; font-weight: 400; font-size: .8125rem; color: var(--muted-foreground); }
.link-small { font-size: .8125rem; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Cartes d'événements */
.date-block { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 3rem; height: 3rem; background: var(--primary); color: var(--primary-foreground); line-height: 1; }
.date-block-tbc { background: var(--secondary); color: var(--muted-foreground); }
.date-day { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.date-month { margin-top: .125rem; font-size: .625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.event-card-tagline { font-style: italic; }
.event-card.is-sponsored { border-color: #FFCC00; box-shadow: inset 0 3px 0 #FFCC00; }
.chip-upcoming { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.chip-today, .chip-ongoing { background: #FFCC00; border-color: #FFCC00; color: var(--foreground); font-weight: 600; }
.chip-past, .chip-tbc { background: var(--secondary); border-color: transparent; }

.month-group { margin-top: 2.5rem; }
.month-group:first-of-type { margin-top: 1.5rem; }
.month-title { font-size: 1.25rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.section-intro { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); max-width: 46rem; }
.past-events summary { cursor: pointer; list-style: none; }
.past-events summary::-webkit-details-marker { display: none; }
.past-events summary h2 { display: inline; }
.past-events summary h2::after { content: " ↓"; color: var(--muted-foreground); }
.past-events[open] summary h2::after { content: " ↑"; }

@media (min-width: 768px) {
  .event-hero-grid { grid-template-columns: 1fr auto; }
  .event-hero .tool-heading h1 { font-size: 2.75rem; }
  .countdown { justify-self: end; }
}
.mini-edition .mini-name { white-space: normal; }
.mini-sub { display: block; margin-top: .125rem; font-size: .8125rem; font-weight: 400; color: var(--muted-foreground); }

/* Page pays : raccourcis Outils / Événements */
.country-links { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.country-links a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; border: 1px solid var(--border); font-size: .875rem; font-weight: 600; color: var(--primary); transition: border-color .15s, background-color .15s; }
.country-links a:hover { border-color: var(--primary); background: var(--secondary); }
.country-links .count { font-weight: 500; color: var(--muted-foreground); }
.country-section-title { margin-top: 3rem; scroll-margin-top: 5rem; }
#outils { scroll-margin-top: 5rem; }

/* En-tête sur petit écran : bouton « + Outil » au lieu de « Proposer un outil » */
.label-short { display: none; }
@media (max-width: 480px) {
  .label-long { display: none; }
  .label-short { display: inline; }
  .site-nav { gap: .5rem; }
}
.site-nav .link { white-space: nowrap; }
@media (max-width: 860px) { .site-nav .hide-mobile { display: none; } }

/* Picto langue (fiche événement) */
.pill-icon, .dd-icon { display: inline-flex; align-items: center; gap: .375rem; }
.dd-icon { justify-content: flex-end; }
.icon-lang { flex-shrink: 0; }

/* Barre collante de la fiche événement (sous l'en-tête, apparaît au défilement) */
.event-sticky {
  position: fixed;
  top: calc(4rem + 1px);
  left: 0;
  right: 0;
  z-index: 35;
  background: var(--primary);   /* même bleu que le bandeau (hero) de la page d'accueil */
  color: var(--primary-foreground);
  box-shadow: 0 6px 18px rgb(0 0 0 / .18);
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform .2s ease, visibility .2s;
}
.event-sticky.is-visible { transform: none; visibility: visible; }
.event-sticky .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .625rem; }
.event-sticky-info { min-width: 0; }
.event-sticky-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-sticky-meta { margin-top: .125rem; font-size: .8125rem; color: rgb(255 255 255 / .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-sticky-countdown { color: #FFCC00; font-weight: 600; }
.btn-yellow { flex-shrink: 0; background: #FFCC00; color: var(--primary); padding: .625rem 1rem; }
.btn-yellow:hover { background: #ffd83d; }
@media (prefers-reduced-motion: reduce) { .event-sticky { transition: none; } }

/* Retour à la ligne réservé au desktop (titre de l'agenda) */
.br-desktop { display: none; }
@media (min-width: 1024px) { .br-desktop { display: inline; } }

/* Fiche événement : formats disponibles (✓ vert, gras) et non disponibles (✕ gris clair) */
.format-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.format-list li { display: inline-flex; align-items: center; gap: .375rem; }
.format-list .is-on { font-weight: 600; color: var(--foreground); }
.format-list .is-off { font-weight: 400; color: color-mix(in oklch, var(--muted-foreground) 55%, var(--background)); }
.format-mark { font-size: .8125rem; line-height: 1; }
.format-list .is-on .format-mark { color: #16a34a; font-weight: 700; }
.format-list .is-off .format-mark { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Page pays : texte d'introduction sous les ancres Outils / Événements */
.page-head .country-intro { margin-top: 1.5rem; max-width: 52rem; font-size: 1rem; line-height: 1.7; }
@media (min-width: 640px) { .page-head .country-intro { font-size: 1.0625rem; } }

/* Page pays : titre des outils + filtre par catégorie */
#outils { scroll-margin-top: 5rem; }
.tools-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.tools-head .sub { margin: 0; }
.tools-head-filter {
  padding: .625rem 2rem .625rem .875rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  font-size: .875rem;
  max-width: 100%;
}
.tools-head-filter:focus { outline: none; border-color: var(--primary); }
.factsheet .dd-sub { font-weight: 400; font-size: .8125rem; color: var(--muted-foreground); }

/* ---------- Fiche événement : photo d'ambiance en fond du bandeau (monochrome, très légère) ---------- */
.event-hero { position: relative; overflow: hidden; isolation: isolate; }
.event-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/event-hero-800.webp") center 40% / cover no-repeat;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: luminosity;
  opacity: .2;
}
/* Voile plus dense côté texte (gauche) pour garder un contraste confortable */
.event-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--primary) 0%, color-mix(in oklch, var(--primary) 55%, transparent) 55%, transparent 100%);
}
@media (min-width: 800px) { .event-hero::before { background-image: url("/assets/event-hero-1600.webp"); } }

/* Vidéo : miniature + bouton lecture, lecteur chargé au clic */
.yt-facade { margin-top: 1rem; position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt-facade iframe, .yt-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { padding: 0; cursor: pointer; background: #000; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .15s; }
.yt-play:hover img { opacity: 1; }
.yt-icon { position: absolute; left: 50%; top: 50%; width: 4.25rem; height: 3rem; transform: translate(-50%, -50%); border-radius: .75rem; background: #FF0033; }
.yt-icon::after { content: ""; position: absolute; left: 52%; top: 50%; transform: translate(-40%, -50%); border-style: solid; border-width: .6rem 0 .6rem 1rem; border-color: transparent transparent transparent #fff; }
.yt-caption { margin-top: .5rem; font-size: .8125rem; }

/* Derniers replays */
.replays { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.replay { display: flex; flex-direction: column; gap: .375rem; border: 1px solid var(--border); background: var(--background); transition: border-color .15s; height: 100%; }
.replay:hover { border-color: var(--primary); }
.replay img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.replay-title { padding: 0 .75rem; font-size: .875rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.replay-date { padding: 0 .75rem .75rem; font-size: .75rem; color: var(--muted-foreground); }

/* FAQ */
.faq { margin-top: 1rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: .875rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1rem; color: var(--muted-foreground); line-height: 1.6; }

/* Colonne de droite : réseaux sociaux, hashtag, hébergement */
.aside-block { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.aside-block .social-links { margin-top: .75rem; }
.aside-block .social-links .tag { font-size: .8125rem; padding: .25rem .625rem; }
.hashtag { margin-top: .75rem; color: var(--primary); }
.hashtag-links { margin-top: .25rem; font-size: .8125rem; color: var(--muted-foreground); display: flex; flex-wrap: wrap; gap: .375rem; align-items: baseline; }
.aside-text { margin-top: .5rem; font-size: .8125rem; line-height: 1.5; color: var(--muted-foreground); }
.btn-block { display: block; width: 100%; margin-top: .75rem; }

/* Présentation + capture du site officiel (25 % de la largeur sur desktop) */
.intro-row.has-shot { display: grid; gap: 1.25rem; }
.intro-row .intro { margin-top: 1rem; }
.site-shot { display: block; margin-top: 1rem; align-self: start; border: 1px solid var(--border); background: var(--background); transition: border-color .15s, box-shadow .15s; }
.site-shot:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgb(0 0 0 / .08); }
.site-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.site-shot-caption { display: block; padding: .375rem .625rem; font-size: .75rem; color: var(--muted-foreground); border-top: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .intro-row.has-shot { grid-template-columns: 3fr 1fr; } }
/* Barre collante : « Trouver un logement » (blanc) à côté de « S'inscrire » (jaune) */
.event-sticky-actions { display: flex; flex-shrink: 0; gap: .5rem; }
.event-sticky .btn-light { padding: .625rem 1rem; }
@media (max-width: 640px) { .event-sticky .btn-light { display: none; } }
.event-card-note { font-weight: 600; color: var(--primary) !important; }
/* Adresse : « Voir sur la carte » à droite du libellé */
.factsheet .dt-with-link { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }

/* Intervenants : liste repliée avec fondu vers le blanc */
.speakers-wrap { position: relative; overflow: hidden; transition: max-height .35s ease; }
.speakers-wrap.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10rem;
  background: linear-gradient(to bottom, color-mix(in oklch, var(--background) 0%, transparent) 0%, color-mix(in oklch, var(--background) 70%, transparent) 45%, var(--background) 90%);
  pointer-events: none;
}
.collapse-toggle { display: block; margin: .75rem auto 0; font: inherit; font-weight: 600; font-size: .875rem; cursor: pointer; background: var(--background); }
@media (prefers-reduced-motion: reduce) { .speakers-wrap { transition: none; } }

/* Fiche outil : derniers Shorts YouTube (format vertical) */
.shorts { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .shorts { grid-template-columns: repeat(4, 1fr); } }
.shorts .replay img { aspect-ratio: 9 / 16; object-fit: cover; }
.shorts .replay-title { padding-bottom: .75rem; font-size: .8125rem; }
/* FAQ : pas de trait sous le titre, la liste a déjà son propre trait supérieur */
.faq-head { border-bottom: 0; padding-bottom: 0; }
/* Barre collante de la fiche outil : logo + nom, « J'utilise cet outil » (blanc) et « Visiter le site » (jaune) */
.tool-sticky-info { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.tool-sticky .tool-logo-sm { width: 2.25rem; height: 2.25rem; flex-shrink: 0; background: #fff; }
.tool-sticky .btn-like-sticky { display: inline-flex; align-items: center; gap: .5rem; border: 0; font: inherit; font-weight: 600; font-size: .875rem; cursor: pointer; }
.btn-like-sticky.is-liked .like-heart { color: #FFCC00; }
.btn-like-sticky.is-liked { background: rgb(255 255 255 / .12); color: var(--primary-foreground); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); }
@media (max-width: 640px) {
  .tool-sticky .btn-like-sticky { display: inline-flex; padding: .625rem .75rem; }
  .tool-sticky .like-sticky-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Liens obfusqués (span[data-o]) : même rendu qu'un lien, curseur et focus clavier visibles */
.olink { cursor: pointer; }
.olink:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Fiche outil : vidéos de test / présentation par des utilisateurs externes */
.reviews-note { margin-top: .5rem; font-size: .8125rem; }
.reviews { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .reviews-2 { grid-template-columns: 1fr 1fr; } }
.review { margin: 0; }
.review .yt-facade { margin-top: .75rem; }
.chip-official { margin-left: .25rem; vertical-align: middle; text-transform: none; letter-spacing: 0; }
/* Fiche outil : code promo (carte blanche sobre dans le bandeau, bouton dans la barre collante) */
.promo-box { margin-top: 1.75rem; padding: 1.25rem 1.375rem 1.375rem; max-width: 22rem; background: #fff; color: var(--foreground);
  border-top: 3px solid #FFCC00; box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.promo-eyebrow { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.promo-text { margin-top: .5rem; font-size: .9375rem; line-height: 1.4; color: var(--foreground); }
.promo-code { display: flex; align-items: stretch; justify-content: space-between; width: 100%; margin-top: 1rem; padding: 0;
  background: var(--secondary); color: var(--primary); border: 1px solid var(--border); font: inherit; cursor: pointer; transition: border-color .15s; }
.promo-code:hover, .promo-code.is-copied { border-color: var(--primary); }
.promo-code:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.promo-sticky:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.promo-code-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: 1rem; letter-spacing: .08em; }
.promo-code .promo-code-value { padding: .625rem .875rem; }
.promo-code-action { display: flex; align-items: center; padding: 0 .875rem; border-left: 1px solid var(--border); background: #fff;
  font-size: .75rem; font-weight: 600; color: var(--primary); transition: background .15s, color .15s; }
.promo-code:hover .promo-code-action, .promo-code.is-copied .promo-code-action { background: var(--primary); color: #fff; }
.promo-link { display: inline-block; margin-top: .75rem; font-size: .8125rem; font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .hero-with-promo { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; align-items: end; }
  .hero-with-promo .promo-box { margin-top: 0; max-width: none; }
}
.promo-sticky { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem; background: rgb(255 255 255 / .08); color: #fff;
  border: 1px solid rgb(255 255 255 / .35); font: inherit; cursor: pointer; transition: background .15s; }
.promo-sticky:hover, .promo-sticky.is-copied { background: rgb(255 255 255 / .18); }
.promo-sticky .promo-code-value { font-size: .8125rem; }
.promo-sticky-tag { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #FFCC00; }
@media (max-width: 760px) { .promo-sticky-tag { display: none; } }
@media (max-width: 520px) { .promo-sticky { display: none; } }
/* Code promo dans la fiche technique (sous « Visiter le site ») et lien « Appliquer ce code » dans la barre collante */
.promo-box-aside { max-width: none; margin-top: .25rem; padding: 1rem; box-shadow: none; border: 1px solid var(--border); border-top: 3px solid #FFCC00; }
.promo-box-aside .promo-text { font-size: .875rem; }
/* Dans la barre collante, la boîte du code promo a la même hauteur que les boutons voisins, avec ou sans lien dessous. */
.tool-sticky .event-sticky-actions { align-items: stretch; }
.promo-sticky-wrap { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .125rem; padding: 0 .75rem;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .35); }
.promo-sticky-wrap .promo-sticky { padding: 0; background: none; border: 0; line-height: 1.15; }
.promo-sticky-wrap .promo-sticky:hover .promo-code-value, .promo-sticky-wrap .promo-sticky.is-copied .promo-code-value { color: #FFCC00; }
.promo-sticky-wrap:not(:has(.promo-sticky-link)) { padding: 0; }
.promo-sticky-wrap:not(:has(.promo-sticky-link)) .promo-sticky { height: 100%; padding: 0 .75rem; }
.promo-sticky-wrap:not(:has(.promo-sticky-link)):hover { background: rgb(255 255 255 / .18); }
.promo-sticky-link { font-size: .6875rem; line-height: 1.15; color: rgb(255 255 255 / .85); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.promo-sticky-link:hover { color: #FFCC00; }
@media (max-width: 900px) { .promo-sticky-wrap { display: none; } }
.promo-box-aside .promo-link { font-size: .75rem; }
