/* ---------- Style global ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html{
  overflow-y:scroll;
}

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;
}

main {
  flex: 1; /* pousse le footer vers le bas */
}

.orange {
  color: orange;
}

/* ---------- HEADER / TITRE DSM ---------- */

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

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

/* Conteneur global centré */
.title-container {
  position: relative;
  width: 100%;
  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; 
}

/* ---------- MENU TOGGLE / SIDEBAR ---------- */

#menu-toggle {
  position: absolute;
  top: 16px;
  left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

/* Trois barres empilées */
.bar {
  width: 24px;
  height: 3px;
  background-color: white;
  transition: 0.4s ease;
  border-radius: 4px;
  transform-origin: center;
}

/* Texte "Menu" à droite */
.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;
}

/* Transformation 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;
  margin: 0;
}

#sidebar li {
  padding: 1rem;
  border-bottom: 1px solid #333;
  cursor: pointer;
  color: white;
}

#sidebar li:hover {
  background-color: #222;
}

#sidebar a {
  color: white;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  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 RONDS ---------- */

.sticker {
  background-color: white;
  color: black;
  border-radius: 50%;
  border: 4px solid orange;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}


/* Par défaut : version desktop, placés à gauche/droite de la zone centrale */
.prestations-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 2rem;
}

.prestations-content {
  max-width: 700px;
}

/* stickers en absolu pour les grands écrans */
.sticker.left,
.sticker.right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.sticker.left {
  left: -90px;
}

.sticker.right {
  right: -90px;
}

/* ---------- BLOC PRINCIPAL "MES PRESTATIONS" ---------- */

.service-container {
  /* CORRECTION: on supprime la position absolute pour que ça soit responsive */
  max-width: 1100px;
  margin: 0px auto 3rem; /* laisse de la place sous le header */
  padding: 0 1.5rem 2.5rem;
  text-align: center;
}

.service-title {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

/* Liste des prestations */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.services-list li {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 300;
}

/* Le SVG a déjà un margin-right inline, on garde juste l’alignement global */
.services-list svg {
  flex-shrink: 0;
}

/* Bouton d’appel */
.call-buttons {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 12px 24px;
  background-color: orange;
  color: rgb(0, 0, 0);
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.call-buttons:hover {
  background-color: #ff9a1a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

/* ---------- RESPONSIVE : TABLETTES & MOBILES ---------- */

/* Tablettes / petits laptops */
@media (max-width: 1024px) {
  .prestations-wrapper {
    padding: 2rem 1.5rem;
  }

  .sticker.left {
    left: -10px;
  }

  .sticker.right {
    right: -10px;
  }

  .services-list li {
    font-size: 1.15rem;
  }
}

/* Mobiles (≤ 768px) : on empile les stickers au-dessus / en dessous */
@media (max-width: 768px) {
  header {
    padding-top: 0.75rem;
  }

  .service-container {
    margin-top: 10px;
    padding: 0 1rem 2rem;
  }

  .prestations-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.8rem 1.2rem;
    background: #111;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  }

  /* Les stickers redeviennent “normaux” dans le flux */
  @media (max-width: 768px) {

  /* Sticker du haut (Expertise & Diagnostic) */
  .sticker.left {
    margin-bottom: 2rem;  /* + espace sous le sticker du haut */
  }

  /* Sticker du bas (Dépannage 24/24) */
  .sticker.right {
    margin-top: 2rem;     /* + espace avant le sticker du bas */
    margin-bottom: 0;     /* pas besoin de marge sous lui */
  }

  .sticker.left,
  .sticker.right {
    position: static;
    transform: none;
    width: 120px;
    height: 120px;
    font-size: 1rem;
    padding: 14px;
  }
}


  .prestations-content {
    max-width: 100%;
    text-align: left;
  }

  .service-title {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .services-list li {
    font-size: 1.05rem;
  }

  .call-buttons {
    margin-top: 1.8rem;
  }
}

/* Très petits écrans (iPhone SE & similaires) */
@media (max-width: 380px) {
  .service-container {
    margin-top: 80px;
    padding-inline: 0.75rem;
  }

  .prestations-wrapper {
    padding: 1.5rem 0.9rem;
  }

  .services-list li {
    font-size: 0.98rem;
  }

  .sticker.left,
  .sticker.right {
    width: 78px;
    height: 78px;
    font-size: 0.8rem;
  }
}

/* ===============================
   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;
  }
}