/* ============================================
   ALICEA — Site Vitrine v2
   Design system "Claude Design" (canvas bb9b8831)
   Pages sources : Accueil, Connexion 3a, Page Métier, Qui sommes-nous
   ============================================ */

/* ============================================
   1. DESIGN TOKENS
   ============================================ */
:root {
  --v2-cream:        #FAF6F1;  /* fond principal */
  --v2-panel:         #F2EEE8;  /* fond des blocs image/placeholder */
  --v2-canvas:         #E9E4DD;  /* rayures placeholder */
  --v2-border:        #D9D3CA;
  --v2-navy:           #161B2A;  /* texte principal / fond inversé */
  --v2-navy-soft:      #3B4152;  /* texte secondaire sur fond clair */
  --v2-gray:           #6B7180;  /* texte tertiaire */
  --v2-gray-light:     #9AA0AE;  /* placeholders input */
  --v2-orange:         #E8734A;  /* accent / CTA */
  --v2-orange-hover:   #C95B33;
  --v2-cream-soft:     #F5F1EB;  /* texte clair sur fond navy */
  --v2-dark-muted:     #A5ABBA;  /* texte secondaire sur fond navy */

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  --pad-inline: clamp(20px, 6vw, 96px);
}

/* ============================================
   2. RESET + BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--v2-cream);
  font-family: var(--font-sans);
  color: var(--v2-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--v2-orange); text-decoration: none; }
a:hover { color: var(--v2-orange-hover); }
input { font-family: inherit; }
input::placeholder { color: var(--v2-gray-light); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.page {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--v2-cream);
  overflow: hidden;
}
.container { padding-inline: var(--pad-inline); }

/* ============================================
   3. NAVIGATION
   ============================================ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding-block: 16px;
}
.site-nav--bordered { border-bottom: 1px solid var(--v2-border); }

.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.brand-mark--on-cream { background: var(--v2-orange); color: #fff; }
.brand-mark--on-orange { background: var(--v2-navy); color: var(--v2-orange); }
.brand-word { font-weight: 700; letter-spacing: .12em; font-size: 16px; }
.brand-word .accent { color: var(--v2-orange); }

.nav-links {
  display: flex; gap: 36px; font-size: 15px; font-weight: 500;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a { color: inherit; }
.nav-actions { display: flex; gap: 12px; align-items: center; }

.nav-toggle {
  display: none;
  width: 32px; height: 32px; position: relative;
  background: none; border: 0; cursor: pointer; color: inherit; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 4px; right: 4px; height: 2px;
  background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 15px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.site-nav.is-open .nav-toggle span { background: transparent; }
.site-nav.is-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); background: currentColor; }
.site-nav.is-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); background: currentColor; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links, .nav-actions { display: none; }
  .site-nav.is-open { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 24px; }
  .site-nav.is-open .nav-links,
  .site-nav.is-open .nav-actions { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
  .site-nav.is-open .nav-actions { gap: 16px; }
}

/* ============================================
   4. BOUTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; border: 0; cursor: pointer;
  white-space: nowrap; transition: background .2s ease, color .2s ease;
}
.btn-sm { padding: 12px 22px; font-size: 15px; }
.btn-lg { padding: 22px 40px; font-size: 19px; }
.btn-dark { background: var(--v2-navy); color: #fff; }
.btn-dark:hover { background: var(--v2-cream); color: var(--v2-navy); }
.btn-dark--accent-hover:hover { background: var(--v2-orange); color: #fff; }
.btn-orange { background: var(--v2-orange); color: #fff; }
.btn-orange:hover { background: var(--v2-navy); color: #fff; }

/* ============================================
   5. TYPO — titres (clamp = adaptation mobile,
   absente des maquettes desktop-only)
   ============================================ */
.kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em;
  color: var(--v2-orange);
}
.h1-home {
  margin: 0; font-weight: 600; line-height: 1.02; letter-spacing: -.03em;
  text-wrap: balance; font-size: clamp(34px, 6.5vw, 88px);
}
.hero-rotate-item {
  display: inline-block;
  text-align: left;
  transition: opacity .35s ease;
}
.hero-rotate-item.is-swapping { opacity: 0; }
.hero-rotate-article {
  /* Bloc atomique : empêche "tout" et son "e" de se séparer sur deux lignes
     (un inline-block glissé dans du texte peut sinon être renvoyé à la ligne
     indépendamment du mot juste avant lui). */
  display: inline-block;
}
.hero-rotate-e {
  display: inline-block;
  overflow: hidden;
  width: .62em;
  opacity: 1;
  transition: width .35s ease, opacity .35s ease;
}
.hero-rotate-e.is-hidden { width: 0; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero-rotate-item, .hero-rotate-e { transition: none; }
}
.h1-metier {
  margin: 20px 0 40px; font-weight: 600; line-height: .94; letter-spacing: -.045em;
  text-wrap: balance; font-size: clamp(40px, 9vw, 128px);
}
.h1-about {
  margin: 0; font-weight: 600; line-height: .98; letter-spacing: -.035em;
  text-wrap: balance; font-size: clamp(36px, 6.5vw, 92px);
}
.h1-login {
  margin: 0 0 clamp(24px, 5vw, 48px); font-weight: 600; line-height: 1;
  letter-spacing: -.04em; font-size: clamp(48px, 11vw, 120px);
}
.h2-product { margin: 0 0 24px; font-weight: 600; line-height: 1.02; letter-spacing: -.03em; font-size: clamp(32px, 5vw, 56px); }
.h2-cta-home { margin: 0; font-weight: 600; line-height: .98; letter-spacing: -.04em; font-size: clamp(40px, 7vw, 80px); max-width: 760px; }
.h2-module { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(28px, 4.5vw, 52px); }
.h2-cta-metier { margin: 0; font-weight: 600; line-height: .98; letter-spacing: -.04em; font-size: clamp(32px, 5vw, 72px); max-width: 760px; }
.h2-about-team { margin: 0 0 20px; font-weight: 600; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(28px, 4vw, 48px); }
.h2-about-principle { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(22px, 3vw, 30px); }
.h2-about-cta { margin: 0; font-weight: 600; line-height: 1; letter-spacing: -.035em; font-size: clamp(28px, 4.5vw, 64px); max-width: 640px; }

/* ============================================
   6. GRILLES
   ============================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-hero-home { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: end; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-block: 64px; border-bottom: 1px solid var(--v2-border); }
.module-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--v2-border); }

@media (max-width: 860px) {
  .grid-2, .grid-hero-home, .module-row { grid-template-columns: 1fr; gap: 32px; }
  .module-row > * { order: 0 !important; }
}
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
}

.stat-value { font-size: clamp(36px, 6vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat-label { font-size: 16px; color: var(--v2-gray); margin-top: 8px; }
.stat-value--on-navy { color: #fff; }
.stat-label--on-navy { color: var(--v2-dark-muted); }

/* ============================================
   7. IMAGE PLACEHOLDER (aucune capture fournie
   dans les maquettes — bloc à remplacer par les
   vraies captures produit)
   ============================================ */
.media-placeholder {
  aspect-ratio: 4/3; border-radius: 20px;
  background: repeating-linear-gradient(135deg, var(--v2-canvas) 0 12px, var(--v2-panel) 12px 24px);
  border: 1px solid var(--v2-border);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--v2-gray);
  text-align: center; padding: 12px;
}

/* ============================================
   8. LISTE MÉTIERS (accueil)
   ============================================ */
.metier-row {
  display: grid; grid-template-columns: 48px 1fr 1fr auto;
  align-items: baseline; padding: 28px 0;
  border-bottom: 1px solid var(--v2-border); color: var(--v2-navy);
}
.metier-row:hover { color: var(--v2-orange); }
.metier-row:hover .metier-num { color: inherit; }
.metier-row--last { border-bottom: 3px solid var(--v2-navy); }
.metier-num { font-family: var(--font-mono); font-size: 14px; color: var(--v2-orange); }
.metier-title { font-size: clamp(24px, 4.5vw, 48px); font-weight: 500; letter-spacing: -.02em; }
.metier-desc { font-size: 17px; color: var(--v2-gray); }
.metier-arrow { font-size: 32px; justify-self: end; }
@media (max-width: 700px) {
  .metier-row { grid-template-columns: 32px 1fr auto; row-gap: 6px; }
  .metier-desc { display: none; }
}

/* ============================================
   9. FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--v2-border); padding-top: 28px; padding-bottom: 48px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 14px; color: var(--v2-gray);
}
.site-footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer-links a { color: var(--v2-gray); }
.site-footer-links a:hover { color: var(--v2-navy); }

/* ============================================
   10. PAGE CONNEXION
   ============================================ */
.auth-page {
  width: 100%; min-height: 100vh; background: var(--v2-orange); color: var(--v2-navy);
  padding: clamp(24px, 5vw, 56px) var(--pad-inline);
  box-sizing: border-box; display: flex; flex-direction: column;
  justify-content: space-between; gap: 40px;
}
.auth-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.auth-date { font-family: var(--font-mono); font-size: 13px; }
.auth-form { display: flex; flex-direction: column; max-width: 1100px; }
.auth-field {
  display: grid; grid-template-columns: 100px 1fr; gap: 8px 16px; align-items: baseline;
  border-top: 2px solid var(--v2-navy); padding: 22px 0;
}
.auth-field--password { grid-template-columns: 100px 1fr auto; align-items: center; border-bottom: 2px solid var(--v2-navy); }
@media (min-width: 640px) {
  .auth-field, .auth-field--password { grid-template-columns: 220px 1fr; }
  .auth-field--password { grid-template-columns: 220px 1fr auto; }
}
.auth-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; }
.auth-input {
  border: 0; background: transparent; letter-spacing: -.02em; outline: none;
  color: var(--v2-navy); padding: 0; min-width: 0; width: 100%;
  font-size: clamp(24px, 5.5vw, 44px);
}
.auth-input--password { letter-spacing: .1em; }
.auth-forgot { color: var(--v2-navy); font-size: 15px; text-decoration: underline; white-space: nowrap; }
.auth-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.auth-actions .btn:hover { background: var(--v2-cream); color: var(--v2-navy); }
.auth-signup { font-size: 15px; }
.auth-signup a { color: var(--v2-navy); font-weight: 600; text-decoration: none; }
.auth-bottom { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.auth-segments { display: flex; gap: 24px; flex-wrap: wrap; font-weight: 500; }
.auth-meta { font-family: var(--font-mono); font-size: 13px; }
.auth-meta a { color: var(--v2-navy); }

/* ============================================
   11. PAGE MÉTIER — bandeau héro orange
   ============================================ */
.metier-hero { background: var(--v2-orange); color: var(--v2-navy); padding-bottom: 80px; }
.metier-hero .container { padding-top: 0; }
.metier-lead-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.metier-lead-row p { margin: 0; font-size: 22px; line-height: 1.45; max-width: 600px; }
@media (max-width: 760px) { .metier-lead-row { flex-direction: column; align-items: flex-start; } }

.metier-module { padding: clamp(40px, 8vw, 80px) var(--pad-inline); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.metier-module p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 480px; }
.metier-module-media { padding: 48px; display: grid; place-items: center; background: var(--v2-panel); }
.metier-module-media .media-placeholder { width: 100%; }
@media (max-width: 860px) { .metier-module-media { padding: 24px; } }

.metier-cta-band {
  background: var(--v2-navy); color: var(--v2-cream-soft);
  padding: clamp(48px, 8vw, 96px) var(--pad-inline);
  display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap;
}

/* ============================================
   12. PAGE QUI SOMMES-NOUS
   ============================================ */
.about-hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: start; }
.about-hero-lead { grid-column: 1/-1; }
@media (max-width: 760px) { .about-hero-grid { grid-template-columns: 1fr; gap: 24px; } }
.about-hero p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--v2-navy-soft); padding-top: 12px; }
.principle-card { padding: 36px 0; border-top: 2px solid var(--v2-navy); display: flex; flex-direction: column; gap: 14px; }
.principle-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--v2-navy-soft); }
.about-cta-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; margin-top: 96px; }
@media (max-width: 760px) { .about-cta-row { flex-direction: column; align-items: flex-start; margin-top: 56px; } }

.wordmark-decor { position: relative; height: clamp(90px, 22vw, 320px); overflow: hidden; margin-top: 16px; }
.wordmark-decor span {
  position: absolute; left: var(--pad-inline); top: 0;
  font-size: clamp(120px, 32vw, 460px); font-weight: 700; letter-spacing: -.05em; line-height: .78;
  color: transparent; -webkit-text-stroke: 2px var(--v2-orange);
  white-space: nowrap; user-select: none;
}

/* ============================================
   13. SECTIONS PARTAGÉES (padding vertical)
   ============================================ */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--bordered { border-bottom: 1px solid var(--v2-border); }
