/* ══════════════════════════════════════════════════════════
   DUTRA — Design System Partagé
   Utilisé par toutes les maquettes de pages
   ══════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────── */
@font-face {
  font-family: 'PetrovSans';
  src: url('https://pub-4ddaf75049b84613a3a0e1563788575f.r2.dev/fonts/PetrovSans-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'PetrovSans';
  src: url('https://pub-4ddaf75049b84613a3a0e1563788575f.r2.dev/fonts/PetrovSans-SemiBold.ttf') format('truetype');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'PetrovSans';
  src: url('https://pub-4ddaf75049b84613a3a0e1563788575f.r2.dev/fonts/PetrovSans-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}

/* ── Reset & Variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:         #C91530;
  --red-dark:    #940C23;
  --red-light:   #E8304A;
  --dark:        #202221;
  --mid:         #504E4D;
  --cream:       #DFD7CD;
  --cream-light: #F2EDE7;
  --bg:          #F5F2EE;
  --surface:     #FFFFFF;
  --border:      #E5DED5;
  --radius:      8px;
  --radius-lg:   14px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --max-w:       1280px;
  --header-h:    72px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'PetrovSans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  background: var(--dark);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.header-logo { height: 28px; display: block; flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 40px;
  flex: 1;
}
.nav-link {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 6px;
  transition: color .14s, background .14s;
  letter-spacing: .02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.active { color: var(--red); background: rgba(201,21,48,.12); }

.nav-item { position: relative; }
.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 8px;
  padding-top: 18px;
  min-width: 210px;
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
  z-index: 100;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  transition: color .12s, background .12s;
}
.dropdown a:hover { color: #fff; background: rgba(255,255,255,.07); }
.dropdown a.active { color: var(--red); }

.chevron-sm { width: 12px; height: 12px; transition: transform .2s; }
.nav-item:hover .chevron-sm,
.nav-item:focus-within .chevron-sm { transform: rotate(180deg); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 20px;
  flex-shrink: 0;
}
.btn-espace {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.14);
  transition: all .14s;
  white-space: nowrap;
}
.btn-espace:hover { color: #fff; border-color: rgba(255,255,255,.3); }

.lang-switch {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
}
.lang-switch a {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  padding: 6px 10px;
  transition: all .12s;
  letter-spacing: .04em;
}
.lang-switch a.active { background: var(--red); color: #fff; }
.lang-switch a:hover:not(.active) { color: #fff; background: rgba(255,255,255,.07); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .15s var(--ease);
  letter-spacing: .01em;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,21,48,.35); }
.btn--outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn--outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn--outline-dark { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn--outline-dark:hover { border-color: var(--red); color: var(--red); }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--cream-light); }
.btn--sm { font-size: .8rem; padding: 9px 18px; }
.btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* ── Section basics ─────────────────────────────────────── */
.section { padding: 80px 40px; }
.section--light { background: var(--surface); }
.section--dark { background: var(--dark); }
.section--cream { background: var(--cream-light); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-title em { font-style: normal; color: var(--red); }
.section-sub {
  font-size: .95rem;
  color: var(--mid);
  line-height: 1.65;
  max-width: 560px;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--mid);
  padding: 16px 0;
}
.breadcrumb a { color: var(--mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: rgba(80,78,77,.35); }

/* ── Tags ───────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(201,21,48,.08);
  color: var(--red);
}
.tag--gray { background: rgba(80,78,77,.08); color: var(--mid); }
.tag--dark { background: rgba(32,34,33,.07); color: var(--dark); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  border-top: 3px solid var(--red);
  color: rgba(255,255,255,.55);
  padding: 56px 40px 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 26px; margin-bottom: 16px; opacity: .9; }
.footer-tagline { font-size: .8rem; line-height: 1.65; color: rgba(255,255,255,.35); margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .7rem; font-weight: 700;
  transition: all .12s;
}
.footer-social a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.footer-col h4 {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .82rem;
  padding: 4px 0;
  transition: color .12s;
}
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: .82rem; padding: 3px 0; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.5); }

/* ── Footer CTA band ────────────────────────────────────── */
.footer-cta {
  background: var(--red);
  padding: 64px 40px;
  text-align: center;
}
.footer-cta h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-cta p { font-size: .95rem; color: rgba(255,255,255,.8); margin-bottom: 32px; }
.footer-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Utilitaires accessibilité ──────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Annotation maquette ─────────────────────────────────── */
.maquette-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--dark);
  color: rgba(255,255,255,.65);
  font-size: .66rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1);
  z-index: 9999;
  letter-spacing: .05em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Hamburger / Mobile nav ─────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.mobile-nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.mobile-nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--dark);
  z-index: 490;
  padding: 24px 20px;
  overflow-y: auto;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-open .mobile-nav-overlay { display: flex; }
.mobile-nav-overlay .nav-link {
  font-size: .9rem;
  padding: 12px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.65);
  width: 100%;
}
.mobile-nav-overlay .nav-link.active { color: var(--red); background: rgba(201,21,48,.12); }
.mobile-nav-overlay .mobile-nav-sub {
  display: flex; flex-direction: column; gap: 2px;
  padding-left: 12px; margin-top: 2px;
}
.mobile-nav-overlay .mobile-nav-sub a {
  display: block; font-size: .85rem; font-weight: 600;
  color: rgba(255,255,255,.5); text-decoration: none;
  padding: 10px 14px; border-radius: 6px;
  transition: color .12s, background .12s;
}
.mobile-nav-overlay .mobile-nav-sub a:hover { color: #fff; background: rgba(255,255,255,.07); }
.mobile-nav-divider {
  height: 1px; background: rgba(255,255,255,.07); margin: 12px 0;
}
.mobile-nav-actions {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .section { padding: 60px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .header-inner { padding: 0 20px; }
  .main-nav { display: none; }
  .nav-burger { display: flex; }
  .site-footer { padding: 40px 24px 24px; }
  .footer-cta { padding: 48px 24px; }
}
