/*
Theme Name: Agro Delights
Theme URI: https://agrodelights.com
Author: Agro Delights
Description: Thème vitrine pleine largeur pour Agro Delights — Dattes Deglet Nour de Biskra.
Version: 1.0
Requires PHP: 7.4
Text Domain: agrodelights
*/

:root{
  --brown:#4a2a12;
  --brown-2:#6b3d1c;
  --gold:#c8963e;
  --gold-2:#e0b766;
  --cream:#faf5ec;
  --sand:#f1e6d2;
  --green:#2f4a2b;
  --text:#2b2118;
  --muted:#7a6a58;
  --white:#fff;
  --radius:14px;
  --shadow:0 12px 40px rgba(74,42,18,.12);
  --max:1240px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;color:var(--text);background:var(--cream);line-height:1.65;font-size:16px;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:'Playfair Display',Georgia,serif;color:var(--brown);line-height:1.2}
.container{width:100%;max-width:var(--max);margin:0 auto;padding:0 24px}
.section{padding:96px 0}
.eyebrow{display:inline-block;font-size:.8rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);font-weight:600;margin-bottom:14px}
.section-title{font-size:clamp(1.9rem,3.5vw,2.8rem);margin-bottom:16px}
.section-head{text-align:center;max-width:680px;margin:0 auto 56px}
.section-head p{color:var(--muted)}
.btn{display:inline-flex;align-items:center;gap:8px;padding:14px 28px;border-radius:50px;font-weight:600;font-size:.95rem;transition:.25s;border:2px solid transparent;cursor:pointer}
.btn-gold{background:var(--gold);color:var(--white)}
.btn-gold:hover{background:var(--brown);transform:translateY(-2px)}
.btn-outline{border-color:var(--white);color:var(--white)}
.btn-outline:hover{background:var(--white);color:var(--brown)}

/* ===== Top bar ===== */
.topbar{background:var(--brown);color:var(--sand);font-size:.85rem}
.topbar .container{display:flex;justify-content:space-between;align-items:center;min-height:40px;gap:16px;flex-wrap:wrap}
.topbar a{display:inline-flex;align-items:center;gap:6px;opacity:.9}
.topbar a:hover{color:var(--gold-2);opacity:1}
.topbar .tb-left{display:flex;gap:22px;flex-wrap:wrap}
.topbar svg{width:15px;height:15px;fill:currentColor}

/* ===== Header ===== */
.site-header{position:sticky;top:0;z-index:100;background:rgba(250,245,236,.96);backdrop-filter:blur(8px);border-bottom:1px solid rgba(74,42,18,.08);transition:.3s}
.site-header.scrolled{box-shadow:0 6px 24px rgba(74,42,18,.1)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:84px}
.logo{display:flex;align-items:center;gap:12px}
.logo img{height:62px;width:auto}
.footer-logo{background:var(--cream);padding:10px 16px;border-radius:12px;display:inline-flex}
.footer-logo img{height:64px}
.logo-text{font-family:'Playfair Display',serif;font-size:1.5rem;font-weight:700;color:var(--brown);line-height:1}
.logo-text small{display:block;font-family:'Inter',sans-serif;font-size:.65rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);font-weight:600;margin-top:4px}
.main-nav ul{list-style:none;display:flex;gap:34px}
.main-nav a{font-weight:500;font-size:.95rem;position:relative;padding:6px 0}
.main-nav a::after{content:"";position:absolute;left:0;bottom:0;width:0;height:2px;background:var(--gold);transition:.25s}
.main-nav a:hover::after{width:100%}
.header-cta{display:flex;align-items:center;gap:14px}
.menu-toggle{display:none;background:none;border:0;width:40px;height:40px;cursor:pointer}
.menu-toggle span{display:block;width:24px;height:2px;background:var(--brown);margin:5px auto;transition:.3s}

/* ===== Hero ===== */
.hero{position:relative;min-height:88vh;display:flex;align-items:center;color:var(--white);background:var(--brown) center/cover no-repeat}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(40,22,8,.85) 0%,rgba(40,22,8,.55) 55%,rgba(40,22,8,.15) 100%)}
.hero .container{position:relative;z-index:1}
.hero-content{max-width:640px}
.hero h1{color:var(--white);font-size:clamp(2.4rem,5.5vw,4.2rem);margin-bottom:22px}
.hero h1 em{color:var(--gold-2);font-style:italic}
.hero p{font-size:1.15rem;opacity:.92;margin-bottom:34px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.hero-badges{display:flex;gap:34px;margin-top:54px;flex-wrap:wrap}
.hero-badges div strong{display:block;font-family:'Playfair Display',serif;font-size:2rem;color:var(--gold-2)}
.hero-badges div span{font-size:.85rem;opacity:.85}

/* ===== Hero bannière ===== */
.hero-banner{width:100%;background:var(--cream);line-height:0}
.hero-banner img{width:100%;height:auto}
.hero-bar{background:var(--white);border-bottom:1px solid rgba(74,42,18,.08)}
.hero-bar .container{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:26px;padding-bottom:26px;flex-wrap:wrap}
.hero-bar p{color:var(--muted);max-width:620px}
.btn-dark{background:var(--brown);color:var(--white)}
.btn-dark:hover{background:var(--gold);transform:translateY(-2px)}

/* ===== About ===== */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center}
.about-img{position:relative}
.about-img img{border-radius:var(--radius);box-shadow:var(--shadow);width:100%}
.about-img .tag{position:absolute;bottom:-24px;right:-24px;background:var(--gold);color:var(--white);padding:22px 26px;border-radius:var(--radius);box-shadow:var(--shadow);font-family:'Playfair Display',serif;font-size:1.1rem}
.about-text p{color:var(--muted);margin-bottom:18px}
.checks{list-style:none;margin:26px 0 34px;display:grid;gap:12px}
.checks li{display:flex;gap:12px;align-items:flex-start}
.checks li::before{content:"✓";flex:0 0 26px;height:26px;border-radius:50%;background:var(--sand);color:var(--gold);font-weight:700;display:grid;place-items:center;font-size:.85rem}

/* ===== Products ===== */
.products{background:var(--white)}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
.product-card{background:var(--cream);border-radius:var(--radius);overflow:hidden;transition:.3s;display:flex;flex-direction:column}
.product-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.product-card img{aspect-ratio:4/3;object-fit:cover;width:100%}
.product-card .pc-body{padding:24px;flex:1;display:flex;flex-direction:column}
.product-card h3{font-size:1.25rem;margin-bottom:8px}
.product-card p{color:var(--muted);font-size:.93rem;flex:1}
.product-card .pc-meta{margin-top:16px;font-size:.82rem;color:var(--gold);font-weight:600;text-transform:uppercase;letter-spacing:.08em}

/* ===== Features ===== */
.features{background:var(--green);color:var(--sand)}
.features .section-title{color:var(--white)}
.features .section-head p{color:rgba(241,230,210,.8)}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.feature{padding:34px 28px;border:1px solid rgba(255,255,255,.12);border-radius:var(--radius);transition:.3s}
.feature:hover{background:rgba(255,255,255,.05);border-color:var(--gold)}
.feature .ico{width:56px;height:56px;border-radius:50%;background:var(--gold);display:grid;place-items:center;margin-bottom:20px}
.feature .ico svg{width:26px;height:26px;fill:var(--white)}
.feature h3{color:var(--white);font-size:1.2rem;margin-bottom:10px}
.feature p{font-size:.93rem;opacity:.85}

/* ===== Process ===== */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;counter-reset:step}
.step{position:relative;padding-top:12px}
.step::before{counter-increment:step;content:"0" counter(step);font-family:'Playfair Display',serif;font-size:3rem;color:var(--gold);opacity:.35;line-height:1;display:block;margin-bottom:10px}
.step h3{font-size:1.2rem;margin-bottom:8px}
.step p{color:var(--muted);font-size:.93rem}

/* ===== Gallery (full width) ===== */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.gallery img{width:100%;aspect-ratio:1/1;object-fit:cover;transition:.4s;filter:saturate(.95)}
.gallery a{overflow:hidden;display:block}
.gallery a:hover img{transform:scale(1.06);filter:saturate(1.1)}

/* ===== CTA band ===== */
.cta-band{background:var(--gold);color:var(--white);padding:64px 0}
.cta-band .container{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.cta-band h2{color:var(--white);font-size:clamp(1.6rem,3vw,2.3rem)}
.cta-band .btn{background:var(--brown);color:var(--white)}
.cta-band .btn:hover{background:var(--white);color:var(--brown)}

/* ===== Contact ===== */
.contact-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:56px}
.contact-info{display:grid;gap:18px;align-content:start}
.ci-item{display:flex;gap:16px;align-items:center;background:var(--white);padding:22px;border-radius:var(--radius)}
.ci-item .ico{flex:0 0 50px;height:50px;border-radius:50%;background:var(--sand);display:grid;place-items:center}
.ci-item .ico svg{width:22px;height:22px;fill:var(--gold)}
.ci-item small{display:block;color:var(--muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.1em}
.ci-item strong{font-size:1.05rem;color:var(--brown)}
.contact-form{background:var(--white);padding:40px;border-radius:var(--radius);box-shadow:var(--shadow)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.contact-form input,.contact-form textarea,.contact-form select{width:100%;padding:14px 16px;border:1px solid #e6dccb;border-radius:10px;font:inherit;background:var(--cream);margin-bottom:16px;transition:.2s}
.contact-form input:focus,.contact-form textarea:focus,.contact-form select:focus{outline:none;border-color:var(--gold);background:var(--white)}
.contact-form textarea{min-height:140px;resize:vertical}
.notice{padding:14px 18px;border-radius:10px;margin-bottom:18px;font-size:.95rem}
.notice.ok{background:#e7f3e4;color:#2f5a28}
.notice.err{background:#f8e3df;color:#8a2c1c}

/* ===== Footer ===== */
.site-footer{background:#2a180a;color:rgba(241,230,210,.75);padding-top:80px;font-size:.93rem}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:48px;padding-bottom:56px}
.site-footer h4{color:var(--white);font-size:1.1rem;margin-bottom:20px}
.site-footer .logo-text{color:var(--white)}
.site-footer ul{list-style:none;display:grid;gap:10px}
.site-footer a:hover{color:var(--gold-2)}
.footer-about p{margin:18px 0 22px}
.footer-contact li{display:flex;gap:10px;align-items:flex-start}
.footer-contact svg{width:16px;height:16px;fill:var(--gold);flex:0 0 16px;margin-top:4px}
.socials{display:flex;gap:10px}
.socials a{width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.2);display:grid;place-items:center;transition:.25s}
.socials a:hover{background:var(--gold);border-color:var(--gold)}
.socials svg{width:16px;height:16px;fill:var(--white)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:22px 0;font-size:.85rem}
.footer-bottom .container{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}

/* WhatsApp flottant */
.wa-float{position:fixed;right:22px;bottom:22px;width:58px;height:58px;border-radius:50%;background:#25d366;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.25);z-index:200;transition:.25s}
.wa-float:hover{transform:scale(1.08)}
.wa-float svg{width:30px;height:30px;fill:#fff}

/* Pages internes */
.page-hero{background:var(--brown);color:var(--white);padding:90px 0 70px;text-align:center}
.page-hero h1{color:var(--white);font-size:clamp(2rem,4vw,3rem)}
.page-content{padding:72px 0}
.page-content .entry{max-width:820px;margin:0 auto}
.page-content .entry p{margin-bottom:18px}

/* Animation d'apparition */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}
.reveal.visible{opacity:1;transform:none}

/* ===== Responsive ===== */
@media(max-width:1024px){
  .product-grid,.feature-grid,.steps{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .about-grid,.contact-grid{grid-template-columns:1fr;gap:48px}
  .about-img .tag{right:16px}
}
@media(max-width:860px){
  .menu-toggle{display:block}
  .header-cta .btn{display:none}
  .main-nav{position:absolute;top:84px;left:0;right:0;background:var(--cream);max-height:0;overflow:hidden;transition:max-height .35s ease;box-shadow:0 10px 20px rgba(0,0,0,.08)}
  .main-nav.open{max-height:420px}
  .main-nav ul{flex-direction:column;gap:0;padding:10px 24px 20px}
  .main-nav li a{display:block;padding:14px 0;border-bottom:1px solid #eadfcd}
  .gallery{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .section{padding:68px 0}
  .container{padding:0 16px}
  .product-grid,.feature-grid,.steps,.footer-grid,.form-row{grid-template-columns:1fr}
  .topbar .tb-right{display:none}
  .hero{min-height:80vh}
  .contact-form{padding:26px}
  .logo img{height:48px}
  .hero-bar .btn{flex:1;justify-content:center}
  .about-img .tag{position:static;margin-top:16px;display:inline-block}
}
