/*
Theme Name: LOKI - Spécialités Turques
Theme URI: https://conceptic.space/
Author: Conceptic
Author URI: https://conceptic.space/
Description: Thème WordPress restaurant compatible WooCommerce, aux couleurs rouge, noir et blanc. Page d'accueil riche (hero, menu par catégories, à propos, réservation, témoignages, blog), commande et paiement en ligne via WooCommerce. 100%% personnalisable via le Personnalisateur.
Version: 1.1.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saveur
Tags: restaurant, food, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   Variables & reset
   ============================================================ */
:root{
  --rouge:#d81f26;
  --rouge-fonce:#b0151b;
  --noir:#1c1c22;
  --noir-2:#26262e;
  --blanc:#ffffff;
  --gris:#f5f5f5;
  --gris-2:#e9e9e9;
  --texte:#3a3a3a;
  --texte-doux:#8a8a8a;
  --script:'Dancing Script', cursive;
  --serif:'Playfair Display', Georgia, serif;
  --body:'Poppins', 'Segoe UI', Arial, sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--body);
  color:var(--texte);
  line-height:1.7;
  background:var(--blanc);
  font-size:16px;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--rouge);text-decoration:none;transition:.25s;}
a:hover{color:var(--rouge-fonce);}
h1,h2,h3,h4,h5{font-family:var(--serif);color:var(--noir);line-height:1.25;margin:0 0 .5em;}
p{margin:0 0 1em;}
.container{max-width:1180px;margin:0 auto;padding:0 20px;}
.txt-center{text-align:center;}

/* Boutons */
.btn{
  display:inline-block;
  padding:14px 34px;
  border-radius:4px;
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
  font-size:13px;
  cursor:pointer;
  border:2px solid transparent;
  transition:.25s;
}
.btn-red{background:var(--rouge);color:#fff;}
.btn-red:hover{background:var(--rouge-fonce);color:#fff;}
.btn-outline{background:transparent;border-color:rgba(255,255,255,.7);color:#fff;}
.btn-outline:hover{background:#fff;color:var(--noir);}

/* Titre de section avec ornement */
.section-title{text-align:center;margin-bottom:50px;}
.section-title h2{
  font-family:var(--script);
  color:var(--rouge);
  font-size:52px;
  font-weight:700;
  margin:0;
}
.section-title .ornement{
  display:flex;align-items:center;justify-content:center;gap:10px;
  margin-top:8px;color:#c9c9c9;
}
.section-title .ornement::before,
.section-title .ornement::after{
  content:"";height:1px;width:120px;
  background:linear-gradient(90deg,transparent,#cfcfcf);
}
.section-title .ornement::after{background:linear-gradient(90deg,#cfcfcf,transparent);}
.section-title .ornement span{font-size:22px;letter-spacing:2px;}

section{padding:90px 0;position:relative;}

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header{
  position:absolute;top:0;left:0;width:100%;z-index:50;
  background:linear-gradient(180deg,rgba(20,20,25,.85),rgba(20,20,25,.35));
  transition:.3s;
}
.site-header.is-sticky{
  position:fixed;background:var(--noir);
  box-shadow:0 4px 20px rgba(0,0,0,.3);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:18px 0;}
.site-branding{display:flex;align-items:center;gap:10px;}
.site-branding .logo-icon{color:var(--rouge);font-size:34px;line-height:1;}
.site-title{font-family:var(--serif);font-size:30px;font-weight:700;letter-spacing:3px;margin:0;}
.site-title a{color:#fff;}
.site-title a:hover{color:var(--rouge);}
.custom-logo-link img{max-height:56px;width:auto;}

.main-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:8px;}
.main-nav a{
  color:#f0f0f0;font-family:var(--serif);font-style:italic;
  letter-spacing:1px;padding:10px 18px;font-size:15px;display:block;
}
.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--rouge);}
.main-nav .btn-nav a,.main-nav li.btn-nav>a{
  background:var(--rouge);color:#fff;border-radius:4px;font-style:normal;
  text-transform:uppercase;font-size:13px;
}
.main-nav .btn-nav>a:hover{background:var(--rouge-fonce);color:#fff;}

.menu-toggle{display:none;background:none;border:0;color:#fff;font-size:26px;cursor:pointer;}
.header-cart{color:#fff;font-size:20px;display:inline-flex;align-items:center;gap:4px;margin-left:8px;}
.header-cart:hover{color:var(--rouge);}
.header-cart .cart-count{background:var(--rouge);color:#fff;font-size:12px;font-weight:600;border-radius:50%;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px;}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  min-height:100vh;display:flex;align-items:center;
  background:var(--noir);
  background-size:cover;background-position:center;
  position:relative;color:#fff;padding-top:90px;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(105deg,rgba(18,18,22,.94) 42%,rgba(18,18,22,.55) 60%,rgba(18,18,22,.2));
}
.hero .container{position:relative;z-index:2;}
.hero-content{max-width:560px;}
.hero-content .sur-titre{font-family:var(--serif);font-size:46px;letter-spacing:6px;color:#f3f3f3;margin:0;}
.hero-content .script{font-family:var(--script);color:var(--rouge);font-size:88px;line-height:1;margin:0 0 10px;font-weight:700;}
.hero-content p{color:#d5d5d5;font-size:18px;margin-bottom:30px;}

/* ============================================================
   Plats populaires
   ============================================================ */
.popular{background:#fff;}
.popular-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;}
.popular-feature{position:relative;padding:14px;}
.popular-feature img{width:100%;height:520px;object-fit:cover;}
.popular-feature::after{content:"";position:absolute;inset:34px;border:1px solid rgba(255,255,255,.6);pointer-events:none;}
.popular-list{display:flex;flex-direction:column;gap:26px;}
.pop-item{display:flex;gap:18px;align-items:flex-start;}
.pop-item .thumb{flex:0 0 90px;width:90px;height:90px;overflow:hidden;}
.pop-item .thumb img{width:100%;height:100%;object-fit:cover;}
.pop-item .info{flex:1;}
.pop-head{display:flex;align-items:center;gap:14px;}
.pop-head h3{font-family:var(--serif);font-style:italic;font-size:26px;margin:0;}
.pop-head .line{flex:1;height:1px;background:#e2e2e2;}
.pop-head .price{color:var(--rouge);font-size:24px;font-weight:600;font-family:var(--serif);}
.pop-item .desc{color:var(--texte-doux);font-size:14px;margin:6px 0 8px;}
.pop-item .more{font-size:14px;color:var(--noir);font-weight:500;}
.pop-item .more:hover{color:var(--rouge);}

/* ============================================================
   Catégories (onglets)
   ============================================================ */
.category{
  background:var(--noir);color:#fff;
  background-size:cover;background-position:center;
}
.category.has-bg{position:relative;}
.category.has-bg::before{content:"";position:absolute;inset:0;background:rgba(20,20,24,.9);}
.category .container{position:relative;z-index:2;}
.category .section-title h2{color:var(--rouge);}
.cat-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-bottom:45px;}
.cat-tab{
  background:none;border:0;color:#dcdcdc;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:10px;
  padding:14px 26px;font-family:var(--serif);font-size:18px;transition:.25s;
}
.cat-tab .ico{font-size:30px;line-height:1;}
.cat-tab:hover,.cat-tab.active{color:var(--rouge);}
.cat-panel{display:none;background:#eee;color:var(--texte);}
.cat-panel.active{display:grid;grid-template-columns:340px 1fr;overflow:hidden;}
.cat-panel .panel-cover img{width:100%;height:100%;object-fit:cover;min-height:420px;}
.panel-body{padding:34px;}
.panel-body h3{font-family:var(--script);color:var(--noir);font-size:40px;margin:0 0 6px;}
.panel-body .lede{color:#666;margin-bottom:24px;border-bottom:1px solid #ddd;padding-bottom:18px;}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.food-card{background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.06);}
.food-card img{width:100%;height:150px;object-fit:cover;}
.food-card .fc-body{padding:16px;}
.food-card h4{color:var(--rouge);font-family:var(--serif);font-size:22px;margin:0 0 8px;}
.food-card p{color:var(--texte-doux);font-size:13px;margin:0 0 12px;}
.food-card .price{color:var(--noir);font-size:22px;font-family:var(--serif);}

/* ============================================================
   À propos
   ============================================================ */
.about{background:var(--gris);overflow:hidden;}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:center;position:relative;}
.about-text{background:#fff;padding:50px;box-shadow:0 20px 50px rgba(0,0,0,.08);position:relative;z-index:2;margin-right:-60px;}
.about-text h2{font-family:var(--script);color:var(--rouge);text-align:center;font-size:44px;margin-bottom:6px;}
.about-text .intro{font-family:var(--serif);font-style:italic;font-size:22px;text-align:center;color:var(--noir);margin:24px 0;}
.about-text p{color:var(--texte-doux);}
.about-images{position:relative;height:100%;min-height:460px;}
.about-images .img-a{width:78%;height:100%;object-fit:cover;margin-left:auto;}
.about-images .img-b{position:absolute;right:0;top:16%;width:55%;height:66%;object-fit:cover;border:8px solid #fff;box-shadow:0 15px 40px rgba(0,0,0,.2);}

/* ============================================================
   Réserver une table
   ============================================================ */
.booking{
  background:var(--noir);background-size:cover;background-position:center;
  position:relative;color:#fff;
}
.booking::before{content:"";position:absolute;inset:0;background:rgba(20,20,24,.55);}
.booking .container{position:relative;z-index:2;}
.booking .section-title h2{color:var(--rouge);}
.booking-inner{display:flex;justify-content:flex-end;}
.booking-form{background:#fff;color:var(--texte);padding:40px;max-width:480px;width:100%;}
.booking-form h3{font-size:26px;margin-bottom:24px;color:var(--noir);font-family:var(--serif);}
.booking-form label{display:block;font-size:14px;margin:14px 0 6px;color:#555;}
.booking-form input,.booking-form textarea,.booking-form select{
  width:100%;padding:12px 14px;border:1px solid #d8d8d8;border-radius:3px;font-family:var(--body);font-size:14px;
}
.booking-form input:focus,.booking-form textarea:focus{outline:none;border-color:var(--rouge);}
.booking-form .btn-red{width:100%;margin-top:22px;border:0;font-size:15px;}

/* ============================================================
   Offre spéciale + téléphone
   ============================================================ */
.offer{
  background:linear-gradient(90deg,#f7941d,#ffc107);color:#fff;padding:0;overflow:hidden;
}
.offer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 40px;}
.offer-phone{display:flex;align-items:center;gap:16px;font-size:30px;font-weight:700;}
.offer-phone .ico{width:52px;height:52px;border-radius:50%;border:3px solid #fff;display:flex;align-items:center;justify-content:center;font-size:22px;}
.offer-badge{background:var(--rouge);color:#fff;font-weight:700;padding:14px 30px;border-radius:40px;font-size:20px;box-shadow:0 8px 20px rgba(0,0,0,.2);}
.offer-badge span{display:block;font-size:13px;font-weight:500;}

/* ============================================================
   Témoignages
   ============================================================ */
.testimonials{background:var(--gris);}
.testi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;}
.testi-card{background:var(--noir-2);color:#cfcfcf;padding:34px 28px 60px;border-radius:6px;position:relative;text-align:center;}
.testi-card .quote{font-size:44px;color:#4a4a53;font-family:Georgia,serif;line-height:.6;}
.testi-card p{font-style:italic;font-size:15px;margin:16px 0 0;}
.testi-card .name{font-family:var(--serif);color:#fff;font-size:19px;margin-top:22px;}
.testi-card::after{content:"";position:absolute;bottom:-14px;left:50%;transform:translateX(-50%);border:14px solid transparent;border-top-color:var(--noir-2);border-bottom:0;}
.testi-card .avatar{width:78px;height:78px;border-radius:50%;object-fit:cover;border:4px solid #fff;position:absolute;bottom:-95px;left:50%;transform:translateX(-50%);}
.testi-grid{margin-bottom:70px;}

/* ============================================================
   Articles récents
   ============================================================ */
.recent{background:#fff;}
.recent-grid{display:grid;grid-template-columns:1fr 1fr;gap:36px;}
.post-card{display:flex;gap:0;flex-direction:column;}
.post-thumb{position:relative;}
.post-thumb img{width:100%;height:280px;object-fit:cover;}
.post-date{position:absolute;top:16px;left:-6px;background:#f3f3f3;color:var(--noir);text-align:center;padding:10px 14px;line-height:1.1;box-shadow:0 4px 10px rgba(0,0,0,.1);}
.post-date .d{font-size:22px;font-weight:700;display:block;}
.post-date .m{font-size:12px;text-transform:uppercase;}
.post-card.featured .post-date{background:var(--rouge);color:#fff;}
.post-body h3{font-family:var(--serif);font-size:23px;margin:18px 0 12px;}
.post-body h3 a{color:var(--noir);}
.post-body h3 a:hover{color:var(--rouge);}
.post-body p{color:var(--texte-doux);font-size:14px;}
.recent-side{display:flex;flex-direction:column;gap:30px;}
.recent-side .post-card{flex-direction:column;}
.recent-side .post-thumb img{height:210px;}

/* ============================================================
   Footer
   ============================================================ */
.site-footer{background:var(--noir);color:#c7c7c7;padding-top:70px;}
.footer-cols{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:36px;padding-bottom:50px;}
.site-footer h4{color:#fff;font-family:var(--serif);font-size:20px;margin-bottom:20px;position:relative;padding-bottom:12px;}
.site-footer h4::after{content:"";position:absolute;left:0;bottom:0;width:44px;height:2px;background:var(--rouge);}
.site-footer a{color:#c7c7c7;}
.site-footer a:hover{color:var(--rouge);}
.footer-cols ul{list-style:none;margin:0;padding:0;}
.footer-cols li{margin-bottom:10px;}
.footer-brand .logo-icon{color:var(--rouge);font-size:30px;}
.footer-brand .site-title{font-size:26px;}
.social{display:flex;gap:12px;margin-top:16px;}
.social a{width:38px;height:38px;border-radius:50%;background:#2e2e37;display:flex;align-items:center;justify-content:center;color:#fff;}
.social a:hover{background:var(--rouge);}
.footer-bottom{border-top:1px solid #33333b;padding:22px 0;text-align:center;font-size:14px;color:#9a9a9a;}

/* ============================================================
   Pages / articles internes
   ============================================================ */
.page-hero{background:var(--noir);color:#fff;padding:150px 0 70px;text-align:center;}
.page-hero h1{color:#fff;font-family:var(--script);color:var(--rouge);font-size:56px;}
.content-area{padding:70px 0;}
.entry-content{max-width:820px;margin:0 auto;}
.entry-content img{margin:20px 0;}
.wp-block-quote,blockquote{border-left:4px solid var(--rouge);padding-left:20px;color:#555;font-style:italic;}
.post-navigation,.comments-area{max-width:820px;margin:40px auto 0;}
.widget{margin-bottom:34px;}
.widget-title{font-family:var(--serif);border-bottom:2px solid var(--rouge);display:inline-block;padding-bottom:6px;margin-bottom:16px;}

/* ============================================================
   Responsive
   ============================================================ */
@media(max-width:992px){
  .popular-grid,.about-grid,.recent-grid,.booking-inner{grid-template-columns:1fr;}
  .booking-inner{justify-content:center;}
  .cat-panel.active{grid-template-columns:1fr;}
  .cat-panel .panel-cover{display:none;}
  .about-text{margin-right:0;}
  .about-images{min-height:340px;margin-top:20px;}
  .testi-grid{grid-template-columns:1fr;gap:110px;}
  .footer-cols{grid-template-columns:1fr 1fr;}
}
@media(max-width:768px){
  .menu-toggle{display:block;}
  .main-nav{position:absolute;top:100%;left:0;width:100%;background:var(--noir);display:none;}
  .site-header.nav-open .main-nav{display:block;}
  .main-nav ul{flex-direction:column;align-items:stretch;padding:10px 0;}
  .main-nav a{padding:14px 20px;}
  .hero-content .script{font-size:60px;}
  .hero-content .sur-titre{font-size:34px;}
  .section-title h2{font-size:40px;}
  .cards{grid-template-columns:1fr;}
  .offer-inner{flex-direction:column;text-align:center;}
  section{padding:60px 0;}
}
@media(max-width:520px){
  .footer-cols{grid-template-columns:1fr;}
  .popular-feature img{height:320px;}
}

/* ============================================================
   WooCommerce
   ============================================================ */
.woocommerce-page .content-area,.woocommerce .content-area{padding:60px 0;}
.woocommerce .page-hero{margin-bottom:0;}
.woocommerce ul.products{display:grid !important;grid-template-columns:repeat(4,1fr);gap:26px;margin:0;padding:0;list-style:none;}
.woocommerce ul.products li.product{width:auto !important;margin:0 !important;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.07);border-radius:6px;overflow:hidden;text-align:center;padding-bottom:18px;transition:.25s;}
.woocommerce ul.products li.product:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.12);}
.woocommerce ul.products li.product img{margin:0 0 14px;width:100%;height:200px;object-fit:cover;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--serif);font-size:19px;color:var(--noir);padding:0 14px;}
.woocommerce ul.products li.product .price{color:var(--rouge);font-weight:600;font-family:var(--serif);font-size:20px;}
.woocommerce ul.products li.product .price del{color:#aaa;font-weight:400;margin-right:6px;}
.woocommerce span.onsale{background:var(--rouge);color:#fff;border-radius:0;min-height:auto;min-width:auto;padding:6px 12px;font-weight:600;top:10px;left:10px;}

.woocommerce a.button,.woocommerce button.button,.woocommerce .button,.woocommerce #respond input#submit,
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button,.woocommerce input.button.alt{
  background:var(--rouge);color:#fff;border-radius:4px;font-family:var(--body);font-weight:600;
  text-transform:uppercase;letter-spacing:.5px;padding:12px 24px;transition:.25s;border:0;font-size:13px;
}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce .button:hover,
.woocommerce #respond input#submit:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,
.woocommerce input.button:hover{background:var(--rouge-fonce);color:#fff;}

.woocommerce .woocommerce-message,.woocommerce .woocommerce-info{border-top-color:var(--rouge);}
.woocommerce .woocommerce-message::before,.woocommerce .woocommerce-info::before{color:var(--rouge);}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--rouge);font-family:var(--serif);font-size:26px;}
.woocommerce div.product .product_title{font-family:var(--serif);}
.woocommerce .star-rating span::before,.woocommerce p.stars a::before{color:var(--rouge);}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--rouge);color:#fff;border:0;}
.woocommerce-cart table.cart .product-remove a,.woocommerce a.remove{color:var(--rouge) !important;border-color:var(--rouge);}
.woocommerce .cart_totals h2,.woocommerce-checkout h3{font-family:var(--serif);}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.select2-container .select2-selection{border-radius:4px;padding:10px;border:1px solid #d8d8d8;}

/* Section menu WooCommerce sur la page d'accueil */
.wc-menu-cat{margin-bottom:14px;}
.wc-menu-panel{display:none;}
.wc-menu-panel.active{display:block;}
.wc-products{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.wc-card{background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.07);border-radius:6px;overflow:hidden;display:flex;flex-direction:column;}
.wc-card img{width:100%;height:190px;object-fit:cover;}
.wc-card .wc-body{padding:16px;display:flex;flex-direction:column;flex:1;}
.wc-card h4{font-family:var(--serif);font-size:20px;color:var(--noir);margin:0 0 6px;}
.wc-card p{color:var(--texte-doux);font-size:13px;margin:0 0 12px;flex:1;}
.wc-card .wc-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.wc-card .wc-price{color:var(--rouge);font-family:var(--serif);font-size:20px;font-weight:600;}
@media(max-width:992px){.woocommerce ul.products{grid-template-columns:repeat(2,1fr) !important;}.wc-products{grid-template-columns:1fr 1fr;}}
@media(max-width:600px){.woocommerce ul.products{grid-template-columns:1fr !important;}.wc-products{grid-template-columns:1fr;}}

/* En-tête solide + espacement sur les pages boutique (pas de hero) */
body:not(.home) .site-header{background:var(--noir);box-shadow:0 2px 12px rgba(0,0,0,.3);}
.post-type-archive-product .content-area,.single-product .content-area,
.tax-product_cat .content-area,.woocommerce-shop .content-area{padding-top:140px;}
.woocommerce-wrap{min-height:40vh;}
