/* ==========================================================================
   R.O.S.E.S. — home.css
   Page d'accueil : éditorial, atelier professionnel, pas de SaaS.
   Structure : lignes, numéros, colonnes, photographies.
   ========================================================================== */

/* ── HERO ─── composition éditoriale ─────────────────────────────────────── */
.hero {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 580px;
}
@media (max-width:740px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 300px; order: -1; }
}

/* Colonne texte */
.hero-content {
  padding: clamp(44px,5vw,80px) clamp(28px,4vw,64px);
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--c-border);
}
@media (max-width:740px) { .hero-content { border-right: none; border-top: 1px solid var(--c-border); } }

.hero-content .label { margin-bottom: 18px; }

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 13ch;
  color: var(--c-text);
}
.hero-content p.hero-desc {
  font-size: .9rem;
  color: var(--c-text-soft);
  line-height: 1.75;
  margin-bottom: 30px;
  max-width: 44ch;
}
.hero-actions {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.hero-actions .btn-secondary-link {
  font-size: .84rem; color: var(--c-text-soft);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--tr);
}
.hero-actions .btn-secondary-link:hover { color: var(--c-text); }

/* Colonne visuelle — prend toute la hauteur */
.hero-visual {
  position: relative; overflow: hidden;
  background: var(--c-bg-soft);
  min-height: 480px;
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  display: block; position: absolute; inset: 0;
}
.hero-visual-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--c-bg-soft); gap: 10px;
}
.hero-visual-placeholder span { font-size: 3rem; opacity: .3; }
.hero-visual-placeholder p { font-size: .75rem; color: var(--c-text-muted); text-align: center; max-width: 20ch; }

/* ── Bande réassurance ── ligne horizontale sobre ────────────────────────── */
.trust-band {
  border-bottom: 1px solid var(--c-border);
  background: #fff;
  padding: 0;
}
.trust-band-inner {
  display: grid;
  grid-template-columns: repeat(5,1fr);
}
@media (max-width:700px) { .trust-band-inner { grid-template-columns:repeat(2,1fr); } }
@media (max-width:380px) { .trust-band-inner { grid-template-columns:1fr; } }

.trust-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 18px 12px;
  border-right: 1px solid var(--c-border-soft);
  font-size: .76rem; color: var(--c-text-soft);
  line-height: 1.4; gap: 3px;
}
.trust-item:last-child { border-right: none; }
.trust-item strong { font-size: .8rem; color: var(--c-text); font-weight: 600; }

/* ── SERVICES ── section éditoriale, pas de grille de cartes ────────────── */
.services-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width:820px) { .services-layout { grid-template-columns:1fr; gap:32px; } }

.services-intro { position: sticky; top: 80px; }
.services-intro .label { margin-bottom: 14px; }
.services-intro h2 { margin-bottom: 14px; }
.services-intro p { font-size: .88rem; line-height: 1.72; margin-bottom: 20px; }

/* Liste éditoriale des services — séparateurs, numéros */
.services-list { display: flex; flex-direction: column; }
.service-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: start; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border-soft);
  text-decoration: none; color: inherit;
  transition: background var(--tr);
}
.service-item:first-child { border-top: 1px solid var(--c-border-soft); }
.service-item:hover { background: var(--c-bg-soft); margin: 0 -16px; padding: 20px 16px; }
.service-num { font-size: .72rem; font-weight: 700; color: var(--c-text-muted); padding-top: 3px; }
.service-body { }
.service-body h3 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.service-body p { font-size: .83rem; color: var(--c-text-muted); }
.service-arrow { color: var(--c-text-muted); font-size: .8rem; padding-top: 3px; transition: transform var(--tr); }
.service-item:hover .service-arrow { transform: translateX(3px); color: var(--c-text); }

/* ── PUBLICS ── deux colonnes distinctes ─────────────────────────────────── */
.publics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--c-border);
}
@media (max-width:680px) { .publics-grid { grid-template-columns:1fr; } }

.public-col {
  padding: clamp(22px,3.5vw,40px);
}
.public-col:first-child {
  border-right: 1px solid var(--c-border);
  background: #fff;
}
.public-col:last-child {
  background: var(--c-text);
  color: #fff;
}
@media (max-width:680px) {
  .public-col:first-child { border-right: none; border-bottom: 1px solid var(--c-border); }
}

.public-tag {
  display: inline-block;
  font-size: .63rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--c-border);
  color: var(--c-text-muted); margin-bottom: 16px;
}
.public-col:last-child .public-tag {
  border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.5);
}
.public-col h3 { font-size: 1.2rem; margin-bottom: 12px; }
.public-col:last-child h3 { color: #fff; }
.public-col p { font-size: .86rem; line-height: 1.7; margin-bottom: 20px; }
.public-col:last-child p { color: #9ca3af; }
.public-items { display: flex; flex-direction: column; gap: 8px; }
.public-item {
  font-size: .83rem; color: var(--c-text-soft);
  padding: 7px 0;
  border-bottom: 1px solid var(--c-border-soft);
  display: flex; align-items: center; gap: 8px;
}
.public-col:last-child .public-item { color: #9ca3af; border-color: rgba(255,255,255,.08); }
.public-item::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--c-text-muted); flex-shrink: 0;
}
.public-col:last-child .public-item::before { background: rgba(255,255,255,.3); }

/* ── PROCESSUS ── éditorial, pas de cartes ───────────────────────────────── */
.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width:720px) { .process-layout { grid-template-columns:1fr; gap:28px; } }

.process-visual {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--c-text-muted);
  position: relative; overflow: hidden;
}
.process-visual img { width:100%; height:100%; object-fit:cover; display:block; }

.process-steps-v {
  display: flex; flex-direction: column;
  gap: 0;
}
.process-step-v {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 0 0 24px;
  position: relative;
}
/* Ligne verticale de connexion */
.process-step-v:not(:last-child) .ps-num::after {
  content: '';
  position: absolute;
  top: 26px; left: 15px;
  width: 1px; height: calc(100% - 6px);
  background: var(--c-border);
}
.ps-num {
  width: 28px; height: 28px;
  border: 1px solid var(--c-border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--c-text);
  position: relative; z-index: 1; flex-shrink: 0;
}
.ps-body { padding-top: 4px; }
.ps-body h4 { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.ps-body p  { font-size: .8rem; color: var(--c-text-muted); line-height: 1.55; }

/* ── PRODUITS VEDETTES ───────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;                          /* Séparateurs fins à la place des marges */
  background: var(--c-border-soft);  /* Fond visible = séparateurs */
  border: 1px solid var(--c-border-soft);
}
@media (max-width:840px) { .product-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:420px) { .product-grid { grid-template-columns:1fr; } }

.product-card {
  background: #fff;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: background var(--tr);
  /* Pas d'arrondi, pas d'ombre individuelle — les séparateurs font le travail */
}
.product-card:hover { background: var(--c-bg-soft); }
.product-thumb {
  aspect-ratio: 1;
  background: var(--c-bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--c-border-soft);
}
.product-thumb img { width:100%; height:100%; object-fit:contain; padding:16px; }
.product-tag {
  position: absolute; top: 0; left: 0;
  background: var(--c-text); color: #fff;
  font-size: .62rem; font-weight: 700; padding: 3px 8px;
  /* Angles droits */
}
.product-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-categ { font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--c-text-muted); margin-bottom: 5px; }
.product-card-body h3 { font-size: .88rem; font-weight: 600; line-height: 1.3; margin-bottom: 8px; color: var(--c-text); }
.product-price-row { display:flex; align-items:baseline; gap:7px; margin-top: auto; }
.product-price     { font-size: .95rem; font-weight: 700; color: var(--c-text); }
.product-price-old { font-size: .78rem; color: var(--c-text-muted); text-decoration: line-through; }

/* ── CONFIANCE ───────────────────────────────────────────────────────────── */
.confiance-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width:720px) { .confiance-layout { grid-template-columns:1fr; gap:28px; } }

.confiance-list { display: flex; flex-direction: column; gap: 0; margin-top: 20px; }
.confiance-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border-soft);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
}
.confiance-item:first-child { border-top: 1px solid var(--c-border-soft); }
.ci-check { font-size: .7rem; font-weight: 700; color: var(--c-brand); padding-top: 3px; }
.ci-body strong { display: block; font-size: .88rem; color: var(--c-text); margin-bottom: 3px; }
.ci-body span   { font-size: .82rem; color: var(--c-text-soft); line-height: 1.55; }

/* ── CTA FINAL ───────────────────────────────────────────────────────────── */
.cta-final {
  background: var(--c-text); color: #fff;
  padding: clamp(44px,6vw,72px) clamp(24px,5vw,60px);
  /* Pas d'arrondi */
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 14px;
}
.cta-final h2 { color: #fff; font-size: clamp(1.3rem,2.5vw,1.8rem); max-width: 16ch; }
.cta-final p  { color: #9ca3af; max-width: 48ch; font-size: .9rem; }
.cta-actions  { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ── Grille services compacte 3+3 ─────────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  border: 1px solid var(--c-border);
}
@media (max-width:760px) { .svc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:460px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  display: flex; flex-direction: column;
  padding: 22px 22px 18px;
  border-right: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  text-decoration: none; color: inherit;
  background: #fff;
  transition: background var(--tr);
  position: relative;
}
/* Pas de double bordure */
.svc-card:nth-child(3n) { border-right: none; }
.svc-card:nth-child(n+4) { border-bottom: none; }
@media (max-width:760px) {
  .svc-card:nth-child(3n)  { border-right: 1px solid var(--c-border); }
  .svc-card:nth-child(2n)  { border-right: none; }
  .svc-card:nth-child(n+5) { border-bottom: none; }
}
.svc-card:hover { background: var(--c-bg-soft); }
.svc-num {
  font-size: .65rem; font-weight: 700; color: var(--c-text-muted);
  letter-spacing: .08em; margin-bottom: 10px;
}
.svc-body h3 { font-size: .92rem; font-weight: 700; margin-bottom: 5px; color: var(--c-text); }
.svc-body p  { font-size: .8rem; color: var(--c-text-muted); line-height: 1.55; }
.svc-arr {
  margin-top: 14px; font-size: .8rem; color: var(--c-text-muted);
  transition: transform var(--tr), color var(--tr);
}
.svc-card:hover .svc-arr { transform: translateX(3px); color: var(--c-text); }
