:root{
  /* Centralise la palette et les variables globales. */
  --ocean:#50b7dd;
  --ocean2:#3aa9d2;
  --ink:#0b2230;
  --white: rgba(255,255,255,.92);
  --white2: rgba(255,255,255,.75);
  --shadow: 0 12px 28px rgba(0,0,0,.18);
  --radius:18px;
  --pin:#ffffff;
  --pinAccent:#ffb020;
}

/* Applique un box model uniforme a toute l'interface. */
*{box-sizing:border-box}
html,body{height:100%}

/* Pose le fond global du site et la typo commune. */
body{
  margin:0;
  font-family: 'Bebas Neue', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);

  background-image: url("../assets/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  background-attachment: scroll;
}

/* Defini les regles de base pour les liens et boutons. */
a{color:inherit;text-decoration:none}
button{font:inherit}

/* Centre les pages dans une largeur lisible. */
.container{
  width:min(1100px, 92vw);
  margin:0 auto;
}

/* Structure la barre de navigation collante. */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(10, 18, 26, .35);
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: transform .35s ease, opacity .35s ease;
  will-change: transform, opacity;
}

/* Translate a -100% sort completement la barre du haut. */
.nav.is-hidden{
  transform: translateY(-100%);
  opacity: 0;
}

/* Repartit logo, liens et actions sur trois zones. */
.nav-inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  padding:14px 0;
  gap:14px;
}

/* Habille le bloc marque du site. */
.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #fff;
  transition: transform 0.3s ease;
}

/* Anime legerement la marque au survol. */
.brand:hover {
  transform: scale(1.05);
}

/* Cadre le logo dans la navigation. */
.brand-logo {
  width: 80px;
  height: 80px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(255, 176, 32, 0.4));
  transition: filter 0.3s ease;
}

/* Renforce l'effet lumineux du logo au survol. */
.brand:hover .brand-logo {
  filter: drop-shadow(0 6px 16px rgba(255, 176, 32, 0.6));
}

/* Formate un texte de marque optionnel. */
.brand-text {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Aligne les liens centraux de navigation. */
.nav-links{
  justify-self:center;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}
.nav-links a{
  color: rgba(255,255,255,.92);
  padding:8px 10px;
  border-radius:12px;
}
.nav-links a:hover{
  background: rgba(255,255,255,.14);
}

/* Aligne les actions de droite de la barre. */
.nav-cta{
  justify-self:end;
  display:flex;
  gap:10px;
  align-items:center;
}

/* Defini la base visuelle commune des boutons. */
.btn{
  border:none;
  cursor:pointer;
  padding:10px 14px;
  border-radius:14px;
  background: rgba(255,255,255,.92);
  color: rgba(0,0,0,.80);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0)}
.btn.primary{
  background: linear-gradient(135deg, #ff7a59, #ffb020);
  color:#fff;
}
.btn.ghost{
  background: rgba(255,255,255,.14);
  color:#fff;
  box-shadow:none;
  border:1px solid rgba(255,255,255,.22);
}

/* Positionne le toggle de mot de passe dans le champ. */
.pwd-field{
  position: relative;
  display: block;
}

.pwd-field input{
  width: 100%;
  padding-right: 44px;
}

.pwd-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  font-size: 18px;
  color: rgba(0,0,0,.65);
}

.pwd-toggle:hover{
  color: rgba(0,0,0,.9);
}

.pwd-toggle:focus-visible{
  outline: 2px solid rgba(255,255,255,.6);
  outline-offset: 3px;
  border-radius: 8px;
}
