:root {
  --color-bg: #9a5131;
  --color-text: #f6e8d4;
  --color-cta-bg: #6b2e1d;
  --color-cta-hover-bg: #833820;
  --color-card-bg: #f6e8d4;
  --color-card-text: #4B2E24;
  --color-footer-bg: #000000;
  --color-footer-text: #f6e8d4;
  --color-nav-hover: black;
}

@font-face {
  font-family: 'Poiret One';
  src: url('./fonts/PoiretOne-Regular.ttf') format('truetype'),
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poiret One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  background-color: var(--color-bg);
  background-image: url("./images/low-contrast-linen.png");
  background-attachment: fixed;
  color: var(--color-text);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 200px 0 80px;
  background-color: var(--color-bg);
  background-image: url("./images/low-contrast-linen.png");
  background-attachment: fixed;
  position: relative;
}

header img {
  width: 100px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  transform: translateX(-150%);
  animation: slideIn 2s forwards;
  animation-delay: 0s;
}

.logo-effect{
  animation: pulse 1s;
  transform-origin: center;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.2);
    filter: saturate(1.7);
  }
}
@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

.logo:hover{

}



nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

nav a:hover {
  color: var(--color-nav-hover);
}

.section.welcome,
.section.presentation,
.section.findMe {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  padding: 100px 300px;
  gap: 40px;
}

.section.contact {
  color: var(--color-text);
  padding: 80px 40px;
  text-align: center;
}

.section.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: auto;
}

.contact-item a {
  color: var(--color-text);
  text-decoration: none;
}

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

.whatsapp-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.6));
}

.section-text {
  flex: 1;
}

.section-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.section-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.cta {
  display: inline-block;
  background-color: var(--color-cta-bg);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.cta:hover {
  background-color: var(--color-cta-hover-bg);
}

.welcome-bg-img,
.presentation-bg-img,
.findMe-bg-img {
  flex: 1;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  height: 50vh;
  background-repeat: no-repeat;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.welcome-bg-img:hover,
.presentation-bg-img:hover,
.findMe-bg-img:hover {

box-shadow: 0 4px 40px rgba(0,0,0,0.3);
transition: box-shadow 0.3s ease;

}

.welcome-bg-img {
  background-image: url('images/background.jpg');
}

.presentation-bg-img {
  background-image: url('images/hero.jpg');
}

.findMe-bg-img {
  background-image: url('images/trace.png');
}

/* Bouton menu hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  padding: 5px 10px;
}

.section.pricing {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.section.pricing h2,
.section.instagram h2 {
  text-align: center;
  margin-bottom: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: var(--color-card-bg);
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card h3,
.card p,
.price {
  color: var(--color-card-text);
}

.card h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
}

.price {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  font-size: 1.3rem;
}

.section.instagram {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.instagram-logo {
  width: 100px;
  margin: 0 auto;
  display: block;
}

.footer {
  height: 40px;
  text-align: center;
  padding: 20px;
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  background-image: url("./images/low-contrast-linen.png");
  background-attachment: fixed;
}


.section.findMe {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  padding: 100px 300px;
  gap: 40px;
  transition: all 0.5s ease;
}

.section-text.map {
  flex: 1 1 40%;
  transition: all 0.4s ease;
}

.findMe-bg-img {
  flex: 1 1 50%;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  height: 50vh;
  background-repeat: no-repeat;
  transition: all 0.5s ease;
}

/* État étendu */
.section.findMe.expanded {
  gap: 0;
  padding: 0;
  flex-direction: column;
}

.section.findMe.expanded .section-text {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.section.findMe.expanded .findMe-bg-img {
  width: 100%;
  height: 95vh;
  border-radius: 0;
  flex: none;
  background-size: contain;
  background-position: center;
  box-shadow: none;
}

.flame1 {
  position: absolute;
  background-image: url("./images/flame1.png");
  animation: flicker 1s infinite ease-in-out;
  opacity: 0.8;
}

@keyframes flicker {
  0% { opacity: 0.7; transform: scale(1); }
  25% { opacity: 1; transform: scale(1.05); }
  50% { opacity: 0.8; transform: scale(0.98); }
  75% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0.7; transform: scale(1); }
}


/* Adaptation mobile */
@media (max-width: 768px) {
  header {
    padding-left: 20px;
    padding-right: 20px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  nav ul.show {
    max-height: 500px;
    display: flex;
  }

  nav li {
    padding: 10px 20px;
  }

  nav a {
    font-size: 1.1rem;
  }

  .section.welcome,
  .section.presentation,
  .section.contact,
  .section.findMe {
    flex-direction: column;
    padding: 40px 20px;
    gap: 20px;
  }



  .section-text h1 {
    font-size: 25px;
  }

  .section-text p {
    font-size: 1rem;
  }

  .welcome-bg-img,
  .presentation-bg-img,
  .findMe-bg-img {
    width: 100%;
    min-height: 250px;
    border-radius: 12px;
  }


  .welcome-bg-img {
    order: 2;
  }

  .presentation-bg-img {
    order: 1;
  }

}
