
/* ============================================================
   IDEAL WEB — ESPACE PRO V27
   Objectif : tableau de bord simple, fluide et compréhensible.
   Les styles V23 restent chargés pour les composants complexes
   (QR Studio, modales, Google, messages), V27 pilote la façade.
   ============================================================ */

.iw-pro-v27{
  --v27-green:#0b9454;
  --v27-green-dark:#087845;
  --v27-ink:#10231d;
  --v27-muted:#667a72;
  --v27-line:#dce8e1;
  --v27-soft:#f4f8f5;
  --v27-card:#ffffff;
  background:
    radial-gradient(circle at 10% 0,rgba(11,148,84,.055),transparent 24rem),
    #f4f8f5;
}
.iw-pro-v27 .pro-shell{padding-bottom:72px}
.iw-pro-v27 .pro-topbar{backdrop-filter:blur(14px);background:rgba(255,255,255,.93)}
.iw-pro-v27 .pro-dev-chip{background:#ecf7f0;color:#087845;border-color:#d0eadb}

.pro-project-head-v27{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#fff 0%,#f8fcf9 100%);
}
.pro-project-head-v27:after{
  content:"";
  position:absolute;
  width:260px;height:260px;border-radius:50%;
  right:-140px;top:-160px;
  background:rgba(11,148,84,.06);
  pointer-events:none
}
.pro-project-copy,.pro-head-actions{position:relative;z-index:1}
.pro-head-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}

.pro-quick-nav{
  position:sticky;
  top:68px;
  z-index:25;
  display:flex;
  gap:6px;
  overflow:auto;
  padding:8px;
  margin:0 0 18px;
  border:1px solid var(--v27-line);
  border-radius:15px;
  background:rgba(255,255,255,.94);
  box-shadow:0 8px 26px rgba(22,54,41,.06);
  backdrop-filter:blur(12px);
  scrollbar-width:none
}
.pro-quick-nav::-webkit-scrollbar{display:none}
.pro-quick-nav a{
  flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;
  padding:0 15px;
  border-radius:10px;
  color:#40564d;
  text-decoration:none;
  font-size:10px;
  font-weight:900;
  transition:.16s ease
}
.pro-quick-nav a:hover,.pro-quick-nav a:focus-visible{
  background:#eaf7ef;color:#087845;outline:none
}

.pro-section-intro{
  margin:5px 0 0;
  color:var(--v27-muted);
  font-size:11px;
  line-height:1.55
}

.iw-pro-v27 .pro-today{
  background:linear-gradient(145deg,#102d23,#173d2f);
  color:#fff;
  border-color:#173d2f
}
.iw-pro-v27 .pro-today .pro-kicker,
.iw-pro-v27 .pro-today .pro-section-intro,
.iw-pro-v27 .pro-today .pro-date{color:#b9d2c7}
.iw-pro-v27 .pro-today .pro-metric{
  border-color:rgba(255,255,255,.11);
  background:rgba(255,255,255,.07);
  color:#fff
}
.iw-pro-v27 .pro-today .pro-metric:hover{background:rgba(255,255,255,.11)}
.iw-pro-v27 .pro-today .pro-metric-copy span{color:#d5e6de}
.iw-pro-v27 .pro-today .pro-metric-copy small{color:#9ebcaf}
.iw-pro-v27 .pro-today .pro-metric-arrow{color:#87d7aa}
.pro-metric-icon.requests,.pro-module-icon.requests{background:#e8f7ee;color:#087845}

.requests-module{scroll-margin-top:128px}
.requests-list{display:grid;gap:9px}
.requests-empty{
  display:flex;
  align-items:flex-start;
  gap:13px;
  padding:18px;
  border:1px dashed #cfdfd6;
  border-radius:15px;
  background:#fbfdfc
}
.requests-empty[hidden]{display:none}
.requests-empty-icon{
  width:42px;height:42px;flex:0 0 auto;
  display:grid;place-items:center;
  border-radius:13px;
  background:#e8f7ee;
  font-size:18px
}
.requests-empty strong{display:block;font-size:12px;color:#17342a}
.requests-empty p{margin:5px 0 0;color:var(--v27-muted);font-size:10px;line-height:1.5}
.client-request{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:14px 15px;
  border:1px solid var(--v27-line);
  border-radius:14px;
  background:#fff
}
.client-request.is-done{opacity:.68;background:#f8faf9}
.client-request-main strong{display:block;font-size:12px}
.client-request-main span{display:block;margin-top:3px;color:var(--v27-muted);font-size:9px}
.client-request-main p{margin:7px 0 0;color:#334b41;font-size:10px;line-height:1.48}
.client-request-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.client-request-actions a,.client-request-actions button{
  min-height:32px;padding:0 9px;border-radius:9px;
  border:1px solid #d8e5de;background:#fff;color:#183a2d;
  font-size:8px;font-weight:900;text-decoration:none;cursor:pointer
}
.client-request-actions .is-primary{background:#087845;border-color:#0b9454;color:#fff;}

#presence,#messages,#testPresence,#myTools{scroll-margin-top:128px}

.test-presence-module{
  background:linear-gradient(180deg,#fff,#f9fcfa)
}
.test-presence-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}
.test-presence-card{
  min-height:250px;
  display:flex;
  flex-direction:column;
  padding:20px;
  border:1px solid var(--v27-line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(20,51,39,.045)
}
.test-presence-icon{
  width:48px;height:48px;display:grid;place-items:center;
  border-radius:15px;background:#edf8f1;font-size:21px;margin-bottom:15px
}
.test-presence-card h3{margin:5px 0 0;font-size:20px;letter-spacing:-.025em;color:#143127}
.test-presence-card p{margin:8px 0;color:var(--v27-muted);font-size:10px;line-height:1.55}
.test-presence-card small{display:block;margin-top:4px;color:#83948d;font-size:8px;line-height:1.45}
.test-presence-card .pro-button{margin-top:auto;align-self:flex-start}

.iw-pro-v27 .visibility-score-copy>span{color:#6f837a}
.iw-pro-v27 .visibility-breakdown span{font-size:8px}
.iw-pro-v27 .visibility-tool{min-height:88px}

.pro-tools-section{margin-top:18px}
.pro-tools-grid{margin-top:0}
.iw-pro-v27 .site-module,.iw-pro-v27 .project-module{height:100%}
.iw-pro-v27 .pro-settings-link{
  margin-top:10px;
  background:transparent;
  border:0;
  color:#61766d;
  font-size:10px;
  font-weight:850;
  text-decoration:underline;
  text-underline-offset:3px
}

/* Vocabulaire client : masque les reliquats techniques éventuels. */
.is-technical{display:none!important}

/* Mail : le client voit d'abord le sens, pas le fournisseur technique. */
.iw-pro-v27 .mail-pilot-bar{
  border-radius:14px;
  background:#f8fbf9;
  border-color:#dce8e1
}
.iw-pro-v27 .mail-real-chip{display:none}
.iw-pro-v27 .mail-provider-dot{background:#0b9454}
.iw-pro-v27 .pro-local-note{color:#72877e}

/* Aucune fausse promesse visuelle : les boutons indisponibles restent explicites. */
.iw-pro-v27 button:disabled{
  opacity:.55;
  cursor:not-allowed
}

/* Mobile */
@media(max-width:850px){
  .test-presence-grid{grid-template-columns:1fr}
  .pro-quick-nav{top:61px}
}
@media(max-width:720px){
  .pro-project-head-v27 .pro-head-actions{width:100%}
  .pro-project-head-v27 .pro-head-actions .pro-button{flex:1 1 180px}
  .client-request{grid-template-columns:1fr}
  .client-request-actions{justify-content:flex-start}
}
@media(max-width:480px){
  .pro-quick-nav{margin-left:-2px;margin-right:-2px}
  .pro-quick-nav a{padding:0 12px}
  .test-presence-card{min-height:220px;padding:17px}
  .test-presence-card .pro-button{width:100%}
}


/* Stripe TEST Plan Overlay V8 — simulation visuelle uniquement, aucun droit réel. */
.stripe-test-plan-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:16px 18px;border:1px solid rgba(190,125,0,.28);border-radius:18px;background:linear-gradient(135deg,#fffaf0,#f7fff9);box-shadow:0 12px 34px rgba(19,74,49,.08)}
.stripe-test-plan-banner[hidden]{display:none!important}.stripe-test-plan-banner-copy{display:grid;gap:4px}.stripe-test-plan-kicker{font-size:11px;font-weight:900;letter-spacing:.12em;color:#8a5a00}.stripe-test-plan-banner strong{font-size:18px;color:#0e3324}.stripe-test-plan-banner p{margin:0;max-width:860px;color:#55675f;line-height:1.5}.stripe-test-plan-exit{flex:none;border:1px solid #cbded4;background:#fff;color:#174936;border-radius:12px;padding:11px 14px;font-weight:800;cursor:pointer}.stripe-test-plan-exit:hover{background:#f3faf6}html[data-iw-stripe-test-plan] .client-billing-badge{border-color:#efcf88;background:#fff7df;color:#805300}@media(max-width:760px){.stripe-test-plan-banner{align-items:flex-start;flex-direction:column}.stripe-test-plan-exit{width:100%}}


/* V15.2 PRE-GOLD — bannière de simulation compacte sur mobile */
@media(max-width:680px){
  .stripe-test-plan-banner{gap:9px;margin-bottom:11px;padding:11px 12px;border-radius:14px}
  .stripe-test-plan-banner-copy{gap:2px}
  .stripe-test-plan-kicker{font-size:8px;letter-spacing:.08em}
  .stripe-test-plan-banner strong{font-size:14px;line-height:1.2}
  .stripe-test-plan-banner p{font-size:9px;line-height:1.4}
  .stripe-test-plan-exit{min-height:36px;padding:7px 10px;font-size:9px}
}
