/* ============================================
   FRIGALIS — chambre-froide-pro.fr
   Persona : restaurateur / commerçant / artisan pressé.
   Design : industriel froid, précis, rassurant. Bleu acier + glace, CTA orange.
   ============================================ */
:root {
  --bleu-nuit: #0b2e4a;
  --bleu-acier: #14507e;
  --bleu-vif: #1c7ec2;
  --glace: #eef5fb;
  --glace-2: #dcebf7;
  --blanc: #ffffff;
  --encre: #16212b;
  --gris: #5a6a78;
  --ligne: #d3dfe9;
  --cta: #f26a21;
  --cta-hover: #d95a15;
  --ok: #1e9e5a;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(11, 46, 74, .12);
  --font: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--encre); background: var(--blanc); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--bleu-vif); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar réassurance ---------- */
.topbar { background: var(--bleu-nuit); color: #cfe2f2; font-size: 13.5px; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar span::before { content: "✓ "; color: #7fd4a5; }

/* ---------- Header / nav ---------- */
header.site { background: var(--blanc); border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bleu-nuit); font-weight: 800; font-size: 22px; letter-spacing: .3px; }
.logo svg { width: 34px; height: 34px; }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--gris); letter-spacing: .4px; }
nav.menu { display: flex; gap: 4px; align-items: center; }
nav.menu > div { position: relative; }
nav.menu a.item { display: block; white-space: nowrap; padding: 10px 13px; color: var(--encre); text-decoration: none; font-size: 15px; font-weight: 600; border-radius: 8px; }
nav.menu a.item:hover { background: var(--glace); color: var(--bleu-acier); }
.sub { display: none; position: absolute; top: 100%; left: 0; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 260px; padding: 8px; }

/* Sous-menus : survol reserve au desktop (sinon :focus-within empeche de replier sur mobile) */
@media (min-width: 981px) {
  nav.menu > div:hover > .sub,
  nav.menu > div:focus-within > .sub { display: block; }
  nav.menu > div > a.item::after { content: "▾"; font-size: .72em; margin-left: 6px; opacity: .55; vertical-align: middle; }
}
.sub a { display: block; padding: 9px 12px; text-decoration: none; color: var(--encre); font-size: 14.5px; border-radius: 7px; }
.sub a:hover { background: var(--glace); }
.btn { display: inline-block; background: var(--cta); color: #fff !important; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: var(--radius); border: 0; cursor: pointer; font-size: 16px; transition: background .15s, transform .15s; }
.btn:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--bleu-acier) !important; border: 2px solid var(--bleu-acier); }
.btn.ghost:hover { background: var(--glace); }
.btn.big { padding: 16px 30px; font-size: 18px; }
.burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--bleu-nuit); }
.sub-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(115deg, var(--bleu-nuit) 0%, var(--bleu-acier) 60%, var(--bleu-vif) 100%); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 120px, rgba(255,255,255,.035) 120px 121px); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 40px; line-height: 1.18; margin-bottom: 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: #9fd4ff; }
.hero p.lead { font-size: 19px; color: #dcebf7; margin-bottom: 28px; max-width: 560px; }
.hero .points { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; font-size: 16px; }
.hero .points li::before { content: "❄ "; color: #9fd4ff; }
.hero-card { background: var(--blanc); color: var(--encre); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.hero-card h2 { font-size: 20px; color: var(--bleu-nuit); margin-bottom: 6px; }
.hero-card p { font-size: 14.5px; color: var(--gris); margin-bottom: 16px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--glace); }
.kicker { text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; font-weight: 700; color: var(--bleu-vif); margin-bottom: 8px; }
h2.title { font-size: 31px; color: var(--bleu-nuit); margin-bottom: 14px; line-height: 1.25; }
p.sub-title { color: var(--gris); max-width: 700px; margin-bottom: 36px; font-size: 17.5px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--radius); padding: 26px; }
.card h3 { color: var(--bleu-nuit); font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--gris); margin-bottom: 14px; }
.card .temp { display: inline-block; background: var(--glace-2); color: var(--bleu-acier); font-weight: 700; font-size: 13.5px; padding: 4px 12px; border-radius: 100px; margin-bottom: 12px; }
.card a.more { font-weight: 700; text-decoration: none; font-size: 15px; }
.icon { width: 46px; height: 46px; margin-bottom: 14px; }

/* ---------- Images ---------- */
.hero-visual { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 340px; object-fit: cover; }
.media { border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.media img { width: 100%; height: 210px; object-fit: cover; transition: transform .4s; }
.card:hover .media img { transform: scale(1.04); }
.band-img { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.band-img img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
figure.illus { margin: 30px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
figure.illus img { width: 100%; height: 300px; object-fit: cover; }
figure.illus figcaption { background: var(--bleu-nuit); color: #cfe2f2; font-size: 13.5px; padding: 10px 16px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--blanc); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--bleu-vif); box-shadow: 0 3px 14px rgba(11,46,74,.07); }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; background: var(--bleu-nuit); color: #fff; border-radius: 50%; font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 17px; color: var(--bleu-nuit); margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--gris); }

/* ---------- Tableau prix ---------- */
.table-wrap { overflow-x: auto; }
table.prix { width: 100%; border-collapse: collapse; background: var(--blanc); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.prix th { background: var(--bleu-nuit); color: #fff; text-align: left; padding: 14px 18px; font-size: 15px; }
table.prix td { color: var(--encre); padding: 13px 18px; border-bottom: 1px solid var(--ligne); font-size: 15.5px; }
table.prix tr:last-child td { border-bottom: 0; }
table.prix td strong { color: var(--bleu-acier); }

/* ---------- FAQ ---------- */
.faq details { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 20px; color: var(--bleu-nuit); font-size: 16.5px; list-style: none; position: relative; padding-right: 46px; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 24px; color: var(--bleu-vif); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 20px 18px; color: var(--gris); font-size: 15.5px; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: linear-gradient(100deg, var(--bleu-acier), var(--bleu-vif)); border-radius: 16px; color: #fff; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: 27px; margin-bottom: 6px; }
.cta-band p { color: #dcebf7; }

/* ---------- Formulaire devis (simulateur) ---------- */
.devis-box { max-width: 720px; margin: 0 auto; background: var(--blanc); border-radius: 16px; box-shadow: var(--shadow); padding: 34px; scroll-margin-top: 130px; }
.progress { height: 8px; background: var(--glace-2); border-radius: 100px; margin-bottom: 28px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--bleu-vif), var(--cta)); width: 20%; transition: width .3s; }
.f-step { display: none; }
.f-step.on { display: block; animation: fade .25s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.f-step h2 { color: var(--bleu-nuit); font-size: 23px; margin-bottom: 6px; }
.f-step p.help { color: var(--gris); font-size: 15px; margin-bottom: 22px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.choice { border: 2px solid var(--ligne); border-radius: var(--radius); padding: 18px; cursor: pointer; font-weight: 600; font-size: 15.5px; text-align: center; transition: all .15s; background: var(--blanc); color: var(--encre); }
.choice small { display: block; font-weight: 400; color: var(--gris); font-size: 13px; margin-top: 4px; }
.choice:hover { border-color: var(--bleu-vif); }
.choice.sel { border-color: var(--cta); background: #fff4ec; }
.fields { display: grid; gap: 16px; margin-bottom: 26px; }
.fields label { font-weight: 700; font-size: 14.5px; color: var(--bleu-nuit); display: block; margin-bottom: 6px; }
.fields input, .fields select, .fields textarea { width: 100%; padding: 13px 14px; border: 2px solid var(--ligne); border-radius: 8px; font-size: 16px; font-family: inherit; }
.fields input:focus, .fields select:focus, .fields textarea:focus { outline: none; border-color: var(--bleu-vif); }
.f-nav { display: flex; justify-content: space-between; gap: 14px; }
.rgpd { font-size: 12.5px; color: var(--gris); margin-top: 14px; }
.merci { text-align: center; padding: 30px 10px; }
.merci .pic { font-size: 54px; margin-bottom: 12px; }
.merci h2 { color: var(--ok); margin-bottom: 10px; }

/* ---------- Footer ---------- */
footer.site { background: var(--bleu-nuit); color: #b9cfdf; padding: 52px 0 26px; font-size: 14.5px; margin-top: 40px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 34px; }
footer.site h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
footer.site a { color: #b9cfdf; text-decoration: none; display: block; padding: 3px 0; }
footer.site a:hover { color: #fff; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }

/* ---------- Landing Ads (nav réduite) ---------- */
body.landing header.site .nav { justify-content: center; }
body.landing .hero { padding: 46px 0 56px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  /* Bandeau : une seule accroche sur mobile, sur une ligne compacte */
  .topbar { font-size: 11.5px; padding: 6px 0; letter-spacing: .2px; }
  .topbar .container { flex-wrap: nowrap; justify-content: center; gap: 0; padding-left: 14px; padding-right: 14px; }
  .topbar span:not(:first-child) { display: none; }
  .topbar span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero .container, .grid-3, .grid-2, .steps, footer.site .cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 31px; }
  nav.menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--blanc); flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--ligne); box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow-y: auto; }
  nav.menu.open { display: flex; }
  nav.menu > div { position: relative; }
  /* sous-menus repliés par défaut, ouverts par la flèche */
  .sub { position: static; display: none; box-shadow: none; border: 0; border-left: 3px solid var(--glace-2); margin: 0 0 6px 14px; padding: 2px 0 2px 10px; }
  nav.menu > div.open > .sub { display: block; }
  .sub-toggle { display: block; position: absolute; right: 2px; top: 0; width: 48px; height: 44px; background: none; border: 0; font-size: 17px; line-height: 1; color: var(--bleu-acier); cursor: pointer; transition: transform .2s; }
  nav.menu > div.open > .sub-toggle { transform: rotate(180deg); }
  nav.menu a.item { padding-right: 54px; }
  nav.menu > a.btn { margin-top: 8px; text-align: center; }
  .burger { display: block; }
  .choices { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}
