/* ==========================================================================
   ALTER SAS — feuille de styles
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --accent: #BE1E3C;          /* rouge ALTER */
  --accent-dark: #A0172F;
  --c-musique: #6E6850;       /* taupe Musique Alter */
  --c-alsa: #B81C3B;          /* rouge Alsa Event */
  --c-milkshake: #2CA9DF;     /* bleu Milkshake (décoratif) */
  --c-milkshake-text: #1B7FB0;/* bleu Milkshake lisible sur fond clair */

  /* Neutres */
  --ink: #232325;
  --text: #4A4C4F;
  --text-muted: #5F6164;
  --line: #ECECEA;
  --line-strong: #DCDCD8;
  --bg: #FFFFFF;
  --bg-rose: #FBF1F3;
  --bg-grey: #F7F7F5;
  --on-red-soft: #FBE9EC;

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --header-h: 88px;
  --radius: 10px;
}

/* --- Base ---------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }

section[id],
article[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

.accent { color: var(--accent); }

.eyebrow {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--muted { color: var(--text-muted); margin-bottom: 20px; }
.eyebrow--light { color: var(--on-red-soft); }

.section-title {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

/* Soulignement animé (gauche → droite) */
.underline {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 3px;
  transition: background-size 0.3s ease;
}
a.underline:hover,
a.underline:focus-visible,
a:hover > .underline,
a:focus-visible > .underline { background-size: 100% 2px; }

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot, var(--brand));
  flex: none;
}

/* --- Boutons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
}
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFFFFF; }

.btn__arrow { transition: transform 0.25s ease; }
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translateX(5px); }

.btn--secondary {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid #D6D6D3;
}
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 20px;
}

.site-header__logo img { height: 40px; width: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}
.nav a { display: inline-block; padding: 10px 0; text-decoration: none; }

/* --- Accueil ------------------------------------------------------------- */

.hero { background: var(--bg-rose); }

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 72px;
  padding-block: 96px 104px;
}

.hero__text { flex: 1 1 520px; min-width: 0; }

.hero__title {
  font-weight: 800;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 560px;
  margin-top: 28px;
  font-size: 19px;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.brand-list {
  flex: 1 1 380px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--accent);
}

.brand-list__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  border-bottom: 1px solid #EBD9DD;
  text-decoration: none;
}

.brand-list__text { display: flex; flex-direction: column; gap: 2px; }

.brand-list__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  transition: color 0.2s ease;
}

.brand-list__desc { font-size: 14px; color: var(--text-muted); }

.brand-list__item:hover .brand-list__name,
.brand-list__item:focus-visible .brand-list__name { color: var(--brand); }

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

.section { padding-block: 96px; }
.section--grey { background: var(--bg-grey); }

.section--red {
  background: var(--accent);
  color: #FFFFFF;
}
.section--red a { color: #FFFFFF; }
.section--red a:hover { color: #FFFFFF; }

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 80px;
}
.split__head { flex: 1 1 340px; min-width: 0; }
.split__body { flex: 1.5 1 520px; min-width: 0; font-style: normal; }
.split__text { margin-top: 20px; max-width: 420px; font-size: 17px; color: var(--on-red-soft); }

.lead { font-size: 18px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.55);
}
.pillar h3 { font-size: 18px; font-weight: 700; }
.pillar p { font-size: 15px; color: var(--on-red-soft); }

/* --- Nos sociétés -------------------------------------------------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 64px;
  margin-bottom: 48px;
}
.section-head > div { flex: 1 1 420px; min-width: 0; }
.section-head__text { flex: 1 1 360px; min-width: 0; font-size: 17px; color: var(--text); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E6E6E3;
  border-top: 6px solid var(--dot, var(--brand));
  border-radius: var(--radius);
}

.card__logo {
  height: 220px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #EFEFEC;
}
.card__logo img { width: auto; max-width: 100%; object-fit: contain; }

.card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}

.card__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.card__tag .dot { width: 8px; height: 8px; }

.card__title { font-size: 24px; font-weight: 700; }
.card__text { font-size: 15px; color: var(--text); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 13px;
  font-weight: 500;
}

/* E-mail et lien poussés en bas : alignés d'une carte à l'autre */
.card__mail {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}
.card__mail:hover,
.card__mail:focus-visible { color: var(--brand); }

.card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}
.card__link:hover { color: var(--brand); }

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

.contact-list {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  margin: 0;
  font-size: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.contact-list dt,
.contact-list dd {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.contact-list dt { padding-right: 16px; font-size: 14px; font-weight: 600; color: var(--on-red-soft); }
.contact-list dd { font-weight: 500; overflow-wrap: anywhere; }

/* --- Mentions légales ---------------------------------------------------- */

.legal-head { max-width: 760px; }
.legal-head__text { margin-top: 20px; color: var(--text); }
.legal-toggle { margin-top: 28px; }
.legal-toggle__chevron { transition: transform 0.25s ease; }
.legal-toggle[aria-expanded="true"] .legal-toggle__chevron { transform: rotate(180deg); }

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 48px;
}
.legal-content[hidden] { display: none; }

.legal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.panel--wide { flex: 1.4 1 460px; min-width: 0; }
.legal-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.panel {
  padding: 32px;
  background: #FFFFFF;
  border: 1px solid #E6E6E3;
  border-radius: var(--radius);
}
.panel h3 { margin-bottom: 16px; font-size: 20px; font-weight: 700; }
.panel p { font-size: 15px; color: var(--text); }

.facts {
  display: grid;
  grid-template-columns: minmax(130px, 220px) minmax(0, 1fr);
  margin: 0;
  font-size: 15px;
}
.facts--narrow { grid-template-columns: minmax(110px, 140px) minmax(0, 1fr); }
.facts dt,
.facts dd {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid #EFEFEC;
}
.facts dt { padding-right: 16px; color: var(--text-muted); }
.facts dd { font-weight: 500; overflow-wrap: anywhere; }

.legal-texts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.legal-texts h3 { margin-bottom: 10px; font-size: 17px; font-weight: 700; }
.legal-texts p { font-size: 14px; line-height: 1.7; color: var(--text); }

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

.site-footer { border-top: 1px solid var(--line); }

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 64px;
  padding-top: 56px;
}

.site-footer__brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand img { height: 34px; width: auto; align-self: flex-start; }
.site-footer__brand p { max-width: 320px; font-size: 14px; color: var(--text-muted); }

.footer-nav { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.footer-nav a { padding: 4px 0; text-decoration: none; }
.footer-nav__title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-dots { display: flex; align-items: center; gap: 6px; }
.footer-dots span { width: 6px; height: 6px; border-radius: 50%; }
.footer-dots span:nth-child(1) { background: var(--c-musique); }
.footer-dots span:nth-child(2) { background: var(--c-alsa); }
.footer-dots span:nth-child(3) { background: var(--c-milkshake); }

/* --- Petits écrans ------------------------------------------------------- */

@media (max-width: 640px) {
  :root { --header-h: 100px; }
  .site-header__inner { padding-block: 10px 4px; gap: 4px; }
  .site-header__logo img { height: 30px; }
  .site-header nav { width: 100%; }
  .nav {
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 14px;
    white-space: nowrap;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 0; }
  .hero__inner { padding-block: 64px 72px; }
  .section { padding-block: 72px; }
  .panel { padding: 24px; }
  .card__logo { height: 180px; }
}

/* --- Mouvements réduits -------------------------------------------------- */

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