:root {
  --bg-start: #07182e;
  --bg-end: #103f6f;
  --line: rgba(255, 255, 255, 0.2);
  --line-strong: rgba(255, 255, 255, 0.38);
  --gold: #f0c75e;
  --text-main: #f6fbff;
  --text-soft: rgba(246, 251, 255, 0.8);
  --shadow: rgba(3, 13, 30, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(240, 199, 94, 0.18), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(108, 177, 255, 0.22), transparent 32%),
    linear-gradient(150deg, var(--bg-start), var(--bg-end));
  overflow-x: hidden;
}

a,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #07213d;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.flash-stack {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: grid;
  gap: 0.65rem;
  width: min(92vw, 620px);
}

.flash-message {
  margin: 0;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--text-main);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.flash-success {
  background: rgba(28, 140, 93, 0.92);
}

.flash-error {
  background: rgba(182, 65, 65, 0.92);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding-bottom: 2.5rem;
}

.subpage-shell {
  padding-bottom: 4rem;
}

.bg-shape {
  --mouse-x: 0px;
  --mouse-y: 0px;
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  animation: drift 14s ease-in-out infinite alternate;
}

.blob-gold {
  width: 280px;
  height: 280px;
  top: 7rem;
  left: -4rem;
  background: rgba(240, 199, 94, 0.82);
}

.blob-blue {
  width: 360px;
  height: 360px;
  right: -5rem;
  bottom: 10rem;
  background: rgba(95, 162, 239, 0.58);
}

.site-header,
.site-footer,
.glass-wrapper {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.25rem 0 1.5rem;
}

.glass-wrapper {
  display: grid;
  gap: 1.35rem;
}

.site-footer {
  margin-top: 1.35rem;
}

.glass-panel,
.glass-card {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 20px 44px var(--shadow);
}

.glass-panel {
  border-radius: 24px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid transparent;
  padding: clamp(1.35rem, 2.5vw, 2.25rem);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(240, 199, 94, 0.2) 100%
    );
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 60% 70%,
      rgba(0, 0, 0, 0.01) 1px,
      transparent 1px
    );
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 25px 25px;
  pointer-events: none;
  opacity: 0.5;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  z-index: 1;
}

.glass-card:hover::before,
.glass-card:focus-within::before {
  transform: translateX(100%);
}

/* Filigranes d'icônes Font Awesome en arrière-plan */
.glass-card {
  --icon-filigrane: "";
}

.glass-card::after {
  font-family: "Font Awesome 6 Duotone" !important;
  font-weight: 900;
  position: absolute;
  bottom: -12px;
  right: -8px;
  font-size: 6.5rem;
  opacity: 0.025;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 0;
  line-height: 1;
}

/* Icônes spécifiques par classe de carte */
.hero-card::after { content: "\f57b"; }        /* megaphone */
.method-card::after { content: "\f500"; }      /* user-check */
.manifesto-card::after { content: "\f15b"; }   /* file */
.editorial-card::after { content: "\f249"; }   /* book */
.cta-card::after { content: "\f3cd"; }         /* envelope-open-text */
.constitution-card::after { content: "\f15b"; } /* file */

.glass-card:hover::after {
  opacity: 0.04;
  transform: scale(1.08) rotate(-3deg);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
}

.compact-nav {
  grid-template-columns: auto 1fr;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo {
  width: 62px;
  height: 62px;
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong,
.section-card h2,
.cta-card h2,
.footer-shell h2,
.footer-shell h3,
.subpage-hero h1,
.detail-card h2,
.team-card h3,
.hero-card h1 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-copy small,
.site-nav a,
.text-link,
.footer-shell p,
.footer-shell li,
.section-card p,
.section-card li,
.detail-card p,
.team-card p {
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-nav a i {
  font-size: 0.85em;
  opacity: 0.6;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.site-nav a:hover i,
.site-nav a:focus-visible i {
  opacity: 1;
  color: var(--gold);
}

.site-nav a,
.text-link,
.footer-shell a {
  text-decoration: none;
}

.site-nav a,
.text-link {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.footer-shell a:hover,
.footer-shell a:focus-visible {
  color: var(--text-main);
}

.hero-layout,
.split-grid,
.cta-card {
  display: grid;
  gap: 1.25rem;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.88fr);
  align-items: stretch;
}

.hero-card {
  display: grid;
  gap: 1.4rem;
}

.hero-copy-block {
  max-width: 56ch;
}

.eyebrow,
.panel-label,
.detail-index,
.news-date,
.team-role {
  margin: 0 0 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.lead {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.75;
  color: var(--text-soft);
}

.hero-card h1,
.subpage-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
}

.hero-proof {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(240, 199, 94, 0.28);
  background: rgba(8, 29, 54, 0.34);
}

.hero-proof p,
.hero-proof strong {
  margin: 0;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.journey-list,
.contact-points,
.footer-shell ul {
  margin: 0;
  padding: 0;
}

.journey-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.journey-list li,
.trust-card,
.mandate-item,
.timeline-step,
.news-card,
.team-card,
.detail-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.journey-list li {
  padding: 1rem 1rem 1rem 1.05rem;
}

.journey-list strong,
.mandate-item h3,
.team-card h3 {
  display: block;
  margin-bottom: 0.35rem;
}

.journey-list span {
  color: var(--text-soft);
  line-height: 1.6;
}

.hero-panel {
  padding: 1.35rem;
}

.trust-strip,
.info-grid,
.mandate-grid,
.news-grid,
.team-grid,
.detail-grid {
  display: grid;
  gap: 1rem;
}

.trust-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card {
  padding: 1rem 1.1rem;
  text-align: center;
}

.trust-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.trust-card p,
.contact-points li,
.footer-shell li {
  margin: 0;
  line-height: 1.6;
}

.content-grid {
  display: grid;
  gap: 1.35rem;
}

.section-card {
  text-align: left;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-card h2,
.detail-card h2,
.team-card h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.team-card h3 {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.info-grid,
.mandate-grid,
.news-grid,
.team-grid,
.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid > div,
.mandate-item,
.news-card,
.team-card,
.detail-card,
.timeline-step {
  padding: 1rem 1.05rem;
}

.info-grid h3,
.timeline-step strong,
.news-card strong {
  margin: 0 0 0.45rem;
  display: block;
}

.mandate-item span {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  color: var(--gold);
}

.mandate-item p,
.news-card p,
.team-card p,
.detail-card p,
.timeline-step p {
  margin: 0;
  line-height: 1.7;
}

.split-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.9fr);
}

.preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.cta-card {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.contact-points {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.contact-points:not(.fa-ul) li::before {
  content: "+ ";
  color: var(--gold);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 24, 45, 0.36);
}

.contact-form label {
  font-weight: 700;
}

.contact-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form legend {
  margin: 0 0 0.7rem;
  padding: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  transition: background 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out,
    transform 0.2s ease-out;
}

.contact-form input[type="checkbox"],
.contact-form input[type="radio"] {
  width: auto;
  padding: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(246, 251, 255, 0.45);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.btn-glass:focus-visible,
.site-nav a:focus-visible,
.footer-shell a:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(240, 199, 94, 0.2);
  transform: scale(1.01);
}

.contact-form :is(input, select, textarea):required:valid {
  border-color: rgba(240, 199, 94, 0.7);
  box-shadow: 0 0 0 1px rgba(240, 199, 94, 0.3) inset;
}

.contact-form :is(input, select, textarea):required:invalid:focus {
  border-color: rgba(214, 96, 96, 0.8);
}

.member-cta {
  border-color: rgba(240, 199, 94, 0.32);
  box-shadow: 0 26px 54px rgba(3, 13, 30, 0.48);
}

.member-cta .contact-form {
  background: rgba(4, 20, 37, 0.58);
}

.grid-form {
  gap: 1rem;
}

.form-section {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-main);
}

.inline-check input[type="checkbox"] {
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.statutes-accordion {
  display: grid;
  gap: 0.65rem;
}

.statut-item {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.statut-item[open] {
  border-color: rgba(240, 199, 94, 0.64);
  background: rgba(255, 255, 255, 0.08);
}

.statut-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.statut-item summary::-webkit-details-marker {
  display: none;
}

.statut-item summary::after {
  content: "▼";
  color: var(--gold);
  font-size: 0.7rem;
  opacity: 0.6;
  transform: rotate(0deg);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.statut-item[open] summary::after {
  transform: rotate(180deg);
  opacity: 1;
}

.statut-content {
  padding: 0 1rem 1rem;
  color: var(--text-soft);
  animation: slideDown 0.3s ease-out;
}

.gold-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.gold-list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.65;
}

.gold-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.82rem;
}

/* Font Awesome icon lists */
.fa-ul {
  margin-left: var(--fa-li-margin, 2.5em) !important;
  list-style: none;
  padding: 0;
}

.fa-li {
  position: relative;
  left: calc(var(--fa-li-width, 1.25em) * -1);
}

.fa-li i,
.fa-ul li i.fa-li {
  color: var(--gold);
  font-size: 0.95em;
  filter: drop-shadow(0 0 6px rgba(240, 199, 94, 0.25));
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

button {
  cursor: pointer;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 199, 94, 0.26), rgba(255, 255, 255, 0.08));
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn-glass:hover,
.btn-glass:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.62);
  background: linear-gradient(135deg, rgba(240, 199, 94, 0.36), rgba(255, 255, 255, 0.16));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
}

.subpage-hero {
  text-align: left;
}

.editorial-card,
.manifesto-card,
.method-card {
  display: grid;
  gap: 1.1rem;
}

.editorial-card > p,
.manifesto-block > p,
.method-card > p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.editorial-card h2,
.manifesto-card h2,
.method-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.editorial-grid,
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.editorial-block,
.manifesto-block {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.editorial-block h3,
.manifesto-block h2 {
  margin: 0 0 0.65rem;
  font-family: "Space Grotesk", sans-serif;
}

.editorial-block p,
.manifesto-block p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.editorial-block p + p,
.manifesto-block p + p {
  margin-top: 0.85rem;
}

.editorial-callout {
  color: var(--text-main) !important;
  font-weight: 700;
}

.method-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.75rem;
}

.method-list li {
  color: var(--text-soft);
  line-height: 1.7;
}

.method-list strong {
  color: var(--text-main);
}

.mandates-hero {
  display: grid;
  gap: 1.4rem;
}

.mandates-hero-note {
  max-width: 58ch;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(240, 199, 94, 0.24);
  background: rgba(8, 29, 54, 0.3);
}

.mandates-hero-note strong,
.mandate-block h3,
.mandate-note strong {
  display: block;
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", sans-serif;
}

.mandates-hero-note p,
.mandate-note p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-soft);
}

.mandate-overview-grid {
  align-items: stretch;
}

.mandate-summary-card {
  display: grid;
  align-content: start;
  min-height: 100%;
}

.mandate-detail-stack,
.mandate-block-grid,
.mandate-notes {
  display: grid;
  gap: 1rem;
}

.mandate-detail-card {
  display: grid;
  gap: 1.35rem;
}

.mandate-detail-head {
  max-width: 72ch;
}

.mandate-detail-intro {
  margin-top: 0.35rem;
}

.mandate-block-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mandate-block,
.mandate-note {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.mandate-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.mandate-list li {
  color: var(--text-soft);
  line-height: 1.7;
}

.mandate-notes {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 1rem;
  padding: 1.25rem;
}

.footer-shell h2,
.footer-shell h3 {
  margin: 0 0 0.75rem;
}

.footer-shell ul {
  list-style: none;
}

.footer-shell li + li {
  margin-top: 0.45rem;
}

@keyframes drift {
  from {
    transform: translate3d(var(--mouse-x), var(--mouse-y), 0) translate3d(-24px, -18px, 0);
  }
  to {
    transform: translate3d(var(--mouse-x), var(--mouse-y), 0) translate3d(28px, 22px, 0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .split-grid,
  .preview-grid,
  .cta-card,
  .footer-shell,
  .editorial-grid,
  .manifesto-grid,
  .mandate-block-grid,
  .trust-strip,
  .info-grid,
  .mandate-grid,
  .news-grid,
  .team-grid,
  .detail-grid,
  .nav-shell,
  .compact-nav {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .nav-shell {
    justify-items: start;
  }
}

@media (max-width: 768px) {
  .site-header,
  .site-footer,
  .glass-wrapper {
    width: min(100% - 1.5rem, 1180px);
  }

  .brand {
    align-items: flex-start;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .hero-card h1,
  .subpage-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .glass-card,
  .glass-panel,
  .contact-form {
    border-radius: 22px;
  }

  .bg-shape {
    opacity: 0.4;
    filter: blur(100px);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hero-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-glass {
    width: 100%;
  }

  .flash-stack {
    width: calc(100% - 1rem);
  }
}

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