* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #cb6de6;
  line-height: 1.6;
  overflow-x: hidden;
  z-index: 1;
  color: black;
}

/* =========================
   TOP HEADER
========================= */
.top-header {
  background-color: #9400d9;
  color: white;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* gauche / centre / droite */
  align-items: center;
  padding: 8px 40px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  gap: 12px;
}

/* Colonnes */
.top-header .left,
.top-header .center,
.top-header .right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.top-header .center { justify-content: center; }
.top-header .right  { justify-content: flex-end; }

.separator {
  color: #D9D9D9;
  font-weight: bold;
}

/* Liens base */
.top-header a { color: white; text-decoration: none; }

/* Téléphone / mail */
.top-link {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.top-link i {
  color: #f5bd4f;
  transition: transform 0.2s ease, color 0.2s ease;
}

.top-link:hover { color: #f0b134; }
.top-link:hover i { transform: scale(1.2); color: #fc952e; }

/* Bouton menu (au centre) */
.dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;

  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: white;
  white-space: nowrap;
}

.dropbtn i {
  color: #ff3c3c;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dropbtn:hover { background: rgba(255,255,255,0.15); }
.dropbtn:hover i { transform: scale(1.15); color: #ebe7dd; }

/* Bouton devis (sans icône) */
.devis-btn {
  background: white;
  color: #D9006E !important;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.devis-btn:hover {
  background: #D9006E;
  color: white !important;
}

/* Important : par défaut on affiche le texte complet */
.devis-short { display: none; }

/* Réseaux */
.social-link {
  color: white;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.social-link:hover { color: #F4C542; }

.social-link i {
  color: #ff3c3c;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-link:hover i {
  transform: scale(1.2);
  color: #ebe7dd;
}

/* =========================
   RESPONSIVE (dès 940px)
========================= */
@media (max-width: 940px) {
  /* On évite les comportements "1fr" qui peuvent forcer des retours */
  .top-header {
    grid-template-columns: auto auto auto;
    padding: 8px 16px;
  }

  .separator { display: none; }

  /* Tout sur une ligne */
  .top-header .left,
  .top-header .center,
  .top-header .right {
    flex-wrap: nowrap;
  }

  /* On cache les textes (icônes seules), SAUF le devis */
  .top-header .text,
  .top-header .label {
    display: none;
  }

  /* Le bouton devis reste en texte */
  .devis-btn { padding: 6px 14px; }
}

/* =========================
   TRÈS PETIT ÉCRAN
   Empêche "Devis" de passer au-dessus du menu
========================= */
@media (max-width: 370px) {
  /* On remplace le texte long par "Devis" */
  .devis-full { display: none; }
  .devis-short { display: inline; }

  /* Compacte légèrement pour rester sur une ligne */
  .devis-btn {
    padding: 6px 10px;
    font-size: 10px;
  }
}

/* =========================
   MENU OVERLAY
========================= */
.menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9999;
}

.menu-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   PANEL
========================= */
.menu-panel{
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 18px;
  padding: 18px 18px 22px;
  position: relative;
  transform: translateY(8px);
  transition: transform .25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden; /* évite les dépassements */
}

.menu-overlay.is-open .menu-panel{
  transform: translateY(0);
}

/* =========================
   BOUTON FERMER
========================= */
.menu-close{
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #f3f3f3;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.menu-close i{
  color: #9400d9;
  font-size: 18px;
}

.menu-close:hover{
  transform: scale(1.05);
  background: #eaeaea;
}

/* =========================
   LOGO
========================= */
.menu-logo{
  display: flex;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 20px;
}

.menu-logo img{
  width: 220px;
  max-width: 65%;
  height: auto;
  transition: transform .25s ease;
}

.menu-overlay.is-open .menu-logo img{
  transform: scale(1.08);
}

/* =========================
   LISTE DES BOUTONS
========================= */
.menu-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;   /* mobile first */
  gap: 14px;
  align-items: center;
}

.menu-list li{
  width: 100%;
  display: flex;
  justify-content: center;
}

/* boutons */
.menu-list a.element{
  display: inline-flex;
  justify-content: center;
  align-items: center;

  /* ✅ moins large sur mobile (<900) */
  width: min(360px, 78vw);

  padding: 14px 18px;
  font-size: 1.05em;
  color: rgb(19,17,17);
  text-decoration: underline;  
  font-weight: 700;            /* ✅ souligné */
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;

  text-align: center;
  border-radius: 30px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
  box-sizing: border-box;
  transform-origin: center;
}

/* couleurs */
.menu-list .bouton1{ background: #ff4d4d; }
.menu-list .bouton2{ background: #ffcc00; }
.menu-list .bouton3{ background: #6a0dad; color: #fff; }

/* rotation alternée */
.menu-list li:nth-child(odd)  a.element{ transform: rotate(-5deg); }
.menu-list li:nth-child(even) a.element{ transform: rotate( 5deg); }

/* hover */
.menu-list a.element:hover{
  background: #f4f4f4;
  color: #000 !important;
  transform: scale(1.06) rotate(0deg);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

/* =========================
   DESKTOP / LARGE (>= 900px)
   ✅ 2 boutons en haut + 3e centré dessous
========================= */
@media (min-width: 900px){
  .menu-list{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px 18px;
  }

  /* 2 premiers = 2 colonnes */
  .menu-list li{
    width: auto;
    flex: 0 0 calc(50% - 18px);
    justify-content: center;
  }

  .menu-list a.element{
    width: 100%;
    max-width: 420px;
  }

  /* ✅ 3e bouton = ligne entière, centré */
  .menu-list li:nth-child(3){
    flex: 0 0 100%;
    justify-content: center;
  }
  .menu-list li:nth-child(3) a.element{
    width: min(420px, 50%);
  }
}

/* =========================
   TABLET / SMALL (< 900px)
   ✅ boutons plus fins
========================= */
@media (max-width: 899px){
  .menu-panel{ width: min(480px, 92vw); }

  .menu-list a.element{
    width: min(250px, 74vw);   /* ✅ réduit */
    padding: 13px 16px;
    gap: 20px;
  }

   .menu-list a.element{
    font-size: 1.02em;
   }
}

/* =========================
   SMALL (<= 500px)
========================= */
@media (max-width: 500px){
  .menu-panel{ padding: 16px 16px 20px; }

  .menu-list a.element{
    width: min(220px, 72vw);   /* ✅ encore moins large */
    padding: 12px 14px;
    border-radius: 24px;
    gap: 20px;
  }

  .menu-list a.element{
    font-size: 1em;
  }

  .menu-list li:nth-child(odd)  a.element{ transform: rotate(-4deg); }
  .menu-list li:nth-child(even) a.element{ transform: rotate( 4deg); }
}

/* =========================
   ULTRA SMALL (<= 350px)
   ✅ éviter tout dépassement avec l'oblique
========================= */
@media (max-width: 350px){
  .menu-panel{ padding: 14px 14px 18px; }

  .menu-list li{
    padding: 0 16px;           /* zone tampon pour la rotation */
    box-sizing: border-box;
  }

  .menu-list a.element{
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    border-radius: 22px;
  }

  .menu-list a.element{
    font-size: 0.95em;
  }

  .menu-list li:nth-child(odd)  a.element{ transform: rotate(-3deg); }
  .menu-list li:nth-child(even) a.element{ transform: rotate( 3deg); }

  .menu-list a.element{
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
  }
}


h2 {
  text-align: center;
}

h3 {
  font-weight: normal;
  text-align: left;
}

.banniere {
  position: relative;
  width: 100%;
  min-height: 45vh;                 /* hauteur adaptable */
  background-image: url("Images/piratecandy.jpg"); /* remplace par ta photo */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;              /* centrage vertical */
  justify-content: center;          /* centrage horizontal */

  text-align: center;
  overflow: hidden;
}

/* Overlay pour la lisibilité */
.banniere::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);  /* foncé léger */
  z-index: 1;
}

.banniere h1 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 1px;
  margin: 0;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .banniere {
    min-height: 35vh;
  }
}

@media (max-width: 480px) {
  .banniere {
    min-height: 30vh;
  }

  .banniere h1 {
    font-size: 1.9rem;
  }
}



/* =========================
   CONTENEUR GLOBAL
========================= */
.contact {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(16px, 4vw, 32px);
  margin: clamp(24px, 6vw, 150px);
  z-index: 1;
}

/* =========================
   BLOCS CONTACT
========================= */
.contact1,
.contact2 {
  flex: 1 1 0;
  max-width: 520px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 15px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: center;

  /* ALIGNEMENT UNIFIÉ */
  text-align: center;
  align-items: flex-start;

  /* HAUTEUR SOUPLE */
  min-height: 220px;
  height: auto;
}

/* Couleurs */
.contact1 {
  background-color: #ffda08;
  border: 2px solid #0a0800;
  color: #000;
}

.contact2 {
  background-color: #ff3d5a;
  border: 2px solid #020000;
  color: #000;
}

/* =========================
   TEXTES
========================= */
.contact p {
  display: flex;              /* clé pour l’espace icône / texte */
  align-items: flex-start;
  gap: 14px;                  /* ← ESPACE ICÔNE ↔ TEXTE */
  margin: 10px 0;
  line-height: 1.45;

  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Icône (FontAwesome ou autre) */
.contact p i,
.contact .icon {
  flex: 0 0 auto;
  font-size: 1.1em;
  margin-top: 2px;            /* alignement vertical propre */
}

/* Texte à côté de l’icône */
.contact p span,
.contact p a {
  flex: 1 1 auto;
}

/* Liens (email / tel) */
.contact a {
  color: #000;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact a:hover {
  text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablette */
@media (max-width: 900px) {
  .contact {
    flex-direction: column;
    margin: 20px;
  }

  .contact1,
  .contact2 {
    max-width: 100%;
    padding: 18px;
  }
}

/* Mobile très étroit (≈ 281px) */
@media (max-width: 320px) {
  .contact1,
  .contact2 {
    padding: 14px;
  }

  .contact p {
    gap: 10px;               /* un peu plus compact */
    font-size: 14px;
  }
}


/* =========================
   VARIABLES (facile à ajuster)
========================= */
:root{
  --form-bg: #aa6af3;
  --panel-bg: #be8df7;
  --text: #000000;

  --border: #000;
  --border-w: 5px;

  --input-bg: #f8deff;
  --input-border: #cfcfcf;

  --primary: #1a0422;
  --primary-hover: #732a9b;

  --radius: 15px;
  --radius-input: 10px;

  --shadow: 0 6px 12px rgba(0,0,0,.30);
  --gap: 20px;
}

/* =========================
   FORM WRAPPER
========================= */
form{
  width: min(1200px, 95%);
  margin: 20px auto 60px;
  padding: 22px;
  background: var(--form-bg);
  border: var(--border-w) double var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}

/* Texte intro */
form p{
  margin: 0 0 18px;
  text-align: left;
}

/* =========================
   FIELDSETS
========================= */
fieldset{
  border: 2px solid rgba(0,0,0,.25);
  border-radius: 14px;
  padding: 10px;
  margin: 18px 0;
  background: var(--panel-bg);
}

legend{
  padding: 0 10px;
  font-weight: 700;
  margin-bottom: 6px;     /* ↓ espace sous le titre */
  line-height: 1.1;       /* ↓ hauteur verticale */
}

/* =========================
   LAYOUT CHAMPS
========================= */
.form-container{
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

/* 2 colonnes desktop, 1 colonne mobile */
.container{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: 10px;
}

.field{
  min-width: 0; /* évite que les inputs débordent */
}

/* =========================
   LABELS + INPUTS
========================= */
label{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Inputs/select/textarea uniformes */
.field input,
.field select,
.field textarea,
textarea,
select{
  width: 100%;
  padding: 11px 12px;
  font-size: 16px;
  box-sizing: border-box;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  background: var(--input-bg);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  margin-top: 6px;        /* air avant */
  margin-bottom: 12px;   /* air après */
}

/* Focus */
.field input:focus,
.field select:focus,
.field textarea:focus,
textarea:focus,
select:focus{
  border-color: rgba(121,4,153,.65);
  box-shadow: 0 0 0 3px rgba(121,4,153,.18);
}

/* Textarea */
textarea{
  min-height: 90px;
  resize: vertical; /* mieux que none : l’utilisateur peut agrandir */
}

/* Checkbox */
input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin: 0;
}

/* =========================
   COLONNES (châteaux)
========================= */
.columns{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.column{
  min-width: 0;
}

/* =========================
   LIENS
========================= */
form a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   BOUTON
========================= */
button{
  width: 100%;
  padding: 13px 14px;
  margin-top: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: transform .15s ease, background-color .25s ease;
}

button:hover{
  background: var(--primary-hover);
  transform: translateY(-2px);
}

button:active{
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px){
  .columns{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  form{
    padding: 16px;
  }
  .container{
    grid-template-columns: 1fr;
  }
  .columns{
    grid-template-columns: 1fr;
  }
}


html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: auto; 
}

.bubble-container {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
  overflow: hidden; 
  z-index: -1; 
}

.bubble {
  position: absolute;
  width: 60px;  
  height: 60px; 
  border-radius: 50%; 
  opacity: 0.8;
  animation: float 20s infinite;
}


@keyframes float {
  0% {
    transform: translate(0, 0);
    opacity: 0.8;
  }
  25% {
    transform: translate(-30px, -50px);
    opacity: 1;
  }
  50% {
    transform: translate(40px, 30px);
    opacity: 0.7;
  }
  75% {
    transform: translate(-20px, -20px);
    opacity: 0.9;
  }
  100% {
    transform: translate(30px, 40px);
    opacity: 0.8;
  }
}

.bubble:nth-child(1) { background-color: #ff7f50; left: 5%; top: 10%; animation-duration: 15s; animation-delay: 0s; }
.bubble:nth-child(2) { background-color: #2ecc71; left: 15%; top: 15%; animation-duration: 18s; animation-delay: 2s; }
.bubble:nth-child(3) { background-color: #1abc9c; left: 25%; top: 20%; animation-duration: 16s; animation-delay: 1.5s; }
.bubble:nth-child(4) { background-color: #f39c12; left: 50%; top: 30%; animation-duration: 20s; animation-delay: 3s; }
.bubble:nth-child(5) { background-color: #e74c3c; left: 70%; top: 25%; animation-duration: 12s; animation-delay: 0.5s; }
.bubble:nth-child(6) { background-color: #9b59b6; left: 85%; top: 5%; animation-duration: 22s; animation-delay: 2.5s; }
.bubble:nth-child(7) { background-color: #3498db; left: 10%; top: 50%; animation-duration: 18s; animation-delay: 1s; }
.bubble:nth-child(8) { background-color: #f1c40f; left: 30%; top: 75%; animation-duration: 14s; animation-delay: 1.5s; }
.bubble:nth-child(9) { background-color: #2ecc71; left: 60%; top: 10%; animation-duration: 16s; animation-delay: 0s; }
.bubble:nth-child(10) { background-color: #3498db; left: 45%; top: 50%; animation-duration: 12s; animation-delay: 2s; }
.bubble:nth-child(11) { background-color: #e67e22; left: 90%; top: 60%; animation-duration: 17s; animation-delay: 3s; }
.bubble:nth-child(12) { background-color: #9b59b6; left: 20%; top: 85%; animation-duration: 15s; animation-delay: 1s; }
.bubble:nth-child(13) { background-color: #1abc9c; left: 40%; top: 45%; animation-duration: 19s; animation-delay: 0.5s; }
.bubble:nth-child(14) { background-color: #e74c3c; left: 60%; top: 10%; animation-duration: 13s; animation-delay: 2.5s; }
.bubble:nth-child(15) { background-color: #ff7f50; left: 80%; top: 90%; animation-duration: 18s; animation-delay: 3s; }
.bubble:nth-child(16) { background-color: #f1c40f; left: 25%; top: 35%; animation-duration: 15s; animation-delay: 2s; }
.bubble:nth-child(17) { background-color: #3498db; left: 35%; top: 20%; animation-duration: 14s; animation-delay: 1.5s; }
.bubble:nth-child(18) { background-color: #2ecc71; left: 55%; top: 80%; animation-duration: 20s; animation-delay: 0.5s; }
.bubble:nth-child(19) { background-color: #9b59b6; left: 75%; top: 10%; animation-duration: 17s; animation-delay: 2s; }
.bubble:nth-child(20) { background-color: #f39c12; left: 90%; top: 70%; animation-duration: 18s; animation-delay: 3s; }

.scroll-indicator {
  position: fixed;
  bottom: 20px; 
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: #fff;
  animation: bounce 1s infinite;
  z-index: -1;
}

@keyframes bounce {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-15px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

  /* Footer plein écran + couleur demandée */
.site-footer{
  font-family: "Poppins", Arial, sans-serif; 
  width:100%;
  background:#9400d9;              /* couleur demandée */
  color:#fff;
  padding:14px clamp(12px,4vw,18px);
  margin:32px 0 0;                 /* colle au bas de page */
  text-align:center;
  border-radius:0;                  /* plein écran, pas de coins */
  box-shadow:none;                  /* look plus flat */
}

/* “Header” de footer : liens sur toute la largeur */
.legal-links{
  width:100%;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  font-weight:600;
  line-height:1.25;
}

.legal-links a{
  color:#fff;
  text-decoration:none;
  position:relative;
  padding:6px 8px;                  /* zones tactiles mais sobres */
  border-radius:6px;
  font-size:clamp(12px, 1.9vw, 14px);  /* ← plus petit */
  opacity:.95;                      /* moins imposant */
}

/* Séparateur | en clair */
.legal-links a + a::before{
  content:"|";
  margin-right:8px;
  opacity:.5;
}

/* hover/focus discrets */
.legal-links a:hover{ text-decoration:underline }
.legal-links a:focus-visible{
  outline:2px solid rgba(255,255,255,.6);
  outline-offset:3px;
}

/* Crédit plus discret */
.credit{
  margin:6px 0 0;
  font-size:clamp(11px, 1.7vw, 13px);  /* ← plus petit */
  opacity:.85;
}

/* ---------- Responsive ---------- */
/* Mobile : liens empilés, séparés par une ligne claire, toujours plein écran */
@media (max-width:520px){
  .legal-links{
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }
  .legal-links a{
    padding:10px 12px;
    font-size:13px;
  }
  .legal-links a + a::before{ content:none }
  .legal-links a + a{
    border-top:1px solid rgba(255,255,255,.25);
  }
}
  
  