/* =============================================
   DiploPass — Styles v3
   Hero : photo pleine largeur + dégradé chaud
   ============================================= */

/* ── Variables ── */
:root {
  --teal:       #0E989A;
  --teal-dark:  #0b7475;
  --teal-light: #c8e8e8;
  --teal-soft:  #edf8f8;

  --cream:      #faf7f2;
  --white:      #ffffff;
  --sand:       #f3ede2;
  --warm-hero:  #f2e8d8;

  --amber:      #e9a94e;
  --amber-soft: #fdf3e0;

  --ink:        #1c1a18;
  --ink-mid:    #4a4541;
  --ink-soft:   #8a8480;
  --border:     #e4ddd3;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Nunito', sans-serif;

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  24px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
p    { color: var(--ink-mid); margin-bottom: .8rem; }

h1,h2,h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--ink); }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--ink); }

.container, .hero-container, .navbar { max-width: 1260px; margin: 0 auto; padding: 0 1.25rem; }


/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 1.4rem 3rem 1.4rem 1.5rem;
  gap: 1rem;
  width: 100%;
}
.nav-logo img { height: 80px; width: auto; }
.nav-links {
  margin-left: 2rem;
  display: flex;
  gap: 2rem;
  flex: 1;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-mid);
  transition: color .2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta { margin-left: auto; }


/* ══════════════════════════════
   HERO
══════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--warm-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero_banner.jpg');
  background-size: cover;
  background-position: 90% center;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--warm-hero)              0%,
    rgba(242,232,216,0.97)       28%,
    rgba(242,232,216,0.82)       45%,
    rgba(242,232,216,0.35)       65%,
    rgba(242,232,216,0.0)        82%
  );
  z-index: 1;
}

.hero-container {
  width: 100%;
  padding-top: 6rem;
  justify-content: flex-end;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 5rem 0 5rem 0rem;
  max-width: 600px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hl { color: var(--teal); }
.hl.underline {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink-mid);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}


/* ══════════════════════════════
   BOUTONS
══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .93rem;
  padding: .85rem 1.8rem;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,152,154,.3); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-sm { font-size: .83rem; padding: .55rem 1.2rem; }
.btn-white { background: #fff; color: var(--teal); border-color: #fff; }
.btn-white:hover { background: var(--sand); border-color: var(--sand); }
.btn-white-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-white-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-icon {
  width: 22px; height: 22px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
}


/* ══════════════════════════════
   SECTIONS
══════════════════════════════ */
.section { padding: 5.5rem 0; }
.bg-white     { background: var(--white); }
.bg-cream     { background: var(--cream); }
.bg-sand      { background: var(--sand); }
.bg-teal-soft { background: var(--teal-soft); }
.bg-teal      { background: var(--teal); }

.section-head   { text-align: center; margin-bottom: 3rem; }
.section-intro  { max-width: 480px; margin: .7rem auto 0; font-size: .97rem; color: var(--ink-mid); }

/* Tags */
.tag {
  display: inline-block;
  font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid var(--teal-light);
  border-radius: 100px;
  padding: .28rem .85rem;
  margin-bottom: 1rem;
}
.tag-amber { color: #a96e00; background: var(--amber-soft); border-color: #f5d898; }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon {
  font-size: 1.5rem;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card-icon.amber { background: var(--amber-soft); }
.card-icon.teal  { background: var(--teal-soft); }
.card p { margin: 0; font-size: .93rem; line-height: 1.6; }

/* Flow solution */
.flow {
  display: flex;
  align-items: stretch;
  gap: .8rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.flow-step {
  flex: 1;
  min-width: 200px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem 1.6rem 1.6rem;
}
.flow-num {
  width: 38px; height: 38px;
  background: var(--teal); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.2rem;
  margin-bottom: 1rem;
}
.flow-step h3 { margin-bottom: .4rem; }
.flow-step p  { margin: 0; font-size: .9rem; }
.flow-arrow {
  align-self: center;
  font-size: 1.6rem;
  color: var(--teal);
  opacity: .45;
  padding: 0 .2rem;
  flex-shrink: 0;
}

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.pill {
  background: var(--teal-soft);
  border: 1px solid var(--teal-light);
  color: var(--teal-dark);
  border-radius: 100px;
  padding: .38rem 1.1rem;
  font-size: .83rem; font-weight: 700;
}

/* Audience */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.audience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem 1.2rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
}
.audience-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.audience-card span   { font-size: 2rem; }
.audience-card strong { font-size: .86rem; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-icon       { font-size: 1.8rem; margin-bottom: .8rem; }
.why-card h3    { margin-bottom: .3rem; }
.why-card p     { margin: 0; font-size: .91rem; }

/* Impact */
.impact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.impact-text h2 { margin-bottom: 1.2rem; }
.impact-photo {
  width: 100%; height: auto;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}


/* ══════════════════════════════
   FAQ
══════════════════════════════ */
.faq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-group-title {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: .95rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  transition: color .2s;
}
.faq-q:hover { color: var(--teal); }
.faq-q[aria-expanded="true"] { color: var(--teal); }

.faq-chevron {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform .25s ease;
  display: inline-block;
  font-style: normal;
}
.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(90deg);
}

.faq-a {
  display: grid;
  /* grid-template-rows: 0fr; */
  /* transition: grid-template-rows .28s ease; */
  overflow: hidden;
  height: 0;
}
.faq-a.open {
  height: auto;
}
.faq-a > * {
  overflow: hidden;
}
.faq-a p {
  font-size: .92rem;
  color: var(--ink-mid);
  padding-bottom: 1rem;
  margin: 0;
  line-height: 1.7;
}
.faq-a code {
  font-family: monospace;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1em .4em;
  font-size: .85em;
  color: var(--teal-dark);
}


/* ══════════════════════════════
   CTA FINAL
══════════════════════════════ */
.cta-center { text-align: center; }
.cta-h {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff; font-weight: 400;
  margin-bottom: .8rem; line-height: 1.3;
}
.cta-sub  { color: rgba(255,255,255,.78); margin-bottom: 2rem; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }


/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer { background: var(--ink); padding: 3rem 2rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-logo  { height: auto }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; }
.footer-links a { font-size: .84rem; color: var(--ink-soft); transition: color .2s; }
.footer-links a:hover { color: var(--teal); }
.footer-copy  { font-size: .75rem; color: #4a4541; margin: 0; }


/* ══════════════════════════════
   RESPONSIVE — ≤ 900px
══════════════════════════════ */
@media (max-width: 900px) {
  .navbar { padding: 1rem 3rem; justify-content: center;}
  .nav-logo img { height: 120px; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }

  #hero { 
    min-height: 100vh;
    justify-content: flex-end;
  }
  
  .hero-gradient {
    background: linear-gradient(
      to bottom,
      var(--warm-hero)               0%,
      rgba(242,232,216,0.90)        30%,
      rgba(242,232,216,0.88)        65%,
      rgba(242,232,216,0.45)        88%,
      rgba(242,232,216,0.0)         100%
    );
  }
  .hero-container { padding-top: 0rem; }
  .hero-content { max-width: 100%; padding: 1rem 1.5rem 3.5rem; justify-content: center; }

  .section { padding: 3.5rem 0; }

  .impact-layout { grid-template-columns: 1fr; gap: 2rem; }
  /* .impact-photo  { height: 260px; } */

  .flow { flex-direction: column; }
  .flow-arrow { display: none; }

  .faq-columns { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  #hero { 
    min-height: 100vh;
    justify-content: center;
  }
  .hero-content h1 { font-size: 2.2rem; }
}
