/* ============================================================
   Home Elec — carte de visite virtuelle (/carte)
   Autonome : n'utilise pas site.css (page sans en-tête ni nav).
   ============================================================ */

:root{
  --navy:#1E3A5F;
  --navy-d:#162C48;
  --teal:#0E7C7B;
  --teal-d:#0B6362;
  --bg:#EEF2F6;
  --muted:#5B6470;
  --line:#E3E9F0;
  --rayon:22px;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--navy);
  background:var(--bg);
  background-image:
    radial-gradient(1100px 520px at 50% -180px, rgba(14,124,123,.16), transparent 70%),
    radial-gradient(900px 480px at 100% 110%, rgba(30,58,95,.10), transparent 70%);
  background-attachment:fixed;
  min-height:100dvh;
  display:flex; flex-direction:column; align-items:center;
  padding:clamp(14px,4vw,40px) clamp(12px,4vw,20px) 48px;
  line-height:1.5;
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------------------------------------------------------- carte */
.carte{
  width:100%; max-width:440px;
  background:#fff;
  border-radius:var(--rayon);
  box-shadow:0 18px 50px rgba(30,58,95,.16), 0 2px 6px rgba(30,58,95,.06);
  overflow:hidden;
}

/* ---------------------------------------------------------- entête */
.entete{
  position:relative;
  padding:26px 22px 74px;
  text-align:center;
  background:linear-gradient(135deg,#0E7C7B 0%,#116E76 42%,#1E3A5F 100%);
}
.entete::after{                      /* filet sarcelle en bas, comme la carte papier */
  content:""; position:absolute; left:0; right:0; bottom:0; height:4px;
  background:var(--teal); z-index:1;
}
.entete .marque{
  width:210px; max-width:64%; height:auto; display:block; margin:0 auto;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.18));
}

.portrait{
  position:absolute; left:50%; bottom:-56px; transform:translateX(-50%); z-index:2;
  width:118px; height:118px; border-radius:50%;
  border:5px solid #fff; background:#fff;
  box-shadow:0 8px 22px rgba(30,58,95,.22);
  object-fit:cover;
}

/* ---------------------------------------------------------- identité */
.identite{ padding:70px 24px 4px; text-align:center; }
.identite h1{
  font-family:'Manrope',system-ui,sans-serif;
  font-weight:800; font-size:1.72rem; letter-spacing:-.02em; line-height:1.15;
}
.trait{ width:56px; height:4px; border-radius:2px; background:var(--teal); margin:12px auto 13px; }
.role{ font-weight:600; font-size:1rem; }
.role b{ color:var(--teal); font-weight:700; }

.specialites{ list-style:none; margin:16px 0 0; display:flex; flex-direction:column; gap:8px; }
.specialites li{
  display:flex; align-items:center; gap:10px;
  font-size:.9rem; color:#33445a; text-align:left;
  background:#F5F8FA; border:1px solid var(--line); border-radius:12px;
  padding:9px 13px;
}
.specialites svg{ flex:0 0 auto; width:18px; height:18px; color:var(--teal); }

.zone{
  display:flex; align-items:center; justify-content:center; gap:7px;
  margin:14px 0 0; font-size:.85rem; color:var(--muted);
}
.zone svg{ width:15px; height:15px; color:var(--teal); }

/* ---------------------------------------------------------- corps */
.corps{ padding:22px 24px 26px; }

/* bouton principal */
.btn-contact{
  display:flex; align-items:center; justify-content:center; gap:11px;
  width:100%; padding:17px 18px;
  background:linear-gradient(135deg,var(--teal) 0%,#0a6f6e 100%);
  color:#fff; text-decoration:none;
  font-family:'Manrope',system-ui,sans-serif; font-weight:800; font-size:1.06rem;
  border-radius:15px;
  box-shadow:0 8px 20px rgba(14,124,123,.32);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-contact svg{ width:23px; height:23px; }
.btn-contact:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(14,124,123,.4); }
.btn-contact:active{ transform:translateY(0); filter:brightness(.95); }
.aide{ margin:9px 0 0; text-align:center; font-size:.76rem; color:var(--muted); }

/* grille d'actions */
.actions{
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px;
  margin-top:20px;
}
.action{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px;
  padding:14px 8px;
  background:#fff; border:1px solid var(--line); border-radius:14px;
  text-decoration:none; color:var(--navy);
  font-weight:600; font-size:.86rem;
  box-shadow:0 1px 3px rgba(30,58,95,.05);
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.action svg{ width:22px; height:22px; color:var(--teal); }
.action:hover{ transform:translateY(-2px); border-color:var(--teal); box-shadow:0 8px 18px rgba(30,58,95,.1); }
.action small{ display:block; font-weight:500; font-size:.72rem; color:var(--muted); }

/* liens secondaires */
.liens{ margin-top:20px; display:flex; flex-direction:column; gap:10px; }
.lien{
  display:flex; align-items:center; gap:14px;
  padding:13px 15px;
  background:#F7F9FB; border:1px solid var(--line); border-radius:14px;
  text-decoration:none; color:var(--navy);
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
}
.lien:hover{ transform:translateY(-2px); border-color:var(--teal); background:#fff; }
.lien .ico{
  flex:0 0 auto; width:38px; height:38px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  background:var(--navy); color:#fff;
}
.lien .ico svg{ width:20px; height:20px; }
.lien .ico.ig{ background:linear-gradient(45deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5); }
.ico.fb{ background:#1877F2; }
.lien .ico.teal{ background:var(--teal); }
.lien .txt{ display:flex; flex-direction:column; line-height:1.25; }
.lien .txt b{ font-family:'Manrope',system-ui,sans-serif; font-weight:700; font-size:.96rem; }
.lien .txt span{ font-size:.78rem; color:var(--muted); }
.lien .fleche{ margin-left:auto; color:#C2CDD9; font-size:1.2rem; line-height:1; }

/* ---------------------------------------------------------- QR */
.bloc-qr{
  margin-top:22px; padding:16px;
  background:#F7F9FB; border:1px solid var(--line); border-radius:16px;
  display:flex; align-items:center; gap:14px;
}
.bloc-qr img{ width:96px; height:96px; border-radius:10px; background:#fff; }
.bloc-qr .txt b{ display:block; font-family:'Manrope',system-ui,sans-serif; font-weight:700; font-size:.95rem; }
.bloc-qr .txt p{ margin:5px 0 10px; font-size:.79rem; color:var(--muted); }
.btn-fin{
  display:inline-flex; align-items:center; gap:7px; white-space:nowrap;
  padding:9px 14px; border-radius:11px;
  border:1px solid var(--line); background:#fff; color:var(--navy);
  font-family:inherit; font-weight:600; font-size:.81rem; cursor:pointer;
  transition:border-color .15s ease, transform .15s ease;
}
.btn-fin:hover{ border-color:var(--teal); transform:translateY(-1px); }
.btn-fin svg{ width:15px; height:15px; color:var(--teal); }
.btn-partage{ width:100%; justify-content:center; margin-top:12px; padding:13px; font-size:.9rem; }

/* ---------------------------------------------------------- pied */
.pied{
  width:100%; max-width:440px;
  margin-top:20px; text-align:center;
  font-size:.75rem; color:var(--muted); line-height:1.7;
}
.pied a{ color:var(--muted); }
.pied a:hover{ color:var(--teal); }

/* ---------------------------------------------------------- QR plein écran */
.plein{
  position:fixed; inset:0; z-index:50;
  background:#fff;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px;
  padding:24px;
}
.plein[hidden]{ display:none; }
.plein img{ width:min(78vw,78vh,420px); height:auto; }
.plein p{ font-family:'Manrope',system-ui,sans-serif; font-weight:700; color:var(--navy); text-align:center; }
.plein small{ display:block; font-family:'Inter',sans-serif; font-weight:400; font-size:.8rem; color:var(--muted); margin-top:6px; }

/* ---------------------------------------------------------- toast */
.toast{
  position:fixed; left:50%; bottom:26px; transform:translate(-50%,14px);
  background:var(--navy); color:#fff;
  padding:11px 18px; border-radius:12px; font-size:.86rem; font-weight:600;
  box-shadow:0 10px 26px rgba(30,58,95,.3);
  opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease;
  z-index:60;
}
.toast.vu{ opacity:1; transform:translate(-50%,0); }

/* ---------------------------------------------------------- divers */
a:focus-visible, button:focus-visible{ outline:3px solid var(--teal); outline-offset:2px; border-radius:8px; }

@media (min-width:380px){
  .actions{ grid-template-columns:repeat(4,1fr); }
  .action{ padding:13px 4px; font-size:.79rem; }
  .action small{ display:none; }
}

@media (prefers-reduced-motion:reduce){
  *{ transition:none !important; }
}

@media print{
  body{ background:#fff; padding:0; }
  .carte{ box-shadow:none; border:1px solid var(--line); }
  .btn-fin,.btn-partage,.actions,.liens{ display:none; }
}
