:root {
  --bg-primary: #155dfc; /* Bleu Électrique */
  --bg-secondary: #8f8cb8; /* Violet Pastel */
  --accent-color: #4ebe9e; /* Vert Menthe */
  --text-primary: #faf7ff; /* Blanc Cassé */
  --text-black: #1b1a28; /* Noir Foncé */
  --box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  --transition-set: all 0.3s;
}

/* Reseting  Default Style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  scroll-behavior: smooth;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  color: var(--text-black);
  line-height: 1.6;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto Slab", serif;
}
h2 {
  color: var(
    --bg-primary
  ); /* Le bleu électrique pour faire ressortir les sections */

  /* Taille fluide pour le H2 (plus petit que le H1 du hero) */
  font-size: clamp(1.75rem, 4vw + 1rem, 2.75rem);

  line-height: 1.2;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase; /* Si vous souhaitez garder le même style que le Hero */
  letter-spacing: -0.01em;
}

/* Astuce : Mettre en valeur un mot dans vos H2 */
h2 span.highlight {
  color: var(
    --accent-color
  ); /* Utilisation du vert menthe par touches chirurgicales */
}

a {
  text-decoration: none;
}
ul {
  list-style: none;
}

/* Default buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}
/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(27, 26, 40, 0.05);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 90vw;
  margin: 0 auto;
}
.logo a {
  color: var(--bg-primary);
}
.menu-checkbox {
  display: none;
}
.nav-list {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--text-primary);
  list-style: none;
  padding: 6rem 2rem 2rem 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-checkbox:checked ~ .nav-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item {
  color: var(--bg-primary);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-set);
}
.nav-item:hover {
  color: var(--accent-color);
}
/* État normal au survol */
.nav-item:hover {
  color: var(--accent-color);
}

/* La vraie classe pour la page en cours (Ajoutez l'état :active ici si vous voulez la même couleur au clic) */
.nav-item.active,
.nav-item:active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color); /* Optionnel : ajoute un joli trait sous le lien actif */
}

/*  nav button */
.btn-nav {
  display: inline-block;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-nav:hover {
  background-color: #0b46c6;
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.2);
}
.nav-right-desktop {
  display: none;
}
.btn-contact {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition-set);
}
.btn-contact:hover {
  background-color: var(--accent-color);
  color: var(--bg-primary);
}
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: var(--transition-set);
  padding: 10px;
  border: 1px solid var(--bg-primary);
  border-radius: 8px;
  z-index: 1200;
}
.burger:hover {
  box-shadow: var(--box-shadow);
}
.burger > .stroke {
  background-color: var(--bg-primary);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- ANIMATION DU BURGER EN "X" AU CLIC (CSS PUR) --- */
.menu-checkbox:checked ~ .burger .stroke:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-checkbox:checked ~ .burger .stroke:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.menu-checkbox:checked ~ .burger .stroke:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* Section style */
section .section-wrapper {
  max-width: 90vw;
  margin: 0 auto;
}
/* Hero Section */
section#hero {
  background:
    linear-gradient(rgba(27, 26, 40, 0.75), rgba(27, 26, 40, 0.85)),
    url(./img/bureau.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
/* hero heading */
.hero-heading {
  text-align: center;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text-primary);
  font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero-sub {
  text-align: center;
  color: var(--accent-color);
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.35rem);
  line-height: 1.6;
}
/* Hero link */
.hero-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
}
/* Bouton Principal (Services) */
.btn-hero:first-child {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--bg-primary);
}

.btn-hero:first-child:hover {
  background-color: #0b46c6; /* Bleu légèrement plus sombre au survol */
  border-color: #0b46c6;
}

/* Bouton Secondaire (Contact) */
.btn-hero:last-child {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-hero:last-child:hover {
  background-color: var(--text-primary);
  color: var(--text-black);
}

/* Section editing */
.section-box {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-title {
  color: var(--bg-primary);
}
p.section-sub {
  margin-bottom: 1rem;
  color: #565454;
}

.about-box {
  display: flex;
  flex-direction: column; /* Alignement vertical par défaut sur mobile */
  gap: 2.5rem; /* Espace entre l'image et le texte */
  align-items: center;
}

.section-image {
  width: 100%;
  max-width: 500px; /* Évite que l'image ne devienne gigantesque sur tablette */
}
/* Image section */
.section-img {
  width: 100%;
  height: 350px; /* Hauteur fixe sur mobile */
  object-fit: cover; /* Recadre l'image proprement sans la déformer */
  border-radius: 12px; /* Coins arrondis modernes */
  box-shadow:
    0 10px 25px -5px rgba(27, 26, 40, 0.1),
    0 8px 10px -6px rgba(27, 26, 40, 0.1);
}
.about-text {
  width: 100%;
}

.about-text p {
  color: var(--text-black);
  font-size: 1.05rem;
  line-height: 1.7; /* Interligne aéré pour un grand confort de lecture */
  margin-bottom: 1.25rem;
}

/* Supprime la marge sur le tout dernier paragraphe */
.about-text p:last-child {
  margin-bottom: 0;
}
/* service grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 2rem 0;
  gap: 2rem;
  width: 100%;
}
/* single card */
.service-item {
  background-color: var(--text-primary);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: var(--transition-set);
}
.service-item:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 25px -5px rgba(21, 93, 252, 0.1),
    0 10px 10px -5px rgba(21, 93, 252, 0.04);
  border-color: var(--bg-primary);
}
/* service icon */
.img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: #f0f4ff; /* Léger fond bleu très clair pour faire ressortir l'icône */
  border-radius: 50%;
  margin-bottom: 1.5rem;
  transition: var(--transition-set);
}
.service-icon {
  width: 35px;
  height: 35px;
  stroke: var(--bg-primary);
}
/* Animation de l'icône au survol de la carte */
.service-item:hover .img-wrapper {
  background-color: var(--bg-primary);
}
.service-item:hover .service-icon {
  stroke: var(
    --accent-color
  ); /* L'icône passe en blanc quand le fond devient bleu */
}

/* --- CONTENU ET TYPOGRAPHIE --- */
.service-body {
  margin-bottom: 1.5rem;
}

.service-name {
  color: var(--text-black); /* Noir foncé bleuté pour le titre de la carte */
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Liste des fonctionnalités */
.service-list {
  width: 100%;
}
.service-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-list li {
  color: #4a5568; /* Un gris foncé pour un excellent confort de lecture */
  font-size: 0.95rem;
  position: relative;
}

/* Petite puce stylisée devant chaque ligne avec votre Vert Menthe */
.service-list li::before {
  content: "✓";
  color: var(--accent-color); /* Vert menthe pour valider les options */
  font-weight: bold;
  margin-right: 8px;
}

/* --- CONFIGURATION CONTACT (Mobile-First) --- */
.contact-wrapper {
  display: flex;
  flex-direction: column; /* Tout empiler sur mobile */
  gap: 3rem;
  padding: 2rem 0;
  width: 100%;
}

/* --- BLOC D'INFORMATIONS --- */
.contact-infos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #f8fafc; /* Fond très légèrement grisé */
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border-left: 5px solid var(--accent-color); /* Ligne verticale distinctive verte */
}

/* Alignement icône + titre */
.info-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.info-title-icon {
  width: 20px;
  height: 20px;
  stroke: var(
    --bg-primary
  ); /* Vos icônes prennent votre couleur bleu électrique */
  flex-shrink: 0;
}

.info-block h3 {
  color: var(--text-black);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}

.info-block p,
.info-block a {
  color: #4a5568; /* Gris foncé agréable à lire */
  font-size: 1.05rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-block a:hover {
  color: var(
    --bg-primary
  ); /* Les liens de contact deviennent bleus au survol */
}

/* --- STYLE DES RÉSEAUX SOCIAUX (SVG) --- */
.contact-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: var(--text-black); /* Couleur initiale des logos réseaux sociaux */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor; /* Permet de changer la couleur en fonction du parent */
  fill: none;
}

/* Effets interactifs au survol des bulles réseaux sociaux */
.contact-links a:hover {
  background-color: var(--bg-primary); /* Fond devient bleu électrique */
  color: var(--text-primary); /* L'icône passe en blanc */
  border-color: var(--bg-primary);
  transform: translateY(-3px); /* Petite impulsion vers le haut */
  box-shadow: 0 10px 15px -3px rgba(21, 93, 252, 0.3);
}

/* --- FORMULAIRE DE CONTACT --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: #ffffff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  color: var(--text-black);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--text-black);
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(21, 93, 252, 0.15); /* Halo bleu */
}

textarea.form-input {
  resize: vertical;
}

/* Le Bouton d'envoi */
.form-btn {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
  width: 100%; /* Toute la largeur sur mobile */
}

.form-btn:hover {
  background-color: #0b46c6;
}

.form-btn:active {
  transform: scale(0.98);
}

/* Footer */
footer {
  background-color: var(--text-black);
  color: var(--text-primary);
}
.footer-wrapper {
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.footer-box h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}
footer .copyright {
  text-align: center;
  font-size: 0.8rem;
  padding-bottom: 1rem;
}

footer a.footer-link {
  color: var(--accent-color);
  transition: var(--transition-set);
}
footer a.footer-link:hover {
  color: var(--bg-primary);
}

/* services page */
.services-hero {
  background-color: var(--text-black); /* Reprend votre fond très sombre */
  padding: 8rem 0 4rem 0; /* Plus d'espace en haut pour compenser le header fixe */
  text-align: center;
}
.services-title {
  color: var(--text-primary);
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.services-title .highlight {
  color: var(--bg-primary); /* "Numériques" s'affiche en Bleu électrique */
}

.services-subtitle {
  color: var(
    --bg-secondary
  ); /* Violet pastel pour adoucir le texte sur fond sombre */
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
*
  ---
  EXTENSION
  DU
  STYLE
  DES
  CARTES
  DE
  SERVICES
  ---
  */
  .services-detail-section {
  padding: 4rem 0;
  background-color: #ffffff; /* Fond blanc */
}

/* Ajout d'un paragraphe descriptif sous le titre de la carte */
.service-description {
  color: #64748b; /* Gris intermédiaire */
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Ajustement de la liste pour laisser de la place au bouton */
.service-list {
  margin-bottom: 2rem;
}
/* Bouton d'action à l'intérieur de chaque offre */
.btn-service-action {
  display: inline-block;
  width: 100%; /* Prend toute la largeur de la carte */
  padding: 0.85rem;
  background-color: transparent;
  color: var(--bg-primary);
  border: 2px solid var(--bg-primary);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  transition: all 0.2s ease;
  margin-top: auto; /* Pousse automatiquement le bouton en bas de la carte si les textes varient */
}
.service-item:hover .btn-service-action {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* --- SECTION DE CONCLUSION / APPEL À L'ACTION --- */
.services-cta {
  background: linear-gradient(rgba(27, 26, 40, 0.95), rgba(27, 26, 40, 0.98));
  padding: 5rem 0;
  text-align: center;
  color: var(--text-primary);
}

.services-cta h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.services-cta h2 .highlight-green {
  color: var(--accent-color); /* "Mesure" s'affiche avec votre vert menthe */
}

.services-cta p {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  color: #cbd5e1;
  line-height: 1.6;
}
.btn-custom-cta {
  display: inline-block;
  background-color: var(
    --accent-color
  ); /* Bouton en Vert Menthe pour casser le bleu habituel */
  color: var(--text-black);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-custom-cta:hover {
  background-color: #3ca385; /* Vert légèrement plus soutenu au survol */
  box-shadow: 0 10px 20px rgba(78, 190, 158, 0.2);
  transform: translateY(-2px);
}

/* Banner */
.banner {
  background: var(--text-black);
  width: 100%;
}
.banner .banner-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.banner-wrapper .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.banner-wrapper .stat .stat-count {
  font-size: 3rem;
  color: var(--accent-color);
}
.banner-wrapper .stat .stat-label {
  color: var(--bg-secondary);
  font-weight: 300;
  letter-spacing: 2px;
}

/* contact page */

/* /* --- PASSAGE SUR TABLETTE & ORDINATEUR --- */
@media (min-width: 48rem) {
  /* À partir de ~768px */
  .burger {
    display: none;
  }

  .nav-list {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    flex-direction: row;
    gap: 2.5rem;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item {
    font-size: 0.95rem;
    font-weight: 500;
  }

  .nav-cta-mobile {
    display: none;
  }

  .nav-right-desktop {
    display: block;
  }

  .about-box {
    flex-direction: row; /* Alignement côte à côte sur grand écran */
    align-items: center; /* Aligne verticalement l'image et le texte au centre */
    gap: 4rem; /* Plus d'espace entre les deux colonnes */
  }

  .section-image {
    flex: 1; /* Prend 50% de la largeur disponible */
    max-width: none;
  }

  .section-img {
    height: 450px; /* Image plus grande et immersive sur ordinateur */
  }

  .about-text {
    flex: 1; /* Prend les autres 50% de la largeur disponible */
    text-align: left; /* Aligne le texte à gauche pour le confort de lecture desktop */
  }

  .services-grid {
    /* Aligne automatiquement les 3 cartes côte à côte de manière responsive */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .contact-wrapper {
    flex-direction: row; /* Côte à côte */
    align-items: flex-start;
  }

  .contact-infos {
    flex: 1; /* Aligné à gauche */
    position: sticky;
    top: 2rem; /* Reste fixé si la page défile */
  }

  .contact-form {
    flex: 1.5; /* Formulaire à droite plus large */
  }

  .form-btn {
    width: auto; /* Reprend sa taille d'origine sur ordinateur */
  }
  footer .footer-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}
