/* ===== STYLE GÉNÉRAL ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
}


/* === HEADER PRINCIPAL === */
header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 8px solid #009EE3;
  padding: 5px 40px;
}

/* === GRILLE PRINCIPALE === */
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr; /* Logo à gauche, contenu à droite */
  align-items: center;
  column-gap: 30px;
}


/* === GRILLE DE DROITE === */
.right-grid {
  display: grid;
  grid-template-rows: auto auto; /* 1ère ligne = slogan / 2ème ligne = nav */
  row-gap: 5px;
 
}

/* === SLOGAN === */
.slogan {
  font-style: italic;
  color: #009EE3;
  font-weight: 600;
  font-size: 1.6em;
  margin: 0;
  text-align: left;
  margin-left: 120px;
}

/* === NAVIGATION === */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px;
}


.logo-link {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo {
  height: 120px;
  transition: transform 0.5s cubic-bezier(0.4, 8, 0.4, 1);
}

.logo-link:hover .logo {
  transform: scale(1.01);
}




/* ===== BANNIÈRE ===== */
.hero {
  text-align: center;
  background: #009EE3;
  color: white;
  font-style: italic;
  padding: 3px;
  margin: 0px;
}

.hero h1 {
  font-size: 3em;
  margin-top: 0px;
  margin-bottom: 3px;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8);
}


.hero h2 {
  font-size: 1.5em;
  margin-bottom: 1px;
}

/* ===== BOUTONS ===== */
.btn {
  padding: 10px 10px;
  border: 3.5px solid black;
  background-color: #009EE3;
  color: white;
  text-decoration: none;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8);
  font-weight: 600;
  border-radius: 4px;
  font-style: italic;
  position: relative;
  z-index: 1;
  overflow: hidden;
  
  transform: skew(-12deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);

  /* 🎯 Transitions ciblées : pas de flash sur la couleur */
  transition:
    transform 0.5s cubic-bezier(0.4, 3.8, 0.4, 1),
    box-shadow 0.35s ease-in-out;
  
  /* Rendement plus fluide */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0) skew(-12deg);
}

/* Hover : plus doux, sans flash */
.btn:hover {
  background: #FED060;
  color: black; 
  border: 3.5px solid black;
  transform: skew(-12deg) scale(1.15);
    text-shadow: none;
	z-index: 10;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}



.btn span {
  display: inline-block;
  transform: skew(12deg); /* redresse le texte */
}

/* --- Éclats bleus --- */
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  background: #82CFF5;
  border-radius: 6px;
  pointer-events: none;
}

/* Ligne du haut */
.btn::before {
  top: 2px;
  left: 2px;
  width: 25%;
  height: 3px;
}

/* Ligne gauche */
.btn::after {
  top: 2px;
  left: 2px;
  width: 5px;
  height: 40%;
}


.btn.active {
  background: #FED060;
  color: black;
  border: 3.5px solid black;
  transform: skew(-12deg) scale(1.15);
  text-shadow: none;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
  z-index: 5;
}



/* mêmes lignes blanches pour hover et active */
.btn:hover::before,
.btn.active::before,
.btn:hover::after,
.btn.active::after {
  background: white;
}

/* ===== À PROPOS ===== */
.about {
  text-align: center;
  padding: 30px 20px;
  max-width: 1000px;
  margin: auto;
}

.about h2 {
  color: #009EE3;
  margin-bottom: 20px;
}

/* ===== PRODUITS ===== */
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 60px 20px;
  background-color: #fff;
}

.product-card {
  width: 250px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.4, 2.8, 0.4, 1);
}

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

.product-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.product-card h3 {
  color: #009EE3;
  margin-bottom: 10px;
}

/* ===== AVANTAGES ===== */
.advantages {
  text-align: center;
  padding: 2px 20px;
}


/* ===== FOOTER ===== */
footer {
  background-color: #009EE3;
  color: white;
  text-align: center;
  padding: 10px 20px;
  
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  align: bottom;
}

footer a:hover {
  text-decoration: underline;
}


/* ===== CONTACT ===== */
.contact-container {
  max-width: 700px;
  margin: 80px auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 40px 30px;
  text-align: center;
}

.contact-container h2 {
  color: #009EE3;
  margin-bottom: 20px;
}

.contact-container p {
  margin-bottom: 30px;
  color: #555;
}

.form-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.form-contact input,
.form-contact textarea {
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  width: 100%;
  resize: vertical;
}

.form-contact input:focus,
.form-contact textarea:focus {
  outline: none;
  border-color: #009EE3;
  box-shadow: 0 0 5px rgba(0,158,227,0.3);
}

.form-contact .btn {
  align-self: center;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    margin: 50px 15px;
    padding: 30px 20px;
  }
}
/* ===== MESSAGE DE CONFIRMATION ===== */
.success-message {
  margin-top: 20px;
  background-color: #e1f8e7;
  color: #1d7a35;
  border: 2px solid #1d7a35;
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
  text-align: center;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  header {
  background: white;
  position: relative;
  top: auto;
  z-index: 1;
  border-bottom: 8px solid #009EE3;
  padding: 2px 40px;
}
.header-grid {
    grid-template-columns: 1fr; /* une seule colonne */
    grid-template-rows: auto auto auto;
    text-align: center;
    row-gap: 2px;
  }

  .right-grid {
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 2px;
  }

  .slogan {
    font-size: 1em;
	  text-align: center;
  margin-left: 0px;
  }



  nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 2px;
  }

  .btn {
    font-size: 0.85em;
    padding: 5px 8px;
  }

  .btn.active {
  background: #FED060;
  color: black; 
    border: 3.5px solid black;
    transform: skew(-12deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
	text-shadow: none;
  }

  .btn:hover {
  background: #FED060;
  color: black; 
    transform: skew(-12deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
	text-shadow: none;
  }

.logo-link {
    justify-content: center;
	}
.logo {
  height: 85px;
  transition: none;
}

.logo-link:hover .logo {
  transform: none;
  }
  .hero h1 {
  font-size: 2em;
  margin-top: 0px;
  margin-bottom: 1px;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
}
  }