:root {
  --color-primary: #00255A;
  --color-secondary: #FFD500;
  --color-white: #ffffff;
  --color-red: #dc3545;
  --color-red-hover: #bd2130;
  --gap: 1rem;
  --bar-height: 60px;
}

/* RESET */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  color: var(--color-primary);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* CONTAINER GÉNÉRIQUE */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

/* NAVIGATION */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar-height);
  background: var(--color-white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 100;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar .logo {
  height: 60px;
}
.top-bar .nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.top-bar .nav-toggle span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background-color: var(--color-primary);
  transition: all 0.3s ease;
}

.top-bar .phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.top-bar .phone-icon {
  width: 24px; height: 24px;
}
.top-bar .phone a {
  color: var(--color-red);
  font-weight: bold;
  font-size: 1.2rem;
}

/* MENU MOBILE */
.top-bar nav {
  display: none;
  flex-direction: column;
  width: 100%;
  background: var(--color-white);
  position: absolute;
  top: var(--bar-height);
  left: 0; right: 0;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.top-bar nav.open {
  display: flex;
}
.top-bar nav a {
  padding: 0.5rem 0;
  font-weight: bold;
  transition: color 0.3s;
}
.top-bar nav a:hover {
  color: var(--color-red);
}

/* DESKTOP */
@media (min-width: 768px) {
  .top-bar .nav-toggle {
    display: none;
  }
  .top-bar nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    padding: 0;
    width: auto;
    box-shadow: none;
    gap: var(--gap);
  }
}

/* HERO */
header.hero {
  margin-top: var(--bar-height);
  position: relative;
  background: url('A_high-resolution_digital_photograph_captures_the_.png') center/cover no-repeat;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  clip-path: polygon(0 0,100% 0,100% 90%,0 100%);
}
header.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
header.hero .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
header.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}
header.hero p.lead {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
header.hero .btn {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: bold;
  margin-top: 2rem;
  transition: background 0.3s;
}
header.hero .btn:hover {
  background: var(--color-red-hover);
}

/* SECTIONS GÉNÉRIQUES */
h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.75rem;
  margin: 3rem 0 2rem;
}
h2 img {
  width: 32px; height: 32px;
}
section:not(#reviews) {
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* SERVICES */
.services-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3,1fr);
  }
}
.service-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.service-card img {
  max-width: 40px;
  margin: 0 auto 1rem;
}

.icon-iphone {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #fffbe6 0%, #f3f3f3 100%);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(255,213,0,0.06);
  padding: 10px;
  object-fit: contain;
  border: 1.5px solid #FFD50022;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 1rem;
}
.service-card:hover .icon-iphone {
  box-shadow: 0 6px 24px rgba(0,37,90,0.13), 0 6px 24px rgba(255,213,0,0.10);
  transform: scale(1.07);
  border-color: #FFD50088;
}


/* À PROPOS */
.about-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #f5f5f5 0%, #dcdcdc 100%);
}
.about p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
}
.about .locations {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  padding: 0;
}
.about .locations li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 500;
}
.about .locations li::before {
  content: '✔';
  color: var(--color-secondary);
  position: absolute;
  left: 0; top: 0;
  font-weight: bold;
}

/* AVIS CLIENTS */
#reviews {
  background: var(--color-white);
  padding: 4rem 1rem;
}
#reviews .reviews-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative; /* conteneur de référence pour les flèches */
}
.reviews-wrapper {
  overflow: hidden;    /* masque le dépassement horizontal */
}
.review-cards {
  display: flex;
  gap: var(--gap);
  transition: transform 0.5s ease;
}
.review-card {
  /* calcule 1/3 de la largeur moins l’espace entre */
  flex: 0 0 calc((100% / 3) - var(--gap));
  background: var(--color-white);
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* FLÈCHES DE CARROUSEL */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-red);
  color: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.3s, transform 0.3s ease;
  z-index: 3;
}
.arrow-left {
  left: 1rem;
}
.arrow-right {
  right: 1rem;
}
.arrow-left:hover {
  background: var(--color-red-hover);
  transform: translate(-5px, -50%);
}
.arrow-right:hover {
  background: var(--color-red-hover);
  transform: translate(5px, -50%);
}

/* MOBILE : une colonne + disparition des flèches */
@media (max-width: 768px) {
  .review-cards {
    flex-direction: column;
  }
  .review-card {
    flex: none;
    width: 100%;
  }
  .arrow-left,
  .arrow-right {
    display: none;
  }
}

/* CONTACT */
#contact {
  padding: 2rem 1rem;
}
#contact h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .contact-wrapper {
    flex-direction: row;
  }
}
.contact-text {
  flex: 1;
  background: #f1f1f1;
  padding: 2rem;
  border-radius: 0.5rem;
}
.contact-text img {
  display: block;
  margin: 1rem auto;
  border: 2px solid var(--color-primary);
  border-radius: 20px;
  max-width: 120px;
}
.contact-form {
  flex: 1;
  background: var(--color-white);
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea,
.contact-form input[type="file"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 3px rgba(0,37,90,0.3);
}
.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background: var(--color-red);
  color: var(--color-white);
  border: none;
  border-radius: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}
.contact-form button:hover {
  background: var(--color-red-hover);
  transform: translateY(-2px);
}

/* MAP */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
}
footer a {
  color: var(--color-white);
  text-decoration: underline;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 64px; height: 64px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.whatsapp-float img {
  width: 36px; height: 36px;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 20px rgba(0,0,0,0.4);
}
@media (max-width: 600px) {
  .whatsapp-float {
    width: 56px; height: 56px;
    bottom: 15px; right: 15px;
  }
  .whatsapp-float img {
    width: 28px; height: 28px;
  }
}

@media (max-width: 767px) {
  .top-bar .logo {
    height: 60px; /* Plus grand sur mobile */
  }
}




/* --- CORRECTIONS RESPONSIVE HEADER HERO --- */
@media (max-width: 600px) {
  header.hero {
    height: 54vh;
    margin-top: var(--bar-height);
    padding: 0 0.5rem;
  }
  header.hero .container {
    max-width: 100%;
    padding: 0 0.2rem;
  }
  header.hero h1 {
    font-size: 1.45rem;
    line-height: 1.25;
    word-break: break-word;
    white-space: normal;
  }
  header.hero p.lead {
    font-size: 1rem;
    padding: 0 2vw;
  }
  /* Evite les textes trop larges sur petits écrans */
  header.hero *,
  .top-bar .phone a {
    word-break: break-word;
    font-size: 1rem;
  }
  /* Réduit la hauteur du top-bar */
  .top-bar {
    height: 48px;
  }
  .top-bar .logo {
    height: 48px;
  }
  /* Réduit la taille du téléphone */
  .top-bar .phone a {
    font-size: 1rem;
  }
}

/* Pour l’affichage des sections de texte */
@media (max-width: 480px) {
  section:not(#reviews) {
    padding: 0 0.2rem;
  }
}


/* ---- RESPONSIVE HERO BUTTON ---- */
@media (max-width: 600px) {
  header.hero .btn {
    width: 100%;
    max-width: 320px;
    margin: 1.5rem auto 0 auto;
    display: block;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-radius: 2rem;
    box-sizing: border-box;
  }
  header.hero .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}


@media (max-width: 600px) {
  header.hero {
    /* Ajoute du padding en bas pour laisser respirer le bouton */
    padding-bottom: 2.5rem;
  }
  header.hero .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  header.hero .btn {
    width: 100%;
    max-width: 320px;
    margin: 1.5rem auto 0 auto;
    display: block;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-radius: 2rem;
    box-sizing: border-box;
  }
}


@media (max-width: 600px) {
  :root {
    --bar-height: 48px;
  }
  header.hero {
    margin-top: var(--bar-height);
  }
}

