@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');

html {
    scroll-behavior: smooth;
}

/* Fond texturé */
body {
    font-family: "Titillium Web", sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../pink-white-background-with-watercolor-background.jpg');
    /* Texture */
    background-size: cover;
    background-attachment: fixed;
}

header {
    background-image: url('../img/montagne.JPG');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 120px 40px 120px;

}

/* Logo + titre sur la même ligne */
.header-top {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    margin-top: -80px;
}

.logo {
    width: 120px;
    border-radius: 10px;
}

header h1 {
    font-size: 42px;
    margin: 0;
    font-weight: bold;
    color: #074389;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #1dacff;
    text-align: center;
}

nav ul li {
    display: inline-block;
    position: relative;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 25px;
    display: block;
}

nav ul li a:hover {
    background-color: #1565c0;
}

/* Menu déroulant */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1976d2;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul li:hover>ul {
    display: block;
}

nav ul li ul li {
    display: block;
}

nav ul li ul li a {
    padding: 10px 20px;
    font-size: 18px;
}

nav ul li ul li a:hover {
    background-color: #1565c0;
}

section {
    padding: 50px 20px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 1100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-top: -25px;
    text-align: center;
    color: #093d71;
    margin-bottom: 30px;
    font-size: 36px;
}


/* Section Services */
/* ===== SAP (Service à la personne) - Intégration pro ===== */

.sap-banner {
  max-width: 1100px;
  margin: 0 auto 22px;
  padding: 14px 16px;
  background-color: rgba(196, 238, 255, 0.626);
  border-radius: 12px;
  border-left: 6px solid #1976d2;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.sap-banner__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sap-logo-box {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  overflow: hidden;
  flex: 0 0 46px; /* taille verrouillée */
  display: flex;
  align-items: center;
  justify-content: center;
}

.sap-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(3); /* zoom */
  transform-origin: center;
}


.sap-banner__title {
  margin: 0;
  font-weight: 700;
  color: #093d71;
  font-size: 18px;
}

.sap-banner__subtitle {
  margin: 2px 0 0;
  color: #054065;
  font-size: 14px;
}

.sap-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1565c0;
  white-space: nowrap;
}

.sap-banner__chev {
  font-size: 22px;
  line-height: 1;
}

/* Popover */
.sap-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  width: min(700px, 96vw);
  background: #fff;
  color: #054065;
  border-radius: 12px;
  padding: 16px 16px;
  border: 1px solid rgba(25,118,210,0.25);
  box-shadow: 0 12px 26px rgba(0,0,0,0.16);
  display: none;
  z-index: 60;
}

.sap-popover h4 {
  margin: 0 0 10px;
  color: #1976d2;
  font-size: 18px;
}

.sap-popover p {
  margin: 0 0 10px;
}

.sap-popover ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.sap-popover li {
  margin-bottom: 6px;
}

.sap-popover__note {
  font-size: 14px;
  opacity: 0.95;
}

/* Bouton fermer */
.sap-popover__close {
  margin-top: 10px;
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.sap-popover__close:hover {
  background: #1565c0;
}

/* Etat ouvert */
.sap-banner.is-open .sap-popover {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .sap-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .sap-banner__cta {
    align-self: flex-end;
  }
}

/* Container principal du slider */
.slider-container {
  position: relative;
  width: 500px;
  margin: 30px auto;
  border-radius: 12px;
}

/* Frame qui contient toutes les slides */
.slider-frame {
  overflow: hidden;
  width: 100%; /* prend toute la largeur du container */
}

/* Slider interne qui se déplace avec Anime.js */
.slider-inner {
  display: flex;
  transition: none; /* l'animation est gérée par Anime.js */
}

.service-card {
     flex: 0 0 100%; /* prend exactement la largeur du cadre */
  box-sizing: border-box; /* padding inclus dans la largeur */
  margin: 0; /* pas de marge pour le slider exact */
  padding: 20px;
  background-color: rgba(196, 238, 255, 0.626);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 24px;
    color: #1976d2;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 16px;
    margin-bottom: 15px;
}

.service-card .pricing {
    font-weight: 700;
    color: #1565c0;
}

/* Boutons de navigation */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1976d2;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.slider-btn.left { left: -20px; }
.slider-btn.right { right: -20px; }

/* Responsive : cadre plus petit sur mobile */
@media (max-width: 768px) {
  .slider-container {
    width: 90%; /* prend presque toute la largeur de l'écran */
  }
}

/* Frise Chronologique */
.timeline {
    position: relative;
    padding: 20px;
    margin: 50px 0;
    border-left: 3px solid #1976d2;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -15px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #1976d2;
    box-shadow: 0 0 0 3px #fff;
}

.timeline-item h3 {
    color: #1976d2;
    font-size: 20px;
    font-weight: bold;
}

.timeline-item p {
    font-size: 16px;
    color: #054065;
}

.timeline-item img {
    width: 400px;
    height: 200px;
    border-radius: 8px;
    margin-right: 20px;
    margin-top: 10px;
    object-fit: cover;
}
.external-link{
    text-decoration: none;
    color: #1976d2;
}

/* Section Contact et Localisation */
.contact-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-info h3{
    color: #1a6ec3;
    margin-bottom: 15px;
}

/* ===== Formulaire de contact ===== */

.contact-form {
  width: 100%;
  max-width: 520px;
  background-color: rgba(196, 238, 255, 0.626);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-left: 5px solid #1976d2;
}

.contact-form h3 {
  text-align: left;
}

.form-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: #054065;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(25,118,210,0.35);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25,118,210,0.15);
}

.form-hint {
  margin: 6px 0 12px;
  color: #054065;
  font-size: 14px;
  opacity: 0.9;
}

.btn-submit {
  width: 100%;
  border: none;
  background: #1976d2;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  font-size: 16px;
}

.btn-submit:hover {
  background: #1565c0;
}

.form-status {
  margin-top: 10px;
  font-weight: 700;
  color: #054065;
}

/* Erreurs */
.is-invalid {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 3px rgba(211,47,47,0.12) !important;
}

@media (max-width: 768px) {
  .contact-form {
    max-width: 100%;
  }
}
.localisation-map {
    margin-top: 30px;
    text-align: center;
    width: 90%;
}

.localisation-map h3 {
    color: #1a6ec3;
    margin-bottom: 15px;
}

.localisation-map img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 700px;
}



/* ===== FOOTER ===== */

.site-footer {
    background-color: #1976d2;
    color: #fff;
    margin-top: 40px;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col h3 {
    margin-bottom: 15px;
}

.footer-col p {
    margin: 6px 0;
    line-height: 1.4;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: white;
    text-decoration: none;
}

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

/* Instagram */
.footer-social img {
    width: 36px;
    margin-top: 10px;
    transition: transform 0.2s ease;
}

.footer-social img:hover {
    transform: scale(1.15);
}

/* Bas de footer */
.footer-bottom {
    text-align: center;
    padding: 15px;
    background-color: #1565c0;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}




/* --- Base anti scroll horizontal & cohérence responsive --- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  width: 100%;
  overflow-x: hidden;         /* sécurité */
  scroll-behavior: smooth;    /* ancres fluides */
}

img {
  max-width: 100%;
  height: auto;
  display: block;             /* évite les petits débordements inline */
}

/* Optionnel (recommandé) : éviter les longues chaînes qui débordent */
p, li, a, h1, h2, h3, h4 {
  overflow-wrap: anywhere;
}

/* =========================================================
   TABLETTES (<= 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  header {
    padding: 90px 20px;
    background-position: center top;
  }

  header h1 {
    font-size: 34px;
  }

  /* Services en grille plus confortable */
  .services {
    justify-content: center;
  }

  .service-card {
    width: 46%;
  }

  /* Timeline images fluides */
  .timeline-item img {
    width: 100%;
    height: auto;
  }

  /* Contact : garder 2 colonnes tant que possible */
  .contact-info {
    gap: 20px;
  }

  /* Formulaire jamais trop large */
  .contact-form {
    max-width: 100%;
    width: 100%;
  }
}

/* =========================================================
   MOBILES (<= 768px)
   ========================================================= */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 60px 15px;
    text-align: center;
  }

  .header-top {
    flex-direction: column;
    gap: 12px;
    margin-top: 0;  /* tu avais un margin-top négatif -> risqué sur mobile */
  }

  .logo {
    width: 96px;
  }

  header h1 {
    font-size: 26px;
    line-height: 1.25;
  }

  /* Hero (si tu l’as ajouté) */
  .hero {
    margin-top: 14px;
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  /* Navigation (menu vertical) */
  nav ul li {
    display: block;
  }

  nav ul li a {
    padding: 12px 12px;
    font-size: 17px;
  }

  /* Sections : respirent mieux sur mobile */
  section {
    padding: 36px 16px;
    margin: 16px auto;
  }

  h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 18px;
  }

  /* Services : 1 colonne */
  .services {
    flex-direction: column;
    align-items: stretch;
  }

  .service-card {
    width: 100%;
  }

  .service-card img {
    height: 220px;
  }

  /* ===== Contact / Localisation : 50/50 -> 100% + 100% ===== */
  .contact-info {
    flex-direction: column;
    align-items: stretch;   /* IMPORTANT : pas center (cause du débordement) */
    text-align: center;
    gap: 18px;
  }

  /* Empêche les enfants flex de forcer un débordement */
  .contact-info > * {
    min-width: 0;
  }

  .address,
  .contact-form {
    width: 100%;
    max-width: 100%;
  }

  /* Formulaire : inputs toujours à 100% */
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
  }

  /* Carte / rayon d'action */
  .localisation-map {
    margin-top: 22px;
    text-align: center;
  }

  .localisation-map img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
  }

  /* ===== Timeline ===== */
  .timeline {
    border-left: none;
    border-top: 3px solid #1976d2;
    padding-top: 18px;
  }

  .timeline-item {
    padding-left: 0;
    text-align: center;
  }

  .timeline-item:before {
    display: none;
  }

  .timeline-item img {
    width: 100%;
    height: auto;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
    padding: 28px 16px;
  }

  .footer-col {
    min-width: 0;
  }
  footer {
    text-align: center;
  }

  footer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  footer a img {
    margin: 10px auto 0;
  }
}

/* =========================================================
   PETITS MOBILES (<= 480px)
   ========================================================= */
@media (max-width: 480px) {
  header h1 {
    font-size: 24px;
  }

  nav ul li a {
    font-size: 16px;
    padding: 11px;
  }

  h2 {
    font-size: 26px;
  }

  .service-card {
    padding: 16px;
  }

  .service-card img {
    height: 200px;
  }

  /* Si tu as un popup, on garde ton code + on sécurise */
  .popup-content {
    width: 95%;
    padding: 18px;
  }

  .popup-content textarea {
    min-height: 100px;
  }
}