@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
  background: linear-gradient(180deg, #1b1f3b, #252946); /* dégradé bleu nuit */
}
/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #1e1e2f;
  padding: 15px 30px;
  color: #fff;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
/* Popup modal */
.modal {
  display: none; /* cachée par défaut */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 6% auto;
  border-radius: 15px;
  max-width: 900px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.modal-left, .modal-right {
  flex: 1;
  padding: 30px;
}

.modal-right {
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-right img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
  object-fit: contain;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 25px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ff6f61;
}

.modal-left h2 {
  margin-bottom: 20px;
  font-weight: 700;
  color: #1e1e2f;
}

.modal-left form label {
  display: block;
  margin: 15px 0 6px;
  font-weight: 600;
  color: #444;
}

.modal-left form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}

.modal-left form input[readonly] {
  background-color: #eee;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    max-width: 90%;
  }
  .modal-left, .modal-right {
    padding: 20px;
  }
  .modal-right img {
    max-height: 300px;
  }
}

header nav {
  display: flex;
  gap: 25px;
  flex-grow: 1;
  justify-content: center;
}

.phone-call {
  color: #ff6f61;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 5px 12px;
  border: 1.5px solid #ff6f61;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.phone-call:hover {
  background-color: #ff6f61;
  color: #fff;
}

@keyframes slideDown {
    from {opacity: 0; transform: translateY(-40px);}
    to {opacity: 1; transform: translateY(0);}
}
header h1 {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    cursor: default;
}
nav {
    display: flex;
    gap: 25px;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ff6f61;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}
nav a:hover::after {
    width: 100%;
}
nav a:hover {
    color: #ff6f61;
}
/* HERO SECTION */
.hero {
    margin-top: 70px; /* hauteur header */
    background: url('image/1.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 900px;
}
/* Overlay sombre pour améliorer lisibilité */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.45); /* opacité réglable */
    z-index: 1;
}
.hero h2,
.hero p,
.hero .btn-hero {
    position: relative; /* au dessus de l'overlay */
    z-index: 2;
}
.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    animation: fadeUp 1.2s ease forwards;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    animation: fadeUp 1.3s ease forwards;
    animation-delay: 0.3s;
}
.btn-hero {
    background-color: #fff;
    color: #ff6f61;
    font-weight: 700;
    padding: 10px 28px;       /* plus petit que 15px 45px */
    border-radius: 25px;      /* arrondi un peu plus doux */
    font-size: 1rem;          /* légèrement plus petit */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 8px rgba(255, 111, 97, 0.3); /* petite ombre */
    letter-spacing: 1px;
}
.btn-hero:hover {
    background-color: #f7b0a4;
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.5);
}
@keyframes fadeUp {
    from {opacity: 0; transform: translateY(30px);}
    to {opacity: 1; transform: translateY(0);}
}
/* PRODUCTS GRID */
.products {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 0.6s;
    animation-timing-function: ease-out;
}
.product-card.visible {
    animation-name: fadeInUp;
}
@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.product-image {
    overflow: hidden;
    height: 220px;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover img {
    transform: scale(1.1);
}
.product-info {
    padding: 20px;
    text-align: center;
}
.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1e1e2f;
}
.product-info p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 18px;
    min-height: 48px;
}
.btn-confirm {
  display: block;
  width: 60%;
  margin: 25px auto 0 auto;
  padding: 12px 25px;
  background-color: #ff6f61;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn-confirm:hover {
  background-color: #e85447;
}

.btn-buy {
    background-color: #ff6f61;
    border: none;
    padding: 12px 30px;
    color: white;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
	  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 111, 97, 0.4);
	
}
.btn-buy:hover {
    background-color: #e85447;
}
/* FOOTER */
footer {
    background: #1e1e2f;
    color: #bbb;
    text-align: center;
    padding: 25px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
/* RESPONSIVE */
@media(max-width:768px) {
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    nav {
        gap: 15px;
    }
}
@media(max-width: 420px) {
    header {
        flex-direction: column;
        gap: 10px;
        padding: 15px 15px;
    }
    .btn-hero {
        padding: 12px 35px;
    }
    .product-info p {
        min-height: auto;
    }
}
.about-us {
  max-width: 1200px;
  margin: 80px auto 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.about-text {
  flex: 1;
  min-width: 280px;
}
.about-text h2 {
  font-size: 2rem;
  color: #1e1e2f;
  margin-bottom: 15px;
  font-weight: 700;
}
.about-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
}
.about-image {
  flex: 1;
  min-width: 280px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 20px;
}
.about-image img:hover {
  transform: scale(1.05);
}
/* Responsive */
@media (max-width: 768px) {
  .about-us {
    flex-direction: column;
  }
  .about-text, .about-image {
    min-width: 100%;
  }
}
.contact-us {
  max-width: 1200px;
  margin: 80px auto 80px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.contact-form {
  flex: 1;
  min-width: 280px;
}
.contact-form h2 {
  font-size: 2rem;
  color: #1e1e2f;
  margin-bottom: 20px;
  font-weight: 700;
}
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
  margin-top: 15px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ff6f61;
  box-shadow: 0 0 6px rgba(255, 111, 97, 0.5);
}
.btn-contact {
  margin-top: 20px;
  background-color: #ff6f61;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
    transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 111, 97, 0.4);
}
.btn-contact:hover {
  background-color: #e85447;
}
.contact-image {
  flex: 1;
  min-width: 280px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 20px;
}
.contact-image img:hover {
  transform: scale(1.05);
}
/* Responsive */
@media (max-width: 768px) {
  .contact-us {
    flex-direction: column;
  }
  .contact-form, .contact-image {
    min-width: 100%;
  }
}
.modal {
  display: none; /* cachée par défaut */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 6% auto;
  border-radius: 15px;
  max-width: 900px;
  display: flex;
  overflow: visible;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
  animation: zoomIn 0.4s ease;
}
@keyframes zoomIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.modal-left, .modal-right {
  flex: 1;
  padding: 30px;
}

.modal-left {
  min-height: 450px;
  overflow-y: auto;
}

.modal-right {
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-right img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
  object-fit: contain;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 25px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ff6f61;
}

.modal-left h2 {
  margin-bottom: 20px;
  font-weight: 700;
  color: #1e1e2f;
}

.modal-left form label {
  display: block;
  margin: 15px 0 6px;
  font-weight: 600;
  color: #444;
}

.modal-left form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}

.modal-left form input[readonly] {
  background-color: #eee;
  cursor: not-allowed;
}

.btn-confirm {
  display: block;
  width: 60%;
  margin: 25px auto 0 auto;
  padding: 12px 25px;
  background-color: #ff6f61;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
    transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 111, 97, 0.4);
}

.btn-confirm:hover {
  background-color: #e85447;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    max-width: 90%;
  }
  .modal-left, .modal-right {
    padding: 20px;
  }
  .modal-right img {
    max-height: 300px;
  }
}
.section-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}
.section-visible {
  opacity: 1;
  transform: translateY(0);
}
