/* Global Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1E3A5F;
  --navy-dk: #152B47;
  --red:     #C0392B;
  --steel:   #6B7B8D;
  --light:   #EEF2F7;
  --white:   #F8F9FA;
  --text:    #1A1A2E;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 5%;
  background: rgba(30, 58, 95, 0.97);
  backdrop-filter: blur(6px);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.25); }

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: .02em;
}
.logo span { color: var(--red); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(248,249,250,.75);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  border-radius: 3px;
  transition: background .2s !important;
}
.nav-cta:hover { background: #a93226 !important; color: var(--white) !important; }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, var(--navy-dk) 0%, var(--navy) 60%, #2A5080 100%);
  overflow: hidden;
  padding: 0 5%;
}

.hero-mountain {
  position: absolute; bottom: 0; left: 0; right: 0;
  opacity: .12; pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
  padding-top: 6rem;
}

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.4rem;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.4rem;
}

.hero-content h1 em {
  font-style: italic;
  color: #9bb8d8;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(248,249,250,.7);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.4rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── HERO WRAPPER & IMAGES ── */
.hero-wrapper {
  position: relative;
  width: 100%;
  align-items: center;
  gap: 3rem;
}

.hero-images {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.5rem;
  max-width: 400px;
  align-self: center;
}

.hero-images img {
  width: 180px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: transform .3s, box-shadow .3s;
}

.hero-images img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}

.hero-images img:first-child {
  order: -1;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: .9rem 2rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #a93226; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  border: 1.5px solid rgba(248,249,250,.35);
  color: rgba(248,249,250,.85);
  padding: .9rem 2rem;
  border-radius: 3px;
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ── SECTION GENERIC ── */
section { padding: 6rem 5%; }

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--steel);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
}

/* ── SERVICES ── */
#services { background: var(--white); }

.services-intro { max-width: 720px; margin-bottom: 3.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: #d5dfe8;
  border: 1.5px solid #d5dfe8;
  border-radius: 6px;
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: background .2s;
}
.service-card:hover { background: var(--light); }

.service-icon {
  width: 44px; height: 44px;
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .75rem;
}

.service-card p {
  color: var(--steel);
  line-height: 1.7;
  font-size: .95rem;
}

.service-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  border-top: 2px solid var(--red);
  padding-top: .4rem;
}

/* ── POURQUOI ── */
#pourquoi { background: var(--light); }

.pourquoi-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.stat-block { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.stat {
  background: var(--white);
  border-left: 3px solid var(--red);
  padding: 1.5rem 1.25rem;
  border-radius: 0 4px 4px 0;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.stat-num span { font-size: 1.4rem; color: var(--red); }

.stat p {
  color: var(--steel);
  font-size: .85rem;
  margin-top: .35rem;
  line-height: 1.5;
}

/* ── PROCESS ── */
#process { background: var(--navy); }
#process .section-title { color: var(--white); }
#process .section-sub { color: rgba(248,249,250,.6); }
#process .section-label { color: #9bb8d8; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}

.process-step {
  padding: 2rem 1.75rem;
  border-top: 1px solid rgba(248,249,250,.12);
  position: relative;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,.4);
  line-height: 1;
  margin-bottom: .5rem;
}

.process-step h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .6rem;
}

.process-step p {
  color: rgba(248,249,250,.55);
  font-size: .875rem;
  line-height: 1.7;
}

/* ── CONTACT ── */
#contact { background: var(--white); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info p {
  color: var(--steel);
  line-height: 1.75;
  margin-top: .75rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
  color: var(--navy);
  font-weight: 500;
  font-size: .95rem;
}
.contact-detail svg { flex-shrink: 0; color: var(--red); }

/* FORM */
.contact-form {
  background: var(--light);
  padding: 2.5rem;
  border-radius: 6px;
}

.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }

.form-group label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--steel);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1.5px solid #d0dae4;
  border-radius: 4px;
  padding: .75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,.1);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group span { color: var(--red); }

.form-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: .5rem;
}
.form-submit:hover { background: #a93226; transform: translateY(-1px); }

.form-note {
  font-size: .78rem;
  color: var(--steel);
  margin-top: .75rem;
  text-align: center;
}

/* SUCCESS */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.form-success .checkmark {
  width: 56px; height: 56px;
  background: #eafaf1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.form-success h4 { color: var(--navy); font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: .5rem; }
.form-success p { color: var(--steel); font-size: .95rem; }

/* ── FOOTER ── */
footer {
  background: var(--navy-dk);
  color: rgba(248,249,250,.45);
  text-align: center;
  padding: 2rem 5%;
  font-size: .82rem;
}
footer a { color: rgba(248,249,250,.6); text-decoration: none; }
footer a:hover { color: var(--white); }

/* ── DIALOG / POPUP ── */
dialog {
  border: none;
  border-radius: 6px;
  padding: 2.5rem;
  max-width: 800px;
  width: 90%;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);

  position: absolute;
  top: 270%;
  left: 50%;
  transform: translate(-50%, -50%);
}
 
dialog::backdrop {
  background: rgba(21, 43, 71, 0.65);
  backdrop-filter: blur(3px);
}
 
dialog h2,
dialog h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
 
dialog p {
  color: var(--steel);
  line-height: 1.7;
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
 
dialog button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: .75rem 1.6rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
 
dialog button:hover {
  background: #a93226;
  transform: translateY(-1px);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    nav { padding: 1rem 5%; }
    .nav-links { display: none; }

    .pourquoi-wrap,
    .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }

    .stat-block { grid-template-columns: 1fr 1fr; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 1.75rem; }

    section { padding: 4rem 5%; }

    .hero-content { 
        padding-top: 5rem; 
    }

    dialog { padding: 1.75rem; }
}

@media (max-width: 425px) {
    .hero-images { 
        flex-direction: column; 
    }
}

@media (max-width: 225px) {
    .hero-images { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}