/* ===================== RESET ===================== */
/* Box sizing reset */
@import url("https://fonts.googleapis.com/css2?family=Inter&family=Saira+Condensed:wght@500&display=swap");

* {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 5px;
  box-sizing: border-box;
}

/* Base */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #c4c5c5;
  background: radial-gradient(
    circle,
    rgba(196, 197, 197, 1) 12%,
    rgba(196, 197, 197, 1) 28%,
    rgba(196, 197, 197, 1) 46%,
    rgba(231, 232, 232, 1) 61%,
    rgba(254, 255, 254, 1) 95%
  );
  line-height: 1.4;
}
.container-fade-in h5 {
  font-size: 2.6rem;
  text-align: center;
}
.container {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  padding: 1rem 0;
}

/* Header */
.fcontainer header-top{
  font-size: 2.5vw;
}
.logo-fixe {
  position: absolute;
  top: -265px;
  right: -30px;
  width: 20%;
  max-width: 300px;
  height: auto;
  z-index: 10px;
}

nav {
  background: #ffffff;
  margin-top: 1rem;
  border: 1px solid black;
  font-weight: bold;
}

nav ul {
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center; /* centre verticalement (si utile) */
  flex-wrap: wrap; /* pour éviter que ça déborde */
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

nav a {
  flex: 1;

  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

nav a:hover {
  color: #cc0000;
}
nav a.active {
  font-weight: bold;
  color: #e20505;
  border-bottom: 2px solid #0f0f0f;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  width: 100%;
}

/* Hero */
.hero {
  background: #1b1b1b;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 2rem;
}

.btn {
  background: white;
  color: #cc0000;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #ff1717;
  background: linear-gradient(
    90deg,
    rgba(255, 23, 23, 1) 2%,
    rgba(110, 12, 12, 1) 57%
  );
  color: black;
}

/* Services */
.services h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 250px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.card h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.card p {
  font-size: 0.95rem;
}

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

/* Avis */
.avis h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

form label {
  display: block;
  margin: 0.5rem 0 0.25rem;
}

form input[type="text"],
form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
  resize: none;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

fieldset {
  border: none;
  padding: 0;
  margin-bottom: 1rem;
}

legend {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.etoiles {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 0.2rem;
}

.etoiles input[type="radio"] {
  display: none;
}

.etoiles label {
  font-size: 1.5rem;
  color: #3b3a3a;
  cursor: pointer;
  transition: color 0.2s;
}

.etoiles input[type="radio"]:checked ~ label,
.etoiles label:hover,
.etoiles label:hover ~ label {
  color: #ffcc00;
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin: 0.5rem 0;
}

.social-links {
  margin-top: 1rem;
}

.social-links a img {
  margin: 0 0.5rem;

  transition: filter 0.3s, transform 0.3s ease;
  vertical-align: middle;
}

.social-links a:hover img {
  filter: brightness(0.8) invert(1);
  transform: scale(1.1);
}
footer .social-links a {
  text-decoration: none;
}

.visiteur-compteur {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  z-index: 1000;
  font-family: sans-serif;
}

/* A PROPOS  */
.valeurs ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}
/* Style pour le tableau des tarifs */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: Arial, sans-serif;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #c20505;
}

th {
  background-color: #1a1b1a;
  color: white;
  font-size: 16px;
}

td {
  background-color: #f9f9f9;
  font-size: 14px;
}

/* Survol de ligne */
tr:hover {
  background-color: #f1f1f1;
}

/* Style pour les cellules de description */
td p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #555;
}

/* Style pour les titres dans le tableau */
h3 {
  margin-top: 30px;
  font-size: 22px;
  color: #333;
}

/* Mise en forme des tarifs */
strong {
  font-size: 18px;
  color: #2c3e50;
}

/* Adaptation responsive */
.active {
  font-weight: bold;
  background: linear-gradient(270deg, red, black, red);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientH2Anim 6s ease infinite;
}

@keyframes activeAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-h2 {
  font-size: 2.2rem;
  font-weight: bold;
  background: linear-gradient(270deg, red, black, red);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientH2Anim 6s ease infinite;
}

@keyframes gradientH2Anim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

h1 {
  font-size: 1.7rem;
  font-weight: bold;
  text-align: center;
  margin-top: 2vh;
  background: linear-gradient(270deg, red, black, red);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientTextAnim 6s ease infinite;
}

@keyframes gradientTextAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* Gradient animé rouge-noir pour h1 */
.gradient-text {
  font-size: 5rem;
  font-weight: bold;
  background: linear-gradient(270deg, red, black, red);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientTextAnim 6s ease infinite;
}

@keyframes gradientTextAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* GRADIENT ANIMÉ POUR H2 */
.gradient-h2 {
  font-size: 2rem;
  text-align: center;
  font-weight: bold;
  background: linear-gradient(270deg, red, black, red);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientH2Anim 6s ease infinite;
}

@keyframes gradientH2Anim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Galerie  */
.header-gallery {
  background: linear-gradient(135deg, #272f3c, #3c4a5a);
  color: white;
  text-align: center;
  padding: 3rem 1rem 2rem;
}
.header-gallery h1 {
  margin: 0;
  font-size: 2.5rem;
}
.header-gallery p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #ccc;
}
.gallery-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  background: rgba(39, 47, 60, 0.8);
  color: #fff;
  width: 100%;
  padding: 0.8rem;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}
.gallery-item:hover .overlay {
  opacity: 1;
}
.gallery {
  padding: 2rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.zoomable {
  cursor: pointer;
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s;
}

.zoomable:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
  z-index: 9999;
}

.lightbox img {
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s;
}

/* Construction PC */
.construire-btn {
  display: inline-block;
  margin-top: 1rem;
  background: #1b1b1b;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: bold;
  border: 2px solid #fff;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.construire-btn:hover {
  background: #e20505;
  color: #fff;
  border-color: #e20505;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

    .mobile  {
 width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
  text-align: center;
}

/* 🔥 Version mobile : taille ajustée + centrée */
@media screen and (max-width: 768px) {
  .mobile {
    width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
 
  text-align: center;
}
    
/* === MEDIA QUERIES - PRO RESPONSIVE RM CODEX DIGITAL === */

/* Grand écran (desktop large) */
@media screen and (min-width: 1201px) {
  .logo {
    position: absolute;
    right: 40px;
  }
  * {
    max-width: 2000px;
    margin: 0 auto;
  }
}

/* Ordinateur portable */
@media screen and (max-width: 1200px) {

  header,
  nav,
  main,
  footer {
    padding: 0 20px;
  }
}

/* Tablette */
@media screen and (max-width: 992px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }


  header h1 {
    font-size: 24px;
    margin: 5px 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav ul li {
    text-align: center;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {

  header h1 {
    font-size: 22px;
    text-align: center;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    padding: 0;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    text-align: center;
    font-size: 16px;
  }

  main {
    padding: 10px;
    font-size: 15px;
  }

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

/* Téléphone très petit */
@media screen and (max-width: 480px) {


  main {
    font-size: 14px;
  }

  footer {
    font-size: 13px;
  }
}
@media screen and (max-width: 600px) {
  .gradient h1 h2{
    font-size: 2.5;
  }
  .logo{
    display: none;

  }
  
}