/* ============================================
   Groupe Référence — Site vitrine
   Palette : bleu marine #0A1A2F, or #C5A572, blanc
   ============================================ */

:root {
  --navy:        #0A1A2F;
  --navy-2:      #0F2238;
  --navy-3:      #142B45;
  --gold:        #C5A572;
  --gold-soft:   rgba(197, 165, 114, 0.18);
  --gold-line:   rgba(197, 165, 114, 0.35);
  --white:       #FFFFFF;
  --off-white:   #F5F2EC;
  --muted:       rgba(255, 255, 255, 0.7);
  --muted-2:     rgba(255, 255, 255, 0.5);
  --border:      rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --shadow-lg:   0 30px 60px -20px rgba(0, 0, 0, 0.5);
  --header-h:    124px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

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

/* ===== Typographie ===== */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.5rem; font-weight: 600; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
}

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

/* ===== Header ===== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 26, 47, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
}

.logo-img {
  height: 100px;
  width: auto;
  display: block;
  /* Logo navy + gold sur fond navy : on inverse en blanc */
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.logo:hover .logo-img { opacity: 1; }

/* ===== Burger ===== */

.burger {
  position: relative;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  cursor: pointer;
  z-index: 60;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.burger:hover { border-color: var(--gold); }

.burger span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease, background 0.25s ease;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }

.burger:hover span { background: var(--gold); }

.burger.is-open span:nth-child(1) { top: 23px; transform: translateX(-50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 23px; transform: translateX(-50%) rotate(-45deg); }

/* ===== Menu Overlay ===== */

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(10, 26, 47, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

body.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.menu-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.menu-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
}

.menu-link:hover {
  color: var(--gold);
}
.menu-link:hover::after {
  width: 100%;
  left: 0;
}

/* ===== Hero ===== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background:
    radial-gradient(ellipse at top right, var(--gold-soft), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(20, 43, 69, 0.6), transparent 60%),
    var(--navy);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.hero-inner { max-width: 820px; }

.hero h1 { margin: 8px 0 24px; }

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ===== Boutons ===== */

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== Section sociétés ===== */

.societes { padding: 120px 0; background: var(--navy-2); }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { margin-top: 4px; }

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

.card {
  background: var(--navy);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card:hover {
  border-color: var(--gold-line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-logo {
  background: transparent;
  height: 140px;
  display: grid;
  place-items: center;
  padding: 32px;
  border-bottom: 1px solid var(--border);
}

.card-logo img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.card:hover .card-logo img { opacity: 1; }

.card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  padding: 6px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
  align-self: flex-start;
}

.card h3 { margin-bottom: 14px; }

.card p {
  color: var(--muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s ease;
}

.card-link:hover { gap: 14px; }

/* ===== Notre Histoire ===== */

.histoire {
  padding: 120px 0;
  background: var(--navy);
  position: relative;
}

.histoire::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.histoire-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}

.histoire-text p:not(.eyebrow):not(.lede) {
  color: var(--muted);
  margin-top: 18px;
}

.histoire-text h2 { margin: 4px 0 20px; }

.histoire-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 24px;
  background: var(--navy-2);
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Contact ===== */

.contact { padding: 120px 0; background: var(--navy-2); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-text { padding-top: 12px; }
.contact-text h2 { margin: 4px 0 16px; }

/* Formulaire */

.contact-form {
  background: var(--navy);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.honeypot { display: none; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  background: var(--navy-2);
  border: 1px solid var(--border-strong);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: 2px;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--navy-3);
}

.field textarea { resize: vertical; min-height: 130px; font-family: inherit; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C5A572'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

.field select option {
  background: var(--navy);
  color: var(--white);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 6px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted-2);
  margin-top: -4px;
}

/* ===== Footer ===== */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--navy);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted-2);
  font-size: 0.85rem;
}

.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold); }

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .histoire-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner  { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --header-h: 96px; }
  .logo-img { height: 72px; }
  .societes, .contact, .histoire { padding: 80px 0; }
  .contact-form { padding: 28px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
