/* Credit Salazar | site vitrine public */

/* ---------- En tete ---------- */

.entete { border-bottom: 1px solid var(--bordure); background: var(--blanc); }

.entete__barre {
  background: var(--bleu-fonce);
  color: #c8d2e2;
  font-size: 0.8125rem;
}
.entete__barre-int {
  display: flex;
  justify-content: space-between;
  gap: var(--esp-4);
  padding-top: 6px;
  padding-bottom: 6px;
}

.entete__principal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-5);
  padding-top: var(--esp-3);
  padding-bottom: var(--esp-3);
}

.marque { display: block; text-decoration: none; }
.marque__logo {
  display: block;
  width: 60px; height: 60px;
  object-fit: contain;
  border-radius: var(--rayon);
}

.navigation { display: flex; align-items: center; gap: var(--esp-5); }
.navigation > a {
  padding: var(--esp-2) 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.navigation > a:hover { color: var(--bleu); border-bottom-color: var(--bordure); }
.navigation > a.actif { color: var(--bleu); border-bottom-color: var(--or); }
.navigation__actions { display: flex; align-items: center; gap: var(--esp-3); margin-left: var(--esp-4); }

/* Cloche de notification de l'espace client */
.cloche {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  text-decoration: none;
}
.cloche:hover { background: var(--bleu-pale); border-color: var(--bleu); }
.cloche__icone {
  display: block;
  width: 14px; height: 14px;
  border: 2px solid var(--bleu);
  border-radius: 50% 50% 4px 4px;
  border-bottom-width: 4px;
}
.cloche__badge {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 18px;
  padding: 0 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: var(--blanc);
  background: var(--danger);
  border-radius: 9px;
}

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  cursor: pointer;
}
.burger__barre, .burger__barre::before, .burger__barre::after {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--bleu);
  content: '';
}
.burger__barre::before { transform: translateY(-6px); }
.burger__barre::after { transform: translateY(4px); }

/* ---------- Hero ---------- */

.hero {
  padding: var(--esp-8) 0;
  background:
    linear-gradient(180deg, var(--ivoire) 0%, var(--blanc) 100%);
  border-bottom: 1px solid var(--bordure-claire);
}

.hero__grille {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--esp-8);
  align-items: center;
}

.surtitre {
  margin-bottom: var(--esp-3);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or-fonce);
}

.hero h1 {
  font-family: var(--police-titre);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  color: var(--bleu);
  margin-bottom: var(--esp-4);
}

.hero__intro { max-width: 60ch; font-size: 1.0625rem; color: var(--gris); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--esp-3); margin-top: var(--esp-5); }

.hero__carte {
  padding: var(--esp-6);
  background: var(--bleu);
  border-radius: var(--rayon-lg);
  border-top: 4px solid var(--or);
}

.chiffres { display: grid; gap: var(--esp-5); }
.chiffres li { display: flex; flex-direction: column; }
.chiffres li + li { padding-top: var(--esp-5); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.chiffres__valeur {
  font-family: var(--police-titre);
  font-size: 2rem;
  font-weight: 700;
  color: var(--or);
}
.chiffres__libelle {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8d2e2;
}

/* ---------- Banniere de page interieure ---------- */

.banniere {
  padding: var(--esp-7) 0;
  background: var(--bleu);
  color: var(--blanc);
  border-bottom: 4px solid var(--or);
}
.banniere h1 { font-family: var(--police-titre); margin: 0; color: var(--blanc); }
.banniere .surtitre { color: var(--or); }

/* ---------- Sections ---------- */

.section { padding: var(--esp-8) 0; }
.section--ivoire { background: var(--ivoire); border-top: 1px solid var(--bordure-claire); border-bottom: 1px solid var(--bordure-claire); }

.section__titre {
  font-family: var(--police-titre);
  font-size: 1.75rem;
  color: var(--bleu);
}
.section__chapo { max-width: 70ch; margin-bottom: var(--esp-6); color: var(--gris); }
.section__lien { margin-top: var(--esp-5); }

.grille-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--esp-4);
}
.grille-services--detail { grid-template-columns: repeat(2, 1fr); gap: var(--esp-5); }

.service {
  padding: var(--esp-5);
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-top: 3px solid var(--bleu);
  border-radius: var(--rayon);
}
.service h2, .service h3 { color: var(--bleu); }
.service p { color: var(--gris); font-size: 0.9375rem; margin-bottom: 0; }
.service .liste-puces { margin-top: var(--esp-4); }

.liste-puces li {
  position: relative;
  padding-left: var(--esp-5);
  font-size: 0.9375rem;
}
.liste-puces li + li { margin-top: var(--esp-2); }
.liste-puces li::before {
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 2px;
  background: var(--or);
  content: '';
}

.bande-double {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--esp-8);
  align-items: start;
}

.encart {
  padding: var(--esp-6);
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--or);
  border-radius: var(--rayon);
}
.encart h3 { color: var(--bleu); }

.liste-def { margin: 0; }
.liste-def dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
}
.liste-def dd { margin: 0 0 var(--esp-4); font-weight: 600; }
.liste-def dd:last-child { margin-bottom: 0; }

.bande-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-5);
}
.bande-cta p { margin: 0; color: var(--gris); }

/* ---------- Cartes d'authentification ---------- */

.carte--auth { max-width: 460px; margin: 0 auto; }
.carte--auth-large { max-width: 640px; }
.carte--auth__tete { margin-bottom: var(--esp-5); text-align: center; }
.carte--auth__tete img { margin-bottom: var(--esp-3); }
.carte--auth__tete h1 { font-family: var(--police-titre); color: var(--bleu); }
.carte--auth__tete p { margin: 0; color: var(--gris); font-size: 0.9375rem; }
.carte--auth__pied { margin: var(--esp-5) 0 0; text-align: center; font-size: 0.9375rem; }
.carte--auth__note { margin: var(--esp-2) 0 0; text-align: center; font-size: 0.8125rem; color: var(--gris); }

.page-erreur { text-align: center; }
.page-erreur h1 { font-family: var(--police-titre); color: var(--bleu); }
.page-erreur p { margin-bottom: var(--esp-5); color: var(--gris); }

/* ---------- Pied de page ---------- */

.pied { background: var(--bleu-fonce); color: #c8d2e2; }
.pied__grille {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--esp-7);
  padding-top: var(--esp-7);
  padding-bottom: var(--esp-6);
}
.pied__marque { display: flex; align-items: center; gap: var(--esp-4); }
.pied__marque img { width: 64px; height: 64px; border-radius: var(--rayon); }
.pied__marque p { margin: 0; font-size: 0.875rem; }
.pied__devise { margin-top: var(--esp-1) !important; color: var(--or); font-family: var(--police-titre); font-size: 1rem !important; }

.pied__liens { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--esp-5); }
.pied__liens h3 {
  margin-bottom: var(--esp-3);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or);
}
.pied__liens a { display: block; margin-bottom: var(--esp-2); font-size: 0.9375rem; color: #c8d2e2; text-decoration: none; }
.pied__liens a:hover { color: var(--blanc); text-decoration: underline; }

.pied__bas {
  padding: var(--esp-4) 0;
  font-size: 0.8125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero__grille, .bande-double { grid-template-columns: 1fr; gap: var(--esp-6); }
  .grille-services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .masque-mobile { display: none; }

  .navigation {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--esp-4) var(--esp-5);
    background: var(--blanc);
    border-bottom: 1px solid var(--bordure);
    box-shadow: var(--ombre-forte);
  }
  .navigation.ouverte { display: flex; }
  .navigation > a { padding: var(--esp-3) 0; border-bottom: 1px solid var(--bordure-claire); }
  .navigation__actions { flex-direction: column; margin: var(--esp-4) 0 0; }

  .entete__principal { position: relative; }
  .section, .hero { padding: var(--esp-6) 0; }
  .grille-services, .grille-services--detail { grid-template-columns: 1fr; }
  .pied__grille { grid-template-columns: 1fr; gap: var(--esp-5); }
}
