/* ---------- BASE ---------- */
body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #000;
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
html, body {
  height: 100%;
}

html{ overflow-y: scroll; }

main {
  flex: 1;
}

/* ---------- HEADER ---------- */
header {
  display: flex;
  align-items: center;
  padding: 1rem;
  position: relative;
  z-index: 10;
}

/* ---------- TITRE CENTRAL ---------- */

/* Conteneur global centré */
.title-container {
  position: relative;
  margin-top: 8vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Bloc qui englobe Logo + DSM + Ligne orange */
.title-wrap {
  display: inline-block;
  position: relative;
  padding-bottom: 20px; /* Espace pour la ligne orange */
}

/* Ligne contenant le Logo et le Texte DSM */
/* Conteneur pour Logo + DSM */
.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px; /* Espace entre le cadenas et DSM */
  font-size: clamp(2.5rem, 8vw, 6rem); /* Taille adaptative du texte */
  font-weight: bold;
  color: #fff;
}

/* Style de l'image (enfin lié !) */
.logo {
  /* 1em = exactement la même hauteur que le texte DSM */
  height: 1.2em; 
  width: auto;
  display: block;
}

/* La ligne orange sous le bloc title-row */
.title-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: orange;
  bottom: -10px; /* Position sous le texte */
  transform-origin: left;
  transform: scaleX(0);
  animation: underlineGrow 1s ease-out forwards;
}

@keyframes underlineGrow {
  to { transform: scaleX(1); }
}

/* Couleur orange pour le 'S' */
.orange { 
  color: orange; 
}

/* ---------- TEXTES ---------- */
.subtitle {
  margin-top: 20px;
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  font-weight: 100;
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.subtitle .left,
.subtitle .right {
  opacity: 0;
  position: relative;
}

.subtitle .left {
  animation: slideInLeft 0.5s forwards;
  animation-delay: 0.5s;
}
.subtitle .right {
  animation: slideInRight 0.5s forwards;
  animation-delay: 0.5s;
}

@keyframes slideInLeft {
  from { left: -200px; opacity: 0; }
  to { left: 0; opacity: 1; }
}
@keyframes slideInRight {
  from { right: -200px; opacity: 0; }
  to { right: 0; opacity: 1; }
}

.subtext {
  margin-top: 10px;
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  color: orange;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1s;
  font-weight: 700;
}

.soubtext {
  margin-top: 10px;
  font-size: clamp(1rem, 2.5vw, 1.9rem);
  color: white;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1s;
  font-weight: 100;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- TÉLÉPHONE ---------- */
.phone {
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 600;
  color: orange;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 2s steps(14) forwards;
  animation-delay: 2s;
}

@keyframes typing {
  from { width: 0; }
  to { width: 12ch; }
}

.call-button {
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 48px;
  position: relative;
  padding: 12px 24px;
  background-color: orange;
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 100;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInButton 0.8s ease forwards;
  animation-delay: 2.8s;
  z-index: 2;
}

@keyframes fadeInButton {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- MENU HAMBURGER ---------- */
#menu-toggle {
  position: absolute;
  top: 16px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  width: 24px;
  height: 3px;
  background-color: white;
  transition: 0.4s ease;
  border-radius: 4px;
}

.menu-label {
  font-size: 1.1rem;
  color: orange;
  font-weight: 500;
  margin-left: 15px;
  position: absolute;
  top: 0;
  left: 30px;
  transition: opacity 0.3s ease;
}

/* Effet croix */
#menu-toggle.active .top-bar {
  transform: rotate(42deg);
  transform-origin: left;
  background-color: orange;
}
#menu-toggle.active .middle-bar { opacity: 0; }
#menu-toggle.active .bottom-bar {
  transform: rotate(-42deg);
  transform-origin: left;
  background-color: orange;
}
#menu-toggle.active .menu-label {
  opacity: 0;
  pointer-events: none;
}

/* ---------- SIDEBAR ---------- */
#sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100vh;
  background-color: #111;
  padding-top: 4rem;
  transition: left 0.3s ease;
  z-index: 1000;
}

#sidebar.active { left: 0; }
#sidebar ul { list-style-type: none; padding: 0; }
#sidebar li {
  padding: 1rem;
  border-bottom: 1px solid #333;
  cursor: pointer;
}
#sidebar li:hover { background-color: #222; }
#sidebar a {
  color: white;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}
#sidebar li:hover a { color: orange; }

/* ---------- OVERLAY ---------- */
#overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}
#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---------- STICKERS ---------- */
.sticker-container{
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;             /* l'espace est géré par le bouton */
  position: relative;       /* ok, mais sans décalage */
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 90%;
  max-width: 800px;
  z-index: 1;
}


@media (max-width: 768px){
  .sticker-container{
    position: static;
    margin: 30px auto 40px;
    transform: none;
    width: auto;
    padding: 0 12px;
    justify-content: center;
    gap: 18px;
    box-sizing: border-box;
  }
}



.sticker {
  background-color: white;
  color: black;
  border-radius: 50%;
  border: 4px solid orange;
  width: clamp(70px, 12vw, 100px);
  height: clamp(70px, 12vw, 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: bold;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
  text-decoration: none;
}
/* Sticker Tarifs – différenciation forte mais élégante */
.sticker-tarifs{
  background: radial-gradient(circle at top left, #111 0%, #000 70%);
  color: #ff7a00;

  border: 4px solid #ff7a00;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.45),
    0 0 0 2px rgba(255,122,0,0.35);

  font-weight: 700;
  letter-spacing: 0.3px;

  transform: translateY(-4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Accent visuel sur un mot clé */
.sticker-tarifs span{
  color: #ff7a00;
}

/* Hover / tap */
.sticker-tarifs:hover{
  transform: translateY(-7px);
  box-shadow:
    0 12px 26px rgba(0,0,0,0.55),
    0 0 0 2px rgba(255,122,0,0.6);
}

.sticker-tarifs:active{
  transform: translateY(-2px);
}
/* Effet hover accentué – desktop uniquement */
@media (hover: hover) and (pointer: fine) {
  .sticker-tarifs:hover{
    transform: translateY(-8px) scale(1.06);
    box-shadow:
      0 14px 32px rgba(0,0,0,0.65),
      0 0 0 3px rgba(255,122,0,0.75),
      0 0 22px rgba(255,122,0,0.6);
    filter: contrast(1.1);
  }
}
.sticker-tarifs:active{
  transform: translateY(-3px) scale(0.98);
  box-shadow:
    0 6px 14px rgba(0,0,0,0.45),
    0 0 0 2px rgba(255,122,0,0.5);
}
@media (max-width: 700px){
  /* Rangée 1 : Urgence (1) - Tarifs (2) - Devis (3) */
  .sticker-urgence { order: 1; }
  .sticker-tarifs  { order: 2; }
  .sticker-devis   { order: 3; }

  /* Rangée 2 : Intervention (4) - 7j/7 (5) */
  .sticker-rapide  { order: 4; }
  .sticker-247     { order: 5; }
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 768px) {
  .title-container { margin-top: 10vh; }
  .subtitle, .subtext, .soubtext { flex-direction: column; }
  .phone { font-size: 1.8rem; }
  .sticker-container {
    position: static;
    margin-top: 30px;
    transform: none;
  }
}
/*-----cadre texte------*/
.home-content-container {
  max-width: 900px;
  /* Marge automatique sur les côtés, 60px en haut/bas */
  margin: 60px auto; 
  color: #fff;
  line-height: 1.7;
  text-align: center;
  
  /* Le secret est ici : un padding généreux qui s'adapte */
  padding: 40px; 
  
  border: 1px solid #333;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  
  /* Sécurité pour que le cadre ne touche JAMAIS les bords de l'écran */
  width: 90%; 
  box-sizing: border-box; 
}

/* Ajustements spécifiques pour Mobile */
@media (max-width: 600px) {
  .home-content-container {
    padding: 25px 15px; /* On réduit un peu le padding pour gagner de la place */
    margin: 40px auto;  /* On réduit l'espace au-dessus du bloc */
    width: 95%;         /* Le cadre s'approche un peu plus du bord sans le toucher */
    border-radius: 15px;
  }
  
  .home-content-container h1 {
    font-size: 1.4rem !important; /* On réduit le titre pour qu'il ne s'écrase pas */
  }
}
/* ===============================
   PIED DE PAGE
================================ */
.footer{
  background:#000;
  padding:18px 20px;
  position:relative;
  z-index:2;
}

.footer-container{
  max-width:1200px;
  margin:0 auto;
}

/* Liens */
.footer a{
  text-decoration:none;
  color:inherit;
}

/* ===============================
   LIGNE PRINCIPALE (4 BLOCS)
   social | brand | liens | crédit
================================ */
.footer-top{
  display:grid;
  grid-template-columns: auto 1fr auto auto;
  align-items:center;
  column-gap:28px;          /* ESPACE IDENTIQUE ENTRE BLOCS */
}

/* ---- Bloc 1 : Réseaux sociaux ---- */
.footer-social{
  display:flex;
  gap:12px;
  justify-self:start;
}

.footer-social a{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#000;
  color:orange;
  border:2px solid #ff7a00;
  font-size:15px;
  transition:background .2s ease, transform .2s ease;
}

.footer-social a:hover{
  background:#ff7a00;
  color:#000;
  transform:translateY(-2px);
}

/* ---- Bloc 2 : Brand (centre réel) ---- */
.footer-brand{
  justify-self:center;
  text-align:center;
  white-space:nowrap;
  font-size:14px;
  opacity:.55;
}

/* ---- Bloc 3 : Liens légaux ---- */
.footer-links{
  display:flex;
  gap:14px;
  justify-self:end;
  white-space:nowrap;
}

.footer-links a{
  font-size:14px;
  opacity:.9;
}

.footer-links a:hover{
  color:#ff7a00;
}

/* ---- Bloc 4 : Crédit ---- */
.footer-credit{
  justify-self:end;
  white-space:nowrap;
  font-size:13px;
  color:#9a9a9a;
}

.footer-credit a{
  color:#ffffff;
  font-weight:600;
}

.footer-credit a:hover{
  color:#ff7a00;
}

/* ===============================
   MODE COMPACT
   (petits laptops / scaling Windows)
================================ */
@media (max-width:1100px){
  .footer-top{
    column-gap:18px;
  }

  .footer-links a{
    font-size:13px;
  }

  .footer-brand{
    font-size:13px;
  }

  .footer-credit{
    font-size:12px;
  }
}


/* On force le conteneur à prendre toute la largeur */
.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-row-unique {
    display: flex !important; /* Force le mode flex */
    flex-direction: row !important; /* Force l'alignement horizontal */
    justify-content: space-between; /* Distribue les 4 blocs de gauche à droite */
    align-items: center;
    padding: 15px 0;
    gap: 10px;
    flex-wrap: nowrap; /* Empêche le passage à la ligne */
}

/* On s'assure que chaque bloc peut s'ajuster */
.footer-social, .footer-brand, .footer-links-inline, .footer-credit {
    white-space: nowrap; /* Empêche le texte de se couper */
}

.footer-credit a {
    color: orange !important;
    text-decoration: none;
    font-weight: bold;
}


.sep {
  color: #444;
}

/* Version Mobile : On empile pour éviter que ce soit trop serré */
@media (max-width: 900px) {
  .footer-row-unique {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* Style par défaut (Grand écran / Desktop) */
.footer-row-unique {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  flex-wrap: nowrap; /* Garde tout sur une ligne sur PC */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
}

/* --- LE CORRECTIF POUR MOBILE --- */
/* En dessous de 900px (tablettes et mobiles), on change la disposition */
@media (max-width: 900px) {
  .footer-row-unique {
    flex-direction: column !important; /* Empile les éléments verticalement */
    flex-wrap: wrap !important;
    text-align: center !important;
    gap: 15px; /* Espace entre les lignes empilées */
    padding: 30px 10px;
  }

  /* On s'assure que chaque bloc prend toute la largeur pour être bien centré */
  .footer-social, 
  .footer-brand, 
  .footer-links-inline, 
  .footer-credit {
    flex: none !important;
    width: 100%;
    justify-content: center;
    display: flex;
  }

  /* On enlève les barres verticales "|" qui ne servent plus à rien en colonne */
  .footer-links-inline .sep {
    display: none;
  }
  
  /* On peut aussi mettre les liens légaux les uns sous les autres pour plus de clarté */
  .footer-links-inline {
    flex-direction: column;
    gap: 8px;
  }
}