/*!
Theme Name: pizzanet
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: https://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: pizzanet
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================
   VARIABLES
========================= */
:root {
  /* Header */
  --vert-base: #037a00;
  --vert-hover: #049200;

  --police-blanche: #fbfaf7;
  --fond-hover-blanc: #fbfaf7;

  /* Home - message promo */
  --police-rouge: #AF0000;
  --bordure-rouge: #AF0000;

  /* Couleurs */
  --police-noire: #000000;
  --fond: #F4F3ED;

  /* Craft */
  --fond-craft-clair: #D3B68D;
  --fond-craft-foncé: #D0B084;

  /* Bouton connexion */
  --fond-btn_cnx: #f2eddf;
  --police-btn_cnx: #D2B285;

  /* Fonts */
  --font-main: 'Roboto', Arial, Helvetica, sans-serif;
  --font-title: 'Enriqueta', 'Roboto', serif;
}

/* =========================
   RESET / BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
}

/* Titres */
h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  text-align: center;
}

/* Reset listes */
ul, ol { list-style: none; }

a { text-decoration: none; }

img { vertical-align: bottom; }

/* WRAP */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =================================================================
   HEADER
==================================================================== */
.header-craft {
  height: 81px;
  width: 100%;
  position: relative;
  overflow: visible;
  background: repeating-linear-gradient(
    0deg,
    var(--fond-craft-clair) 0px,
    var(--fond-craft-clair) 3px,
    var(--fond-craft-foncé) 3px,
    var(--fond-craft-foncé) 6px
  );
}

.header-craft > .wrap {
  height: 100%;
  padding: 0 16px;
}

.header-nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 48px;
  justify-content: space-evenly;
}

.header-logo {
  position: relative;
  z-index: 5;
  transform: translateY(30px);
}

.header-logo img {
  height: 73px;
  transition: filter .2s ease, transform .2s ease;
  width: auto;
  display: block;
}
.header-logo a:hover img{
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}

/* =========================
   NAV
========================= */
.main-nav { height: 100%; }

.main-nav_list {
  display: flex;
  height: 100%;
  align-items: stretch;
  gap: 36px;
}

.main-nav_item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.main-nav_item a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 0;

  font-family: var(--font-main);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;

  color: var(--police-blanche);
}

/* Soulignement blanc */
.main-nav_item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--fond-hover-blanc);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.main-nav_item:hover::after,
.main-nav_item:focus-within::after {
  opacity: 1;
}

/* =========================
   ACTIONS HEADER
========================= */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Connexion */
.btn-connexion {
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: var(--fond-btn_cnx);
  color: var(--police-btn_cnx);

  border-radius: 4px;

  font-family: var(--font-main);
  font-weight: 500;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1;

  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-connexion__icon {
  width: 22px;
  height: auto;
  display: block;
}

/* Panier */
.btn-panier {
  height: 40px;
  padding: 0 14px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: var(--vert-base);
  color: #fff;

  border-radius: 3px;

  font-family: var(--font-main);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;

  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-panier__badge {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--police-blanche);
  color: var(--vert-base);

  font-weight: 700;
  font-size: 14px;
}

.btn-panier__price {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

/* Hover / focus */
.btn-connexion:hover,
.btn-connexion:focus-visible {
  background: var(--fond-hover-blanc);
}

.btn-panier:hover,
.btn-panier:focus-visible {
  background: var(--vert-hover);
}

/* ============================================================
   HOME
================================================================ */

/* ========== HOME / MESSAGE PROMO ========== */
#promo {
  margin-top: 3rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--bordure-rouge);
  border-bottom: 1px solid var(--bordure-rouge);
  padding: 0.5rem 2rem;
}

.txt-promo_G,
.txt-promo_D {
  color: var(--police-rouge);

  font-family: var(--font-main);
  font-weight: 700;
  font-size: 35px;
  line-height: 1;
  letter-spacing: 0.045em;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#promo .txt-promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

#promo .txt-promo_G,
#promo .txt-promo_D {
  max-width: 48%;
}

#promo .txt-promo_G p,
#promo .txt-promo_D p {
  margin: 0;
}

/* ========== HOME / DIAPO ========== */
#diaporama {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background-color: var(--fond);
}

/* Colonne gauche */
#diaporama .diapo {
  width: 60%;
  display: flex;
  justify-content: center;
  min-width: 0;
}

/* Colonne droite */
#diaporama .content-diapo {
  width: 40%;
  background: #f3f1ea;
  padding: 20px;
  border-radius: 6px;
}

#home-hero-splide {
  width: 100%;
  
}

#home-hero-splide img {
  width: 100%;
  height: auto;
  display: block;
}

#diaporama .diapo-content-title {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

#diaporama .diapo-content-command {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

#diaporama .diapo-content-highlight {
  color: var(--vert-base);
  font-weight: 700;
}

/* Bouton Commander  */
.btn-commander {
  height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: var(--vert-base);
  color: #fff;

  border-radius: 3px;

  font-family: var(--font-main);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;

  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-commander:hover,
.btn-commander:focus-visible {
  background: var(--vert-hover);
}

/* ========== HOME / WORKS ========== */
#works { padding: 3rem 0; }

#works .works__wrap {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

#works .work {
  width: 24%;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  background-color: var(--fond);
}

#works .work__media {
  width: 100%;
  aspect-ratio: 288 / 181;
  background: #e6e6e6;
  overflow: hidden;
}

#works .work__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease-in;
}

#works .work__img:hover { opacity: 0.5; }

#works .work__media--placeholder {
  width: 100%;
  height: 100%;
  background: #d9d9d9;
}

#works .work__body { padding: 1rem 0.75rem; }

#works .work__title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--police-noire);
}

#works .work__content {
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

#works .work__list {
  padding-left: 18px;
  margin-top: 0.25rem;
}

#works .work__list li {
  list-style: disc;
  margin-bottom: 0.35rem;
}

/* ========== HOME / CONSEILS ========== */
.conseil-content { margin: 3rem; }

/* ========== HOME / VIDEO ========== */
#video {
  width: 100%;
  background: var(--fond);
  padding: 48px 0;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

#video .video {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  flex-direction: column;
  align-items: center;

  position: relative;
}

#video .video-logo {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

#video .video-logo img {
  height: 56px;
  width: auto;
  display: block;
}

#video .video-title { margin-top: 18px; }

#video .video-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

#video .video-content iframe {
  width: 754px;
  max-width: 100%;
  height: 424px;
  border: 0;
  display: block;
}

/* ========== HOME / CARTE RETRAITS ========== */
#carte { margin-top: 3rem; }

#carte .carte {
  display: flex;
  align-items: stretch;
  height: 454px;
  background: #f3f1ea;
  border-radius: 6px;
  overflow: hidden;
}

#carte .carte-map {
  width: 50%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

#carte .grpe-droit {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 36px;
  text-align: center;
  background: var(--fond);
}

#carte .carte__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carte-logo-loc {
  margin-bottom: 1.5rem;
}
.carte-logo-loc img {
  width: 40px;
}

#carte .carte-title h2 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--police-noire);
}

#carte .carte-content { max-width: 420px; }

#carte .carte-content p {
  margin: 0 0 18px;
  color: #333;
}

#carte .carte-btn {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

#carte .btn.btn--green {
  width: 365px;
  height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 4px;

  background: var(--vert-base);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;

  border: 2px solid var(--vert-base);
  transition: background-color 0.2s ease;
}

#carte .btn.btn--green:hover { background: var(--vert-hover); }

#textebas {
  text-align: justify;
  margin-top: 2rem;
}

.note-bas-page {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   COMMANDER
================================================================ */
/* .pizzas-page { padding: 1rem 0 4rem; } */

#promo_commander {
  margin-top: 3rem;
  border-top: 1px solid var(--bordure-rouge);
  border-bottom: 1px solid var(--bordure-rouge);
  padding: 0.5rem 2rem;
}

#promo_commander .txt-promo{
  display: flex;
  justify-content: center;  
}

#promo_commander .txt-promo_G{
  text-align: center;        
}


.pizzas-page__title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  margin: 2rem 0;
  color: var(--police-noire);
}

.pizza-items{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:0;
  margin:0;
  padding:0;
}

.pizza-item{
  width:49%;
  list-style:none;
}

/* la carte */
.pizza-card{
  display:flex;
  align-items:stretch;                
  gap:0;
  border-top:1px solid rgba(0,0,0,.18);
  text-align:left;
  background:transparent;
}

/* bloc texte */
.pizza-card__content{
  flex:1;
  padding:18px 18px 18px 0;        
}

.pizza-card__row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:14px;
  margin-bottom:8px;
}

.pizza-card__title{
  margin:0;
  font-family:var(--font-title);
  font-weight:500;
  font-size:24px;
  line-height:1.1;
  text-align:left;
        
}

.pizza-card__price{
  font-weight:500;
  font-size:16px;
  color:#222;
  
}

/* description */
.pizza-card__desc{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:#666;
}

/* bloc image à droite */
.pizza-card__media{
  width:150px;                        
  flex-shrink:0;
}

.pizza-card__photo,
.pizza-card__photo--placeholder{
  width:100%;
  height:100%;
  min-height:120px;                   
  object-fit:cover;
  display:block;
}


.pizza-card:hover{
  background:transparent;
  box-shadow:none;
  transform:none;
}
.pizza-card:hover .pizza-card__photo{
  transform:none;
}

.pizza-card__photo {
  transition: transform .3s ease;
}

.pizza-card:hover .pizza-card__photo {
  transform: scale(1.05);
}

.pizza-card__title {
  transition: color .25s ease;
}

.pizza-card:hover .pizza-card__title {
  color: var(--vert-base);
}



/* ============================================================
   FOOTER
================================================================ */
.footer-craft {
  background: none;
  height: auto;
  width: 100%;
  position: relative;
  overflow: visible;
}

.footer-social,
.footer-nav-mentions {
  box-sizing: border-box;
  background: repeating-linear-gradient(
    0deg,
    var(--fond-craft-clair) 0px,
    var(--fond-craft-clair) 3px,
    var(--fond-craft-foncé) 3px,
    var(--fond-craft-foncé) 6px
  );
}

.footer-social {
  padding: 0.5rem 0;
  margin-bottom: 2px;
}

.footer-social-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.footer-social-txt {
  font-family: var(--font-title);
  color: var(--police-blanche);
  font-weight: 700;
  font-size: 18px;
  line-height: 21px;
  text-align: center;
}

.footer-social-logo-fb img {
  height: 22px;
  width: auto;
  display: block;
}

.footer-nav-mentions { padding: 0.5rem 0; }

.footer-nav-mentions-content ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav-mentions-content li a {
  font-family: var(--font-main);
  color: var(--police-blanche);
  font-weight: 700;
  font-size: 14px;
  padding: 0.25rem 0.75rem;
  display: inline-block;
}

.footer-pay { background: #fff; }

.footer-pay-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10rem;
}

.footer-pay-copyright { color: #C4C4C4; }

/* ============================================================
   MODALE / COMMANDER
================================================================ */
.micromodal-slide { display: none; }
.micromodal-slide.is-open { display: block; }

.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.modalPizza {
 
  max-height: 90vh;   
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modalPizza__close {
  position: absolute;
  top: 30px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;

  background: rgba(255,255,255,0.85); 
  border-radius: 50%;

  font-size: 34px;
  line-height: 1;
  font-weight: 700;                    
  cursor: pointer;

  color: var(--vert-hover);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}


.modalPizza__media { width: 100%; }

.modalPizza__media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.modalPizza__info {
  padding: 18px 22px;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.modalPizza__row1 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modalPizza__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.modalPizza__title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  text-align: left;
}

.modalPizza__meta {
  margin-top: 6px;
  font-size: 16px;
  color: #333;
  text-align: left;
}

.modalPizza__price {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.modalPizza__desc {
  margin-top: 10px;
  color: #333;
  line-height: 1.4;
  text-align: left;
}

.modalPizza__supp {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px 22px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 26px;
  cursor: pointer;
  border-bottom: 1px solid #e6e6e6;
}

.modalPizza__plus {
  font-size: 34px;
  line-height: 1;
}

.modalPizza__qty {
  padding: 26px 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.qtyBtn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid #0a8a2a;
  background: #fff;
  color: #0a8a2a;
  font-size: 28px;
  cursor: pointer;
}

.qtyValue {
  min-width: 34px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.modalPizza__actions {
  padding: 10px 22px 26px;
  display: flex;
  gap: 18px;
}

.modalPizza__actions > * { flex: 1; }

.btnAdd {
  background: #0a8a2a;
  color: #fff;
  border: 2px solid #0a8a2a;
  border-radius: 6px;
  padding: 18px;
  font-size: 20px;
  font-weight: 700;

  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
}

.btnCancel {
  background: #fff;
  color: #0a8a2a;
  border: 2px solid #0a8a2a;
  border-radius: 6px;
  padding: 18px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================
   MENU BURGER – BASE
========================= */
.burger{
  display:none;
  width:32px;
  cursor:pointer;
  margin-left:auto;
}
.burger span{
  display:block;
  height:3px;
  background:var(--police-blanche);
  margin:6px 0;
  border-radius:2px;
}

.mobile-menu{
  display:none;
  background:var(--vert-base);
  text-align:center;
  padding:20px 0;
}
.mobile-menu a{
  display:block;
  color:#fff;
  font-family:var(--font-main);
  font-size:18px;
  font-weight:500;
  padding:12px 0;
}

/* --- Panier mobile (icône + badge) --- */
.mobile-cart{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  width:100%;
  padding:14px 0;
  margin-top:12px;

  border-top:1px solid rgba(255,255,255,.25);
  color:#fff;
}
.mobile-cart__iconWrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
}
.mobile-cart__icon{
  font-size:32px;
  color:#fff;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.mobile-cart__badge{
  position:absolute;
  top:-6px;
  right:-8px;

  min-width:20px;
  height:20px;
  padding:0 6px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  background:#e90f0f;
  color:var(--police-blanche);

  font-size:12px;
  font-weight:700;
  line-height:1;
  border-radius:3px;
}
.mobile-cart__label{
  font-family:var(--font-main);
  font-size:18px;
  font-weight:500;
  color:#fff;
}

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

/* =========================
   TABLETTE (<= 1024px)
========================= */
@media screen and (max-width: 1024px) {
  .header-nav { gap: 24px; }
  .main-nav_list { gap: 22px; }



  #diaporama {
    flex-direction: column;
    align-items: center;
  }

  #diaporama .diapo,
  #diaporama .content-diapo { width: 100%; }

  #video .video-title { margin-top: 22px; }

  #works .work { width: 48%; }

  .pizza-item {
    width: 48%;
    margin-bottom: 1rem;
  }

  #carte .carte {
    flex-direction: column;
    height: auto;
  }

  #carte .carte-map,
  #carte .grpe-droit { width: 100%; }

  #carte .carte-map { height: 260px; }

  #carte .btn.btn--green {
    width: 100%;
    max-width: 365px;
  }
}

/* =========================
   MOBILE (<= 900px)
========================= */
/* =========================
   MOBILE (<= 900px)
========================= */
@media screen and (max-width: 900px) {
  .wrap { padding: 0 16px; }

  .header-logo{
    left: 30%;
  }

  .main-nav,
  .header-actions { display: none; }

  .burger { display: block; }

  .mobile-menu { display: none; }
  .mobile-menu.is-open { display: block; }

  .txt-promo_G,
  .txt-promo_D { font-size: 24px; }

  #works .work { width: 100%; }

  .pizza-item { width: 100%; }

  
  .pizza-card {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding-top: 18px;
  }

  .pizza-card__content {
    flex: 1;
    padding-right: 14px;
  }

  .pizza-card__media {
    width: 38%;
    max-width: 170px;              
    flex-shrink: 0;
    padding-left: 12px;
    display: flex;
  }

  .pizza-card__photo,
  .pizza-card__photo--placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;            
    object-fit: cover;
    display: block;
  }

  .pizza-card__title,
  .pizza-card__desc { text-align: left; }

  .pizza-card__meta {
    justify-content: space-between;
    align-items: baseline;
  }

  .pizza-card:hover {
    transform: none;
    box-shadow: none;
    background-color: transparent;
  }
  .pizza-card:hover .pizza-card__photo { transform: none; }

  .footer-pay-content {
    padding: 0 2rem;
    gap: 12px;
  }
  .footer-nav-mentions-content ul {
    flex-direction: column;      
    align-items: center;        
    gap: 12px;                   
  }

  .footer-nav-mentions-content li a {
    text-align: center;
    display: inline-block;
  }
}


