/* ================== BASE ================== */

@import url('https://fonts.googleapis.com/css2?family=Miniver&family=Poppins:wght@400;500;600;700&display=swap');

:root{
  --white-color: #fff;
  --dark-color: #252525;
  --primary-color: #3b141c;
  --secondary-color: #f3961c;
  --light-pink-color: #faf4f5;
  --medium-gray-color: #ccc;

  --jp-brand:#ff7a00;
  --jp-bg:#fffdf9;
  --jp-text:#2d2a26;
  --jp-muted:#6b665f;
  --jp-card:#ffffff;
  --jp-border:#eee6dc;
  --jp-shadow:0 10px 30px rgba(0,0,0,.08);

  --font-size-s: 0.9rem;
  --font-size-n: 1rem;
  --font-size-m: 1.12rem;
  --font-size-l: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-xxl: 2.3rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --border-radius-s: 8px;
  --border-radius-m: 30px;
  --border-radius-circle: 50%;

  --site-max-width: 1300px;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html{
  scroll-behavior: smooth;
}

body{
  background:#fff;
  color:var(--jp-text);
}

/* Global elements */
ul{ list-style:none; }
a{ text-decoration:none; color:inherit; }
button{
  cursor: pointer;
  border: none;
  background: none;
}
img{
  max-width: 100%;
  height:auto;
  display:block;
}

.section-content{
  margin: 0 auto;
  padding: 0 20px;
  max-width: var(--site-max-width);
}
.section-title{
  text-align: center;
  padding: 60px 0 100px;
  text-transform: uppercase;
  font-size: var(--font-size-xl);
}
.section-title::after{
  content: "";
  width: 80px;
  height: 5px;
  display: block;
  margin: 10px auto 0;
  border-radius: var(--border-radius-s);
  background: var(--secondary-color);
}

/* ================== NAVBAR ================== */

header{
  position: fixed;
  width: 100%;
  z-index: 1000;
  background: transparent; /* laisse voir le fond derrière */
}

.navbar {
  background: linear-gradient(90deg, #ff8c00, #ff8c00); /* dégradé jeune */
  border-bottom: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* Contenu centré et un peu plus respirant */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo un peu plus petit pour un look clean */
.logo-text{
  display:flex;
  align-items:center;
  height:50px;
}
.logo-text img{
  height:60px;
  width:auto;
}

/* Links plus “pill”, tout en majuscules, blanc */
.nav-links {
  display: flex;
  align-items:center;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;              /* effet pilule */
  position: relative;
  transition: 
  background 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.16);
  color: #fff;
  transform: translateY(-1px);
}

.nav-icon svg{
  display:block;
  stroke: #fff; /* icône compte en blanc */
}

/* Burger menu */
.nav-toggle{
  display:none;
  background:transparent;
  border:0;
  cursor:pointer;
  padding:8px;
}
.nav-toggle span{
  display:block;
  width:26px;
  height:3px;
  background:#fff;   /* barres blanches sur fond dégradé */
  margin:5px 0;
  border-radius:2px;
  transition:transform .2s, opacity .2s;
}

/* Mobile nav */
@media (max-width:768px){

  .nav-toggle{
    display:block;
    background:transparent;
    border:0;
    cursor:pointer;
    padding:8px;
  }

  .nav-links{
    position:fixed;
    left:0;
    right:0;
    top:64px;
    background:#ffffff;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
    flex-direction:column;
    gap:0;
    transform:translateY(-10px);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s, transform .2s;
    z-index:999;
  }

  .nav-links a{
    width:100%;
    text-align:center;
    padding:16px;
    border-bottom:1px solid #f1f1f1;
    color:#222;
    border-radius:0;
    background:transparent;
  }

  .nav-links a:hover,
  .nav-links a.active{
    background:#ffe0c2;
    transform:none;
  }

  /* ✅ Icône "Créer un compte" dans le menu mobile */
  .nav-links .nav-icon svg {
    stroke: #222;
    width: 28px;
    height: 28px;
    margin: auto;
  }

  body.nav-open .nav-links{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }

  body.nav-open .nav-toggle span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
  }
  body.nav-open .nav-toggle span:nth-child(2){
    opacity:0;
  }
  body.nav-open .nav-toggle span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
  }

  body.menu-lock{
    overflow:hidden;
  }
}


/* ================== HERO ACCUEIL ================== */

.hero-section{
  padding-top:90px; /* pour compenser la navbar fixe */
}
.hero-jey {
  min-height: 100vh;
  background: url("images/Pastry and Baker.png") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-jey::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}
.hero-jey-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-jey-title {
  font-family: "Miniver", cursive;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--secondary-color);
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ================== ABOUT ================== */

.about-section{
  padding: 120px 0;
  background: var(--light-pink-color);
}
.about-section .section-content{
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: space-between;
}
.about-section .about-image{
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-circle);
}
.about-section .about-detail{
  max-width: 50%;
}
.about-section .about-detail .section-title{
  padding:0;
}
.about-section .about-detail .text{
  line-height: 30px;
  margin: 50px 0 30px;
  text-align: center;
  font-size: var(--font-size-m);
}
.about-section .social-link-list{
  display:flex;
  gap:25px;
  justify-content:center;
}
.about-section .social-link{
  color:var(--primary-color);
  font-size:var(--font-size-l);
  transition:.2s;
}
.about-section .social-link:hover{
  color:var(--secondary-color);
}

/* ================== MENU (ACCUEIL) ================== */

.menu-section{
  color: var(--white-color);
  background: var(--dark-color);
  padding: 50px 0 100px;
}
.menu-section .menu-list{
  display:flex;
  flex-wrap:wrap;
  gap:60px;
  align-items:center;
  justify-content:space-between;
}
.menu-section .menu-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  justify-content:space-between;
  width:calc(100% / 3 - 60px);
}
.menu-section .menu-image{
  max-width:83%;
  aspect-ratio:1;
}
.menu-section .name{
  margin:12px 0;
  font-size:var(--font-size-l);
  font-weight:var(--font-weight-semibold);
}
.menu-section .text{
  font-size:var(--font-size-m);
}

/* ================== TESTIMONIALS ================== */

.testimonials-section{
  padding: 50px 0 100px;
  background: var(--light-pink-color);
}
.testimonials-section .slider-wrapper{
  overflow:hidden;
  margin:0 60px 50px;
}
.testimonial{
  user-select:none;
  display:flex;
  padding:35px;
  text-align:center;
  flex-direction:column;
  align-items:center;
}
.testimonial .user-image{
  width:180px;
  height:180px;
  object-fit:cover;
  margin-bottom:50px;
  border-radius:var(--border-radius-circle);
}
.testimonial .name{
  margin-bottom:16px;
  font-size:var(--font-size-m);
}
.testimonial .feedback{
  line-height:25px;
}

/* ================== GALLERY ================== */

.gallery-section{
  padding: 50px 0 100px;
}
.gallery-section .gallery-list{
  display:flex;
  flex-wrap:wrap;
  gap:32px;
}
.gallery-item{
  overflow:hidden;
  border-radius:var(--border-radius-s);
  width:calc(100% / 3 - 32px);
}
.gallery-image{
  width: 100%;
  height: 450px;          /* même hauteur pour toutes les photos */
  object-fit: cover;      /* recadre proprement sans déformer */
  display: block;
  border-radius: 10px;    /* optionnel, juste pour le style */
  cursor:zoom-in;
  transition:.3s;
}
.gallery-item:hover .gallery-image{
  transform:scale(1.3);
}

.galerie-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 colonnes égales */
  gap: 30px; /* espace entre les photos, à adapter */
}



/* ================== CONTACT ================== */

.contact-section{
  padding: 50px 0 100px;
}

.contact-section .section-content{
  display:flex;
  gap:48px;
  align-items:flex-start;
  justify-content:space-between;
}

.contact-info{
  display:flex;
  gap:20px;
  margin:20px 0;
  align-items:center;
}

.contact-form .form-input{
  width:100%;
  height:50px;
  padding:0 12px;
  outline:none;
  margin-bottom:16px;
  background:var(--white-color);
  border-radius:var(--border-radius-s);
  border:1px solid var(--medium-gray-color);
}

.contact-form .form-input:focus{
  border-color:var(--secondary-color);
}

.contact-form textarea.form-input{
  height:100px;
  padding:12px;
  resize:vertical;
}

.contact-form .submit-button{
  padding:10px 26px;
  color:var(--white-color);
  background:#fa9302; /* orange foncé/brun */
  font-size:var(--font-size-m);
  font-weight:var(--font-weight-medium);
  border-radius:var(--border-radius-m);
  border:1px solid #fa9302;
  transition:.3s;
}
.contact-form .submit-button:hover{
  background:transparent;
  color:#fa9302;
}


/* ================== FOOTER ================== */

.footer-section{
  padding:20px 0;
  background:var(--orange-color);
}
.footer-section .section-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.footer-section .copyright-text,
.footer-section .social-link,
.footer-section .policy-link{
  color:var(--white-color);
  transition:.2s;
}
.footer-section .social-link-list{
  display:flex;
  gap:25px;
}
.footer-section .social-link{
  font-size:var(--font-size-l);
}
.footer-section .social-link:hover,
.footer-section .policy-link:hover{
  color:var(--secondary-color);
}

/* ================== PAGE COMMANDER ================== */

.order-page{
  padding-top:96px;
  background:#fff;
}
.order-container{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px 32px;
}
.order-hero{
  background: var(--secondary-color);
  color:#fff;
  text-align:center;
  padding:40px 16px 18px;
  border-radius:14px;
  margin-bottom:28px;
}
.order-title{
  font-family:"Miniver",sans-serif;
  font-size:2.8rem;
  margin-bottom:8px;
}
.order-sub{
  margin:0;
  opacity:.95;
}
.products-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap:22px;
}
.product-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 28px rgba(0,0,0,.08);
}
.product-img{
  height:180px;
  background: linear-gradient(135deg,#f7f7f7,#eaeaea);
  background-size:cover;
  background-position:center;
}
.product-name{
  font-weight:700;
  font-size:1.1rem;
  margin:14px 16px 6px;
}
.product-desc{
  color:#666;
  font-size:.95rem;
  margin:0 16px 12px;
  min-height:44px;
}
.product-meta{
  margin:auto 16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.price{
  font-weight:700;
  color:#111;
}
.btn-buy{
  padding:10px 16px;
  border-radius:10px;
  border:2px solid var(--secondary-color);
  background:#fff;
  color:var(--secondary-color);
  font-weight:700;
  transition:.2s;
}
.btn-buy:hover{
  background:var(--secondary-color);
  color:#fff;
}

/* ================== PAGE PRODUIT ================== */

.page-product .product-page{
  padding-top:100px;
}
.page-product .product-container{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px 32px;
}
.page-product .product-main{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:32px;
}
.page-product .product-gallery .product-figure{
  width:100%;
  aspect-ratio:1/1;
  border-radius:16px;
  overflow:hidden;
  background:#f4f4f4;
  display:flex;
  align-items:center;
  justify-content:center;
}
.page-product .product-gallery .product-figure img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.page-product .thumbs{
  display:flex;
  gap:12px;
  margin-top:12px;
}
.page-product .thumb{
  width:80px;
  height:80px;
  object-fit:cover;
  border-radius:12px;
  opacity:.7;
  cursor:pointer;
  border:2px solid transparent;
}
.page-product .thumb.active{
  opacity:1;
  border-color:var(--secondary-color);
}
.page-product .product-details{
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  padding:20px;
}
.page-product .product-title{
  font-family:"Miniver",sans-serif;
  font-size:2.2rem;
  margin:0 0 6px;
}
.page-product .product-short{
  color:#555;
  margin:0 0 16px;
}
.page-product .option-group select{
  appearance:none;
  background-color:#fff;
  border:2px solid var(--secondary-color);
  border-radius:10px;
  padding:10px 36px 10px 14px;
  font-size:1rem;
  font-weight:600;
  color:#222;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff7a00' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:18px;
  transition:.25s;
}
.page-product .option-group select:hover{
  border-color:#ff7a00;
  box-shadow:0 0 0 3px rgba(255,122,0,.15);
}
.page-product .option-group select:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(255,122,0,.25);
}

/* ================== PAGE DEVIS ================== */

.dv-hero{
  background:#ff7a00;
  color:#fff;
  text-align:center;
  padding:60px 20px 50px;
}
.dv-hero .dv-title{
  font-family:"Miniver",serif;
  font-size:54px;
  margin-bottom:10px;
}
.dv-hero .dv-sub{
  font-size:18px;
  max-width:720px;
  margin:0 auto;
}
.dv-wrap {
  max-width: 100%;         
  margin: 0 auto;
  padding: 0;
}

.dv-card {
  width: 100%;             
  border-radius: 0;        
  border: none;            
  box-shadow: none;        
  padding: 30px 20px;      /
}

.dv-row,
.dv-row-3{
  display:grid;
  gap:14px;
}
.dv-row{ grid-template-columns:1fr 1fr; }
.dv-row-3{ grid-template-columns:repeat(3,1fr); }
.dv-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:10px;
}
.dv-field label{
  font-weight:600;
  font-size:15px;
}
.dv-field input,
.dv-field select,
.dv-field textarea{
  border:1px solid #eee6dc;
  border-radius:10px;
  padding:10px 12px;
}
.dv-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:16px;
}
.dv-btn{
  border-radius:12px;
  padding:10px 18px;
  font-weight:700;
  cursor:pointer;
}
.dv-btn--primary{
  background:#ff7a00;
  color:#fff;
  box-shadow:0 6px 18px rgba(255,122,0,.22);
}


/* ================== PAGE PRESTA ================== */

.jp-container{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

/* Hero presta */
.presta-page .jp-hero{
  padding-top:90px;
  min-height:70vh;
  position:relative;
  background:url('/images/fondpresta.png') center/cover no-repeat;
  display:grid;
  place-items:center;
}
.presta-page .jp-hero__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.45));
}
.presta-page .jp-hero__content{
  position:relative;
  z-index:1;
  text-align:center;
  color:#fff;
  padding:20px;
}
.presta-page .jp-hero__title{
  font-family:"Miniver",cursive;
  color:var(--jp-brand);
  font-size:3.5rem;
  margin-bottom:10px;
}
.presta-page .jp-hero__sub{
  margin-bottom:18px;
}

.jp-btn{
  appearance:none;
  border:none;
  border-radius:12px;
  padding:10px 16px;
  font-weight:700;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .05s, box-shadow .2s, filter .2s;
}
.jp-btn--primary{
  background:var(--jp-brand);
  color:#fff;
  box-shadow:0 6px 18px rgba(255,122,0,.28);
}
.jp-btn--primary:hover{
  filter:brightness(.97);
}
.jp-btn--ghost{
  border:1px solid var(--jp-brand);
  background:#fff;
  color:var(--jp-brand);
}
.jp-btn--ghost:hover{
  background:var(--jp-brand);
  color:#fff;
}

/* Intro */
.jp-intro{
  background:linear-gradient(180deg,var(--jp-bg),#fff);
  padding:40px 0;
}
.jp-h2{
  font-size:32px;
  text-align:center;
  margin-bottom:6px;
}
.jp-muted{
  color:var(--jp-muted);
  text-align:center;
  max-width:760px;
  margin:0 auto;
}

/* Menus */
.jp-menus{
  padding:30px 0 50px;
}
.jp-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}
.jp-card{
  background:var(--jp-card);
  border:1px solid var(--jp-border);
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--jp-shadow);
}
.jp-card__media img{
  width:100%;
  height:220px;
  object-fit:cover;
}
.jp-card__body{
  padding:16px 18px 18px;
}
.jp-card__title{
  margin:0 0 4px;
  font-size:1.4rem;
}
.jp-card__sub{
  margin:0 0 10px;
  color:var(--jp-muted);
}
.jp-card__list{
  margin:8px 0 0 18px;
}
.jp-card__cta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

/* Contact bloc */
.jp-contact{
  padding:30px 0 60px;
}
.jp-contact__card{
  background:#fff;
  border:1px solid var(--jp-border);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--jp-shadow);
}

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

@media screen and (max-width:900px){
  :root{
    --font-size-m: 1.1rem;
    --font-size-l: 1.4rem;
    --font-size-xl: 1.9rem;
  }

  .about-section .section-content{
    flex-direction:column-reverse;
    gap:60px;
  }
  .about-section .about-detail,
  .contact-section .contact-form{
    max-width:100%;
  }
  .about-section .about-image{
    max-width:260px;
    width:100%;
    height:auto;
  }

  .menu-section .menu-list{
    gap:30px;
  }
  .menu-section .menu-item{
    width:calc(100% / 2 - 30px);
  }
  .gallery-item{
    width:calc(100% / 2 - 30px);
  }

  .contact-section .section-content{
    flex-direction:column-reverse;
    align-items:center;
  }

  .page-product .product-main{
    grid-template-columns:1fr;
  }

  .dv-row,
  .dv-row-3{
    grid-template-columns:1fr;
  }

  .jp-grid{
    grid-template-columns:1fr;
  }
}

@media screen and (max-width:640px){
  .menu-section .menu-item,
  .gallery-item{
    width:100%;
  }
  .testimonials-section .slider-wrapper{
    margin:0 0 30px;
  }
  .footer-section .section-content{
    flex-direction:column;
    gap:20px;
  }
  .order-title{
    font-size:2.2rem;
  }
  .product-img{
    height:160px;
  }
  .dv-hero .dv-title{
    font-size:42px;
  }
}

/* ===== Spécifique à la page Devis ===== */
body.devis-page header,
body.devis-page .navbar {
  position: static !important;  /* plus de header qui recouvre la page */
  top: auto;
}

/* On garde juste un petit espace au-dessus du formulaire */
body.devis-page .dv-wrap {
  margin-top: 30px;
}

/* ==== Popup devis ==== */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: none;                 /* caché au chargement */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  z-index: 9999;
}

.popup-overlay.active {
  display: flex;                 /* montré quand .active */
}

.popup-box {
  position: relative;            /* pour positionner la croix dedans */
  background: #fff;
  border-radius: 18px;
  padding: 24px 28px 22px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.popup-box h3 {
  margin-bottom: 8px;
  color: #16a34a;
  font-size: 20px;
}

.popup-box p {
  margin: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  color: #444;
}

.popup-close:hover {
  color: #000;
}

body.popup-open {
  overflow: hidden;              /* bloque le scroll derrière */
}
