/* ------------------------------
   FONTS LOCALES
------------------------------ */

@font-face {
  font-family: "Century Gothic";
  src: url("../fonts/centurygothic.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Julius Sans One";
  src: url("../fonts/JuliusSansOne-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Ephesis";
  src: url("../fonts/Ephesis-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}


/* ---------------------------------------------------
   RESET & BASE
--------------------------------------------------- */

img {
  width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
}

* {
  scroll-margin-top: 130px;
}

body {
  margin: 0;
  font-family: "Century Gothic", sans-serif;
  background: url('../images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #333;
  padding-top: 110px;
}

section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

button, .button {
  padding: 14px 28px;
  background: #684B45;
  color: white;
  border: none;
  border-radius: 20px;
  font-family: "Julius Sans One", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background .3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

button:hover, .button:hover {
  background: #eeac9e;
  color: white;
}

/* Boutons alignés à droite */
.div-buttons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}


/* ---------------------------------------------------
   TYPOGRAPHIE
--------------------------------------------------- */

h1, h2, h3 {
  font-family: "Julius Sans One", sans-serif;
  transition: color .3s ease;
}

h1 {
  color: #eeac9e;
  text-align: center;
  font-size: 1.8rem;
  margin-top: 50px;
  margin-bottom: 10px;
}

h2 {
  color: #8f827d;
  font-size: 1.4rem;
  margin-top: 50px;
  margin-bottom: 6px;
}

h3 {
  color: #684B45;
  font-size: 1.2rem;
  margin-top: 40px;
  margin-bottom: 0;
}

p, li {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.6;
}

.intro-text {
  text-align: center;
  line-height: 2;
  font-size: 0.9rem;
  color: #555;
}

a {
  color: #684B45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

a:hover {
  color: #eeac9e;
}

a:focus {
  outline: 2px solid #eeac9e;
  outline-offset: 3px;
}

.signature {
  color: #555;
  font-family: "Ephesis", cursive;
  font-size: 2rem;
  text-align: center;
  margin: 0;
}


/* ---------------------------------------------------
   LAYOUT GLOBAL
--------------------------------------------------- */

.container {
  max-width: 800px;
  margin: auto;
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.9);
}


/* ---------------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------------- */

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
}

.logo {
  height: 60px;
  width: auto;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeLogo 1s ease forwards;
  transition: transform 0.4s ease;
}

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

@keyframes fadeLogo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: #684B45;
  font-family: "Julius Sans One", sans-serif;
  font-size: 1.1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #684B45;
  transition: 0.3s;
}


/* ---------------------------------------------------
   SECTIONS
--------------------------------------------------- */

.presentation-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.presentation-img {
  width: 250px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.presentation-text {
  flex: 1;
  min-width: 250px;
}

.contact-form {
  text-align: center;
  margin: 30px 0;
}


/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */

footer {
  margin-top: 60px;
  background-color: #fff;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #8f827d;
  border-top: 2px solid #baafab33;
}

footer a {
  color: #684B45;
}

footer a:hover {
  color: #eeac9e;
}


/* ---------------------------------------------------
   INSTAGRAM GRID
--------------------------------------------------- */

#insta-loader {
  width: 40px;
  height: 40px;
  margin: 30px auto;
  border: 4px solid rgba(255, 255, 255, 0.4);
  border-top-color: #eeac9e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px 0;
}

.insta-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}

.insta-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.insta-item img {
  transition: transform .4s ease;
}

.insta-item:hover img {
  transform: scale(1.08);
}

.insta-hover-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  opacity: 0;
  transition: opacity .3s ease;
}

.insta-hover-caption p {
  font-size: 0.85rem;
  padding: 10px;
  margin: 0;
}

.insta-item:hover .insta-hover-caption {
  opacity: 1;
}

/* Bouton S'abonner */
.insta-subscribe {
  display: flex;
  align-items: center;
  gap: 8px;
}

.insta-icon {
  width: 18px;
  height: 18px;
}

/* Badge compteur */
.insta-count {
  background: white;
  color: #eeac9e;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
  margin-left: 4px;
}


/* ---------------------------------------------------
   INSTA LIGHTBOX
--------------------------------------------------- */

#insta-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity .4s ease;
}

#insta-lightbox.visible {
  opacity: 1;
}

#insta-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}

body.no-scroll {
  overflow: hidden;
}

#insta-lightbox-content {
  display: flex;
  gap: 30px;
  width: 90vw;
  height: 90vh;
  transition: transform .35s ease, opacity .35s ease;
}

#insta-lightbox img {
  width: 60%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

#insta-lightbox-text {
  width: 40%;
  height: 100%;
  overflow-y: auto;
  color: white;
  font-size: 1rem;
  line-height: 1.5;
}

.insta-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  padding: 10px 20px;
  user-select: none;
  transition: opacity .3s ease;
}

#insta-lightbox-prev {
  left: 20px;
}

#insta-lightbox-next {
  right: 20px;
}

.insta-lightbox-arrow:hover {
  opacity: 0.7;
}

/* Animations glissement */
#insta-lightbox-content.slide-out-left,
#insta-lightbox-content.slide-in-left {
  transform: translateX(-80px);
  opacity: 0;
}

#insta-lightbox-content.slide-out-right,
#insta-lightbox-content.slide-in-right {
  transform: translateX(80px);
  opacity: 0;
}


/* ---------------------------------------------------
   ATELIERS
--------------------------------------------------- */

#ateliers {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

#ateliers .atelier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.atelier {
  background: #fafafa;
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.atelier:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.atelier h2 {
  font-size: 1.4rem;
  text-align: center;
  margin-top: 0;
}

.atelier .infos {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 1rem;
  color: #444;
}

#ateliers-infos p {
  margin-bottom: 0;
}

#ateliers-infos ul {
  margin-top: 0;
}


/* ---------------------------------------------------
   FORMULAIRE CONTACT
--------------------------------------------------- */

form {
  max-width: 600px;
  margin: 30px auto;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

label {
  display: block;
  font-family: "Julius Sans One", sans-serif;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #684B45;
}

input, textarea {
  padding: 12px;
  border: 2px solid #e8dcd7;
  border-radius: 14px;
  font-family: "Century Gothic", sans-serif;
  font-size: 1rem;
  background: #ffffffee;
  transition: border-color .3s ease, box-shadow .3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

input:focus, textarea:focus {
  border-color: #eeac9e;
  box-shadow: 0 4px 12px rgba(238, 172, 158, 0.25);
  outline: none;
}

.contact-status {
  margin-top: 15px;
  font-size: 0.95rem;
  text-align: center;
  color: #684B45;
}

.honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}


/* ---------------------------------------------------
    RESPONSIVE
--------------------------------------------------- */

@media (max-width: 1000px) {
  nav {
    position: absolute;
    top: 80px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    width: 200px;
    padding: 20px;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-left: 2px solid #baafab33;
  }

  nav.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {

  #insta-lightbox-content {
    flex-direction: column;
    width: 95vw;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    gap: 20px;
  }

  #insta-lightbox img {
    width: 100%;
    height: auto;
    max-height: 60vh;
  }

  #insta-lightbox-text {
    width: 100%;
    max-height: none;
    overflow-y: visible;
    padding-bottom: 20px;
    font-size: 0.95rem;
  }

  .insta-lightbox-arrow {
    display: none;
  }

  #insta-lightbox-content.slide-out-left,
  #insta-lightbox-content.slide-in-left {
    transform: translateX(-40px);
  }

  #insta-lightbox-content.slide-out-right,
  #insta-lightbox-content.slide-in-right {
    transform: translateX(40px);
  }

  #ateliers h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  #ateliers h3 {
    margin-top: 30px;
  }

  .atelier {
    padding: 1.2rem 1rem;
    border-radius: 10px;
  }

  .atelier h2 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }

  .atelier ul {
    padding-left: 1.1rem;
  }
}