/* ==========================================================================
   MACI Design System
   Autonomous CSS: tokens, reset, typography, layout, components,
   forms, utilities, responsive, accessibility.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Colours */
  --canvas: #FFFFFF;
  --surface-soft: #FAFAF8;
  --surface-card: #F5F4F0;
  --surface-elevated: #ECEAE3;
  --carbon-gray: #E8E5DD;
  --hairline: #D4D0C7;
  --hairline-strong: #B8B3A5;
  --on-dark: #1A1A1A;
  --body: #4A4A4A;
  --body-strong: #2A2A2A;
  --muted: #8A8678;
  --maci-orange: #FF6A00;
  --maci-orange-deep: #C2410C;
  --maci-anthracite: #1A1A1A;

  /* Spacing: 4 px base */
  --xxs: 4px;
  --xs: 8px;
  --sm: 12px;
  --md: 16px;
  --lg: 24px;
  --xl: 32px;
  --2xl: 48px;
  --3xl: 64px;
  --section: 96px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--maci-orange);
  color: #FFFFFF;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  border-radius: 0;
  box-shadow: none;
}

button {
  cursor: pointer;
  border-radius: 0;
}

/* Global radius-0 & no-shadow on interactive / container elements */
button,
input,
select,
textarea,
.btn,
.feature-card,
.model-card,
.motorsport-card,
.devis-launcher,
.blog-card,
.client-card,
.client-table {
  border-radius: 0;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */

/* Display scale: weight 800, UPPERCASE, negative letter-spacing */

.display-xl {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.display-lg {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.display-md {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.display-sm {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--on-dark);
}

/* <em> inside display classes = orange, no italic */
.display-xl em,
.display-lg em,
.display-md em,
.display-sm em {
  color: var(--maci-orange);
  font-style: normal;
}

/* Label uppercase */
.label-uppercase {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--body-strong);
}

/* Caption: JetBrains Mono */
.caption {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Text-wrap helpers */
h1 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--lg); /* 24px mobile */
}

.section-padding {
  padding-block: var(--section); /* 96px */
}

/* --------------------------------------------------------------------------
   5. COMPONENTS
   -------------------------------------------------------------------------- */

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--xs);
  height: 48px;
  padding-inline: 32px;
  border: 1px solid var(--on-dark);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--on-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn::after {
  content: '→';
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover {
  background-color: var(--on-dark);
  color: var(--canvas);
}

.btn:hover::after {
  transform: translateX(4px);
}

/* Accent (primary) */
.btn--accent {
  background-color: var(--maci-orange);
  border-color: var(--maci-orange);
  color: #FFFFFF;
}

.btn--accent:hover {
  background-color: var(--maci-orange-deep);
  border-color: var(--maci-orange-deep);
  color: #FFFFFF;
}

/* Icon button: only exception to radius 0 */
.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

.btn--icon::after {
  content: none;
}

/* --- Text link ------------------------------------------------------------ */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--xs);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
  cursor: pointer;
  transition: color 0.2s ease;
}

.text-link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--maci-orange-deep);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* --- Feature card --------------------------------------------------------- */

.feature-card {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
  padding: var(--xl);
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--maci-orange);
}

/* --- Model card ----------------------------------------------------------- */

.model-card {
  background-color: var(--canvas);
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

/* --- Testimonials columns -------------------------------------------------- */

.testimonials-section {
  overflow: hidden;
}

.testimonials-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--lg);
  max-height: 680px;
  margin-top: var(--2xl);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

.testimonials-column {
  display: block;
  overflow: hidden;
}

.testimonials-column--2,
.testimonials-column--3 {
  display: none;
}

.testimonials-column__track {
  display: flex;
  flex-direction: column;
  gap: var(--lg);
  padding-bottom: var(--lg);
  animation: testimonials-column-scroll 15s linear infinite;
  will-change: transform;
}

.testimonials-column--2 .testimonials-column__track {
  animation-duration: 19s;
  animation-delay: -7s;
}

.testimonials-column--3 .testimonials-column__track {
  animation-duration: 17s;
  animation-delay: -4s;
}

.testimonial-quote-card {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background-color: var(--canvas);
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.08);
  color: var(--body);
  padding: clamp(24px, 3vw, 32px);
}

.testimonial-quote-card__rating {
  display: inline-flex;
  margin-bottom: var(--md);
  color: var(--maci-orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.testimonial-quote-card p {
  color: var(--body-strong);
  font-size: 16px;
  line-height: 1.62;
}

.testimonial-quote-card__person {
  display: flex;
  align-items: center;
  gap: var(--sm);
  margin-top: var(--lg);
  padding-top: var(--md);
  border-top: 1px solid var(--hairline);
}

.testimonial-quote-card__person img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--surface-soft);
}

.testimonial-quote-card__person strong,
.testimonial-quote-card__person span {
  display: block;
}

.testimonial-quote-card__person strong {
  color: var(--on-dark);
  font-size: 15px;
  line-height: 1.3;
}

.testimonial-quote-card__person span {
  margin-top: 2px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.35;
}

.testimonials-scroll {
  display: flex;
  gap: var(--lg);
  max-width: 360px;
  margin-inline: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--md);
}

.testimonials-scroll > * {
  scroll-snap-align: start;
  flex: 0 0 320px;
}

.motorsport-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  color: var(--body);
  background-color: var(--canvas);
}

.motorsport-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.motorsport-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--lg);
}

.motorsport-card__badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: var(--sm);
  color: var(--maci-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.motorsport-card h4 {
  margin-bottom: var(--xs);
  color: var(--on-dark);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
}

.motorsport-card p {
  color: var(--body);
  font-size: 15px;
  line-height: 1.55;
}

.motorsport-card p + p {
  margin-top: var(--md);
  padding-top: var(--sm);
  border-top: 1px solid var(--hairline);
  color: var(--body-strong);
  font-size: 14px;
  line-height: 1.45;
}

@keyframes testimonials-column-scroll {
  to {
    transform: translateY(-50%);
  }
}

/* --- Section hero --------------------------------------------------------- */

.section-hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 76px);
  background-color: var(--surface-soft);
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.9) 100%);
  padding-block: clamp(64px, 10vh, 96px);
}

.section-hero > .container {
  width: 100%;
}

.section-hero .hero-content {
  max-width: 900px;
}

.section-hero .display-xl {
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-hero .hero-content .desc {
  max-width: 720px;
  margin-top: var(--md);
}

.section-hero .hero-content .desc p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
}

.section-hero .hero-buttons {
  display: flex;
  gap: var(--md);
  margin-top: var(--lg);
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: var(--lg);
  flex-wrap: wrap;
  margin-top: var(--lg);
}

.hero-trust span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: var(--xxs);
}

.hero-trust i {
  color: var(--maci-orange);
}

.hero-visual {
  display: none;
}

.hero-visual__tile {
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 8px;
  background: var(--surface-elevated);
}

.hero-visual__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual__tile--main img {
  object-position: 55% 50%;
}

.hero-visual__tile--top img {
  object-position: 45% 50%;
}

.hero-visual__tile--bottom img {
  object-position: 48% 45%;
}

/* --- Section counters ------------------------------------------------------ */

.section-counters {
  background-color: var(--surface-card);
  padding-block: var(--section);
}

.section-counters .counter-content-area {
  display: flex;
  justify-content: space-between;
  gap: var(--xl);
  flex-wrap: wrap;
}

.section-counters .counter-item {
  flex: 1 1 200px;
  text-align: center;
}

/* --- Section about -------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--2xl);
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--md);
}

.about-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-main {
  grid-row: 1 / 3;
}

.about-content .label-uppercase {
  display: block;
  margin-bottom: var(--md);
  color: var(--maci-orange);
}

.about-content .display-lg {
  margin-bottom: var(--lg);
}

.about-desc p {
  margin-bottom: var(--md);
  max-width: 600px;
}

.about-desc p:last-child {
  margin-bottom: 0;
}

.about-button {
  margin-top: var(--xl);
}

/* --- Services section ------------------------------------------------------ */

.services-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--2xl);
}

.services-header .label-uppercase {
  display: block;
  margin-bottom: var(--md);
  color: var(--maci-orange);
}

.services-header .display-lg {
  margin-bottom: var(--lg);
}

.services-header p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--lg);
}

.services-grid .feature-card h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--on-dark);
  margin-bottom: var(--sm);
}

.services-grid .feature-card h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.services-grid .feature-card h4 a:hover {
  color: var(--maci-orange);
}

.services-grid .feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

.services-cta {
  text-align: center;
  margin-top: var(--xl);
}

/* --- Contact section ------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--2xl);
  align-items: start;
}

.contact-info .label-uppercase {
  display: block;
  margin-bottom: var(--md);
  color: var(--maci-orange);
}

.contact-info .display-lg {
  margin-bottom: var(--lg);
}

.contact-desc p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 600px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--lg);
  margin-top: var(--xl);
}

.contact-detail-item .label-uppercase {
  display: block;
  margin-bottom: var(--xxs);
  color: var(--body-strong);
}

.contact-detail-item a {
  font-weight: 700;
  font-size: 18px;
  color: var(--on-dark);
  transition: color 0.2s ease;
}

.contact-detail-item a:hover {
  color: var(--maci-orange);
}

/* --- Devis launcher ------------------------------------------------------- */

.devis-launcher {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
  padding: var(--xl);
}

/* --- MACI stripe ---------------------------------------------------------- */

.maci-stripe {
  display: flex;
  height: 4px;
  width: 100%;
}

.maci-stripe::before {
  content: '';
  flex: 1;
  background-color: var(--maci-orange);
}

.maci-stripe span {
  flex: 1;
  background-color: var(--maci-orange-deep);
}

.maci-stripe::after {
  content: '';
  flex: 1;
  background-color: var(--maci-anthracite);
}

/* --- Nav sticky ----------------------------------------------------------- */

.nav-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: none;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .nav-sticky {
    background: rgba(255, 255, 255, 0.95);
  }
}

.nav-sticky__inner {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--lg);
}

.nav-sticky__logo,
.nav-sticky__cta,
.nav-sticky__burger {
  position: relative;
  z-index: 2;
}

.nav-sticky__logo img {
  max-height: 48px;
  display: block;
}

.nav-sticky__menu {
  display: none;
  align-items: center;
  gap: var(--lg);
}

.nav-sticky__menu > li > a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--on-dark);
  text-decoration: none;
  padding: var(--xs) 0;
  transition: color 0.2s ease;
}

.nav-sticky__menu > li > a:hover,
.nav-sticky__menu > li > a[aria-current="page"] {
  color: var(--maci-orange);
}

/* Submenu */
.has-submenu {
  position: relative;
}

.nav-sticky__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: var(--xs) 0;
  z-index: 110;
}

.has-submenu:hover > .nav-sticky__submenu,
.has-submenu:focus-within > .nav-sticky__submenu {
  display: block;
}

.nav-sticky__submenu a {
  display: block;
  padding: var(--xs) var(--md);
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-sticky__submenu a:hover {
  color: var(--maci-orange);
  background-color: var(--surface-soft);
}

.nav-sticky__cta {
  display: none;
}

/* Burger button */
.nav-sticky__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-sticky__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--on-dark);
  transition: transform 0.2s ease;
}

/* --- Mobile off-canvas menu ----------------------------------------------- */

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  z-index: 200;
  background: var(--canvas);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu[aria-hidden="false"] {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--md) var(--lg);
  border-bottom: 1px solid var(--hairline);
}

.mobile-menu__header img {
  max-height: 40px;
}

.mobile-menu__close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--on-dark);
  cursor: pointer;
  padding: var(--xs);
  line-height: 1;
}

.mobile-menu__list {
  padding: var(--md) 0;
  flex: 1;
}

.mobile-menu__list > li > a,
.mobile-menu__toggle {
  display: block;
  width: 100%;
  padding: var(--sm) var(--lg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--on-dark);
  text-decoration: none;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mobile-menu__list > li > a:hover,
.mobile-menu__toggle:hover {
  color: var(--maci-orange);
}

.mobile-menu__sublist {
  padding: 0 0 var(--xs) 0;
}

.mobile-menu__sublist a {
  display: block;
  padding: var(--xs) var(--lg) var(--xs) var(--2xl);
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu__sublist a:hover {
  color: var(--maci-orange);
}

.mobile-menu__footer {
  padding: var(--md) var(--lg);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: var(--xs);
  font-size: 14px;
}

/* --- Footer anthracite ---------------------------------------------------- */

.footer-anthracite {
  background-color: var(--maci-anthracite);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--3xl);
}

.footer-anthracite h3,
.footer-anthracite h4,
.footer-anthracite h5,
.footer-anthracite h6 {
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--md);
}

.footer-anthracite a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-anthracite a:hover {
  color: #FFFFFF;
}

.footer-anthracite ul {
  display: flex;
  flex-direction: column;
  gap: var(--xs);
}

.footer-anthracite ul li {
  font-size: 14px;
  line-height: 1.6;
}

.footer-anthracite__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--xl);
}

.footer-anthracite__bottom {
  margin-top: var(--2xl);
  padding-top: var(--lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  text-align: center;
}

/* --- Sticky phone (mobile CTA bar) --------------------------------------- */

.sticky-phone {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  background-color: var(--maci-orange);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. FORMS
   -------------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="date"],
select {
  height: 48px;
  width: 100%;
  padding-inline: var(--md);
  border: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
  background-color: var(--canvas);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-dark);
  transition: border-color 0.2s ease;
}

textarea {
  width: 100%;
  padding: var(--sm) var(--md);
  border: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
  background-color: var(--canvas);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-dark);
  resize: vertical;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: var(--on-dark);
  outline: 2px solid var(--maci-orange);
  outline-offset: 2px;
}

/* Checkboxes & radios */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background-color: var(--canvas);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--maci-orange);
  border-color: var(--maci-orange);
}

input[type="checkbox"]:checked::before {
  content: '✓';
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}

input[type="radio"]:checked::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #FFFFFF;
}

/* Form field wrapper */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--xxs);
}

/* Form actions */
.form-actions {
  padding-top: var(--md);
}

/* --------------------------------------------------------------------------
   7. UTILITIES
   -------------------------------------------------------------------------- */

/* Skip link: visible on focus only */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--md);
  z-index: 200;
  padding: var(--xs) var(--md);
  background-color: var(--maci-orange);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0;
}

.skip-link:focus {
  top: var(--xs);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Surface background utilities */
.bg-canvas { background-color: var(--canvas); }
.bg-surface-soft { background-color: var(--surface-soft); }
.bg-surface-card { background-color: var(--surface-card); }
.bg-surface-elevated { background-color: var(--surface-elevated); }

/* --------------------------------------------------------------------------
   8. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Tablet: 768px */
@media (min-width: 768px) {
  .container {
    padding-inline: var(--xl); /* 32px */
  }

  .sticky-phone {
    display: none;
  }

  .footer-anthracite__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .testimonials-columns {
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: center;
    max-height: 720px;
  }

  .testimonials-column--2 {
    display: block;
  }
}

/* Desktop: 1024px */
@media (min-width: 1024px) {
  .container {
    padding-inline: 40px;
  }

  .section-hero > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    align-items: center;
    gap: clamp(40px, 5vw, 88px);
  }

  .section-hero .hero-content {
    max-width: 820px;
  }

  .hero-visual {
    display: block;
    position: relative;
    min-height: clamp(440px, 55vh, 560px);
  }

  .hero-visual__tile {
    position: absolute;
  }

  .hero-visual__tile--main {
    left: 0;
    top: 18%;
    z-index: 2;
    width: 62%;
    height: 50%;
  }

  .hero-visual__tile--top {
    right: 0;
    top: 0;
    z-index: 3;
    width: 52%;
    height: 38%;
  }

  .hero-visual__tile--bottom {
    right: 8%;
    bottom: 0;
    z-index: 1;
    width: 48%;
    height: 42%;
  }

  .nav-sticky__menu {
    display: flex;
  }

  .nav-sticky__cta {
    display: inline-flex;
  }

  .nav-sticky__burger {
    display: none;
  }

  .footer-anthracite__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials-columns {
    grid-template-columns: repeat(3, minmax(0, 340px));
    max-width: 1120px;
    max-height: 740px;
    margin-inline: auto;
  }

  .testimonials-column--3 {
    display: block;
  }
}

/* Wide desktop: center the menu independently from logo and CTA. */
@media (min-width: 1200px) {
  .nav-sticky__menu {
    position: absolute;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
  }
}

/* Mobile overrides (max-width) */
@media (max-width: 767px) {
  /* Full-width buttons on mobile */
  .btn {
    width: 100%;
  }

  /* Stack columns */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  /* Services grid stacks on mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Reduced section padding on mobile */
  .section-padding {
    padding-block: var(--2xl); /* 48px instead of 96px */
  }

  .testimonials-columns {
    max-height: 620px;
    margin-top: var(--xl);
  }

  .testimonial-quote-card {
    padding: var(--lg);
  }
}

/* --------------------------------------------------------------------------
   9. ACCESSIBILITY
   -------------------------------------------------------------------------- */

/* Focus-visible on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible,
.text-link:focus-visible,
.feature-card:focus-visible,
.blog-card:focus-visible,
.client-card:focus-visible,
.client-table:focus-visible {
  outline: 2px solid var(--maci-orange);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   10. PAGE HEADER (breadcrumb)
   -------------------------------------------------------------------------- */

.page-header-maci {
  background-color: var(--surface-soft);
  padding: var(--2xl) 0;
  text-align: center;
}

.page-header-maci__title {
  margin-bottom: var(--sm);
}

.page-header-maci__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--xs);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.page-header-maci__link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-header-maci__link:hover {
  color: var(--maci-orange);
}

.page-header-maci__link[aria-current="page"] {
  color: var(--body-strong);
  pointer-events: none;
}

.page-header-maci__separator {
  color: var(--hairline-strong);
  user-select: none;
}

/* --------------------------------------------------------------------------
   11. SIDEBAR NAVIGATION
   -------------------------------------------------------------------------- */

.sidebar-nav {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
}

.sidebar-nav__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--body-strong);
  padding: var(--md);
  border-bottom: 1px solid var(--hairline);
  margin: 0;
}

.sidebar-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sm) var(--md);
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.sidebar-nav__item:hover {
  background-color: var(--surface-soft);
}

.sidebar-nav__item::after {
  content: '›';
  color: var(--muted);
  font-size: 16px;
  flex-shrink: 0;
  margin-left: var(--sm);
}

.sidebar-nav__item--active {
  border-left: 3px solid var(--maci-orange);
  background-color: var(--surface-soft);
  font-weight: 700;
  color: var(--on-dark);
}

/* --------------------------------------------------------------------------
   12. SIDEBAR CTA (appel à l'action)
   -------------------------------------------------------------------------- */

.sidebar-cta {
  background-color: var(--maci-anthracite);
  border-radius: 0;
  box-shadow: none;
  padding: var(--xl);
  text-align: center;
  color: #FFFFFF;
}

.sidebar-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: var(--md);
  font-size: 20px;
  color: #FFFFFF;
}

.sidebar-cta__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: var(--xxs);
}

.sidebar-cta__title + p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--md);
}

.sidebar-cta__phone {
  display: block;
  font-weight: 700;
  font-size: 18px;
  color: #FFFFFF;
  text-decoration: none;
  margin-bottom: var(--lg);
  transition: color 0.2s ease;
}

.sidebar-cta__phone:hover {
  color: var(--maci-orange);
}

.sidebar-cta .btn.btn--accent {
  width: 100%;
}

/* --------------------------------------------------------------------------
   13. CONTENT SECTION (layout 2 colonnes)
   -------------------------------------------------------------------------- */

.content-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--xl);
  padding-block: var(--section);
}

/* Mobile: contenu d'abord, sidebar ensuite */
.content-section__main {
  order: 1;
}

.content-section__sidebar {
  order: 2;
}

/* Desktop: sidebar fixe 320px à gauche, contenu fluide à droite */
@media (min-width: 1024px) {
  .content-section {
    grid-template-columns: 320px 1fr;
  }

  .content-section__sidebar {
    order: 0;
  }

  .content-section__main {
    order: 0;
  }

  /* Variante : sidebar à droite (blog, article) */
  .content-section--sidebar-right {
    grid-template-columns: 1fr 320px;
  }
}

/* --------------------------------------------------------------------------
   14. WIZARD PROGRESS (indicateur multi-étapes)
   -------------------------------------------------------------------------- */

.wizard-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: var(--xl) 0;
}

/* --- Dot (step indicator) ------------------------------------------------- */

.wizard-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.wizard-progress__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--carbon-gray);
  color: var(--muted);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Active dot */
.wizard-progress__dot--active {
  background-color: var(--maci-orange);
  color: #FFFFFF;
}

/* Completed dot: check icon */
.wizard-progress__dot--done {
  background-color: var(--maci-orange);
  color: #FFFFFF;
  font-size: 0;
}

.wizard-progress__dot--done::after {
  content: '✓';
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

/* --- Line (connector between dots) ---------------------------------------- */

.wizard-progress__line {
  flex: 1;
  height: 2px;
  background-color: var(--carbon-gray);
  align-self: center;
  margin-top: -18px; /* vertically center with dots (half of 36px) */
  min-width: 40px;
  transition: background-color 0.2s ease;
}

/* Completed line */
.wizard-progress__line--done {
  background-color: var(--maci-orange);
}

/* --- Label (step name below dot) ------------------------------------------ */

.wizard-progress__label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-top: var(--xs);
  max-width: 80px;
}

/* Active step label inherits aria-current styling */
.wizard-progress__dot--active + .wizard-progress__label,
[aria-current="step"] .wizard-progress__label {
  color: var(--on-dark);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 767px) {
  .wizard-progress__line {
    min-width: 20px;
  }

  .wizard-progress__label {
    font-size: 10px;
    max-width: 60px;
  }
}

/* --------------------------------------------------------------------------
   15. BLOG CARD (carte article)
   -------------------------------------------------------------------------- */

.blog-card {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.blog-card:hover {
  border-color: var(--maci-orange);
}

/* --- Image wrapper -------------------------------------------------------- */

.blog-card__image {
  position: relative;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

/* --- Badge (category overlay on image) ------------------------------------ */

.blog-card__badge {
  position: absolute;
  bottom: var(--sm);
  left: var(--sm);
  display: inline-block;
  background-color: var(--on-dark);
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: var(--xxs) var(--xs);
  border-radius: 0;
  line-height: 1.4;
}

/* --- Card body (meta, title, excerpt, link) ------------------------------- */

.blog-card__body {
  padding: var(--lg);
}

/* --- Meta (author, date) -------------------------------------------------- */

.blog-card__meta {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sm);
}

/* --- Title ---------------------------------------------------------------- */

.blog-card__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--on-dark);
  margin-bottom: var(--sm);
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card__title a:hover {
  color: var(--maci-orange);
}

/* --- Excerpt -------------------------------------------------------------- */

.blog-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: var(--lg);
}

/* --- Read more link (uses .text-link) ------------------------------------- */

.blog-card .text-link {
  margin-top: auto;
}

/* --- Blog grid (2 columns on tablet+) ------------------------------------- */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--xl);
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   16. CLIENT CARD (carte espace client)
   -------------------------------------------------------------------------- */

.client-card {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
}

/* --- Header (optional) ---------------------------------------------------- */

.client-card__header {
  background-color: var(--maci-anthracite);
  color: #FFFFFF;
  padding: var(--lg);
}

.client-card__header h2,
.client-card__header h3,
.client-card__header h4 {
  color: #FFFFFF;
  margin: 0;
}

/* --- Body ----------------------------------------------------------------- */

.client-card__body {
  padding: var(--xl);
}

/* --- Variant: stat (horizontal flex: icon + number + label) --------------- */

.client-card--stat {
  display: flex;
  align-items: center;
  gap: var(--lg);
  padding: var(--xl);
}

.client-card--stat .client-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--surface-soft);
  color: var(--maci-orange);
  font-size: 24px;
  flex-shrink: 0;
}

.client-card--stat .client-card__value {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

.client-card--stat .client-card__label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Variant: action (centered: large icon + button) ---------------------- */

.client-card--action {
  text-align: center;
  padding: var(--xl);
}

.client-card--action .client-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--surface-soft);
  color: var(--maci-orange);
  font-size: 28px;
  margin-bottom: var(--md);
}

.client-card--action h3,
.client-card--action h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--on-dark);
  margin-bottom: var(--xs);
}

.client-card--action p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: var(--lg);
}

.client-card--action .btn.btn--accent {
  width: 100%;
}

/* --------------------------------------------------------------------------
   17. CLIENT TABLE (tableau espace client)
   -------------------------------------------------------------------------- */

.client-table {
  background-color: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

/* --- Header (optional title bar) ------------------------------------------ */

.client-table__header {
  background-color: var(--maci-anthracite);
  color: #FFFFFF;
  padding: var(--lg);
}

.client-table__header h2,
.client-table__header h3,
.client-table__header h4 {
  color: #FFFFFF;
  margin: 0;
}

/* --- Table body wrapper (enables horizontal scroll on mobile) ------------- */

.client-table__body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Table element -------------------------------------------------------- */

.client-table table {
  width: 100%;
  border-collapse: collapse;
}

/* --- Table header cells --------------------------------------------------- */

.client-table th {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--body-strong);
  padding: var(--md);
  border-bottom: 2px solid var(--hairline);
  text-align: left;
  white-space: nowrap;
}

/* --- Table data cells ----------------------------------------------------- */

.client-table td {
  padding: var(--md);
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}

/* --- Row hover ------------------------------------------------------------ */

.client-table tbody tr:hover {
  background-color: var(--surface-soft);
}

/* --- Last row: no bottom border ------------------------------------------- */

.client-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Responsive mobile ---------------------------------------------------- */

@media (max-width: 767px) {
  .client-table__body {
    overflow-x: auto;
  }

  .client-table table {
    min-width: 600px;
  }

  /* Stat card grids: stack to 2 columns on mobile */
  .client-card--stat {
    flex-direction: column;
    text-align: center;
    gap: var(--xs);
  }
}

/* --------------------------------------------------------------------------
   18. STATUS BADGE (badge de statut)
   -------------------------------------------------------------------------- */

.status-badge {
  display: inline-block;
  padding: var(--xxs) var(--sm);
  border-radius: 0;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Pending: fond --maci-orange (#FF6A00) opacity 0.15, texte --maci-orange-deep --- */

.status-badge--pending {
  background-color: rgba(255, 106, 0, 0.15);
  color: var(--maci-orange-deep);
}

/* --- Validated: fond --maci-anthracite (#1A1A1A) opacity 0.1, texte --on-dark --- */

.status-badge--validated {
  background-color: rgba(26, 26, 26, 0.1);
  color: var(--on-dark);
}

/* --- Rejected: fond --body (#4A4A4A) opacity 0.1, texte --body --- */

.status-badge--rejected {
  background-color: rgba(74, 74, 74, 0.1);
  color: var(--body);
}

/* --- Admin: fond --maci-orange, texte blanc --- */

.status-badge--admin {
  background-color: var(--maci-orange);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   19. ALERT MACI (messages flash)
   -------------------------------------------------------------------------- */

.alert-maci {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--md);
  background-color: var(--surface-soft);
  border-left: 3px solid var(--hairline-strong);
  border-radius: 0;
  box-shadow: none;
  padding: var(--md) var(--lg);
}

/* --- Success: bordure gauche verte (#28a745) ------------------------------ */

.alert-maci--success {
  border-left-color: #28a745;
}

/* --- Error: bordure gauche --maci-orange-deep ----------------------------- */

.alert-maci--error {
  border-left-color: var(--maci-orange-deep);
}

/* --- Info: bordure gauche --on-dark --------------------------------------- */

.alert-maci--info {
  border-left-color: var(--on-dark);
}

/* --- Close button --------------------------------------------------------- */

.alert-maci .btn--icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.alert-maci .btn--icon:hover {
  color: var(--on-dark);
}
