/* ActAdmin — style premium chaleureux (2025) */
:root{
  --bg0:#fff7f1;
  --bg1:#fff0e4;
  --card:#ffffffcc;
  --cardSolid:#ffffff;
  --ink:#1f2937;
  --muted:#5b6472;
  --line:rgba(31,41,55,.10);
  --shadow: 0 18px 50px rgba(31,41,55,.12);
  --shadow2: 0 10px 28px rgba(31,41,55,.10);
  --shadow3: 0 6px 16px rgba(31,41,55,.10);
  --accent:#f59e0b; /* ambre */
  --accent2:#fb923c; /* orange */
  --accent3:#f472b6; /* rose doux */
  --good:#10b981;
  --radius:18px;
  --radius2:26px;
  --max:1120px;
  --headerH:72px;
  --focus: 0 0 0 4px rgba(245,158,11,.28);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(251,146,60,.22), transparent 60%),
    radial-gradient(900px 520px at 80% -20%, rgba(244,114,182,.18), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height:100dvh;
  line-height:1.55;
}

a{color:inherit}
img,svg{max-width:100%; display:block}

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  height:var(--headerH);
  backdrop-filter:saturate(1.2) blur(12px);
  background:rgba(255,255,255,.66);
  border-bottom:1px solid var(--line);
}

.header-inner{
  height:100%;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:16px;
}

.brand{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-width:0;
}
.brand-mark{
  width:34px; height:34px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(245,158,11,.95), rgba(251,146,60,.95));
  box-shadow: 0 10px 26px rgba(245,158,11,.22);
  display:grid; place-items:center;
  flex:0 0 auto;
}
.brand-mark svg{width:18px;height:18px; color:#fff}
.brand-text{min-width:0}
.brand-name{
  font-weight:800;
  letter-spacing:.2px;
  font-size:18px;
  line-height:1.1;
  margin:0;
}
.brand-sub{
  margin:3px 0 0;
  font-size:12.5px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nav{
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:center;
}
.nav a{
  font-size:13.5px;
  padding:10px 12px;
  border-radius:999px;
  text-decoration:none;
  color:rgba(31,41,55,.84);
}
.nav a:hover{background:rgba(245,158,11,.12)}
.nav a[aria-current="page"]{
  background:rgba(245,158,11,.18);
  color:rgba(31,41,55,.92);
}

.header-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.phone{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(245,158,11,.26);
  box-shadow: var(--shadow3);
}
.phone svg{width:18px;height:18px; color:rgba(31,41,55,.82)}
.phone span{
  font-weight:700;
  letter-spacing:.2px;
  font-size:13.5px;
}
.burger{
  display:none;
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.78);
  box-shadow: var(--shadow3);
}
.burger svg{margin:auto; width:18px;height:18px; color:rgba(31,41,55,.82)}
.burger:focus{outline:none; box-shadow: var(--shadow3), var(--focus)}

/* Mobile dropdown */
.mobile-menu{
  display:none;
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:calc(var(--headerH) - 4px);
  width:min(var(--max), calc(100% - 24px));
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:10px;
}
.mobile-menu a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:rgba(31,41,55,.88);
  font-weight:650;
}
.mobile-menu a:hover{background:rgba(245,158,11,.12)}
.mobile-menu .small{
  font-size:12px; color:var(--muted); font-weight:600;
}

/* Main */
main{padding:42px 0 70px}
.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:start;
}
.hero h1{
  margin:0 0 10px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height:1.06;
  letter-spacing:-.6px;
}
.hero p.lead{
  margin:0 0 18px;
  color:rgba(31,41,55,.82);
  font-size: clamp(15.5px, 1.25vw, 18px);
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:rgba(31,41,55,.78);
  background:rgba(255,255,255,.62);
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:999px;
  box-shadow: var(--shadow3);
}
.kicker svg{width:16px;height:16px; color:rgba(245,158,11,.95)}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.78);
  box-shadow: var(--shadow3);
  text-decoration:none;
  font-weight:750;
  font-size:13.5px;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary{
  border:1px solid rgba(245,158,11,.35);
  background: linear-gradient(135deg, rgba(245,158,11,.92), rgba(251,146,60,.92));
  color:#fff;
  box-shadow: 0 16px 40px rgba(245,158,11,.22);
}
.btn svg{width:18px;height:18px}

.section{margin-top:34px}
.section h2{
  margin:0 0 14px;
  font-size: clamp(20px, 2.1vw, 28px);
  letter-spacing:-.3px;
}
.section p{margin:0 0 12px; color:rgba(31,41,55,.82)}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  background:rgba(255,255,255,.74);
  border:1px solid var(--line);
  border-radius:var(--radius2);
  box-shadow: var(--shadow2);
  padding:18px;
  overflow:hidden;
}
.card h3{
  margin:0 0 10px;
  font-size:16.5px;
  letter-spacing:-.15px;
  text-align:center;
}
.card p{margin:0; color:rgba(31,41,55,.80)}
.card ul{margin:12px 0 0; padding-left:18px; color:rgba(31,41,55,.82)}
.card li{margin:6px 0}

.split{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap:18px;
  align-items:start;
}
.panel{
  background:rgba(255,255,255,.68);
  border:1px solid var(--line);
  border-radius:var(--radius2);
  box-shadow: var(--shadow2);
  padding:18px;
}
.panel h3{margin:0 0 10px; font-size:16.5px; text-align:center}
.panel .note{
  margin-top:12px;
  border-top:1px dashed rgba(31,41,55,.14);
  padding-top:12px;
  color:rgba(31,41,55,.78);
  font-size:13px;
}

/* Form area (skeleton) */
.form-wrap{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(245,158,11,.25);
  border-radius:var(--radius2);
  box-shadow: var(--shadow);
  padding:18px;
}
.form-title{
  margin:0 0 10px;
  font-size:16px;
  letter-spacing:-.2px;
  text-align:center;
}
.form-sub{margin:0 0 14px; color:rgba(31,41,55,.78); font-size:13px; text-align:center}
.form-shell{
  min-height:420px; /* réserve pour limiter le CLS */
}
.skel{
  display:grid;
  gap:10px;
}
.skel label{font-size:12.5px; color:rgba(31,41,55,.76); font-weight:650}
.skel input, .skel textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(31,41,55,.16);
  background:rgba(255,255,255,.6);
  color:rgba(31,41,55,.82);
}
.skel textarea{min-height:110px; resize:vertical}
.skel button{
  margin-top:6px;
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(245,158,11,.35);
  background: linear-gradient(135deg, rgba(245,158,11,.90), rgba(251,146,60,.90));
  color:#fff;
  font-weight:800;
  cursor:not-allowed;
  opacity:.75;
}
.form-meta{
  margin-top:10px;
  color:rgba(31,41,55,.72);
  font-size:12.5px;
  text-align:center;
}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.60);
  padding:26px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:16px;
}
.footer h4{margin:0 0 10px; font-size:13.5px; letter-spacing:-.15px}
.footer a{color:rgba(31,41,55,.78); text-decoration:none}
.footer a:hover{color:rgba(31,41,55,.92); text-decoration:underline}
.footer p{margin:0; color:rgba(31,41,55,.74); font-size:13px}
.footer small{color:rgba(31,41,55,.62)}

/* Floating email button */
.fab{
  position:fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
}
.fab button{
  width:54px;height:54px;
  border-radius:18px;
  border:1px solid rgba(245,158,11,.35);
  background: linear-gradient(135deg, rgba(245,158,11,.92), rgba(251,146,60,.92));
  box-shadow: 0 16px 42px rgba(245,158,11,.26);
  cursor:pointer;
}
.fab button svg{width:22px;height:22px; color:#fff; margin:auto}
.fab button:focus{outline:none; box-shadow: 0 16px 42px rgba(245,158,11,.26), var(--focus)}
.fab .hint{
  display:none;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.86);
  border:1px solid var(--line);
  box-shadow: var(--shadow3);
  color:rgba(31,41,55,.80);
  font-weight:650;
  font-size:12.5px;
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  z-index:80;
  display:none;
}
.modal.open{display:block}
.modal-backdrop{
  position:absolute; inset:0;
  background:rgba(17,24,39,.42);
  backdrop-filter: blur(2px);
}
.modal-panel{
  position:relative;
  width:min(860px, calc(100% - 22px));
  margin: max(14px, env(safe-area-inset-top)) auto 0;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.44);
  border-radius:26px;
  box-shadow: 0 26px 80px rgba(17,24,39,.28);
  overflow:hidden;
}
.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(31,41,55,.10);
}
.modal-head strong{font-size:14px; letter-spacing:-.1px}
.modal-close{
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid rgba(31,41,55,.12);
  background:rgba(255,255,255,.70);
  cursor:pointer;
}
.modal-close svg{width:18px;height:18px; margin:auto; color:rgba(31,41,55,.82)}
.modal-body{padding:14px}

.modal-body .form-wrap{box-shadow:none; border:1px solid rgba(31,41,55,.10)}

/* Consent bar */
.consent{
  position:fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index:70;
  width:min(520px, calc(100% - 24px));
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow: var(--shadow);
  padding:14px;
  display:none;
}
.consent.show{display:block}
.consent p{
  margin:0 0 10px;
  font-size:12.5px;
  color:rgba(31,41,55,.78);
}
.consent .row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.consent .row button{
  flex:1 1 160px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.76);
  font-weight:800;
  cursor:pointer;
}
.consent .row button.primary{
  border:1px solid rgba(245,158,11,.35);
  background: linear-gradient(135deg, rgba(245,158,11,.92), rgba(251,146,60,.92));
  color:#fff;
}
.consent a{color:rgba(31,41,55,.82)}

/* Typography helpers */
.muted{color:rgba(31,41,55,.72)}
.small{font-size:13px}
.hr{
  height:1px;
  background:rgba(31,41,55,.10);
  margin:18px 0;
}

/* Responsive */
@media (max-width: 980px){
  .grid{grid-template-columns: 1fr}
  .split{grid-template-columns: 1fr}
  .hero{grid-template-columns: 1fr; gap:18px}
  .footer-grid{grid-template-columns: 1fr}
  .fab .hint{display:block}
}
@media (max-width: 900px){
  .nav{display:none}
  .burger{display:inline-grid}
  .header-inner{grid-template-columns: 1fr auto 1fr}
}
@media (max-width: 520px){
  :root{--headerH:66px}
  main{padding:30px 0 64px}
  .brand-sub{display:none}
  .phone span{font-size:13px}
  .phone{padding:10px 12px}
  .fab .hint{display:none}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .btn:hover{transform:none}
}
