/*
Theme Name: Forno Gaz
Author: Forno Gaz
Description: Vitrine française responsive avec réchauds, contacts et infographie import/export Espagne–Maroc.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: forno-gaz
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  color-scheme: light;
  --navy: #102c61;
  --blue: #17458f;
  --orange: #f39712;
  --ink: #15243b;
  --muted: #647084;
  --cream: #f8f6f1;
  --paper: #fff;
  --line: #e7e8eb;
  --shadow: 0 22px 70px rgba(21, 36, 59, 0.09);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  width: min(100% - 64px, 1440px);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 5;
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 760; letter-spacing: -0.06em; color: var(--navy); }
.brand strong, .footer-brand strong { color: var(--orange); }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50% 50% 50% 12px; background: var(--orange); color: white; font-size: 19px; font-weight: 800; transform: rotate(-8deg); }
.brand-name { transform: translateY(-1px); }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 3.2vw, 48px); color: #48556b; font-size: 14px; font-weight: 620; }
.main-nav a { transition: color 160ms ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--blue); }
.main-nav .nav-contact { padding: 12px 20px; border-radius: 999px; color: white; background: var(--navy); }
.main-nav .nav-contact:hover, .main-nav .nav-contact:focus-visible { color: white; background: var(--blue); }
.menu-toggle { display: none; }

.hero-section { width: min(100% - 40px, 1480px); margin: 0 auto; }
.hero-slider { position: relative; overflow: hidden; border-radius: 8px 8px 0 0; background: #f6f3ed; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; animation: reveal 380ms ease both; }
.desktop-banner { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.mobile-hero { display: none; }
.slider-bar { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.slider-caption { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.025em; }
.slider-count { color: var(--navy); font-weight: 800; font-size: 13px; }
.caption-rule { width: 35px; height: 1px; background: var(--orange); }
.slider-controls { display: flex; align-items: center; gap: 14px; }
.slider-arrow { display: grid; width: 36px; height: 36px; place-items: center; color: var(--navy); background: transparent; border: 1px solid #d9dce2; border-radius: 50%; cursor: pointer; transition: color 160ms ease, background 160ms ease, border 160ms ease; }
.slider-arrow:hover, .slider-arrow:focus-visible { color: white; background: var(--navy); border-color: var(--navy); }
.slider-dots { display: flex; gap: 7px; }
.slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #c8cbd1; cursor: pointer; transition: width 160ms ease, background 160ms ease; }
.slider-dot.is-active { width: 23px; background: var(--orange); }

.eyebrow { display: block; margin-bottom: 15px; color: #9a650d; font-size: 11px; font-weight: 760; letter-spacing: 0.15em; line-height: 1.4; text-transform: uppercase; }
.intro-strip { width: min(100% - 64px, 1240px); margin: 0 auto; padding: 92px 0 82px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr); align-items: end; gap: 9vw; }
.intro-copy h2, .section-heading h2, .contact-copy h2 { max-width: 580px; margin: 0; color: var(--navy); font-size: clamp(31px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.055em; }
.intro-strip > p { max-width: 430px; margin: 0 0 4px; color: var(--muted); font-size: 16px; line-height: 1.8; }

.products-section { padding: 80px max(32px, calc((100% - 1240px) / 2)) 105px; background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(36px, 4vw, 52px); }
.section-heading > p { max-width: 360px; margin: 0 0 5px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-card { overflow: hidden; background: white; border: 1px solid #ebe9e4; border-radius: 10px; box-shadow: 0 12px 35px rgba(33, 43, 59, 0.035); transition: transform 180ms ease, box-shadow 180ms ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image-wrap { height: 360px; position: relative; display: grid; place-items: center; overflow: hidden; background: #f5f3ee; }
.product-image-wrap img { display: block; width: 100%; height: 100%; padding: 24px; object-fit: contain; mix-blend-mode: multiply; }
.product-image-orange { background: #f7f2e9; }
.product-tag { display: none; }
.product-info { padding: 25px 28px 29px; }
.product-index { margin: 0 0 12px; color: #a46c14; font-size: 10px; font-weight: 780; letter-spacing: .16em; }
.product-info h3 { max-width: 460px; margin: 0 0 11px; color: var(--navy); font-size: 22px; line-height: 1.25; letter-spacing: -.035em; }
.product-info > p:not(.product-index) { min-height: 52px; margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid #e3a53c; color: var(--navy); font-size: 13px; font-weight: 730; }
.text-link span { color: var(--orange); font-size: 16px; transition: transform 160ms ease; }
.text-link:hover span { transform: translate(2px, -2px); }

.trade-section { padding: 83px max(32px, calc((100% - 1240px) / 2)) 96px; background: #fff; }
.trade-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); align-items: end; gap: 8vw; margin-bottom: 34px; }
.trade-heading h2 { margin: 0; color: var(--navy); font-size: clamp(35px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.055em; }
.trade-heading h2 span { color: var(--orange); }
.trade-heading > p { max-width: 430px; margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.trade-infographic { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); overflow: hidden; border: 1px solid #e7eaf0; border-radius: 14px; background: #f7f8fa; box-shadow: 0 18px 48px rgba(16, 44, 97, .07); }
.trade-map-card { min-width: 0; margin: 0; padding: 24px 24px 18px; }
.map-overline { display: flex; align-items: center; gap: 9px; color: #607089; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.map-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(243, 151, 18, .13); }
.map-canvas { position: relative; width: 100%; margin-top: 9px; overflow: hidden; border-radius: 9px; background: #eef4f8; }
.map-canvas img { display: block; width: 100%; height: auto; }
.map-country-label { position: absolute; padding: 6px 9px; border: 1px solid rgba(255,255,255,.88); border-radius: 5px; background: rgba(255,255,255,.9); box-shadow: 0 3px 12px rgba(16,44,97,.12); color: var(--navy); font-size: clamp(8px, .9vw, 11px); font-weight: 850; letter-spacing: .12em; }
.map-spain { top: 27%; left: 58%; }
.map-morocco { top: 70%; left: 36%; }
.map-strait-label { position: absolute; top: 54%; left: 7%; padding: 5px 8px; border-radius: 4px; background: rgba(255,255,255,.78); color: #526780; font-size: clamp(7px, .76vw, 9px); font-weight: 700; }
.trade-map-card figcaption { margin-top: 11px; color: #7c8798; font-size: 10px; line-height: 1.5; }
.trade-flows { display: flex; flex-direction: column; justify-content: center; gap: 13px; padding: 24px; background: #fff; }
.trade-flow-card { padding: 20px 21px 18px; border: 1px solid #e8ebef; border-left: 4px solid var(--blue); border-radius: 9px; background: #fff; }
.trade-flow-card.export-flow { border-left-color: var(--orange); }
.flow-card-top { display: flex; align-items: center; gap: 10px; }
.flow-number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #e9eff9; color: var(--blue); font-size: 10px; font-weight: 850; }
.export-flow .flow-number { background: #fff1dc; color: #b56b00; }
.flow-type { color: #647084; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.flow-route { display: flex; align-items: center; gap: 14px; margin: 15px 0 8px; color: var(--navy); font-size: clamp(17px, 2vw, 22px); letter-spacing: -.035em; }
.flow-route span { color: var(--orange); font-size: 22px; }
.flow-description { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.trade-disclaimer { margin: 0; color: #7b8594; font-size: 10px; line-height: 1.6; }

.contact-section { padding: 88px max(32px, calc((100% - 1240px) / 2)); display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .8fr); align-items: center; gap: 10vw; background: var(--navy); color: white; }
.contact-copy .eyebrow { color: #ffc665; }
.contact-copy h2 { color: white; font-size: clamp(34px, 4.2vw, 52px); }
.contact-copy > p { max-width: 490px; margin: 20px 0 0; color: #d4deee; font-size: 15px; line-height: 1.8; }
.contact-panel { padding: 27px 30px 28px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.07); }
.demo-note { margin: 0 0 13px; color: #ffd078; font-size: 11px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.demo-note span { margin-right: 7px; color: #ffad35; font-size: 9px; }
.contact-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #cad5e5; font-size: 13px; }
.contact-row strong { color: white; font-weight: 650; text-align: right; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 21px; border: 0; border-radius: 99px; font-size: 13px; font-weight: 740; transition: background 160ms ease, transform 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: var(--navy); }
.button-light { width: 100%; margin-top: 23px; color: var(--navy); background: white; }
.button-light:hover { background: #f2f5fa; }

.site-footer { width: min(100% - 64px, 1240px); margin: 0 auto; padding: 29px 0 23px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 24px; row-gap: 18px; }
.footer-brand { font-size: 17px; }
.site-footer > p, .site-footer > a:not(.footer-brand) { margin: 0; color: var(--muted); font-size: 12px; }
.site-footer > a:not(.footer-brand) { justify-self: end; }
.site-footer small { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); color: #8892a0; font-size: 11px; }

@keyframes reveal { from { opacity: .72; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  .site-header { width: calc(100% - 36px); min-height: 70px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 31px; height: 31px; }
  .menu-toggle { width: 42px; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
  .menu-toggle span { width: 16px; height: 1.5px; background: var(--navy); transition: transform 160ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .main-nav { position: absolute; top: calc(100% - 1px); left: 0; right: 0; display: none; align-items: stretch; gap: 0; padding: 10px 16px 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: white; box-shadow: 0 18px 30px rgba(12, 30, 61, .08); }
  .main-nav.is-open { display: flex; flex-direction: column; }
  .main-nav a { padding: 13px 5px; }
  .main-nav .nav-contact { margin-top: 6px; padding: 13px 16px; text-align: center; }
  .hero-section { width: calc(100% - 24px); }
  .hero-slider { border-radius: 10px 10px 0 0; }
  .desktop-banner { display: none; }
  .hero-slide.is-active { display: block; }
  .mobile-hero { min-height: 500px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: linear-gradient(145deg, #fbf9f4 0%, #f2eee5 100%); }
  .mobile-copy { position: relative; z-index: 1; padding: 27px 24px 0; }
  .mobile-copy .eyebrow { margin-bottom: 11px; font-size: 9px; }
  .mobile-copy h1, .mobile-copy h2 { max-width: 520px; margin: 0; color: var(--navy); font-size: clamp(29px, 8vw, 42px); line-height: 1.03; letter-spacing: -.055em; }
  .mobile-copy p { max-width: 430px; margin: 12px 0 17px; color: var(--muted); font-size: 14px; line-height: 1.6; }
  .mobile-copy .button { min-height: 43px; font-size: 12px; }
  .mobile-hero > img { width: 100%; height: 235px; margin-top: -4px; padding: 0 25px 15px; object-fit: contain; mix-blend-mode: multiply; }
  .slider-bar { min-height: 58px; }
  .slider-caption { gap: 8px; font-size: 10px; }
  .caption-rule { width: 20px; }
  .slider-controls { gap: 9px; }
  .slider-arrow { width: 31px; height: 31px; }
  .intro-strip { width: calc(100% - 44px); padding: 62px 0 58px; grid-template-columns: 1fr; gap: 19px; }
  .intro-copy h2 { font-size: clamp(31px, 8vw, 42px); }
  .intro-strip > p { font-size: 14px; line-height: 1.75; }
  .products-section { padding: 60px 22px 68px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 25px; }
  .section-heading h2 { font-size: 40px; }
  .section-heading > p { font-size: 14px; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-image-wrap { height: 300px; }
  .product-info { padding: 22px 22px 24px; }
  .product-info h3 { font-size: 20px; }
  .product-info > p:not(.product-index) { min-height: 0; }
  .trade-section { padding: 61px 22px 68px; }
  .trade-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 25px; }
  .trade-heading h2 { font-size: 40px; }
  .trade-heading > p { font-size: 14px; }
  .trade-infographic { grid-template-columns: 1fr; }
  .trade-map-card { padding: 20px 16px 15px; }
  .map-country-label { font-size: 8px; }
  .map-strait-label { font-size: 7px; }
  .trade-flows { gap: 11px; padding: 16px; }
  .trade-flow-card { padding: 17px 16px 15px; }
  .flow-route { font-size: 20px; }
  .contact-section { padding: 61px 22px; grid-template-columns: 1fr; gap: 29px; }
  .contact-copy h2 { font-size: 38px; }
  .contact-copy > p { font-size: 14px; }
  .contact-panel { padding: 22px 19px; }
  .contact-row { font-size: 12px; }
  .site-footer { width: calc(100% - 40px); padding: 26px 0 20px; grid-template-columns: 1fr auto; }
  .site-footer > p { grid-column: 1 / -1; grid-row: 2; }
  .site-footer > a:not(.footer-brand) { grid-column: 2; grid-row: 1; }
  .site-footer small { margin-top: 2px; }
}

@media (max-width: 370px) {
  .hero-section { width: calc(100% - 16px); }
  .mobile-hero { min-height: 480px; }
  .mobile-copy { padding: 23px 20px 0; }
  .mobile-copy p { font-size: 13px; }
  .mobile-hero > img { height: 220px; padding-left: 14px; padding-right: 14px; }
  .slider-caption { font-size: 9px; }
  .slider-arrow { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* WordPress menu and logo support */
.main-nav > li { margin: 0; padding: 0; list-style: none; }
.main-nav > li:last-child > a { padding: 12px 20px; border-radius: 999px; color: white; background: var(--navy); }
.main-nav > li:last-child > a:hover, .main-nav > li:last-child > a:focus-visible { color: white; background: var(--blue); }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img { display: block; width: auto; max-width: min(160px, 38vw); max-height: 58px; }
.content-section { width: min(100% - 64px, 1240px); min-height: 50vh; margin: 0 auto; padding: 64px 0; }
.content-section h1 { color: var(--navy); }
.content-section .entry-content { line-height: 1.8; }

@media (max-width: 760px) {
  .main-nav > li { width: 100%; }
  .main-nav > li > a { display: block; }
  .main-nav > li:last-child > a { margin-top: 6px; padding: 13px 16px; text-align: center; }
  .custom-logo-link img { max-height: 46px; }
  .content-section { width: calc(100% - 44px); }
}
