/* ==========================================================
   SELARIS GLOBAL — style.css
   Structure :
   1. Variables
   2. Reset & base
   3. Animations
   4. Utilitaires
   5. Conteneur
   6. Header
   7. Hero
   8. Services
   9. Strengths
   10. Footer
   11. Page Contact (overlay)
   12. Formulaire Contact
   13. État succès
   14. Media Queries (responsive)
   ========================================================== */


/* ── 1. Variables ─────────────────────────────────────── */
:root {
  --night:      #080d1a;
  --night2:     #0b1322;
  --panel:      #0e1726;
  --gold:       #c9a24b;
  --gold-lt:    #e6c478;
  --gold-dk:    #a8843a;
  --font-disp:  'Cinzel', serif;
  --font-body:  'Jost', sans-serif;
  --max-w:      1500px;
  --px:         20px;
  --transition: .3s ease;
}


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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--night);
  color: #cbd5e1;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(201,162,75,.3); }

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

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
}

a { text-decoration: none; color: inherit; }


/* ── 3. Animations ────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

.reveal { opacity: 0; animation: fadeUp .8s ease forwards; }
.d1 { animation-delay: .15s; }
.d2 { animation-delay: .30s; }
.d3 { animation-delay: .45s; }
.d4 { animation-delay: .60s; }


/* ── 4. Utilitaires ───────────────────────────────────── */
.hidden { display: none !important; }

.logo-glow { filter: drop-shadow(0 0 10px rgba(201,162,75,.35)); }

.text-gold-grad {
  background: linear-gradient(100deg, var(--gold-lt) 0%, var(--gold) 45%, var(--gold-dk) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}


/* ── 5. Conteneur ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}


/* ── 6. Header ────────────────────────────────────────── */
#site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  background: rgba(8,13,26,.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 20px var(--px);
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }

.logo-svg { width: 48px; height: 48px; flex-shrink: 0; }

.logo-text { line-height: 1; }

.logo-name {
  display: block;
  font-family: var(--font-disp);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .25em;
  color: #fff;
}

.logo-sub {
  display: block;
  font-family: var(--font-disp);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .55em;
  color: var(--gold);
  margin-top: 4px;
}

.logo-tagline {
  display: block;
  font-size: .5rem;
  letter-spacing: .18em;
  color: #94a3b8;
  margin-top: 4px;
}

/* Header CTA button */
.btn-contact {
  display: none;          /* shown at xl+ via media query */
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid rgba(201,162,75,.7);
  border-radius: 6px;
  background: rgba(201,162,75,.1);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--gold-lt);
  transition: background var(--transition), color var(--transition);
}

.btn-contact:hover { background: var(--gold); color: var(--night); }

.btn-contact svg { width: 16px; height: 16px; flex-shrink: 0; }


/* ── 7. Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark overlays */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay--dark   { background: rgba(8,13,26,.55); }
.hero-overlay--left   { background: linear-gradient(to right, var(--night), rgba(8,13,26,.85), transparent); }
.hero-overlay--top    { background: linear-gradient(to top, var(--night), transparent, rgba(8,13,26,.4)); }

/* Content wrapper */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 160px var(--px) 176px;
}

.hero-inner { max-width: 42rem; }

/* Title */
.hero-title {
  font-family: var(--font-disp);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .03em;
}

.hero-title span { display: block; }
.hero-title .text-white { color: #fff; }

/* Divider */
.hero-divider {
  width: 96px;
  height: 1px;
  background: var(--gold);
  margin-top: 28px;
}

/* Description */
.hero-desc {
  margin-top: 28px;
  max-width: 36rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: #cbd5e1;
}

.hero-desc strong { font-weight: 400; color: #f1f5f9; }

/* Hero CTA button */
.btn-hero {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 36px;
  padding: 16px 40px;
  border: 1px solid rgba(201,162,75,.5);
  border-radius: 6px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.btn-hero:hover {
  border-color: var(--gold);
  background: rgba(201,162,75,.05);
}

.btn-hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--gold-lt);
}

.btn-hero-label svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-hero-email {
  display: block;
  margin-top: 4px;
  font-size: .875rem;
  color: #cbd5e1;
}


/* ── 8. Services ──────────────────────────────────────── */
.services-section {
  position: relative;
  z-index: 20;
  margin-top: -128px;   /* -mt-32 */
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Card */
.service-card {
  padding: 28px;
  border: 1px solid rgba(201,162,75,.2);
  border-radius: 8px;
  background: rgba(14,23,38,.9);
  backdrop-filter: blur(12px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,75,.6);
  box-shadow: 0 25px 50px rgba(0,0,0,.5);
}

/* Icon circle */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(201,162,75,.6);
  border-radius: 50%;
  color: var(--gold);
  transition: background var(--transition), color var(--transition);
}

.service-icon svg { width: 24px; height: 24px; }

.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--night);
}

.service-title {
  margin-top: 20px;
  font-family: var(--font-disp);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: #fff;
}

.service-desc {
  margin-top: 12px;
  font-size: .875rem;
  font-weight: 300;
  line-height: 1.75;
  color: #94a3b8;
}


/* ── 9. Strengths ─────────────────────────────────────── */
.strengths-section {
  margin-top: 64px;
  border-top: 1px solid rgba(201,162,75,.15);
  background: rgba(11,19,34,.8);
}

.strengths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-block: 40px;
}

.strength-item { display: flex; align-items: center; gap: 16px; }

.strength-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--gold);
}

.strength-text {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .1em;
  color: #e2e8f0;
}

.strength-text span { color: #94a3b8; }


/* ── 10. Footer ───────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(201,162,75,.15);
  background: var(--night);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 40px var(--px);
  text-align: center;
}

.footer-brand-name {
  font-family: var(--font-disp);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .25em;
  color: #fff;
}

.footer-brand-name span { color: var(--gold); }

.footer-tagline {
  margin-top: 4px;
  font-size: .75rem;
  letter-spacing: .15em;
  color: #64748b;
}

.footer-contact { font-size: .875rem; color: #94a3b8; }

.footer-contact button {
  transition: color var(--transition);
  font-size: .875rem;
}

.footer-contact button:hover { color: var(--gold); }

.footer-contact p {
  margin-top: 4px;
  font-size: .75rem;
  color: #334155;
}


/* ── 11. Page Contact (overlay) ───────────────────────── */
#contact-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--night);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

#contact-page.open { transform: translateX(0); }

/* Background deco layers */
.contact-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .07;
}

.contact-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--night), rgba(8,13,26,.95), var(--night2));
}

.contact-bg-diag {
  position: absolute;
  inset: 0;
  opacity: .5;
  background: linear-gradient(135deg,
    transparent 40%,
    rgba(201,162,75,.08) 40%,
    rgba(201,162,75,.08) 60%,
    transparent 60%
  );
}

.contact-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.contact-glow--tl {
  top: -128px;
  left: -128px;
  width: 256px;
  height: 256px;
  background: rgba(201,162,75,.08);
}

.contact-glow--br {
  bottom: -128px;
  right: -128px;
  width: 384px;
  height: 384px;
  background: rgba(201,162,75,.06);
}

/* Content layout */
.contact-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top bar */
.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--px);
  border-bottom: 1px solid rgba(201,162,75,.15);
}

/* Back button */
.btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .15em;
  color: #94a3b8;
  transition: color var(--transition);
}

.btn-back:hover { color: var(--gold-lt); }

.btn-back svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.btn-back:hover svg { transform: translateX(-4px); }

/* Mini logo */
.contact-logo { display: flex; align-items: center; gap: 12px; }

.contact-logo-svg { width: 36px; height: 36px; flex-shrink: 0; }

.contact-logo .logo-name {
  font-size: 1.125rem;
  letter-spacing: .25em;
}

.contact-logo .logo-sub {
  font-size: .6rem;
  letter-spacing: .55em;
}


/* ── 12. Formulaire Contact ───────────────────────────── */
.contact-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px var(--px);
}

.contact-wrap { width: 100%; max-width: 42rem; }

/* Heading */
.form-heading { margin-bottom: 40px; text-align: center; }

.form-eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .35em;
  color: var(--gold);
  margin-bottom: 12px;
}

.form-title {
  font-family: var(--font-disp);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
}

.form-subtitle {
  margin-top: 12px;
  font-size: .875rem;
  font-weight: 300;
  color: #94a3b8;
}

.form-divider {
  width: 64px;
  height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Card */
.form-card {
  padding: 32px;
  border: 1px solid rgba(201,162,75,.2);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
}

/* Field groups */
.form-group { margin-bottom: 24px; }
.form-group--last { margin-bottom: 32px; }

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: #94a3b8;
}

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

/* Input wrapper (icon + input) */
.input-wrapper { position: relative; }

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(201,162,75,.7);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input-icon svg { width: 16px; height: 16px; }

/* Inputs & textarea */
.field-input {
  width: 100%;
  padding: 14px 16px;
  padding-left: 44px;
  border: 1px solid rgba(201,162,75,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  font-family: var(--font-body);
  font-size: .875rem;
  color: #f1f5f9;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field-input::placeholder { color: #475569; }

.field-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,75,.15);
}

/* Textarea overrides */
.field-textarea {
  padding-left: 16px;
  resize: none;
}

/* Select overrides */
.field-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9a24b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.field-select option {
  background: #0e1726;
  color: #f1f5f9;
}

/* Error */
.form-error {
  margin-bottom: 16px;
  font-size: .75rem;
  text-align: center;
  color: #f87171;
}

/* Send button */
.btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 32px;
  border: 1px solid rgba(201,162,75,.7);
  border-radius: 8px;
  background: rgba(201,162,75,.1);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--gold-lt);
  transition: background var(--transition), color var(--transition);
}

.btn-send:hover { background: var(--gold); color: var(--night); }

.btn-send svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.btn-send:hover svg { transform: translateX(4px); }

/* Email hint */
.form-hint {
  margin-top: 24px;
  font-size: .75rem;
  font-weight: 300;
  color: #64748b;
  text-align: center;
}

.form-hint a { color: rgba(201,162,75,.8); }
.form-hint a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }


/* ── 13. État succès ──────────────────────────────────── */
.success-state { text-align: center; }

.success-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  border: 2px solid rgba(201,162,75,.5);
  border-radius: 50%;
  background: rgba(201,162,75,.1);
  animation: scaleIn .5s cubic-bezier(.34,1.56,.64,1) forwards;
}

.success-icon-wrap svg { width: 48px; height: 48px; color: var(--gold); }

.success-title {
  font-family: var(--font-disp);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
}

.success-text {
  margin: 16px auto 0;
  max-width: 28rem;
  font-size: .875rem;
  font-weight: 300;
  line-height: 1.75;
  color: #94a3b8;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 14px 32px;
  border: 1px solid rgba(201,162,75,.5);
  border-radius: 8px;
  background: rgba(201,162,75,.1);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--gold-lt);
  transition: background var(--transition), color var(--transition);
}

.btn-back-home:hover { background: var(--gold); color: var(--night); }

.btn-back-home svg { width: 16px; height: 16px; }

/* Contact page footer */
.contact-footer {
  padding: 20px var(--px);
  border-top: 1px solid rgba(201,162,75,.1);
  text-align: center;
}

.contact-footer p { font-size: .75rem; color: #334155; }


/* ── 14. Media Queries ────────────────────────────────── */

/* ≥ 640px — sm */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .strengths-grid { grid-template-columns: repeat(2, 1fr); }

  .strength-item + .strength-item {
    border-left: 1px solid rgba(201,162,75,.15);
    padding-left: 32px;
  }

  .form-title { font-size: 2.25rem; }
  .form-card  { padding: 40px; }
}

/* ≥ 768px — md */
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

/* ≥ 1024px — lg */
@media (min-width: 1024px) {
  :root { --px: 40px; }

  .hero-content { padding-bottom: 224px; }  /* lg:pb-56 */

  .services-section { margin-top: -176px; } /* lg:-mt-44 */

  .strengths-section  { margin-top: 96px; } /* lg:mt-24 */
  .strengths-grid     { grid-template-columns: repeat(4, 1fr); }
}

/* ≥ 1280px — xl */
@media (min-width: 1280px) {
  .btn-contact    { display: flex; }
  .services-grid  { grid-template-columns: repeat(4, 1fr); }

  .hero-title {
    font-size: 4.5rem; /* xl:text-7xl */
  }
}

/* Responsive font sizes for hero */
@media (min-width: 640px)  { .hero-title { font-size: 3rem; } }   /* sm:text-5xl */
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } } /* lg:text-6xl */
