/* =========================================
   Consolidation: layout.css
========================================= */

/* --- Source: header.css --- */

/* HEADER & NAVBAR STYLES */
.site-header {
  position: fixed; /* Le header est fixé dès le départ dans ce type de design */
  top: 0;
  left: 0;
  width: 100%;
  height: 81px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.35); /* Fond blanc transparent officiel */
  backdrop-filter: blur(63.5px); /* Flou d'arrière-plan officiel */
  -webkit-backdrop-filter: blur(63.5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

.site-header.is-sticky {
  background-color: rgba(255, 255, 255, 0.75); /* Devient un peu plus opaque au défilement */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(2, 24, 43, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  height: 100%;
  /* Calé sur la largeur Figma */
  /* max-width: 1728px;  */
  margin: 0 auto;
  /* Alignement gauche/droite du logo (63px) et du bouton (1536px -> 1728-1536-130 = 62px) */
  /* padding: 0 63px;  */
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  width: 208.63px;
  height: 48.3px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* MENU DE NAVIGATION */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 27px; /* Espace équilibré entre les éléments */
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; /* 13.006px officiel */
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-primary); /* #02182B officiel */
  letter-spacing: -0.03em; /* -3% officiel */
  padding: 8px 0;
  transition: opacity var(--transition-fast);
  opacity: 0.85;
  text-decoration: none
}

.nav-link:hover,
.nav-item.is-active .nav-link {
  opacity: 1;
}

/* Soulignement subtil animé au survol */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);;
}

/* Enlever le soulignement sur les liens précédémment visités */

.nav-item.is-active .nav-link::after {
  transform: scaleX(0); 
}


.nav-link:hover::after,
.nav-item.is-active .nav-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* CTA DROITE (Bouton Découvrir nos produits) */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 165px;
  height: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary); /* #02182B */
  background-color: transparent;
  border: 0.68px solid var(--color-primary); /* strokeWeight officiel */
  border-bottom: 1.5px solid var(--color-primary); /* Renforcement bas pour Rectangle 6 */
  border-radius: 0; /* Bordures carrées dans Figma */
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
}

.btn-header-cta:hover {
  background-color: var(--color-primary);
  color: var(--bg-white);
}

/* RESPONSIVE MOBILE MENU HAMBURGER */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-primary);
  transition: all var(--transition-normal);
}

/* Media Query pour Mobile & Tablette */
@media (max-width: 1024px) {
  .navbar {
    /* padding: 0 24px; */
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 32px 32px;
    gap: 24px;
    transition: right var(--transition-normal);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(2, 24, 43, 0.05);
    margin: 0;
  }

  .nav-menu.is-active {
    right: 0;
  }

  .nav-link {
    font-size: 16px;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Transformation en croix */
  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}


/* --- Source: footer.css --- */

/* ==========================================================================
   FOOTER — STYLES DÉDIÉS
   Fidèle à la maquette Figma (Footer 402:68 / Group 68)
   Layout : Fond blanc, 4 colonnes, barre de bas de page
   ========================================================================== */

/* --------------------------------------------------------------------------
   FOOTER PRINCIPAL
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  background-color: #F6F8F9;
  /* border-top: 1px solid #e8eef4; */
}

/* Conteneur intérieur (max-width Figma: 1728px → on aligne sur 1590px) */
.footer-inner {
  max-width: 1590px;
  margin: 0 auto;
  padding: 80px 80px 0;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   ZONE PRINCIPALE : 4 COLONNES (Group 68 W=1305px)
   Col 1 : Identité (W=375px)
   Col 2 : Accès Rapide (W=130px)
   Col 3 : Espace vide / séparation
   Col 4 : Newsletter + RS (W=484px)
   -------------------------------------------------------------------------- */
.footer-cols {
  display: grid;
  grid-template-columns: 375px 1fr 484px;
  gap: 80px;
  align-items: start;
  padding-bottom: 60px;
}

/* --------------------------------------------------------------------------
   COLONNE 1 : IDENTITÉ DE L'ENTREPRISE (Group 402:66, W=375px, H=358px)
   -------------------------------------------------------------------------- */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Logo SVG + Nom de l'entreprise */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
}

/* "Safe Environment Company" — DM Sans 31.3px Weight=600 #02182b */
.footer-brand-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 31.3px;
  font-weight: 600;
  color: #02182b;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Nom de l'entreprise sous le logo */
.footer-brand-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 31.3px;
  font-weight: 600;
  color: #02182b;
  line-height: 1.15;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

/* Description — DM Sans 16px Weight=400 #668aa4 */
.footer-brand-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #668aa4;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

/* Infos de contact (Adresse/Tel/Email) — Inter 16px Weight=400 #668aa4 */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-line {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #668aa4;
  line-height: 1.5;
  margin: 0;
  /* display: flex;
  gap: 6px;
  align-items: flex-start; */
}

.footer-contact-line strong {
  color: #02182b;
  font-weight: 500;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   COLONNE 2 : NAVIGATION "ACCÈS RAPIDE" (Group 402:26, W=130px)
   -------------------------------------------------------------------------- */
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Titre colonne — DM Sans 16px Weight=600 #02182b */
.footer-col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #02182b;
  margin: 0 0 20px 0;
  letter-spacing: 0;
}

/* Liste des liens */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Lien nav — DM Sans 16px Weight=400 #668aa4 avec hover */
.footer-nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #668aa4;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-nav-link:hover {
  color: #02182b;
}

/* --------------------------------------------------------------------------
   COLONNE 3 : "RESTEZ CONNECTÉ" — Newsletter + RS (Group 402:43, W=484px)
   -------------------------------------------------------------------------- */
.footer-newsletter-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Titre newsletter — DM Sans 31.3px Weight=600 #02182b */
.footer-newsletter-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 31.3px;
  font-weight: 600;
  color: #02182b;
  line-height: 1.2;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

/* Description newsletter — DM Sans 16px Weight=400 #668aa4 */
.footer-newsletter-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #668aa4;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

/* Formulaire newsletter : champ email + bouton */
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 32px;
}

/* Champ email — W=484px, H=64px, bordure #668aa4 weight=0.86px */
.footer-email-input {
  width: 100%;
  height: 64px;
  padding: 0 20px;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #02182b;
  background: transparent;
  border: 0.86px solid #668aa4;
  border-radius: 0; /* Pas de border-radius */
  /* border-bottom: none; */
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-email-input::placeholder {
  color: #668aa4;
}

.footer-email-input:focus {
  border-color: #02182b;
}

/* Bouton "M'inscrire →" — W=484px, H=66px, Fond #02182b, blanc */
.btn-newsletter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 66px;
  background-color: #02182b;
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 0; /* Pas de border-radius */
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
}

.btn-newsletter:hover {
  background-color: #031d33;
  transform: translateY(-1px);
}

.btn-newsletter .arrow {
  font-size: 16px;
}

/* Section Réseaux Sociaux */
.footer-social-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #668aa4;
  margin: 0 0 14px 0;
}

/* Icônes RS — 4 icônes SVG inline, 30px x 30px */
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0; /* Pas de border-radius */
  color: #668aa4;
  background-color: transparent;
  border: 1px solid #e2ecf3;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
  color: #ffffff;
  background-color: #02182b;
  border-color: #02182b;
  transform: translateY(-2px);
}

.footer-social-link[aria-label="YouTube"]:hover polygon {
  fill: #02182b;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Les icônes sont maintenant toutes en mode 'fill' (solid) */

.footer-legal-link-separator {
  width: 1px;
  height: 100%;
  background-color: #668aa4;
}

/* --------------------------------------------------------------------------
   SÉPARATEUR HORIZONTAL
   -------------------------------------------------------------------------- */
.footer-divider {
  width: calc(100% - 358px); /* Aligné sur le padding intérieur */
  max-width: 1590px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid #e2ecf3;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   BARRE DE BAS DE PAGE : Copyright + Liens légaux
   Figma : © 2025 (gauche) + Mentions légales / Confidentialité / CGV (droite)
   -------------------------------------------------------------------------- */
.footer-bottom {
  max-width: 1590px;
  margin: 0 auto;
  padding: 28px 179px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 24px;
}

/* © 2025 — DM Sans 16px Weight=500 #02182b */
.footer-copyright {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #02182b;
  margin: 0;
  /* white-space: nowrap; */
}

/* Groupe de liens légaux */
.footer-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0 0 2em;
}

/* Liens légaux — DM Sans 18px Weight=500 #02182b avec hover soulignement */
.footer-legal-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #02182b;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, text-decoration 0.2s ease;

  
}

.footer-legal-link:hover {
  color: #668aa4;
  text-decoration: underline;
}

.footer-legal-dot {
  color: #668aa4;
  font-size: 16px;
}

/* ==========================================================================
   MEDIA QUERIES — RESPONSIVE
   ========================================================================== */

@media (max-width: 1620px) {
  .footer-inner {
    padding: 80px 60px 0;
    max-width: calc(100% - 0px);
  }
  .footer-bottom {
    flex-direction: column;
    padding: 28px 60px;
  }
  .footer-divider {
    width: calc(100% - 120px);
  }
  .footer-cols {
    gap: 48px;
    grid-template-columns: 1fr 140px 420px;
  }
}

@media (max-width: 1200px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    grid-template-columns: auto auto auto;
    column-gap: 2em;
  }
  .footer-newsletter-col {
    grid-column: 1 / span 2;
  }
}

@media (max-width: 900px) {
  .logo-img {
    height: 44px;
    width: auto; 
  }

  .footer-inner {
    padding: 60px 24px 0;
  }
  .footer-bottom {
    padding: 24px;
    flex-direction: column;
    align-items: center;    
    gap: 16px;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-newsletter-col {
    grid-column: 1;
  }
  .footer-divider {
    width: calc(100% - 48px);
  }
  .footer-legal-links {
    gap: 20px;
    flex-wrap: wrap;
  }
  .footer-legal-link {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .logo-img {
    height: 32px;
  }

  .footer-newsletter-title,
  .footer-brand-name {
    font-size: 24px;
  }
  .footer-legal-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}


