/* =============================
   BASE
============================= */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  background: #f7f2ea;
  color: #333333;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

h2 {
  margin-top: 0;
  line-height: 1.2;
}


/* =============================
   ACCESSIBILITÉ CLAVIER
============================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #7a5c3a;
  outline-offset: 3px;
}


/* =============================
   HEADER
============================= */

header {
  background: #ffffff;
  border-bottom: 1px solid #d8cfc4;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  color: #6b4d2e;
  margin: 0;
  margin-right: 20px;
  font-size: 2rem;
}


/* =============================
   NAVIGATION
============================= */

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

nav a {
  padding: 5px 2px;
  text-decoration: none;
  color: #333333;
  font-weight: 600;
}

nav a.active {
  color: #6b4d2e;
  text-decoration: underline;
}

nav a:hover,
nav a:focus-visible {
  color: #6b4d2e;
  text-decoration: underline;
}


/* =============================
   MENU UTILISATEUR
============================= */

.user-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
}

.user-menu span {
  color: #6b4d2e;
}

.user-menu a {
  color: #6b4d2e;
  text-decoration: underline;
}

.user-menu a:hover,
.user-menu a:focus-visible {
  color: #4f381f;
}


/* =============================
   HERO IMAGE
============================= */

.hero-image {
  padding: 0;
  background-image: url("../Images/hero.jpg");
  background-size: cover;
  background-position: center;
  min-height: 360px;
  display: flex;
}

.hero-overlay {
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  padding: 80px 20px;
}

.hero-content {
  text-align: center;
  color: #ffffff;
}

.hero-content h2 {
  font-size: 2.125rem;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.hero-content p {
  max-width: 600px;
  margin: 0 auto 25px;
  color: #ffffff;
  line-height: 1.6;
}


/* =============================
   BOUTON
============================= */

.btn-primary {
  display: inline-block;
  min-height: 44px;
  background: #6b4d2e;
  color: #ffffff;
  border: 2px solid #6b4d2e;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #4f381f;
  border-color: #4f381f;
  color: #ffffff;
  text-decoration: underline;
}


/* =============================
   PRÉSENTATION ENTREPRISE
============================= */

.about {
  margin-top: 40px;
  line-height: 1.6;
}

.about p {
  margin-bottom: 15px;
}


/* =============================
   PROFESSIONNALISME
============================= */

.pro {
  margin-top: 40px;
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.pro-item {
  background: #ffffff;
  border: 1px solid #d8cfc4;
  border-radius: 8px;
  padding: 20px;
}

.pro-item h3 {
  margin-top: 0;
  color: #6b4d2e;
}


/* =============================
   AVIS CLIENTS
============================= */

.reviews {
  background: #ffffff;
  margin-top: 40px;
  padding: 40px 0;
  border-top: 1px solid #d8cfc4;
  border-bottom: 1px solid #d8cfc4;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.review {
  background: #f7f2ea;
  border: 1px solid #d8cfc4;
  border-radius: 8px;
  padding: 18px;
}

.review-text {
  margin: 0 0 10px;
  line-height: 1.6;
}

.review-meta {
  margin: 0;
  color: #595959;
  font-size: 0.9rem;
}


/* =============================
   COMMENT ÇA MARCHE
============================= */

.steps {
  background: #ffffff;
  margin-top: 40px;
  padding: 40px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.step {
  border: 1px solid #d8cfc4;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: #f7f2ea;
}

.step h3 {
  color: #6b4d2e;
  font-size: 1.625rem;
  margin-top: 0;
  margin-bottom: 10px;
}


/* =============================
   FOOTER
============================= */

footer {
  background: #ffffff;
  border-top: 1px solid #d8cfc4;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

footer a {
  color: #6b4d2e;
  font-weight: 600;
  text-decoration: underline;
}

footer a:hover,
footer a:focus-visible {
  color: #4f381f;
}


/* =============================
   TABLETTE
============================= */

@media (max-width: 900px) {

  .header-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .logo {
    margin: 0;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav a {
    padding: 8px 10px;
  }

  .user-menu {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .pro-grid,
  .reviews-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h2 {
    font-size: 1.75rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


/* =============================
   MOBILE
============================= */

@media (max-width: 480px) {

  .container {
    padding: 15px;
  }

  .header-content {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .logo {
    font-size: 1.6rem;
  }

  nav {
    gap: 4px;
  }

  nav a {
    padding: 8px;
    font-size: 1rem;
  }

  .user-menu {
    gap: 10px;
  }

  .hero-image {
    min-height: 320px;
  }

  .hero-overlay {
    padding: 50px 15px;
  }

  .hero-content h2 {
    font-size: 1.7rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary {
    width: 100%;
  }

  .about,
  .pro {
    margin-top: 30px;
  }

  .reviews,
  .steps {
    margin-top: 30px;
    padding: 30px 0;
  }

  .pro-item,
  .review,
  .step {
    padding: 15px;
  }
}