/* ══════════════════════════════════════════════════════════
   EVO GROUPE — site vitrine
   Tokens dérivés de la plaquette print (RTP Plaquette Evo)
   ══════════════════════════════════════════════════════════ */

:root {
  --bordeaux: #7B2130;
  --bordeaux-deep: #4E1220;
  --night: #170a0e;
  --paper: #F3F2F4;
  --paper-2: #EAE8EC;
  --white: #FFFFFF;
  --ink: #322A2E;
  --ink-soft: #6B6067;
  --line: rgba(50, 42, 46, 0.14);

  --font-display: "Bodoni Moda", "Didot", serif;
  --font-italic: "Cormorant", serif;
  --font-body: "EB Garamond", Georgia, serif;
  --font-utility: "Montserrat", "Helvetica Neue", sans-serif;

  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

/* ── Typographie commune ─────────────────────────────── */

.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: 0.86em;
}

.eyebrow {
  font-family: var(--font-utility);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 1.1rem;
}

/* ── Le mark EVO (cercle ouvert + wordmark) ──────────── */

.mark {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--mark-size, 200px);
  aspect-ratio: 1;
  color: var(--mark-color, var(--white));
}

.mark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-56deg);
}

.mark circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-dasharray: 86 14; /* cercle ouvert, comme sur la plaquette */
  stroke-linecap: round;
}

.mark .mark-evo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(var(--mark-size, 200px) * 0.30);
  line-height: 1;
  letter-spacing: 0.05em;
  transform: translateY(-14%);
}

.mark .mark-sub {
  position: absolute;
  top: 60%;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: calc(var(--mark-size, 200px) * 0.062);
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* compense le tracking sur la dernière lettre */
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 0.55em 0.9em;
  white-space: nowrap;
  background: var(--mark-sub-bg, transparent);
}

/* ── Navigation ──────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  background: rgba(243, 242, 244, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.nav-brand-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--bordeaux);
}

.nav-brand-circle svg {
  position: absolute;
  inset: 0;
  transform: rotate(-56deg);
}

.nav-brand-circle svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-dasharray: 86 14;
  stroke-linecap: round;
}

.nav-brand-circle > span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--bordeaux);
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.nav-brand-name small {
  display: block;
  font-family: var(--font-utility);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
}

.nav-links a {
  font-family: var(--font-utility);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.25s ease;
}

.nav-links a:hover { color: var(--bordeaux); }

.nav-links .nav-cta {
  color: var(--white);
  background: var(--bordeaux);
  padding: 0.65em 1.4em;
  transition: background 0.25s ease;
}

.nav-links .nav-cta:hover { color: var(--white); background: var(--bordeaux-deep); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}

.nav-burger span {
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(123, 33, 48, 0.82) 0%, rgba(123, 33, 48, 0.9) 45%, rgba(23, 10, 14, 0.96) 100%),
    url("assets/hero-hall.jpg") center / cover no-repeat;
  background-blend-mode: multiply, normal;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vh, 3.2rem);
  animation: hero-in 1.4s ease both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.mark-hero { --mark-size: clamp(200px, 30vw, 290px); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hero-title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: 0.82em;
}

.hero-divisions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  font-family: var(--font-utility);
  font-size: clamp(0.68rem, 1.4vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-divisions a {
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.hero-divisions a:hover { border-color: currentColor; }

.hero-divisions span { opacity: 0.55; }

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--white);
  animation: scroll-cue 2s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(12px); opacity: 0.2; }
}

/* ── Le groupe ───────────────────────────────────────── */

.groupe { padding: clamp(5rem, 10vw, 8.5rem) 0; }

.groupe-inner {
  display: grid;
  gap: 3rem;
  max-width: 880px;
  text-align: center;
}

.groupe .title { color: var(--ink); }

.groupe .title em { color: var(--bordeaux); }

.groupe-text {
  display: grid;
  gap: 1.4rem;
  font-size: 1.18rem;
  color: var(--ink-soft);
}

.values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.values li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--bordeaux);
}

.values svg { width: 52px; height: 52px; }

.values span {
  font-family: var(--font-utility);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── Filiales ────────────────────────────────────────── */

.filiale { padding: clamp(4rem, 8vw, 7rem) 0; }

.filiale:nth-of-type(even) { background: var(--paper-2); }

.filiale-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

/* alternance : photo à droite une section sur deux */
.filiale:nth-of-type(odd) .filiale-media { order: 2; }
.filiale:nth-of-type(odd) .filiale-text { order: 1; }

.filiale-media {
  position: relative;
}

/* signature plaquette : bande de couleur décalée derrière la photo */
.filiale-media::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 55%;
  background: var(--c);
}

.filiale:nth-of-type(odd) .filiale-media::before {
  right: auto;
  left: -1.5rem;
}

.filiale-media img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.filiale-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.3rem;
}

.mark-division {
  --mark-size: 118px;
  --mark-color: var(--c);
  margin-bottom: 0.4rem;
}

.mark-division .mark-sub { background: var(--paper); }

.filiale:nth-of-type(even) .mark-division .mark-sub { background: var(--paper-2); }

.filiale .title em { color: var(--c); }

.services {
  font-family: var(--font-utility);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 2;
  color: var(--c);
}

.services span { opacity: 0.45; padding-inline: 0.25em; }

.desc { color: var(--ink-soft); }

.desc strong {
  font-weight: 500;
  color: var(--c);
}

.filiale-mail {
  font-family: var(--font-utility);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--c);
  border: 1px solid currentColor;
  padding: 0.75em 1.5em;
  transition: background 0.25s ease, color 0.25s ease;
}

.filiale-mail:hover {
  background: var(--c);
  color: var(--white);
}

/* ── Contact ─────────────────────────────────────────── */

.contact {
  background:
    linear-gradient(180deg, var(--bordeaux) 0%, var(--bordeaux-deep) 70%, var(--night) 100%);
  color: var(--white);
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

.mark-contact { --mark-size: 170px; }

.contact .title em { color: rgba(255, 255, 255, 0.85); }

.contact-details {
  font-style: normal;
  display: grid;
  gap: 1.8rem;
  font-size: 1.2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-family: var(--font-utility);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 2.1em;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-solid {
  background: var(--white);
  color: var(--bordeaux);
}

.btn-solid:hover { background: rgba(255, 255, 255, 0.85); }

.btn-line {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  text-transform: none;
  letter-spacing: 0.08em;
}

.btn-line:hover { background: rgba(255, 255, 255, 0.12); }

.contact-divisions {
  font-family: var(--font-utility);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.contact-divisions span { opacity: 0.5; padding-inline: 0.4em; }

/* ── Footer ──────────────────────────────────────────── */

.footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  padding: 1.6rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

/* ── Reveal au scroll ────────────────────────────────── */
/* masqué uniquement si JS est actif (html.js), sinon tout reste visible */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Ancres sous la nav fixe ─────────────────────────── */

section[id] { scroll-margin-top: var(--nav-h); }

/* ── Accessibilité ───────────────────────────────────── */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 3px;
}

.contact a:focus-visible,
.hero a:focus-visible {
  outline-color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content { animation: none; }
  .hero-scroll span { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    z-index: -1;
  }

  .nav-links a {
    padding: 1.05rem;
    border-top: 1px solid var(--line);
  }

  .nav.open .nav-links { transform: none; }

  .nav.open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-burger { display: flex; }

  .filiale-inner { grid-template-columns: 1fr; }

  .filiale:nth-of-type(odd) .filiale-media { order: 0; }
  .filiale:nth-of-type(odd) .filiale-text { order: 0; }

  .filiale-media { margin-inline: 1.5rem; }

  .values { gap: 1rem; }
}

@media (max-width: 540px) {
  body { font-size: 1.05rem; }

  .values {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-inner { justify-content: center; text-align: center; }
}
