/* =====================
   RESET & BASE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Poppins', sans-serif;

  background-image:
    linear-gradient(rgba(71, 143, 71, 0.35), rgba(71, 143, 71, 0.35)),
    url('../IMG/pexels-pareekshith-indeever-155333695-10697615.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 700px) {
  body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-image:
      linear-gradient(rgba(71, 143, 71, 0.35), rgba(71, 143, 71, 0.35)),
      url('../IMG/pexels-pareekshith-indeever-155333695-10697615.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
  }
}

/* =====================
   HEADER
===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  background-color: transparent;
  padding: 5px 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  box-shadow: none;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Header quand on scroll */
header.scrolled {
  background-color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

header img {
  width: 95px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 100%;
  flex-wrap: wrap;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
}

nav ul li a {
  color: #000000;
  text-decoration: none;
  font-size: 16px;
}

nav ul li a:hover {
  color: #04287c;
}

.active {
  color: #04287c;
  font-weight: bold;
}

.login {
  background-color: #04287c;
  color: #ffffff;
  padding: 8px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.login:hover {
  transform: scale(1.08);
}

@media (max-width: 700px) {
  header {
    padding: 10px 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  header nav {
    margin-top: 10px;
  }

  header nav ul {
    gap: 15px;
    justify-content: center;
  }

  header nav ul li a {
    font-size: 14px;
  }

  .login {
    padding: 6px 15px;
    font-size: 14px;
  }

  header img {
    width: 80px;
  }
}

/* =====================
   HERO – Surveillez l’humidité
===================== */
.first {
  margin-top: 200px; /* compensation header */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;

  background-color: rgba(255, 255, 255, 0.85);
  color: #0f172a;

  padding: 100px 60px;
  border-radius: 16px;

  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Titre */
.first h2 {
  font-size: 45px;
  font-weight: bold;
  line-height: 1.3;
}

.first h2 span {
  color: #1e5eff; /* HydroTrack en bleu */
}

/* Boutons */
.first ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10%;
  margin-top: 10px;
}

.first ul li {
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
}

/* Bouton principal */
.first ul li:first-child {
  background-color: #1e5eff;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.first ul li:first-child:hover {
  transform: scale(1.08);
}

.first ul li:first-child a {
  color: #ffffff;
  text-decoration: none;
}

/* Bouton secondaire */
.first ul li:last-child {
  background-color: #ffffff;
  border: 2px solid #ababab;
  display: inline-block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.first ul li:last-child:hover {
  transform: scale(1.08);
}

.first ul li:last-child a {
  color: #1e5eff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 700px) {
  .first {
    padding: 50px 24px;
    margin-top: 200px;
    margin-left: 30px;
    margin-right: 30px;
  }

  .first h2 {
    font-size: 26px;
  }

  .first ul {
    flex-direction: column;
    gap: 15px;
  }
}

/* =====================
   FONCTIONNALITÉS
===================== */
.features {
  margin-top: 100px;
  padding: 40px 20px;
  text-align: center;
}

/* Titre */
.features-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 60px;
  color: #0f172a;
}

.features-title span {
  background-color: #ffffff; /* même vert que la maquette */
  padding: 6px 16px;
  border-radius: 6px;
  color: #0f172a;
}

/* Cartes */
.features-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  background-color: #ffffff;
  padding: 50px 24px;
  border-radius: 14px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.feature-card:hover {
  transform: scale(1.05);
}

/* Icônes */
.feature-card img {
  width: 30%;
  margin-bottom: 16px;
  border-radius: 10%;
}

/* Titres des cartes */
.feature-card h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0f172a;
}

/* Texte */
.feature-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .features-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .features-title {
    font-size: 24px;
  }
}
/* =====================
   FOOTER
===================== */
.footer {
  background-color: #0f172a;
  color: #e5e7eb;
  margin-top: 100px;
  padding-top: 50px;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  padding: 0 24px 40px;

  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  width: 90px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: #cbd5f5;
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #cbd5f5;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 16px;
  font-size: 13px;
}

.logo_footer {
  border-radius: 30%;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  nav ul {
    gap: 20px;
  }

  .features-container {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand img {
    margin: 0 auto 12px;
  }
}
/*====================================== page de connexion ===================================*/

/* ===== CONTAINER ===== */
.login-container {
  width: 100%;
  max-width: 380px;
  padding: 20px;
  margin: auto;
  margin-top: 160px;
}

/* ===== FORMULAIRE ===== */
.login-form {
  background-color: #ffffff;
  padding: 32px 28px;
  border-radius: 12px;

  display: flex;
  flex-direction: column;
  gap: 16px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
}

/* ===== TITRE ===== */
.login-form h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #0f172a;
}
@media (max-width: 700px) {
  .login-container {
    padding: 0 20px;
    margin-top: 220px;
    margin-bottom: 50px;
    box-sizing: border-box;
    width: 100%;
  }
  .login-form {
    padding: 24px 20px;
    width: 100%;
    box-sizing: border-box;
  }
}

.login-form .brand {
  color: #478f47; /* vert HydroTrack */
}

/* ===== INPUTS ===== */
.login-form input {
  padding: 12px 14px;
  font-size: 15px;

  border-radius: 8px;
  border: 1px solid #d1d5db;
  outline: none;
}

.login-form input:focus {
  border-color: #478f47;
}

/* ===== BOUTON ===== */
.btn-primary {
  margin-top: 10px;
  padding: 12px;

  background-color: #478f47;
  color: #ffffff;

  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* ===== FOOTER FORM ===== */
.auth-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: #475569;
}

.btn-secondary-link {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  color: #478f47;
  font-weight: 500;
}

.btn-secondary-link:hover {
  text-decoration: underline;
}

/* ===== MESSAGE ERREUR ===== */
.login-form p {
  text-align: center;
  font-size: 14px;
}

/* ===== FORM ROW FOR SMART PACK FORM ===== */
.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  width: 100%;
}
.form-row input {
  flex: 1;
  width: 100%;
}
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== A PROPOS ===== */

.first1 {
  margin-top: 120px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;

  background: url('../IMG/a_propos.png') center/cover no-repeat;

  color: #0a2540;
  padding: 120px 80px;
  border-radius: 24px;

  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.first1 h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.first1 h2 {
  font-size: 18px;
  font-weight: 400;
  max-width: 700px;
  line-height: 1.7;
  color: #334155;
}
.section-title {
  text-align: center;
  background-color: #ffffff;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 24px;
}

/* ===== Section Présentation du projet ===== */

.about-description {
  padding: 80px;
  background-color: #ffffff;
  text-align: center;
  border-radius: 05%;
  margin: 40px;
}

.about-description h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #0a2540;
  margin-bottom: 40px;
}

.about-description p {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  max-width: 850px;
  margin: 0 auto 25px auto;
}

.architecture {
  position: relative;
  background: url('../IMG/ton-image.jpg') center/cover no-repeat;
  padding: 100px 20px;
}

/* Overlay sombre pour lisibilité */
.architecture-overlay {
  background: rgba(0, 60, 30, 0.65);
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

@media (max-width: 700px) {
  .first1 {
    padding: 60px 30px;
    margin-top: 130px;
    margin-left: 20px;
    margin-right: 20px;
  }
  .first1 h1 {
    font-size: 32px;
  }
  .first1 h2 {
    font-size: 15px;
  }
  .about-description {
    padding: 40px 20px;
    margin: 20px;
  }
  .about-description h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .about-description p {
    font-size: 15px;
  }
  .section-title {
    width: 90%;
    font-size: 20px;
    padding: 10px;
  }
}

/* Carte effet glass */
.architecture-card {
  max-width: 900px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 20px;
  color: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.architecture-card h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #4caf50;
}

.architecture-card p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* =====================
   TEAM PAGE
===================== */

.team-hero {
  margin-top: 150px;
  text-align: center;
  padding: 60px 20px;
}

.team-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 15px;
}

.team-hero h1 span {
  color: #1e5eff;
  position: relative;
}

.team-hero h1 span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #478f47;
  border-radius: 2px;
}

.team-hero p {
  font-size: 18px;
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}

.team-section {
  padding: 40px 20px 100px;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.team-card {
  flex: 0 1 280px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #1e5eff, #478f47);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-card:hover::before {
  opacity: 1;
}

.member-img-container {
  width: 130px;
  height: 130px;
  margin: 0 auto 25px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #1e5eff, #478f47);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-img-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #fff;
  border: 4px solid #fff;
}

.member-info h3 {
  font-size: 22px;
  color: #0f172a;
  margin-bottom: 8px;
  font-weight: 700;
}

.member-info .role {
  font-size: 14px;
  color: #478f47;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.member-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.member-socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
}

.member-socials a:hover {
  background: #1e5eff;
  color: #fff;
  transform: rotate(360deg);
}

/* Modalité Responsive */
@media (max-width: 700px) {
  .team-hero h1 {
    font-size: 32px;
  }
  
  .team-container {
    flex-direction: column;
    align-items: center;
    max-width: 350px;
  }
}

@media (max-width: 430px) {

  /* ===== BODY ===== */
  body {
    overflow-x: hidden;
  }

  header {
    padding: 10px 15px;
    margin-bottom: 90px;
  }

  nav ul {
    gap: 15px;
    font-size: 14px;
  }

  header img {
    width: 75px;
  }
  

  /* ===== HERO SECTION ===== */
  .first1 {
    margin-top: 200px;
    padding: 60px 25px;
    border-radius: 18px;
    text-align: center;
  }

  .first1 h1 {
    font-size: 26px;
  }

  .first1 h2 {
    font-size: 15px;
    max-width: 100%;
  }

  /* ===== ABOUT DESCRIPTION ===== */
  .about-description {
    padding: 50px 20px;
    margin: 20px;
    border-radius: 18px;
  }

  .about-description h2 {
    font-size: 24px;
  }

  .about-description p {
    font-size: 15px;
    line-height: 1.7;
  }

  /* ===== SECTION TITLE ===== */
  .section-title {
    width: 90%;
    font-size: 22px;
    padding: 15px;
  }

  /* ===== FEATURES ===== */
  .features
  {
    margin-top: 0;
  }
  .features-container {
    display: flex;
    flex-direction: column ;
    
    gap: 25px;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 14px;
  }

  /* ===== ARCHITECTURE ===== */
  .architecture {
    padding: 60px 15px;
  }

  .architecture-overlay {
    padding: 30px 15px;
  }

  .architecture-card {
    padding: 30px 20px;
  }

  .architecture-card h2 {
    font-size: 22px;
  }

  .architecture-card p {
    font-size: 15px;
  }

  /* ===== FOOTER ===== */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

}
