/* ========================================
   JULIEFAITOUT — Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #00668B;
  --blue-dark: #004f6d;
  --blue-footer: #00668B;
  --cream: #FFFAF1;
  --cream-dark: #f5ede3;
  --white: #ffffff;
  --text: #3a3a3a;
  --text-light: #6b6b6b;
  --gold: #c9a84c;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Logo --- */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-img-footer {
  height: 56px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  border: none;
}

.btn-outline-nav {
  border: 2px solid var(--blue);
  color: var(--white);
  background: var(--blue);
  padding: 8px 24px;
  font-size: 0.9rem;
}

.btn-outline-nav:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.btn-hero {
  background: var(--white);
  color: var(--blue);
  font-size: 1.1rem;
  padding: 14px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

.btn-service {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
  padding: 8px 22px;
  font-size: 0.85rem;
}

.btn-service:hover {
  background: var(--white);
  color: var(--text);
}

.btn-cta-large {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
  font-size: 1.3rem;
  padding: 16px 60px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}

.btn-cta-large:hover {
  background: var(--blue);
  color: var(--white);
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--cream);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}

.tagline {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  transition: all var(--transition);
}

.nav-instagram:hover {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.05);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--cream);
  z-index: 99;
  flex-direction: column;
  padding: 20px 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 1rem;
  color: var(--text);
}

.mobile-nav-link:hover {
  color: var(--blue);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  max-height: 700px;
  margin-top: 72px;
  background-image: url('../images/hero.jpg');
  background-position: center 60%;
  background-size: 115%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-top: 24px;
  padding-bottom: 48px;
}

.hero-content h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  letter-spacing: 0.08em;
  margin-top: auto;
  margin-bottom: auto;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  font-size: 1.1rem;
  font-style: italic;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
}

.hero-tagline-logo {
  height: 32px;
  width: auto;
}

.hero-bottom {
  margin-top: auto;
}

/* --- Intro --- */
.intro {
  text-align: center;
  padding: 48px 24px;
  background: var(--cream);
}

.intro p {
  font-size: 1.35rem;
  color: var(--blue);
  max-width: 650px;
  margin: 0 auto;
  font-style: italic;
  line-height: 1.6;
}

/* --- Section Titles --- */
h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  margin-bottom: 40px;
  line-height: 1.3;
}

.underline-accent {
  text-decoration: underline;
  text-decoration-color: var(--text);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* --- Services --- */
.services {
  padding: 60px 24px 70px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-img {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.service-img-1 {
  background-image: url('../images/service-cheffe.jpg');
  background-position: center 40%;
}

.service-img-2 {
  background-image: url('../images/service-plats.jpg');
}

.service-img-3 {
  background-image: url('../images/service-buffets.jpg');
}

.service-overlay {
  width: 100%;
  padding: 28px 20px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  color: var(--white);
  position: relative;
  z-index: 1;
}

.service-overlay h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-overlay p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 14px;
}

/* --- Ateliers --- */
.ateliers {
  padding: 70px 24px 60px;
  background: var(--white);
}

.ateliers h2 {
  max-width: 1200px;
  margin: 0 auto 48px;
}

.ateliers-content {
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.ateliers-collab {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.collab-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: url('../images/Photos de Profil.png') center / cover no-repeat;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.ateliers-collab p {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
}

.ateliers-text p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.75;
  text-align: justify;
}

.ateliers-text ul {
  margin: 8px 0 20px 20px;
  list-style: disc;
}

.ateliers-text li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.65;
}


.ateliers-cta {
  text-align: center;
  padding: 50px 0 10px;
}

/* --- About --- */
.about {
  padding: 70px 24px;
  background: var(--cream);
}

.about h2 {
  text-align: center;
}

.about-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.about-portrait {
  width: 320px;
  height: 420px;
  border-radius: 160px 160px 0 0;
  background: url('../images/about-portrait.jpg') center 30% / cover no-repeat;
  flex-shrink: 0;
}

.about-text {
  max-width: 500px;
}

.about-text p {
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.about-text p:first-child {
  font-weight: 400;
  font-size: 0.95rem;
}

.about-photo {
  width: 280px;
  height: 320px;
  border-radius: var(--radius);
  background: url('../images/about-julie.jpg') center / cover no-repeat;
}

/* --- Contact --- */
.contact {
  padding: 70px 24px 80px;
  background: #ffffff;
  text-align: center;
}

.contact h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-align: center;
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 550px;
  margin: 0 auto;
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1rem;
  color: var(--text);
  transition: color var(--transition);
}

a.contact-item:hover {
  color: var(--blue);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--blue-footer);
  color: var(--white);
  padding: 48px 24px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 36px;
  align-items: start;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.9rem;
}

.footer-brand a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.footer-brand a:hover {
  color: var(--white);
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  color: var(--white);
  margin-top: 10px;
  transition: all var(--transition);
}

.footer-instagram:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.credit-photos {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 12px !important;
}

.footer-links {
  display: flex;
  align-items: start;
  padding-top: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* --- Legal Page --- */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-page h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text);
}

.legal-page h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
  text-align: left;
}

.legal-page p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 8px;
  color: var(--text-light);
}

.legal-page a {
  color: var(--blue);
  text-decoration: underline;
}

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

@media (max-width: 968px) {
  .tagline {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about-text {
    max-width: 100%;
  }

  .about-photo {
    width: 100%;
    max-width: 400px;
    height: 280px;
  }


  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .service-img {
    height: 350px;
  }

  .hero {
    height: 60vh;
    min-height: 380px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content {
    padding-top: 20%;
  }

  .intro p {
    font-size: 1.15rem;
  }

  .btn-cta-large {
    font-size: 1.1rem;
    padding: 14px 40px;
  }

  .contact-info {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 55vh;
    min-height: 320px;
  }

  .hero-content h1 {
    font-size: 1.7rem;
    letter-spacing: 0.05em;
  }

  .hero-content {
    padding-top: 15%;
    padding-bottom: 24px;
  }

  .intro p {
    font-size: 1.05rem;
  }

  .services,
  .ateliers,
  .about,
  .contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  h2 {
    font-size: 1.4rem;
  }

  .about-portrait {
    width: 160px;
    height: 160px;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
