:root {
  --bg: #F8F1E8;
  --surface: #ffffff;
  --ink: #2B2B2B;
  --muted: #6B6B6B;
  --accent: #A36A4F;       /* café */
  --accent-ink: #fff;
  --radius: 18px;
  --shadow-lg: 0 24px 60px rgba(0,0,0,.18);
  --shadow-md: 0 12px 30px rgba(0,0,0,.12);
  --shadow-sm: 0 6px 16px rgba(0,0,0,.10);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* ====== CONTAINER ====== */
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ====== NAVIGATION ====== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,241,232,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.nav-container {
  width: min(1200px, 92%);
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo / marque */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-left: -620px;}
.brand-logo {
  height: 60px;
}


/* Liens nav */
.nav-links { display: flex; align-items: center; gap: 18px; margin-right: -620px; }
.nav-link {
  position: relative;
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 500;
  opacity: .9;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px; height: 2px;
  background: #A36A4F;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link1 {
  position: relative;
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 500;
  opacity: .9;
  margin-left: 100px;
}
.nav-link1::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px; height: 2px;
  background: #A36A4F;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav-link1:hover { opacity: 1; }
.nav-link1:hover::after { transform: scaleX(1); }

/* Bouton connexion */
.btn-login {
  position: relative;
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 500;
  opacity: .9;
}

.btn-login::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px; height: 2px;
  background: #A36A4F;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.btn-login:hover { opacity: 1; }
.btn-login:hover::after { transform: scaleX(1); }

/* Burger mobile */
.nav-burger {
  display: none;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: .4rem .6rem;
  font-size: 18px;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 70vh, 760px);
  isolation: isolate; /* pour superposer les calques propres */
}
/* Image de fond */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 45%, rgba(0,0,0,.10) 0%, rgba(0,0,0,.35) 100%),
    url('../img/uf.png') center/cover no-repeat;
  z-index: -2;
}
/* dégradé fallback */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg, rgba(248,241,232,0) 0%, rgba(248,241,232,1) 88%);
}

/* Carte centrale */
.hero-card {
  margin: 0 auto;
  width: min(820px, 92%);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3.2vw, 34px);
  text-align: center;
}
.hero-card h1 {
  margin: .2rem 0 .6rem 0;
  font-size: clamp(26px, 4.2vw, 42px);
  line-height: 1.15;
}
.hero-card h1 span { color: var(--accent); }
.hero-card p { margin: 0 0 1rem 0; color: var(--muted); }
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-left: -0px;
}
.btn-primary, .btn-ghost {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  padding: .9rem 1.2rem;
  border-radius: 12px;
}

.btn-ghost, .btn-primary {
  color: var(--accent);
  border: 1px solid var(--accent);
  background: rgba(255,255,255,.5);
}
.btn-ghost:hover, .btn-primary:hover { background: #ebba8c; }

/* Mini features (option) */
.strip {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}

.chip {
  display: flex;                 /* active le flexbox */
  align-items: center;           /* centre verticalement */
  justify-content: center;       /* centre horizontalement */
  gap: 6px;
  background: rgba(239, 208, 180, 0.8);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  text-align: center;
  height: 70px;              /* hauteur uniforme pour toutes les cases */
  min-width: 160px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.chip:hover {
  transform: scale(1.05); /* petit zoom */
  box-shadow: 0 6px 18px rgba(0,0,0,.15); /* ajoute une ombre sympa */
}

/* ====== FOOTER ====== */
footer {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,241,232,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.footer-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b2b2b
}

/* texte animé au centre */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}

.nav-center span {
  display: inline-block;
  opacity: 0;
  transform: translateX(100%);
  animation: slide-in 1s ease forwards;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slide-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-100%); }
}







/* ====== Responsive amélioré ====== */

/* Tablettes en mode portrait */
@media (max-width: 1024px) {
  .nav-container {
    width: 96%;
  }
  .strip {
    grid-template-columns: 1fr 1fr;
  }
  .hero-card {
    width: 95%;
    padding: 20px;
  }
}

/* Mobiles (petits écrans) */
@media (max-width: 600px) {
  .brand { margin-left: 0; }
  .nav-links { margin-right: 0; gap: 10px; }
  .brand-logo { height: 44px; }
  .hero {
    min-height: auto;
    padding: 20px 0;
  }
  .hero-card h1 {
    font-size: 22px;
  }
  .hero-card p {
    font-size: 14px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }
  .strip {
    grid-template-columns: 1fr;
  }
  .chip {
    min-width: auto;
    font-size: 13px;
    height: auto;
    padding: 8px;
  }
}

/* Très petits écrans (genre iPhone SE) */
@media (max-width: 400px) {
  .hero-card {
    padding: 15px;
  }
  .hero-card h1 {
    font-size: 18px;
  }
  .nav-center {
    font-size: 14px;
  }
}


/* Masquer footer et message navbar sur mobile */
@media (max-width: 768px) {
  .nav-center {
    display: none; /* cache le message animé au milieu */
  }
}

