/*
Theme Name: RF Consulting
Theme URI: https://rf-consulting.ch
Author: Lincensing Invest SA
Description: Thème WordPress one-page pour RF Consulting — conseil en informatique industrielle & IoT. Page de présentation + formulaire de contact intégré (envoi via wp_mail, sans plugin requis).
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Usage privé
Text Domain: rfconsulting
*/

:root{
  --navy:#0E2A4A;
  --navy-2:#173B63;
  --gold:#C9973E;
  --gold-soft:#FBF3E4;
  --silver:#9AA3AD;
  --ink:#17232E;
  --gray:#5B6B7A;
  --bg:#F7F8FA;
  --white:#FFFFFF;
  --line:#E5E8EC;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'IBM Plex Sans', Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}
h1,h2,h3{
  font-family:'Space Grotesk','IBM Plex Sans',Arial,sans-serif;
  color:var(--navy);
  font-weight:700;
  line-height:1.15;
}
.mono{ font-family:'IBM Plex Mono','Courier New',monospace; letter-spacing:2px; text-transform:uppercase; }
a{ color:inherit; text-decoration:none; }
.container{ max-width:1120px; margin:0 auto; padding:0 32px; }
img{ max-width:100%; display:block; }
ul{ list-style:none; }

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(247,248,250,0.94);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav-wrap{ position:relative; display:flex; align-items:center; justify-content:space-between; padding:14px 32px; max-width:1120px; margin:0 auto; gap:24px;}
.brand{ display:flex; align-items:center; }
.brand img, .brand-logo-img{ height:56px; width:auto; }
.main-nav ul{ display:flex; gap:36px; }
.main-nav a{ font-size:14.5px; font-weight:500; color:var(--ink); transition:color .2s; }
.main-nav a:hover{ color:var(--gold); }
.nav-cta{
  background:var(--navy); color:#fff !important; padding:10px 20px; border-radius:6px;
  font-size:14px; font-weight:600; white-space:nowrap;
}
.nav-cta:hover{ background:var(--navy-2); }
.lang-switch{ display:flex; align-items:center; gap:6px; font-size:13.5px; font-weight:600; color:var(--silver); }
.lang-switch a{ color:var(--gray); padding:2px 3px; }
.lang-switch a.is-active{ color:var(--navy); }
.lang-switch a:hover{ color:var(--gold); }
.lang-switch span{ color:var(--line); }
.menu-toggle{ display:none; background:none; border:none; cursor:pointer; }
.menu-toggle span{ display:block; width:24px; height:2px; background:var(--navy); margin:5px 0; }

/* Hero */
.hero{
  position:relative;
  padding:100px 0 90px;
  overflow:hidden;
  background:var(--navy);
  color:#fff;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 82% 20%, rgba(201,151,62,0.20), transparent 45%);
}
.hero-inner{ position:relative; display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center; }
.eyebrow{ font-size:12.5px; font-family:'IBM Plex Mono',monospace; letter-spacing:2px; text-transform:uppercase; color:var(--gold); font-weight:600; margin-bottom:18px; display:block;}
.hero h1{ color:#fff; font-size:44px; max-width:560px; margin-bottom:22px; }
.hero h1 span{ color:var(--gold); }
.hero p{ color:#C8D2DC; font-size:17px; max-width:480px; margin-bottom:34px; }
.btn-row{ display:flex; gap:16px; flex-wrap:wrap; }
.btn-primary{
  background:var(--gold); color:var(--navy); padding:14px 28px; border-radius:6px;
  font-weight:700; font-size:14.5px; display:inline-block; transition:transform .15s, box-shadow .15s;
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(201,151,62,0.30); }
.btn-ghost{
  border:1px solid rgba(255,255,255,0.3); color:#fff; padding:14px 28px; border-radius:6px;
  font-weight:600; font-size:14.5px; display:inline-block;
}
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); }

.signal-wrap{ position:relative; height:320px; display:flex; align-items:center; justify-content:center; }
.signal-svg{ width:100%; height:100%; }
.signal-arc{ fill:none; stroke:var(--gold); stroke-width:1.5; opacity:0.5; }

/* Stats strip */
.stats{ background:var(--white); border-bottom:1px solid var(--line); }
.stats-inner{ display:grid; grid-template-columns:repeat(4,1fr); padding:36px 0; }
.stat{ text-align:center; border-right:1px solid var(--line); }
.stat:last-child{ border-right:none; }
.stat .num{ font-family:'Space Grotesk',sans-serif; font-size:32px; font-weight:700; color:var(--navy); }
.stat .label{ font-size:12.5px; color:var(--gray); margin-top:6px; }

/* Sections */
section{ padding:96px 0; }
.section-head{ max-width:620px; margin-bottom:56px; }
.section-head h2{ font-size:32px; margin-top:14px; }
.section-head p{ color:var(--gray); margin-top:14px; font-size:16px; }

/* Cards */
.services-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.service-card{
  background:var(--white); border:1px solid var(--line); border-radius:12px; padding:32px;
  transition:border-color .2s, transform .2s;
}
.service-card:hover{ border-color:var(--gold); transform:translateY(-3px); }
.service-icon{ width:46px; height:46px; border-radius:10px; background:var(--gold-soft); display:flex; align-items:center; justify-content:center; margin-bottom:20px; }
.service-card h3{ font-size:19px; margin-bottom:10px; }
.service-card p{ color:var(--gray); font-size:14.5px; }

/* About */
.about{ background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.about-inner{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:64px; align-items:start; }
.about-inner h2{ font-size:30px; margin-bottom:20px; }
.about-inner .lead{ color:var(--gray); font-size:16px; }
.timeline{ border-left:2px solid var(--line); padding-left:28px; display:flex; flex-direction:column; gap:28px; }
.timeline-item .period{ font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--gold); letter-spacing:1px; }
.timeline-item h4{ font-size:16.5px; color:var(--navy); margin:6px 0 6px; }
.timeline-item p{ color:var(--gray); font-size:14.5px; }

/* Contact */
.contact{ background:var(--navy); color:#fff; }
.contact-inner{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:64px; }
.contact .section-head h2{ color:#fff; }
.contact .section-head p{ color:#C8D2DC; }
.contact-info-item{ display:flex; gap:16px; margin-bottom:26px; }
.contact-info-item .ico{ width:38px; height:38px; border-radius:8px; background:rgba(201,151,62,0.18); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--gold); font-weight:700; font-size:14px; }
.contact-info-item h4{ font-size:14.5px; color:#fff; margin-bottom:4px; }
.contact-info-item p{ color:#AEB9C4; font-size:14px; }

form{ background:var(--white); border-radius:14px; padding:36px; color:var(--ink); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.field{ display:flex; flex-direction:column; gap:7px; }
.field.full{ grid-column:1 / -1; }
label{ font-size:13px; font-weight:600; color:var(--navy); }
input, textarea{
  border:1px solid var(--line); border-radius:7px; padding:12px 14px; font-size:14.5px;
  font-family:inherit; color:var(--ink); background:var(--bg); width:100%;
}
input:focus, textarea:focus{ outline:none; border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-soft); }
textarea{ resize:vertical; min-height:110px; }
.submit-btn{
  width:100%; background:var(--navy); color:#fff; border:none; padding:15px; border-radius:7px;
  font-weight:700; font-size:15px; cursor:pointer; transition:background .2s;
}
.submit-btn:hover{ background:var(--navy-2); }
.form-note{ font-size:12.5px; color:var(--gray); margin-top:12px; }
.form-alert{ padding:14px; border-radius:8px; font-size:14px; margin-bottom:18px; }
.form-alert.success{ background:var(--gold-soft); border:1px solid var(--gold); color:var(--navy); }
.form-alert.error{ background:#FBEAEA; border:1px solid #D96B6B; color:#7A1F1F; }
.honeypot-field{ position:absolute; left:-9999px; opacity:0; height:0; }

/* Footer */
.site-footer{ background:#0A1E33; color:#8FA0B0; padding:48px 0 28px; font-size:13.5px; }
.footer-inner{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:24px; }
.footer-brand{ color:#fff; font-family:'Space Grotesk',sans-serif; font-weight:700; margin-bottom:6px; }
.footer-nav div{ margin-bottom:6px; }
.footer-legal{ margin-top:24px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.08); font-size:12.5px; color:#5B6B7A; }

@media (max-width:860px){
  .main-nav{ display:none; position:absolute; top:100%; left:0; right:0; background:var(--white); border-bottom:1px solid var(--line); padding:16px 32px;}
  .main-nav.is-open{ display:block; }
  .main-nav ul{ flex-direction:column; gap:16px; }
  .nav-cta{ display:none; }
  .menu-toggle{ display:block; }
  .hero-inner, .about-inner, .contact-inner{ grid-template-columns:1fr; }
  .signal-wrap{ display:none; }
  .stats-inner{ grid-template-columns:repeat(2,1fr); row-gap:24px; }
  .stat:nth-child(2){ border-right:none; }
  .services-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .hero h1{ font-size:32px; }
}
