/* =====================
   Variables palette
===================== */
:root {
    --jaune: #FFEB84;
    --marron-fonce: #3E3C2B;
    --gris-violet: #E2E1E8; /* gris clair modernisé */
}




/* =====================
   Font Sligoil
===================== */
@font-face {
    font-family: 'Sligoil';
    src: url('fonts/Sligoil-Regular.woff2') format('woff2'),
         url('fonts/Sligoil-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



@font-face {
    font-family: 'Sligoil';
    src: url('Sligoil-Micro.woff2') format('woff2'),
         url('Sligoil-Micro.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =====================
   Reset basique
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sligoil', Arial, sans-serif;
    background-color: var(--gris-violet);
    color: var(--marron-fonce);
    text-align: center;
    line-height: 1.5;
}

/* Appliquer Sligoil partout */
h1, h2, h3, p, input, textarea, button {
    font-family: 'Sligoil', Arial, sans-serif;
}

/* =====================
   Header / Hero
===================== */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centre vertical */
    align-items: center;    /* centre horizontal */
    text-align: center;     /* centre texte */
    height: 100vh;
    padding: 0 20px;        /* espace sur mobile */
    background-color: var(--jaune);
    color: var(--marron-fonce);
}

/**********************H1*/
.hero h1 {
  position: relative;
  display: inline-block;
  font-size: 8rem;
  margin-bottom: 20px;
  letter-spacing: 4px;
  padding: 20px 40px;
  background-color: var(--jaune);
  color: var(--marron-fonce);
  box-sizing: border-box;
  overflow: hidden;
}

/* Bordure en pointillés qui se dessine en boucle */
.hero h1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 8px dashed var(--marron-fonce);
  box-sizing: border-box;
  
  /* Animation du tracé */
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  animation: draw-border-loop 4s  infinite;
}

/* Animation : la bordure se trace puis s’efface */
@keyframes draw-border-loop {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  25% {
    clip-path: polygon(0 0, 100% 0, 0 100%, 0 100%);
  }
  50% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  75% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  90% {
    opacity: 1;
  }
  100% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    opacity: 0;
  }
}
/********************/

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Bouton */
.hero .btn {
    padding: 10px 25px;
    border: 2px solid var(--marron-fonce);
    color: var(--marron-fonce);
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.hero .btn:hover {
    background-color: var(--marron-fonce);
    color: var(--jaune);
}

/****H1*/
.hero-title.stamp {
  display: inline-block;
  padding: 20px 40px;
  border: 5px solid var(--marron-fonce);
  transform: translateY(10px) scale(0.98);
  filter: blur(6px);
  opacity: 0;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  animation: stamp-in 850ms cubic-bezier(.2,.7,.1,1) forwards;
}

@keyframes stamp-in {
  40% {
    opacity: 1;
    filter: blur(2px);
    transform: translateY(0) scale(1.005);
    box-shadow: 0 18px 20px rgba(0,0,0,.08);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 12px rgba(0,0,0,.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title.stamp {
    animation: none;
    opacity: 1; filter: none; transform: none; box-shadow: none;
  }
}




/* =====================
   Sections
===================== */


.description p {
    text-align: justify;
    max-width: 800px; /* pour pas que les lignes soient trop longues */
}



section {
      border: 8px solid var(--jaune); /* épaisseur et couleur du cadre */
  border-radius: 8px;             /* angles légèrement arrondis (optionnel) */
  padding: 40px 20px;             /* garde ton espace intérieur */
  margin: 40px auto;              /* espace entre les sections */
  max-width: 1000px;              /* pour que le cadre ne touche pas les bords */
  background-color: var(--gris-violet); /* ton fond actuel */
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

section h2 {
    font-size: 3.8rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
    color: var(--marron-fonce);
}
/* Apparition fluide des sections */
section {
  opacity: 0;
  transform: translateY(50px); /* descend un peu au départ */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* Quand la section devient visible */
section.show {
  opacity: 1;
  transform: translateY(0);
}

.suivez-nous {

  width: 100%; /* prend toute la largeur de la fenêtre */
  justify-content: center;
  align-items: center;

  background-color: var(--jaune);
  color: var(--marron-fonce);
  text-align: center;
}


img {
  max-width: 100%;     /* empêche de dépasser la largeur du conteneur */
  height: auto;        /* conserve les proportions naturelles */
  display: block;      /* supprime l’espace blanc sous l’image */
  margin: 20px auto;   /* centre et ajoute un peu d’air */
  border-radius: 8px;  /* optionnel : arrondit légèrement les coins */
  object-fit: cover;   /* assure un rendu propre si l’image est grande */
}









/* =====================
   Menu
===================== */
.menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-item {
    border: 2px solid var(--marron-fonce);
    padding: 20px;
    width: 300px;
    transition: transform 0.3s, background 0.3s;
    background-color: var(--jaune);
    color: var(--marron-fonce);
}

.menu-item:hover {
    transform: scale(1.05);
    background-color: var(--jaune);
    color: var(--marron-fonce);
}


.engagements {
    padding: 40px 20px;  /* moins d'espace vertical que le hero */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--jaune);
    color: var(--marron-fonce);
    text-align: justify; /* texte justifié pour un style propre */
}

.engagements h2 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: var(--marron-fonce);
}

.engagements p {
    max-width: 700px;
    line-height: 1.6;
}





/* =====================
   Schéma / Plan
===================== */
.plan-schema {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* adapte le nombre de colonnes selon l’espace */
    gap: 20px;
    margin-bottom: 20px;
    justify-items: center;
    width: 100%;
    padding: 0 10px; /* petit padding pour éviter que ça touche les bords */
    box-sizing: border-box;
}

.plan-schema > div {
    border: 2px solid var(--marron-fonce);
    background-color: var(--gris-violet);
    color: var(--marron-fonce);
    padding: 30px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    max-width: 250px;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, background 0.3s;
}

.plan-schema > div:hover {
    transform: scale(1.05);
    background-color: var(--jaune);
}



/* =====================
   Contact
===================== */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;
    margin-bottom: 20px;
}

.contact input,
.contact textarea {
    padding: 10px;
    border: 2px solid var(--marron-fonce);
    font-size: 1rem;
    background-color: var(--gris-violet);
    color: var(--marron-fonce);
}

.contact button {
    padding: 10px;
    border: 2px solid var(--marron-fonce);
    background: none;
    font-weight: bold;
    cursor: pointer;
    color: var(--marron-fonce);
    transition: background 0.3s, color 0.3s;
}

.contact button:hover {
    background-color: var(--jaune);
    color: var(--marron-fonce);
}

/* =====================
   Tasses animées
===================== */
.tasses-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.tasses-bg .tasse {
    position: absolute;
    width: 550px;
    opacity: 0.05;
    top: calc(var(--i) * 20%);
    left: -60px;
    animation: defileTasse 30s linear infinite;
}

/* Animation gauche → droite */
@keyframes defileTasse {
    0% { transform: translateX(0); }
    100% { transform: translateX(110vw); }
}

/* Couleurs des tasses (si SVG inline) */
.tasse.couleur1 { color: var(--jaune); }
.tasse.couleur2 { color: var(--marron-fonce); }
.tasse.couleur3 { color: var(--gris-violet); }


/* =====================
   MAPS
===================== */

.map-container {
    display: flex;
    justify-content: center; /* centre horizontal */
    align-items: center;     /* centre vertical si besoin */
    width: 100%;
    max-width:500px;
    height: 450px;
    margin: 40px auto 0 auto; /* centre horizontal via auto margins */
    border: 2px solid var(--marron-fonce);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(90%) brightness(90%);
    display: block; /* supprime l’espace sous l’iframe */
}



/* =====================
   Section réseaux sociaux
===================== */
.suivez-nous {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--jaune); /* même jaune que hero/engagements */
    color: var(--marron-fonce);
    text-align: center;
}

.suivez-nous h2 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: var(--marron-fonce);
}

.suivez-nous .social-icons {
    display: flex;
    gap: 25px;
    margin-top: 15px;
}

.suivez-nous .social-icons img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s;
}

.suivez-nous .social-icons img:hover {
    transform: scale(1.2);
}




/* =====================
   Footer
===================== */
footer {
    padding: 30px 0;
     font-size: 0.8rem;  /* plus petit, discret */
    color: var(--marron-fonce);
    text-align: center;
    line-height: 1.4;
}

/* =====================
   Responsive
===================== */


/* Large marges uniquement sur desktop */




@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.2rem;
    }

        section h2 {
        font-size: 2rem; /* réduit la taille des h2 sur mobile */
    }


    .engagements h2 {
        font-size: 2rem; /* réduit la taille des h2 sur mobile */
    }

    .suivez-nous h2{
        font-size: 2rem; /* réduit la taille des h2 sur mobile */
    }
    .menu-item,
    .plan-schema > div,
    .contact form {
        width: 90%;
    }
     /* Map responsive */
    .map-container {
        max-width: 80%;
        height: 300px; /* hauteur réduite sur mobile */
        margin: 20px auto;
    }
}


