/* =========================================================
   P'TI TOUCH - STYLE.CSS
   Site de miroirs sur mesure
   ========================================================= */

/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
  --primary-color: #273e4d;
  --secondary-color: #0f766e;
  --gold-light: #0f766e;

  --white: #ffffff;
  --light-bg: #f8f8f8;
  --dark-bg: #111111;

  --text-color: #273e4d;
  --muted-color: #777777;

  --border-color: #e5e5e5;

  --transition: all 0.3s ease;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);

  --radius: 12px;
}

/* =========================================================
   2. RESET
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  background-color: var(--white);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select {
  font-family: inherit;
}

/* =========================================================
   3. HEADER
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background-color: rgba(255, 255, 255, 0.97);

  border-bottom: 1px solid var(--border-color);

  box-shadow: 0 3px 15px rgba(234, 228, 228, 0.05);

  backdrop-filter: blur(10px);
}

.header .container {
  min-height: 75px;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.logo h1 {
  font-size: 20px;
  font-weight: 700;

  letter-spacing: 2px;

  color: var(--primary-color);

  margin: 0;
}

/* NAVIGATION */

.header nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

.mobile-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(39, 62, 77, 0.12);
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.04);
  padding: 10px 8px;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  margin: 5px 0;
  transition: var(--transition);
}

.mobile-nav-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.header nav a {
  position: relative;

  font-size: 15px;
  font-weight: 500;

  color: var(--text-color);

  transition: var(--transition);
}

.header nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 2px;

  background-color: var(--secondary-color);

  transition: var(--transition);
}

.header nav a:hover {
  color: var(--secondary-color);
}

.header nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-btn {
  padding: 9px 14px;

  background: var(--secondary-color);
  border-radius: 7px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.login-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* =========================================================
   4. POURQUOI CHOISIR P'TI TOUCH
   ========================================================= */

.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  gap: 28px;
  padding: 42px 0 18px;
}

.services-content {
  background: var(--light-bg);
  padding: 12px 0 18px;
}

.services-content h2 {
  margin: 0 0 6px;
  color: var(--primary-color);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.services-intro {
  max-width: 540px;
  margin: 0 auto 30px;
  color: var(--muted-color);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.service-item {
  min-height: 130px;
  padding: 20px 18px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.service-item + .service-item {
  border-left: 0;
}

.service-emoji {
  display: block;
  margin-bottom: 16px;
  font-size: 42px;
  line-height: 1;
}

.service-item h3 {
  margin: 0 0 12px;
  color: #273e4d;
  font-size: 18px;
  font-weight: 700;
}

.service-item p {
  margin: 0;
  color: var(--muted-color);
  font-size: 15px;
  line-height: 1.6;
}

/* RESPONSIVE CARTES */

@media (max-width: 850px) {
  .services-cards {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 650px) {
  .services-cards {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 10px;
  }

  .service-item {
    min-height: 0;
    padding: 30px 20px;
  }

  .service-item + .service-item {
    border-left: 0;
  }
}

/* NOS CHIFFRES */

.our-numbers {
  padding: 30px 20px 38px;
  background: linear-gradient(135deg, #f7f9fb 0%, #eef3f6 100%);
  border-top: 1px solid rgba(39, 62, 77, 0.08);
  border-bottom: 1px solid rgba(39, 62, 77, 0.08);
  text-align: center;
}

.our-numbers h3 {
  position: relative;
  display: inline-block;
  margin: 0 0 26px;
  color: var(--primary-color);
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.our-numbers h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 15px auto 0;
  background-color: var(--secondary-color);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1050px;
  margin: 0 auto;
  gap: 22px;
}

.number-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 18px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(39, 62, 77, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
}

.number-counter {
  color: #0f766e;
  font-size: 46px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.number-card span {
  color: #4d5d67;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 650px) {
  .our-numbers {
    padding: 22px 16px 28px;
  }

  .our-numbers h3 {
    margin-bottom: 20px;
    font-size: 28px;
  }

  .numbers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .number-card {
    padding: 18px 14px;
  }

  .number-counter {
    font-size: 38px;
  }
}

/* =========================================================
   5. PANIER
   ========================================================= */

.cart {
  position: relative;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  cursor: pointer;

  font-size: 20px;

  color: var(--primary-color);

  border-radius: 50%;

  transition: var(--transition);
}

.cart:hover {
  background-color: var(--primary-color);

  color: var(--white);
}

#cartCount {
  position: absolute;

  top: -3px;
  right: -3px;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  background-color: var(--secondary-color);

  color: var(--white);

  font-size: 11px;

  font-weight: bold;

  border-radius: 50%;
}

/* =========================================================
   SECTION
========================================================= */

.advantages {
  position: relative;

  width: 100%;

  padding: 72px 8% 78px;

  overflow: hidden;

  background: #ffffff;
}

/* =========================================================
   DÉCORATIONS DISCRÈTES
========================================================= */

.advantages::before {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  left: -190px;
  bottom: -160px;

  border: 1px solid #0f766e;

  border-radius: 50%;

  pointer-events: none;
}

.advantages::after {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  right: -125px;
  top: 35px;

  border: 1px solid rgba(39, 62, 77, 0.06);

  border-radius: 50%;

  pointer-events: none;
}

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

.advantages-header {
  position: relative;

  z-index: 2;

  max-width: 650px;

  margin: 0 auto 50px;

  text-align: center;
}

/* =========================================================
   PETIT LABEL
========================================================= */

.advantages-eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  margin-bottom: 12px;

  color: #0f766e;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 3px;

  text-transform: uppercase;
}

.advantages-eyebrow::before,
.advantages-eyebrow::after {
  content: "";

  width: 18px;
  height: 1px;

  background: #0f766e;
}

/* =========================================================
   TITRE
========================================================= */

.advantages-header h2 {
  margin: 0;

  color: #273e4d;

  font-size: 34px;

  line-height: 1.15;

  font-weight: 700;

  letter-spacing: -1.2px;
}

/* =========================================================
   LIGNE DORÉE
========================================================= */

.advantages-header h2::after {
  content: "";

  display: block;

  width: 48px;
  height: 2px;

  margin: 14px auto 15px;

  background: #0f766e;

  border-radius: 5px;
}

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

.advantages-header p {
  max-width: 570px;

  margin: 0 auto;

  color: #77838a;

  font-size: 13px;

  line-height: 1.7;
}

/* =========================================================
   GRILLE
========================================================= */

.advantages-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 1050px;
  margin: 0 auto;
}

/* =========================================================
   SERVICE
========================================================= */

.advantage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 220px;
  padding: 20px 24px 12px;
  text-align: center;
}

/* =========================================================
   SÉPARATEURS
========================================================= */

.advantage + .advantage {
  border-left: 1px solid #edf0f2;
}

/* =========================================================
   ICÔNE
========================================================= */

.advantage-icon {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  width: 70px;
  height: 70px;

  margin: 0 auto 4px;

  border: 1px solid #0f766e;
  border-radius: 50%;

  background: #273e4d;
  color: #ffffff;

  box-shadow: 0 8px 24px rgba(39, 62, 77, 0.12);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

/* Halo */

.advantage-icon::before {
  content: "";

  position: absolute;

  inset: -6px;

  border: 1px solid #0f766e;

  border-radius: 50%;

  transition: transform 0.35s ease;
}

/* Icône */

.advantage-icon i {
  position: relative;

  z-index: 2;

  color: #ffffff;

  font-size: 20px;
}

/* =========================================================
   TITRE SERVICE
========================================================= */

.advantage h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #273e4d;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.advantage p {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin: 0 auto;
  color: #7a858b;
  font-size: 14px;
  line-height: 1.7;
}

/* =========================================================
   HOVER
========================================================= */

.advantage:hover .advantage-icon {
  transform: translateY(-5px);

  background: #0f766e;

  box-shadow: 0 13px 30px #dffefc;
}

.advantage:hover .advantage-icon::before {
  transform: scale(1.12);
}

.advantage:hover .advantage-number {
  color: #273e4d;
}

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

@media (max-width: 900px) {
  .advantages {
    padding: 60px 5% 65px;
  }

  .advantages-header {
    margin-bottom: 42px;
  }

  .advantages-header h2 {
    font-size: 30px;
  }

  .advantage {
    padding: 0 25px;
  }

  .advantage p {
    max-width: 220px;
  }
}

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

@media (max-width: 650px) {
  .advantages {
    padding: 55px 22px 60px;
  }

  .advantages-header {
    margin-bottom: 35px;
  }

  .advantages-eyebrow {
    font-size: 9px;

    letter-spacing: 2.5px;
  }

  .advantages-header h2 {
    font-size: 28px;
  }

  .advantages-header p {
    max-width: 390px;

    font-size: 12px;
  }

  /* Grille verticale */

  .advantages-grid {
    display: flex;

    flex-direction: column;

    gap: 22px;
    max-width: 430px;
  }

  /* Service */

  .advantage {
    min-height: auto;
    padding: 25px 10px;
  }

  .advantage:first-child {
    padding-top: 0;
  }

  /* Séparateurs horizontaux */

  .advantage + .advantage {
    padding-top: 28px;

    border-left: none;

    border-top: 1px solid #e6e7e8;
  }

  /* Icône */

  .advantage-icon {
    width: 62px;
    height: 62px;

    margin-bottom: 15px;
  }

  .advantage-icon i {
    font-size: 18px;
  }

  /* Titre */

  .advantage h3 {
    font-size: 17px;

    margin-bottom: 8px;
  }

  /* Texte */

  .advantage p {
    max-width: 300px;

    font-size: 13px;

    line-height: 1.6;
  }
}

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

@media (max-width: 400px) {
  .advantages {
    padding: 48px 18px 55px;
  }

  .advantages-header {
    margin-bottom: 30px;
  }

  .advantages-eyebrow {
    font-size: 8px;

    letter-spacing: 2px;
  }

  .advantages-header h2 {
    font-size: 25px;
  }

  .advantages-header p {
    font-size: 11px;
  }

  .advantage {
    padding-left: 5px;
    padding-right: 5px;
  }

  .advantage-icon {
    width: 58px;
    height: 58px;
  }

  .advantage-icon i {
    font-size: 17px;
  }

  .advantage-number {
    font-size: 8px;
  }

  .advantage h3 {
    font-size: 15px;
  }

  .advantage p {
    font-size: 10px;
  }
}
/* =========================================================
   6. HERO - NOUVEAU DESIGN
   ========================================================= */

.hero {
  position: relative;

  width: 100%;

  min-height: 50vh;

  overflow: hidden;

  display: flex;

  align-items: center;

  background: #ffffff;
}

/* IMAGE DE FOND */

.hero-image {
  position: absolute;

  inset: 0;

  background-image: url("img/cover2.png");

  background-size: cover;

  background-position: center right;

  background-repeat: no-repeat;

  z-index: 1;
}

/* DÉGRADÉ BLANC */

.hero-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    #ffffff 0%,

    #ffffff 25%,

    rgba(255, 255, 255, 0.98) 34%,

    rgba(255, 255, 255, 0.82) 44%,

    rgba(255, 255, 255, 0.35) 56%,

    rgba(255, 255, 255, 0) 70%
  );

  z-index: 2;

  pointer-events: none;
}

/* CONTENEUR */

.hero-container {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 42px 7%;
  z-index: 3;
}

/* CONTENU */

.hero-content {
  width: 55%;

  max-width: 700px;
}

/* TITRE */

.hero h5 {
  margin: 0;

  font-size: clamp(38px, 4vw, 62px);

  font-weight: 600;

  line-height: 1.08;

  letter-spacing: -1.8px;

  color: #171b23;
}

/* MOT EN VERT */

.hero h5 strong {
  color: #009f91;

  font-weight: 700;
}

/* DESCRIPTION */

[data-content-key="heroTitle"] {
  white-space: pre-line;
}

.hero-description {
  width: 75%;

  margin-top: 22px;

  margin-bottom: 28px;

  font-size: 15px;

  font-weight: 500;

  line-height: 1.5;

  color: #4e5359;
}

/* =========================================================
   BOUTON WHATSAPP DU HERO
   ========================================================= */

.whatsapp-button {
  display: inline-flex;

  align-items: center;

  height: 60px;

  border: 2px solid #009f91;

  border-radius: 2px;

  background: #ffffff;

  text-decoration: none;

  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* ICÔNE */

.whatsapp-icon {
  width: 60px;

  height: 60px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #009f91;

  color: #ffffff;

  font-size: 28px;

  transition: background 0.3s ease;
}

/* NUMÉRO */

.phone-number {
  padding: 0 25px;

  font-size: 20px;

  font-weight: 700;

  color: #009f91;

  white-space: nowrap;
}

/* SURVOL */

.whatsapp-button:hover {
  transform: translateY(-4px);

  box-shadow: 0 12px 25px rgba(0, 159, 145, 0.2);
}

.whatsapp-button:hover .whatsapp-icon {
  background: #008f82;
}

/* =========================================================
   HERO - TABLETTE
   ========================================================= */

@media (max-width: 991px) {
  .hero {
    min-height: 500px;
  }

  .hero-container {
    padding: 55px 6%;
  }

  .hero-content {
    width: 60%;
  }

  .hero h5 {
    font-size: clamp(34px, 5vw, 50px);
  }

  .hero-description {
    width: 90%;
  }
}

/* =========================================================
   HERO — VERSION MOBILE AMÉLIORÉE
========================================================= */

@media (max-width: 767px) {
  .hero {
    min-height: 560px;
    align-items: center;
    position: relative;
  }

  /* Image mieux positionnée sur mobile */
  .hero-image {
    background-position: 68% center;
    transform: scale(1.02);
  }

  /* Meilleur contraste pour la lecture */
  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 35%,
      rgba(255, 255, 255, 0.7) 58%,
      rgba(255, 255, 255, 0.2) 100%
    );
  }

  .hero-container {
    padding: 50px 25px;
  }

  .hero-content {
    width: 100%;
    max-width: 500px;
  }

  /* Titre plus lisible */
  .hero h5 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.08;
    letter-spacing: -1px;
    font-weight: 700;
    color: #151a20;

    /* légère ombre pour détacher le texte */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  }

  .hero h5 strong {
    color: #008f82;
    font-weight: 800;
  }

  /* Description plus lisible */
  .hero-description {
    width: 90%;
    margin-top: 20px;
    margin-bottom: 26px;

    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;

    color: #30363d;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
  }

  /* =====================================================
       BOUTON WHATSAPP MOBILE
    ===================================================== */

  .whatsapp-button {
    height: 54px;
    max-width: 100%;

    border: 2px solid #009f91;
    border-radius: 6px;

    box-shadow: 0 8px 20px rgba(0, 159, 145, 0.16);

    transform: none;
  }

  .whatsapp-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    font-size: 24px;
  }

  .phone-number {
    padding: 0 16px;

    font-size: 16px;
    font-weight: 700;

    white-space: nowrap;
  }

  .whatsapp-button:active {
    transform: scale(0.97);
  }
}

/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */

@media (max-width: 480px) {
  .hero {
    min-height: 530px;
  }

  .hero-image {
    background-position: 72% center;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.99) 0%,
      rgba(255, 255, 255, 0.96) 42%,
      rgba(255, 255, 255, 0.72) 68%,
      rgba(255, 255, 255, 0.18) 100%
    );
  }

  .hero-container {
    padding: 42px 20px;
  }

  .hero h5 {
    font-size: 31px;
    line-height: 1.08;
    letter-spacing: -0.8px;
  }

  .hero-description {
    width: 100%;
    margin-top: 17px;
    margin-bottom: 22px;

    font-size: 13px;
    line-height: 1.55;
  }

  /* Bouton encore plus compact */
  .whatsapp-button {
    height: 50px;
    width: 100%;
    max-width: 310px;
  }

  .whatsapp-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .phone-number {
    flex: 1;
    padding: 0 10px;

    font-size: 14px;
    text-align: center;
  }
}

/* =========================================================
   ÉCRANS TRÈS ÉTROITS
========================================================= */

@media (max-width: 360px) {
  .hero {
    min-height: 510px;
  }

  .hero-container {
    padding: 35px 16px;
  }

  .hero h5 {
    font-size: 28px;
  }

  .hero-description {
    font-size: 12.5px;
  }

  .whatsapp-button {
    max-width: 280px;
  }

  .phone-number {
    font-size: 13px;
  }
}

/* =========================================================
   7. TITRES DE SECTIONS
   ========================================================= */

section h2 {
  position: relative;

  font-size: 34px;

  font-weight: 700;

  color: var(--primary-color);

  margin-bottom: 50px;
}

section h2::after {
  content: "";

  display: block;

  width: 60px;

  height: 3px;

  margin: 15px auto 0;

  background-color: var(--secondary-color);
}

/* =========================================================
   8. SERVICES CLASSIQUES
   ========================================================= */

section[id]:not(#accueil) {
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

#services {
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}

.service-card {
  height: 100%;

  padding: 40px 25px;

  text-align: center;

  background-color: var(--white);

  border: 1px solid var(--border-color);

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);

  box-shadow: var(--shadow-hover);

  border-color: var(--secondary-color);
}

.service-card i {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 70px;
  height: 70px;

  margin: 0 auto 25px;

  background-color: var(--primary-color);

  color: var(--secondary-color);

  border-radius: 50%;

  font-size: 28px;

  transition: var(--transition);
}

.service-card:hover i {
  background-color: var(--secondary-color);

  color: var(--white);

  transform: rotateY(180deg);
}

.service-card h4 {
  font-size: 20px;

  font-weight: 700;

  margin-bottom: 15px;
}

.service-card p {
  color: var(--muted-color);

  margin-bottom: 0;
}

/* =========================================================
   9. BOUTIQUE
   ========================================================= */

#boutique {
  background-color: var(--light-bg);
  max-width: 100%;
  padding-top: 34px !important;
  padding-bottom: 34px !important;
  padding-left: 8% !important;
  padding-right: 8% !important;
}

#boutique > h2 {
  margin-top: 20px;
}

/* CONTROLES */

#searchInput,
#sortSelect {
  height: 50px;

  border: 1px solid var(--border-color);

  border-radius: 8px;

  padding: 0 18px;

  outline: none;

  transition: var(--transition);
}

#searchInput:focus,
#sortSelect:focus {
  border-color: var(--secondary-color);

  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

#searchInput::placeholder {
  color: #999999;
}

/* TOOLBAR */

.shop-toolbar {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  margin: -4px 0 28px;
}

/* FILTRES */

.category-filters {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}

.category-chip {
  padding: 9px 15px;

  border: 1px solid var(--border-color);

  border-radius: 999px;

  background: var(--white);

  color: var(--primary-color);

  font-size: 14px;

  font-weight: 600;

  transition: var(--transition);
}

.category-chip:hover,
.category-chip.active {
  border-color: var(--secondary-color);

  background: var(--secondary-color);

  color: var(--white);

  transform: translateY(-1px);
}

.product-count {
  margin: 0;

  color: var(--muted-color);

  font-size: 14px;

  white-space: nowrap;
}

/* =========================================================
   10. CARTES PRODUITS
   ========================================================= */

/* Cinq produits par ligne sur les grands écrans. */
@media (min-width: 992px) {
  .product-column {
    flex: 0 0 auto;
    width: 20%;
  }
}

.product-card {
  height: 100%;

  display: flex;

  flex-direction: column;

  overflow: hidden;

  background-color: var(--white);

  border: none;

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow-hover);
}

.product-card img {
  width: 100%;

  aspect-ratio: 3 / 4;

  height: auto;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.03);
}

.product-card-body {
  padding: 12px;

  display: flex;

  flex: 1;

  flex-direction: column;
}

.product-card h3 {
  font-size: 16px;

  font-weight: 700;

  margin-bottom: 5px;
}

.product-price {
  color: var(--secondary-color);

  font-size: 16px;

  font-weight: 700;

  margin: 7px 0;
}

/* BOUTON PRODUIT */

.product-card .btn {
  width: 100%;

  margin-top: auto;

  padding: 8px;

  border-radius: 7px;

  font-weight: 600;

  transition: var(--transition);
}

.product-card .btn:hover {
  background-color: var(--secondary-color);

  border-color: var(--secondary-color);

  color: var(--white);

  transform: translateY(-2px);
}

/* =========================================================
   11. FOOTER
   ========================================================= */

footer {
  background: linear-gradient(135deg, #00244f, #1a947b);
  color: #ffffff;
  padding: 42px 20px 18px;
  font-size: 14px;
}

.footer-container {
  display: flex;

  flex-wrap: wrap;

  gap: 40px;

  justify-content: space-between;

  max-width: 1200px;

  margin: 0 auto;
}

.footer-section h3 {
  font-size: 18px;

  margin-bottom: 15px;

  position: relative;
}

.footer-section h3::after {
  content: "";

  display: block;

  width: 40px;

  height: 2px;

  background: #86f4de;

  margin-top: 5px;
}

.footer-section p,
.footer-section ul,
.footer-section li {
  margin-bottom: 10px;

  color: #f0f0f0;
}

.footer-section ul {
  list-style: none;

  padding: 0;
}

.footer-section ul li a {
  color: #f0f0f0;

  text-decoration: none;

  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #86f4de;
}

/* RÉSEAUX SOCIAUX */

.social-icons a {
  display: inline-block;

  margin-right: 10px;

  font-size: 20px;

  transition:
    color 0.3s,
    transform 0.3s;
}

.social-icons a:hover {
  color: #86f4de;

  transform: scale(1.2);
}

/* NEWSLETTER */

.newsletter {
  display: flex;

  margin-top: 10px;
}

.newsletter input {
  flex: 1;

  padding: 10px;

  border: none;

  border-radius: 50px 0 0 50px;

  outline: none;
}

.newsletter button {
  padding: 10px 20px;

  border: none;

  background-color: #42c9ae;

  color: #ffffff;

  font-weight: bold;

  border-radius: 0 50px 50px 0;

  cursor: pointer;

  transition:
    background 0.3s,
    transform 0.3s;
}

.newsletter button:hover {
  background-color: #86f4de;

  transform: scale(1.05);
}

/* BAS DU FOOTER */

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 12px;
  font-size: 13px;
  color: #f0f0f0;
}

/* =========================================================
   12. WHATSAPP FLOTTANT
   ========================================================= */

.whatsapp {
  position: fixed;

  right: 25px;
  bottom: 25px;

  z-index: 999;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 60px;
  height: 60px;

  background-color: #25d366;

  color: var(--white);

  font-size: 30px;

  border-radius: 50%;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);

  transition: var(--transition);

  animation: pulse 2s infinite;
}

.whatsapp:hover {
  transform: scale(1.1);

  color: var(--white);
}

/* =========================================================
   13. RETOUR EN HAUT
   ========================================================= */

#topBtn {
  position: fixed;

  left: 25px;
  bottom: 25px;

  z-index: 999;

  display: none;

  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  border: none;

  border-radius: 50%;

  background-color: var(--primary-color);

  color: var(--white);

  font-size: 20px;

  cursor: pointer;

  transition: var(--transition);
}

#topBtn:hover {
  background-color: var(--secondary-color);

  transform: translateY(-4px);
}

/* =========================================================
   14. ANIMATIONS
   ========================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;

    transform: translateY(30px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================================
   ANIMATIONS DE PAGE D'ACCUEIL
   ========================================================= */

.hero-content,
.hero h5,
.hero-description,
.whatsapp-button,
.our-numbers .number-card,
.advantage,
.product-card {
  animation: fadeInUp 0.8s ease both;
}

.hero h5 {
  animation-delay: 0.08s;
}

.hero-description {
  animation-delay: 0.16s;
}

.whatsapp-button {
  animation-delay: 0.24s;
}

.our-numbers .number-card:nth-child(1) {
  animation-delay: 0.12s;
}

.our-numbers .number-card:nth-child(2) {
  animation-delay: 0.2s;
}

.our-numbers .number-card:nth-child(3) {
  animation-delay: 0.28s;
}

.advantage:nth-child(1) {
  animation-delay: 0.1s;
}

.advantage:nth-child(2) {
  animation-delay: 0.18s;
}

.advantage:nth-child(3) {
  animation-delay: 0.26s;
}

.product-card:nth-child(1) {
  animation-delay: 0.1s;
}

.product-card:nth-child(2) {
  animation-delay: 0.18s;
}

.product-card:nth-child(3) {
  animation-delay: 0.26s;
}

.product-card:nth-child(4) {
  animation-delay: 0.34s;
}

.product-card:nth-child(5) {
  animation-delay: 0.42s;
}

.product-card:nth-child(6) {
  animation-delay: 0.5s;
}

.hero-image {
  animation: floatSoft 5s ease-in-out infinite;
}

/* =========================================================
   15. RESPONSIVE TABLETTE
   ========================================================= */

@media (max-width: 991px) {
  /* HEADER */

  .header .container {
    flex-wrap: wrap;

    gap: 15px;
  }

  .header nav {
    order: 3;

    width: 100%;

    justify-content: center;

    padding-top: 10px;

    border-top: 1px solid var(--border-color);
  }

  /* HERO */

  .hero {
    min-height: 500px;
  }

  /* BOUTIQUE */

  #boutique {
    padding-left: 5% !important;

    padding-right: 5% !important;
  }
}

/* =========================================================
   16. RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 767px) {
  /* HEADER */

  .header .container {
    justify-content: space-between !important;
    align-items: center;
    position: relative;
    gap: 12px;
  }

  .logo {
    width: auto;
    justify-content: center;
    flex: 1;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    order: 2;
  }

  .header nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px 18px;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.98);
  }

  .header nav.open {
    display: flex;
  }

  .header nav a {
    font-size: 14px;
    width: 100%;
    padding: 6px 0;
  }

  .header-actions {
    position: static;
    order: 3;
  }

  .header-actions .cart {
    position: relative;
    right: auto;
    top: auto;
  }

  .login-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  /* HERO */

  .hero {
    min-height: 540px;

    padding: 0;
  }

  /* TITRES */

  section h2 {
    font-size: 34px;
    margin-bottom: 28px;
  }

  /* BOUTIQUE */

  #boutique .d-flex {
    flex-direction: column;

    gap: 15px;
  }

  .shop-toolbar {
    align-items: flex-start;

    flex-direction: column;

    gap: 14px;
  }

  .product-count {
    white-space: normal;
  }

  #searchInput,
  #sortSelect {
    width: 100% !important;
  }

  /* PRODUITS */

  .product-card img {
    aspect-ratio: 3 / 4;
  }

  /* WHATSAPP */

  .whatsapp {
    width: 52px;
    height: 52px;

    right: 15px;
    bottom: 15px;

    font-size: 25px;
  }

  /* TOP BUTTON */

  #topBtn {
    left: 15px;
    bottom: 15px;

    width: 42px;
    height: 42px;
  }
}

/* =========================================================
   17. PETITS ÉCRANS
   ========================================================= */

@media (max-width: 480px) {
  .logo img {
    width: 45px;
    height: 45px;
  }

  .logo h1 {
    font-size: 17px;
  }

  .header nav {
    gap: 12px;
  }

  .header nav a {
    font-size: 12px;
  }

  /* HERO */

  .hero {
    min-height: 520px;
  }

  .hero h5 {
    font-size: 31px;
  }

  .hero-description {
    font-size: 13px;
  }

  /* BOUTON HERO */

  .whatsapp-button {
    max-width: 100%;
  }

  .phone-number {
    padding: 0 14px;

    font-size: 15px;
  }

  /* SERVICES */

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

/* =========================================================
   18. PANIER MODAL
   ========================================================= */

.cart-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: flex-end;

  background: rgba(0, 0, 0, 0.5);

  opacity: 0;

  visibility: hidden;

  transition: 0.3s;
}

.cart-modal.active {
  opacity: 1;

  visibility: visible;
}

.cart-modal-content {
  width: 450px;

  max-width: 95%;

  height: 100%;

  overflow-y: auto;

  background: white;

  padding: 35px;

  transform: translateX(100%);

  transition: 0.3s;
}

.cart-modal.active .cart-modal-content {
  transform: translateX(0);
}

.close-cart {
  float: right;

  border: none;

  background: none;

  font-size: 30px;

  cursor: pointer;
}

.cart-modal-content h2 {
  margin-bottom: 30px;
}

/* =========================================================
   19. ARTICLES DU PANIER
   ========================================================= */

.cart-item {
  display: flex;

  align-items: center;

  gap: 15px;

  padding: 15px 0;

  border-bottom: 1px solid #eeeeee;
}

.cart-item img {
  width: 70px;
  height: 70px;

  object-fit: cover;

  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 15px;

  margin-bottom: 5px;
}

.cart-item-info p {
  color: #00977a;

  font-weight: bold;

  margin-bottom: 8px;
}

/* QUANTITÉ */

.quantity-controls {
  display: flex;

  align-items: center;

  gap: 10px;
}

.quantity-controls button {
  width: 28px;
  height: 28px;

  border: 1px solid #dddddd;

  background: white;

  cursor: pointer;
}

.quantity-controls button:hover {
  background: #111111;

  color: white;
}

/* SUPPRIMER */

.remove-item {
  border: none;

  background: none;

  color: #dc3545;

  cursor: pointer;
}

/* TOTAL */

.cart-total {
  display: flex;

  justify-content: space-between;

  padding: 25px 0;

  font-size: 20px;
}

.cart-total span {
  color: #00977a;

  font-weight: bold;
}

/* CHECKOUT */

.checkout-btn {
  width: 100%;

  padding: 14px;
}

/* PANIER VIDE */

.empty-cart {
  text-align: center;

  padding: 60px 20px;

  color: #777777;
}

.empty-cart i {
  font-size: 60px;

  color: #0f766e;

  margin-bottom: 20px;
}

/* =========================================================
   20. RESPONSIVE PANIER
   ========================================================= */

@media (max-width: 500px) {
  .cart-modal-content {
    padding: 25px 20px;
  }
}

/* =========================================================
   PANIER - VERSION COMPACTE
   ========================================================= */

.cart-modal-content {
  width: 450px;
  max-width: 90%;
  padding: 14px;
}

.cart-modal-content h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
}

.cart-item img {
  width: 66px;
  height: 74px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  min-width: 0;
  flex: 1;
}

.cart-item-info h4 {
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}

.cart-item-info p {
  font-size: 16px;
  margin-bottom: 4px;
}

.quantity-controls {
  gap: 5px;
}

.quantity-controls button {
  width: 23px;
  height: 23px;
  padding: 0;
  font-size: 16px;
}

.quantity-controls span {
  min-width: 22px;
  font-size: 16px;
  text-align: center;
}

.remove-item {
  width: 24px;
  height: 24px;
  font-size: 12px;
  flex-shrink: 0;
}

.cart-total {
  padding: 8px 0;
  margin-top: 6px;
  font-size: 16px;
}

.checkout-btn {
  font-size: 16px;
  padding: 9px 12px;
}

.cart-modal-content .btn-outline-danger {
  font-size: 16px;
  padding: 8px 12px;
}

@media (max-width: 480px) {
  .cart-modal-content {
    width: 300px;
    max-width: 92%;
    padding: 14px;
  }

  .cart-modal-content h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .cart-item {
    gap: 7px;
    padding: 7px 0;
  }

  .cart-item img {
    width: 42px;
    height: 48px;
  }

  .cart-item-info h4 {
    font-size: 12px;
  }

  .cart-item-info p {
    font-size: 11px;
  }

  .quantity-controls {
    gap: 3px;
  }

  .quantity-controls button {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }

  .quantity-controls span {
    min-width: 20px;
    font-size: 11px;
  }

  .remove-item {
    width: 25px;
    height: 25px;
  }
}
