/* =============================================================
   SAMP – custom.css
   Chargé automatiquement par PS9 (priorité 1000, ID theme-custom)
   ============================================================= */

/* ── 0. Variables de charte ────────────────────────────────── */
:root {
  --color-primary:           #1a2744;
  --color-secondary:         #B8860B;
  --color-primary-hover:     #253660;
  --link-color:              #1a2744;
  --link-hover-color:        #B8860B;
  --btn-primary-bg:          #1a2744;
  --btn-primary-color:       #ffffff;
  --btn-primary-hover-bg:    #B8860B;
  --btn-primary-hover-color: #ffffff;
}

/* ── 1. Boutons ─────────────────────────────────────────────── */
.btn-primary {
  background-color: #1a2744;
  border-color:     #1a2744;
  color:            #ffffff;
}
.btn-primary:hover {
  background-color: #B8860B;
  border-color:     #B8860B;
}

/* ── 2. Liens globaux ───────────────────────────────────────── */
a       { color: #1a2744; }
a:hover { color: #B8860B; }

/* ── 3. Footer ──────────────────────────────────────────────── */
footer,
#footer,
div.footer.footer__main {
  background-color: #1a2744 !important;
  color: #ffffff;
}

footer a,
footer .footer-block__list a,
footer .cms-page-link,
footer .account-list a {
  color: #ffffff !important;
}
footer a:hover,
footer .footer-block__list a:hover {
  color: #D4AF37 !important;
}

footer h3,
footer h4,
footer .footer-block__title {
  color: #D4AF37 !important;
}

.footer-block__title,
.footer-block__title--toggle,
p.footer-block__title {
  color: #ffffff !important;
}

div.copyright,
div.copyright a {
  color: #ffffff !important;
}

/* ── 4. Masquer les zones natives de Hummingbird ────────────── */
#header .header-top,
#header .header-bottom {
  display: none !important;
}

/* ── 5. Header SAMP – structure générale ────────────────────── */
.samp-header {
  background-color: #ffffff;
  border-bottom: 2px solid #B8860B;
  width: 100%;
}

.samp-header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 0;
  width: 100%;
}

/* ── 6. Colonne gauche : bannière ───────────────────────────── */
.samp-col-logo {
  flex: 0 0 914px;
  max-width: 914px;
}

.samp-col-logo a {
  display: block;
  line-height: 0;
}

.samp-col-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 7. Colonne droite ──────────────────────────────────────── */
.samp-col-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
  align-self: flex-start;
}

/* ── 8. Ligne de navigation unifiée ─────────────────────────── */
.samp-nav-unified {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex-wrap: nowrap;
  padding-top: 0.25rem;
}

/* Groupe gauche : catégories */
.samp-nav-categories {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.samp-nav-categories li {
  margin: 0;
  padding: 0;
}

.samp-nav-categories a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a2744 !important;
  text-decoration: none;
  white-space: nowrap;
}

.samp-nav-categories a:hover {
  color: #B8860B !important;
}

/* Séparateur vertical */
.samp-nav-separator {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  background-color: #B8860B;
  margin: 0 1.25rem;
  opacity: 0.6;
  flex-shrink: 0;
  align-self: center;
}

/* Groupe droit : utilitaires (Contactez-nous, Connexion, Panier) */
.samp-nav-utils {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

/* Harmonisation typographique des hooks utilitaires */
.samp-nav-utils a,
.samp-nav-utils span,
.samp-nav-utils .header__nav-item,
.samp-nav-utils .material-icons {
  font-size: 0.85rem !important;
  color: #1a2744 !important;
  text-decoration: none;
  white-space: nowrap;
}

.samp-nav-utils a:hover {
  color: #B8860B !important;
}

/* Neutraliser les marges/paddings internes des modules hooks */
.samp-nav-utils > div,
.samp-nav-utils > nav,
.samp-nav-utils > ul {
  margin: 0;
  padding: 0;
}

/* ── 9. Ligne de recherche ──────────────────────────────────── */
.samp-nav-search {
  display: flex;
  justify-content: flex-end;
}

.samp-nav-search form,
.samp-nav-search .search-widget {
  width: 100%;
  max-width: 480px;
}

/* ── 10. Responsive ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .samp-header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .samp-col-logo {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .samp-col-logo img {
    width: 100%;
  }

  .samp-col-nav {
    padding: 0.5rem 1rem;
    align-self: auto;
  }

  .samp-nav-unified {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .samp-nav-separator {
    display: none;
  }

  .samp-nav-utils {
    flex-wrap: wrap;
  }

  .samp-nav-search {
    justify-content: center;
  }

  .samp-nav-search form,
  .samp-nav-search .search-widget {
    max-width: 100%;
  }
}

/* ── 11. Pages CMS ──────────────────────────────────────────── */

/* Conteneur principal des pages CMS dans Hummingbird */
.cms-page-content,
.page-cms .page-content,
#content-wrapper .page-cms {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: #1a2744;
  line-height: 1.8;
  font-size: 1rem;
}

/* Titres de section */
.cms-page-content h2,
.page-cms .page-content h2 {
  color: #B8860B;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e8d9b0;
}

.cms-page-content h3,
.page-cms .page-content h3 {
  color: #1a2744;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

/* Paragraphes */
.cms-page-content p,
.page-cms .page-content p {
  margin-bottom: 1rem;
  color: #1a2744;
}

/* Liens */
.cms-page-content a,
.page-cms .page-content a {
  color: #B8860B !important;
  text-decoration: underline;
}

.cms-page-content a:hover,
.page-cms .page-content a:hover {
  color: #1a2744 !important;
}

/* Séparateurs */
.cms-page-content hr,
.page-cms .page-content hr {
  border: none;
  border-top: 1px solid #B8860B;
  opacity: 0.3;
  margin: 1.75rem 0;
}

/* Texte en gras */
.cms-page-content strong,
.page-cms .page-content strong {
  color: #1a2744;
  font-weight: 600;
}

/* Titre principal de la page CMS (h1) */
.cms-page-content h1,
.page-cms h1,
.page-cms .page-header h1 {
  font-size: 1.4rem;
  color: #1a2744;
  border-bottom: 2px solid #B8860B;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ── 12. Masquer "Call us" dans le header (numéro conservé dans le footer) ── */
.samp-nav-utils a.ps-contactinfo__phone {
  display: none !important;
}
