@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #f8f7f4;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #707070;
  --accent: #F25C05;
  --accent-light: #ff8f50;
  --radius: 14px;
}

/* ===== Base ===== */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 92%;
  max-width: 1150px;
  margin: 0 auto;
}

/* ===== Header ===== */
header {
  background: var(--card);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo-text .main {
  font-weight: 700;
  font-size: 1.3rem;
  display: block;
}

.logo-text .sub {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Navigation ===== */
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent);
}

/* ===== Menu Burger ===== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

/* Mobile menu hidden by default */
.nav-list {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
    color: var(--text);
  }

  nav {
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: var(--card);
    border-top: 1px solid #eee;
    padding: 1rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
  }

  .nav-list.active {
    display: flex;
  }

  nav a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1.1rem;
  }
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 8rem 1rem;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #fff;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #f0f0f0;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
  text-align: center;
}

/* ===== Cartes ===== */
.section-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 900px;
  text-align: center;
}

/* ===== Équipe ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.member {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.member:hover {
  transform: translateY(-5px);
}

.member img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.member h3 {
  margin: 0.5rem 0;
}

.member p {
  color: var(--muted);
}

/* ===== Partenaires ===== */
.partners-slider {
  overflow: hidden;
  position: relative;
  margin-top: 3rem;
  white-space: nowrap;
}

.partners-track {
  display: inline-flex;
  gap: 4rem;
  animation: scroll-logos 30s linear infinite;
}

.partners-track img {
  height: 60px;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.8;
  transition: all 0.3s;
}

.partners-track img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Contact ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-color, #333);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0.3);
  transition: filter 0.2s;
}

.contact-item:hover .contact-icon {
  filter: brightness(1);
}

.contact-info a {
  color: var(--accent-color, #2ea44f);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ===== Animation fade-up ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Footer ===== */
footer {
  background: var(--card);
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #eee;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .logo-text .sub {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}

/* ===== Nouveau bouton arrondi (Button-33) ===== */
.button-33 {
  background-color: #c2fbd7;
  border-radius: 100px;
  box-shadow:
    rgba(44, 187, 99, .2) 0 -25px 18px -14px inset,
    rgba(44, 187, 99, .15) 0 1px 2px,
    rgba(44, 187, 99, .15) 0 2px 4px,
    rgba(44, 187, 99, .15) 0 4px 8px,
    rgba(44, 187, 99, .15) 0 8px 16px,
    rgba(44, 187, 99, .15) 0 16px 32px;
  color: green;
  cursor: pointer;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  padding: 10px 26px;
  text-align: center;
  text-decoration: none;
  transition: all 250ms;
  border: 0;
  font-size: 16px;
  user-select: none;
}

.button-33:hover {
  transform: scale(1.05) rotate(-1deg);
}

/* ===== Typing effect ===== */
.typing {
  font-weight: 600;
  font-size: 1.5rem;
  border-right: 2px solid #fff;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  margin-top: 1rem;
  animation: blink 0.7s infinite;
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* ===== Dark Mode ===== */
.dark-mode {
  --bg: #121212;
  --card: #1e1e1e;
  --text: #f4f4f4;
  --muted: #a0a0a0;
  --accent: #ff7a00;
  --accent-light: #ffa64d;
}

.dark-mode header {
  background: var(--card);
  border-bottom: 1px solid #333;
}

.dark-mode footer {
  background: var(--card);
  border-top: 1px solid #333;
}

.dark-mode .section-card,
.dark-mode .member {
  background: var(--card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark-mode .nav-list {
  background: var(--card);
  border-color: #333;
}

.dark-mode .menu-toggle {
  color: var(--text);
}

.dark-mode .hero {
  background:
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

/* ===== Switch Dark Mode avec icônes ===== */
.theme-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
}

.theme-switch input {
  display: none;
}

.switch {
  width: 60px;
  height: 30px;
  background: #1e1e1e;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: background 0.4s ease;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.thumb {
  width: 24px;
  height: 24px;
  background: transparent;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
}

.thumb img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.theme-switch input:checked + .switch {
  background: #ffffff;
}

.theme-switch input:checked + .switch .thumb {
  left: calc(100% - 27px);
}

.theme-switch input:checked + .switch .thumb img {
  transform: rotate(180deg);
}

/* ===== Services détaillés ===== */
.service-section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 2rem;
  margin: 2rem 0;
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease;
}

.service-section.visible {
  opacity: 1;
  transform: translateX(0);
}

.service-section.alt {
  background: #f4f6f8;
}

.dark-mode .service-section.alt {
  background: #1b1b1b;
}

.service-section h3 {
  text-align: center;
  color: var(--accent);
}

.service-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0 auto 1rem;
  max-width: 700px;
  text-align: left;
}

.service-section li {
  margin-bottom: 8px;
}

.highlight {
  text-align: center;
  font-weight: 500;
  color: var(--text);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  max-width: 700px;
  margin: 1rem auto 0;
}

/* ===== Hero logo ===== */
.hero-logo {
  width: 200px;
  max-width: 60vw;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.2));
}
/* ===== Ajustement des icônes sur mobile ===== */
@media (max-width: 768px) {
  .icon img {
    width: 35px;
    height: 35px;
    margin-bottom: 8px;
  }
}
/* Centrage propre des icônes dans les cartes */
.service-section .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.8rem;
}

/* Ajustement spécifique sur mobile */
@media (max-width: 768px) {
  .icon img {
    width: 35px;
    height: 35px;
    margin: 0 auto 8px auto; /* centré horizontalement */
    display: block;
  }
}
/* ===== Icônes adaptatives ===== */
.service-section .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.icon img {
  width: clamp(35px, 5vw, 55px);
  height: auto;
  display: block;
  margin: 0 auto;
}
/* ===== Pourquoi choisir Alsonitech ===== */
.choisir {
  background: var(--bg);
  padding: 5rem 0;
}

.choisir .section-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 950px;
  text-align: center;
}

.choisir h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--text);
}

/* Grille interne */
.choisir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: start;
  margin-top: 2rem;
}

/* Carte individuelle */
.choisir-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choisir-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.choisir-item img {
  width: 55px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.choisir-item h3 {
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 1.15rem;
}

.choisir-item p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 300px;
}

/* ===== Mode sombre ===== */
.dark-mode .choisir {
  background: var(--bg);
}

.dark-mode .choisir .section-card {
  background: var(--card);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.dark-mode .choisir-item {
  background: #1b1b1b;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.dark-mode .choisir-item p {
  color: var(--muted);
}

.dark-mode .choisir-item h3 {
  color: var(--accent-light);
}

/* Responsive ajusté */
@media (max-width: 768px) {
  .choisir {
    padding: 3.5rem 1rem;
  }
  .choisir .section-card {
    padding: 2rem 1.2rem;
  }
}
/* ===== Pourquoi choisir Alsonitech ===== */
.choisir {
  background: var(--bg);
  padding: 5rem 0;
}

.choisir .section-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 950px;
  text-align: center;
}

/* Titre centré comme les autres sections */
.choisir h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 2.5rem;
  color: var(--text);
  text-align: center;
}

/* Grille interne */
.choisir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto;
  max-width: 850px;
}

/* Carte individuelle */
.choisir-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.choisir-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Icônes centrées */
.choisir-item img {
  width: 55px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Titres et textes */
.choisir-item h3 {
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 1.15rem;
}

.choisir-item p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 300px;
}

/* ===== Mode sombre ===== */
.dark-mode .choisir {
  background: var(--bg);
}

.dark-mode .choisir .section-card {
  background: var(--card);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.dark-mode .choisir-item {
  background: #1b1b1b;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.dark-mode .choisir-item p {
  color: var(--muted);
}

.dark-mode .choisir-item h3 {
  color: var(--accent-light);
}

/* Responsive */
@media (max-width: 768px) {
  .choisir {
    padding: 3.5rem 1rem;
  }

  .choisir .section-card {
    padding: 2rem 1.2rem;
  }

  .choisir h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
}
