/*
Theme Name: NOOD'VIET Editable
Theme URI: https://noodviet.com/
Author: NOOD'VIET
Description: Thème NOOD'VIET avec page d'accueil entièrement modifiable dans l'éditeur de blocs WordPress.
Version: 3.3.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: noodviet
*/
:root{
    --ink:#141212;--ink-2:#211e1f;--muted:#686164;--paper:#fffaf5;--white:#fff;
    --line:#eadfe1;--accent:#eb1767;--accent-dark:#bd0f50;--red:#c5161d;
    --soft-pink:#fff0f5;--soft-beige:#fff5e7;--soft-green:#f1f7ee;
    --radius:24px;--shadow:0 22px 60px rgba(35,17,24,.12)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.55}
img{max-width:100%;display:block}a{color:inherit}button,input,select,textarea{font:inherit}.container{width:min(1220px,calc(100% - 44px));margin-inline:auto}
.skip-link{position:fixed;left:12px;top:-60px;z-index:1000;background:#fff;padding:10px 14px;border-radius:8px}.skip-link:focus{top:12px}
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,250,245,.94);border-bottom:1px solid rgba(21,19,19,.08);backdrop-filter:blur(14px)}
.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:flex;align-items:center;text-decoration:none}.brand img{width:142px;height:58px;object-fit:contain;object-position:left center}
nav{display:flex;align-items:center;gap:26px}nav a{text-decoration:none;font-weight:760;font-size:.92rem}.nav-cta{padding:10px 17px;border-radius:999px;background:var(--ink);color:#fff}
.notice{position:fixed;z-index:150;left:50%;top:92px;transform:translateX(-50%);width:min(720px,calc(100% - 32px));padding:14px 18px;border-radius:12px;box-shadow:var(--shadow);font-weight:750}.notice.success{background:#e9f9ee;border:1px solid #9ddbb0;color:#145d2e}.notice.error{background:#fff0f0;border:1px solid #e6a6a6;color:#7c1818}
section{scroll-margin-top:88px}.eyebrow{display:inline-block;color:var(--accent-dark);font-weight:850;text-transform:uppercase;letter-spacing:.13em;font-size:.74rem;margin-bottom:12px}h1,h2,h3{line-height:1.09;margin-top:0}h1{font-size:clamp(3rem,5.35vw,5.8rem);letter-spacing:-.06em;margin-bottom:22px}h2{font-size:clamp(2.1rem,4vw,4rem);letter-spacing:-.05em;margin-bottom:16px}h3{font-size:1.28rem}.compact-heading{margin-bottom:32px}.section-heading{max-width:850px;margin-bottom:40px}.section-heading.center{text-align:center;margin-inline:auto}.section-heading p{color:var(--muted);font-size:1.02rem}
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:13px 22px;border:0;border-radius:13px;font-weight:850;text-decoration:none;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}.button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.button:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(29,18,22,.15)}.button.primary{background:var(--accent);color:#fff}.button.primary:hover{background:var(--accent-dark)}.button.secondary,.button.dark{background:var(--ink);color:#fff}.button.full{width:100%}
.hero{overflow:hidden;background:radial-gradient(circle at 89% 25%,rgba(235,23,103,.13),transparent 32%),linear-gradient(135deg,#fffaf3 0%,#fff 72%)}
.hero-grid{min-height:650px;display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:66px;padding-block:54px 64px}.hero-copy{position:relative;z-index:2}.hero-copy h1{max-width:620px}.hero-lead{font-size:1.08rem;color:#4e474a;max-width:650px;margin:0 0 28px}.hero-actions{display:flex;flex-wrap:wrap;gap:13px}.hero-media{position:relative;min-height:545px;display:grid;place-items:center}.hero-photo-wrap{width:min(100%,640px);height:560px;border-radius:34px;overflow:hidden;box-shadow:var(--shadow);background:#111}.hero-photo-wrap img{width:100%;height:100%;object-fit:cover;object-position:center 44%}.hero-badge{position:absolute;left:-12px;bottom:54px;width:148px;height:148px;border-radius:50%;display:grid;place-content:center;text-align:center;background:var(--accent);color:#fff;border:8px solid #fff;box-shadow:var(--shadow);transform:rotate(-7deg)}.hero-badge strong{font-size:1.75rem;line-height:1}.hero-badge span{font-size:.8rem;margin-top:7px;font-weight:650}
.choice-section{padding:82px 0 90px;background:radial-gradient(circle at 8% 92%,rgba(235,23,103,.09),transparent 20%),var(--ink);color:#fff}.choice-section .section-heading .eyebrow{color:#ff5e9b}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.choice-card{position:relative;padding:36px;border-radius:var(--radius);min-height:440px;display:flex;flex-direction:column;align-items:flex-start;overflow:hidden}.choice-card.establishment{background:#fff;color:var(--ink)}.choice-card.referral{background:linear-gradient(145deg,#ed1b68,#bd0e50)}.choice-icon{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;margin-bottom:24px;background:var(--soft-pink);color:var(--accent)}.choice-icon.light{background:#fff;color:var(--accent)}.choice-icon svg{width:39px;height:39px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.choice-card h3{font-size:2rem;max-width:470px;margin-bottom:14px}.choice-card p{max-width:560px}.choice-card ul{padding-left:0;margin:16px 0 30px;list-style:none}.choice-card li{position:relative;margin:10px 0;padding-left:26px}.choice-card li:before{content:"✓";position:absolute;left:0;top:-1px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:900;font-size:.72rem}.choice-card.referral li:before{background:#fff;color:var(--accent)}.choice-card .button{margin-top:auto}.referral-cta{background:#fff;color:var(--accent-dark);border:2px solid #fff;box-shadow:0 14px 30px rgba(83,3,35,.16)}.referral-cta:hover{background:#fff6fa}
.benefits{padding:90px 0;background:#fff}.benefit-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.benefit-grid article{border:1px solid var(--line);border-radius:18px;padding:22px 18px;background:#fff;min-height:286px;transition:transform .2s ease,box-shadow .2s ease}.benefit-grid article:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(35,17,24,.07)}.benefit-icon{width:62px;height:62px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,#fff1f6,#ffe6f0);color:var(--accent);margin-bottom:18px}.benefit-icon svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.benefit-grid h3{font-size:1.08rem;margin-bottom:9px}.benefit-grid p{margin:0;color:var(--muted);font-size:.91rem}
.showcase{padding:96px 0;background:linear-gradient(120deg,#fffaf2,#fff7f2)}.showcase-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:70px;align-items:center}.showcase-gallery{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;align-items:end}.showcase-gallery img{border-radius:22px;height:370px;object-fit:cover;box-shadow:var(--shadow)}.showcase-gallery .large{height:520px}.noodly-logo{width:290px;margin-bottom:24px}.showcase-copy p{color:#4f484a}.showcase-copy blockquote{margin:28px 0 0;padding:24px 26px;border-left:5px solid var(--accent);background:#fff;border-radius:0 16px 16px 0;box-shadow:0 12px 28px rgba(35,17,24,.06)}.showcase-copy blockquote p{margin:0 0 10px;font-size:1.15rem;font-weight:760;color:var(--ink)}.showcase-copy cite{color:var(--muted);font-style:normal;font-size:.9rem}
.products{padding:90px 0;background:radial-gradient(circle at 15% 20%,rgba(245,180,87,.18),transparent 27%),radial-gradient(circle at 85% 80%,rgba(235,23,103,.08),transparent 24%),linear-gradient(180deg,#fff8e9,#fffdf8)}.products:before{content:"";position:absolute}.product-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.product-grid article{border:1px solid rgba(216,192,171,.55);border-radius:19px;background:rgba(255,255,255,.88);padding:18px;text-align:center;display:grid;grid-template-rows:230px auto;align-items:center;box-shadow:0 12px 28px rgba(98,65,35,.05)}.product-grid img{width:100%;height:100%;object-fit:contain}.product-grid h3{font-size:.98rem;margin:14px 0 0}
.process{padding:84px 0 90px;background:var(--ink);color:#fff}.process .eyebrow{color:#ff5e9b}.process-heading h2{font-size:clamp(2.15rem,3.45vw,3.35rem)}.process-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;counter-reset:steps}.process-list li{background:#221f20;border:1px solid #3a3335;border-radius:18px;padding:24px;min-height:315px}.process-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px}.step-number{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--accent);font-weight:900}.process-icon{color:#fff;opacity:.9}.process-icon svg{width:43px;height:43px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.process-list p{color:#cfc6c9;margin-bottom:0;font-size:.94rem}
.zone{padding:86px 0;background:linear-gradient(120deg,#fff6e7,#f8fbf4)}.zone-grid{display:grid;grid-template-columns:.72fr 1.28fr;gap:48px;align-items:center}.zone-copy h2{max-width:470px}.zone-copy p{font-size:1.03rem;max-width:470px}.based{display:flex;align-items:center;gap:10px;margin-top:24px}.based span{width:36px;height:36px;border-radius:50%;background:#fff;display:grid;place-items:center;color:var(--accent);box-shadow:0 8px 24px rgba(35,17,24,.06)}.based svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}.zone-map{border-radius:28px;overflow:hidden;box-shadow:var(--shadow);border:8px solid #fff}.zone-map img{width:100%;height:auto}
.forms-section{padding:94px 0;background:#fff}.forms-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.form-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 14px 45px rgba(35,17,24,.07);overflow:hidden}.form-title{padding:28px 30px;background:var(--ink);color:#fff}.referral-form .form-title{background:var(--accent)}.form-title span{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:850;opacity:.8;margin-bottom:8px}.form-title h3{margin:0;font-size:1.55rem}form{padding:30px}label{display:grid;gap:7px;font-size:.9rem;font-weight:750;margin-bottom:16px}input,select,textarea{width:100%;border:1px solid #d8cccf;background:#fff;color:var(--ink);border-radius:11px;padding:12px 13px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(235,23,103,.12)}textarea{resize:vertical}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.consent{display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start;font-weight:500;line-height:1.35}.consent input{width:18px;height:18px;margin-top:1px}.hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.small-print{color:var(--muted);font-size:.78rem;margin:15px 0 0}.plugin-missing{border:1px solid #e5b6c8;border-radius:18px;background:#fff4f8;padding:28px;color:#7a1740}
footer{background:#0d0c0c;color:#fff;padding:42px 0 22px}.footer-main{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:44px;align-items:start}.footer-brand img{width:150px;height:62px;object-fit:contain;object-position:left center;filter:saturate(1.12)}footer p{color:#bdb4b7;margin:8px 0 0}.footer-contact>a{display:flex;align-items:center;gap:9px;color:#fff;margin-top:12px;text-decoration:none}.footer-contact>a svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2}.footer-links{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:12px}.footer-links a{color:#fff;text-underline-offset:4px}.footer-bottom{border-top:1px solid #2d292a;margin-top:32px;padding-top:18px;color:#8f8588;font-size:.85rem}
.nv-page{padding:80px 0;min-height:60vh}.nv-page .entry-content{max-width:850px;margin:auto}.nv-page h1{margin-bottom:28px}.nv-page p,.nv-page li{line-height:1.7}.admin-bar .site-header{top:32px}
@media(min-width:781px){.process-heading h2{white-space:nowrap}}
@media(max-width:1120px){.benefit-grid{grid-template-columns:repeat(3,1fr)}.benefit-grid article{min-height:230px}.hero-grid{grid-template-columns:.95fr 1.05fr;gap:42px}.hero-photo-wrap{height:520px}}
@media(max-width:980px){nav a:not(.nav-cta){display:none}.hero-grid,.showcase-grid,.zone-grid{grid-template-columns:1fr}.hero-grid{gap:34px;padding-block:48px 66px}.hero-copy{max-width:760px}.hero-media{min-height:0}.hero-photo-wrap{width:100%;height:min(72vw,620px)}.hero-badge{left:18px}.choice-grid{grid-template-columns:1fr 1fr}.showcase-grid{gap:42px}.product-grid{grid-template-columns:repeat(3,1fr)}.process-list{grid-template-columns:repeat(2,1fr)}.forms-grid{grid-template-columns:1fr}.zone-grid{gap:34px}.footer-main{grid-template-columns:1fr 1fr}}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:700px){.container{width:min(100% - 26px,1220px)}.header-inner{min-height:68px}.brand img{width:122px;height:48px}.nav-cta{padding:9px 12px;font-size:.82rem}.hero-grid{min-height:0}.hero-copy h1{font-size:2.8rem}.hero-actions{display:grid}.hero-actions .button{width:100%}.hero-photo-wrap{border-radius:22px;height:500px}.hero-badge{width:116px;height:116px;border-width:6px;left:8px;bottom:20px}.hero-badge strong{font-size:1.35rem}.choice-grid,.benefit-grid,.product-grid,.process-list,.footer-main{grid-template-columns:1fr}.choice-card{min-height:410px;padding:28px}.choice-card h3{font-size:1.65rem}.benefit-grid article{min-height:0}.showcase-gallery{grid-template-columns:1fr 1fr}.showcase-gallery img,.showcase-gallery .large{height:330px}.product-grid article{grid-template-rows:245px auto}.process-list li{min-height:0}.field-row{grid-template-columns:1fr;gap:0}form{padding:22px}.form-title{padding:24px 22px}section{scroll-margin-top:76px}.footer-main{gap:28px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}


/* V3 - contenu Gutenberg editable */
.nv-home-content > *{margin-block-start:0;margin-block-end:0}
.nv-home-content .wp-block-group,.nv-home-content .wp-block-columns{box-sizing:border-box}
.nv-home-content .wp-block-columns{margin-bottom:0}
.nv-home-content .wp-block-heading{margin-top:0}
.nv-home-content .wp-block-buttons{margin:0}
.nv-home-content .wp-block-button__link{text-decoration:none}
.nv-home-content .wp-block-image{margin:0}
.nv-home-content ul{margin-top:0}
.benefit-grid .benefit-card{border:1px solid var(--line);border-radius:18px;padding:22px 18px;background:#fff;min-height:286px;transition:transform .2s ease,box-shadow .2s ease}
.benefit-grid .benefit-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(35,17,24,.07)}
.benefit-card h3{font-size:1.08rem;margin-bottom:9px}.benefit-card p{margin:0;color:var(--muted);font-size:.91rem}
.product-grid .product-card{border:1px solid rgba(216,192,171,.55);border-radius:19px;background:rgba(255,255,255,.88);padding:18px;text-align:center;display:grid;grid-template-rows:230px auto;align-items:center;box-shadow:0 12px 28px rgba(98,65,35,.05)}
.product-card .wp-block-image{width:100%;height:230px}.product-card .wp-block-image img{width:100%;height:100%;object-fit:contain}.product-card h3{font-size:.98rem;margin:14px 0 0}
.process-list{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.process-card{background:#221f20;border:1px solid #3a3335;border-radius:18px;padding:24px;min-height:315px}.process-card p{color:#cfc6c9;margin-bottom:0;font-size:.94rem}.process-card h3{color:#fff}
.process-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px}.process-icon svg{width:43px;height:43px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.icon-html{line-height:0}.icon-html svg{display:block}
.forms-grid .wp-block-shortcode{margin:0}
.site-header .custom-logo-link{display:flex;align-items:center}.site-header .custom-logo{width:145px;height:60px;object-fit:contain}
.footer-brand .custom-logo{width:150px;height:62px;object-fit:contain;object-position:left center}
.footer-legal-menu{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px 18px}.footer-legal-menu a{color:#fff;text-underline-offset:4px}
.edit-hint{max-width:1220px;margin:16px auto;padding:12px 18px;background:#fff8df;border:1px solid #f1d987;border-radius:12px;font-size:.9rem}
@media(max-width:1120px){.benefit-grid .benefit-card{min-height:230px}}
@media(max-width:980px){.process-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.benefit-grid,.product-grid,.process-list{grid-template-columns:1fr}.benefit-grid .benefit-card{min-height:0}.product-grid .product-card{grid-template-rows:245px auto}.process-card{min-height:0}}


/* ==========================================================
   v3.1.0 - Navigation responsive unique et fiable
   Le thème est désormais l'unique source du menu du site.
   ========================================================== */
.menu-toggle{
  display:none;
  width:50px;
  height:46px;
  flex:0 0 50px;
  padding:10px 11px;
  border:0;
  border-radius:13px;
  background:var(--ink);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  -webkit-appearance:none;
  appearance:none;
}
.menu-toggle span{
  display:block;
  width:26px;
  height:2px;
  border-radius:3px;
  background:#fff;
  transition:transform .2s ease,opacity .2s ease;
}

@media(max-width:980px){
  .header-inner{position:relative;min-height:72px;gap:18px;}
  .menu-toggle{display:flex;}

  /* Annule l'ancienne règle qui ne laissait visible que Contact. */
  .site-header nav a:not(.nav-cta){display:flex !important;}

  .site-header nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:calc(100% + 8px);
    z-index:110;
    margin:0;
    padding:10px;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
    box-shadow:0 18px 45px rgba(18,16,17,.18);
  }
  .site-header.is-menu-open nav{display:block;}

  .site-header nav .primary-menu{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:3px;
    list-style:none;
    margin:0;
    padding:0;
  }
  .site-header nav .primary-menu > li{display:block;margin:0;padding:0;}

  .site-header nav > a,
  .site-header nav .primary-menu a{
    display:flex !important;
    align-items:center;
    justify-content:flex-start;
    width:100%;
    min-height:48px;
    padding:12px 14px;
    border-radius:11px;
    color:var(--ink);
    background:#fff;
    text-decoration:none;
    font-size:1rem;
    font-weight:780;
    white-space:normal;
  }
  .site-header nav > a:hover,
  .site-header nav .primary-menu a:hover{background:var(--soft-pink);}

  .site-header nav > a.nav-cta,
  .site-header nav .nav-cta > a,
  .site-header nav .primary-menu .nav-cta > a{
    justify-content:center;
    margin-top:4px;
    background:var(--ink);
    color:#fff;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .site-header.is-menu-open .menu-toggle span:nth-child(2){opacity:0;}
  .site-header.is-menu-open .menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
}

@media(max-width:700px){
  .site-header .container.header-inner{width:min(100% - 26px,1220px);}
  .site-header .brand img,
  .site-header .custom-logo{width:auto !important;max-width:118px !important;height:52px !important;object-fit:contain !important;}
  .menu-toggle{width:50px;height:46px;flex-basis:50px;}
}


/* ==========================================================
   v3.2.1 - Correctif mobile uniquement
   - le desktop reste strictement inchangé
   - un seul header visible sur mobile
   - le panneau du menu reste au-dessus de la page et cliquable
   ========================================================== */
@media (max-width:980px){
  .site-header{z-index:10050 !important;}
  .site-header .menu-toggle{position:relative;z-index:10070 !important;pointer-events:auto !important;}
  .site-header #primary-navigation{z-index:10060 !important;pointer-events:auto !important;}
  .site-header #primary-navigation a{pointer-events:auto !important;touch-action:manipulation !important;-webkit-tap-highlight-color:rgba(0,0,0,.06);}
  body.nv-mobile-menu-open{overflow:hidden;}
  /* Ces classes correspondent aux anciens headers Elementor des versions précédentes. */
  body.home .nv-header,
  body.home .nv-elementor-legacy-header,
  body.home .elementor-location-header{
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
  }
}


/* ==========================================================
   v3.3.0 - Navigation mobile native et robuste
   ========================================================== */
@media (max-width:980px){
  /* Le scroll redevient disponible dès que le panneau est fermé. */
  body:not(.nv-mobile-menu-open){overflow:auto !important;}
  .site-header #primary-navigation a{cursor:pointer !important;}
}
