/* ==========================================================================
   site.css — additions spécifiques à assurance-remorque-temporaire.fr
   Vient après base.css (tokens + composants génériques repris de Brivon).
   ========================================================================== */

/* ---------- Nav secondaire : identité assurance ------------------------- */
.brand-mark--arf {
  width: 28px; height: 28px;
  border-radius: var(--radius-xs);
  background: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-000);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.brand-logo {
  display: block;
  height: 52px;
  width: 163px;
  max-width: none;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-logo--footer {
  height: 84px;
  width: 263px;
}

.trustpilot-link { margin: 0; }
.trustpilot-link a,
.trustpilot-link a:visited {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
}
.trustpilot-link img {
  display: block;
  width: 112px;
  height: 28px;
  max-width: 100%;
  object-fit: contain;
}
.trustpilot-link-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-line {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}

/* ---------- Bouton devis (déclenche la popup) --------------------------- */
.btn--devis { position: relative; }
.btn--devis .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn--devis:hover .arrow { transform: translateX(3px); }

/* ---------- Popup / modale tunnel de devis ------------------------------ */
.devis-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.devis-modal.is-open { display: block; }
.devis-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(6px);
}
.devis-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 2rem));
  height: min(760px, calc(100vh - 3rem));
  margin: 1.5rem auto;
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.devis-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-elev);
}
.devis-modal-head .label { color: var(--lime); }
.devis-modal-close {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
}
.devis-modal-close:hover { background: var(--lime); color: var(--ink-000); border-color: var(--lime); }
.devis-modal-body { flex: 1; background: var(--paper); }
.devis-modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.devis-modal-fallback {
  padding: var(--space-6);
  color: var(--ink-000);
  font-size: var(--text-sm);
}
.devis-modal-fallback a { color: var(--cobalt); text-decoration: underline; }

@media (max-width: 720px) {
  .devis-modal-panel { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; }
}

/* ---------- Simulateur de durée (accueil) -------------------------------- */
.duree-sim {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-5);
}
.duree-sim-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.duree-chip {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-2);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg-soft);
}
.duree-chip strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); color: var(--fg); text-transform: none; }
.duree-chip--active { border-color: var(--lime); color: var(--fg); background: var(--ink-elev); }

/* ---------- Cartes de branche (accueil → 6 branches du cocon) ----------- */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.branch-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.branch-card:hover { border-color: var(--rule-lime); transform: translateY(-2px); }
.branch-card h3 { font-size: var(--text-xl); }
.branch-card p { color: var(--fg-soft); font-size: var(--text-sm); margin: 0; }
.branch-card .label { margin-top: auto; }
/* Libellé des cartes affiché par la feuille de style : il ne fait pas partie du texte du lien. */
.branch-card .card-more::after { content: "En savoir plus →"; }

/* ---------- Table produit (PTAC / garanties) ----------------------------- */
.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.product-table th, .product-table td {
  text-align: left;
  padding: var(--space-4);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.product-table th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  font-weight: 400;
}
.product-table .ok { color: var(--lime); }
.product-table .no { color: var(--fg-mute); }

/* ---------- Tarifs (grille durée / prix) --------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
}
.price-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
}
.price-card .price-days { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.price-card .price-amount { font-family: var(--font-display); font-size: var(--text-xl); margin-top: var(--space-2); text-transform: none; }
.price-card .price-per-day { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fg-mute); margin-top: var(--space-1); }
.price-card--best { border-color: var(--lime); background: var(--ink-elev); }

/* ---------- FAQ accordéon ------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-transform: none;
  letter-spacing: 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex: none;
  width: 26px; height: 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}
.faq-item[open] summary .faq-icon { background: var(--lime); color: var(--ink-000); border-color: var(--lime); }
.faq-item p { color: var(--fg-soft); padding-bottom: var(--space-5); max-width: 68ch; }

/* ---------- Bandeau réserve / alerte contenu ----------------------------- */
.notice {
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--lime);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--fg-soft);
  background: var(--bg-card);
}

/* ---------- Breadcrumb ---------------------------------------------------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--lime); }

/* ---------- Responsive additions ------------------------------------------ */
@media (max-width: 1100px) {
  .branch-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .branch-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .duree-sim-options { grid-template-columns: 1fr; }
}

/* ---------- Accueil : empilement éditorial, une seule fois ---------------- */
.page-home .hero-stage {
  display: grid;
  gap: var(--space-6);
}
.page-home .hero-stack {
  font-size: clamp(2.15rem, 4.2vw, 4.05rem);
  line-height: 1;
}
.page-home .hero-stack .stack-line {
  display: block;
  line-height: 1.05;
  padding-bottom: 0.72em;
}
.page-home .hero-follow > * + * { margin-top: var(--space-5); }

@media (min-width: 1101px) {
  .page-home .hero-stage {
    grid-template-columns: minmax(0, 1.28fr) minmax(240px, 0.72fr);
    grid-template-areas:
      "copy panel"
      "follow panel";
    column-gap: var(--space-6);
    align-items: end;
  }
  .page-home .hero-copy { grid-area: copy; position: relative; z-index: 1; }
  .page-home .hero-panel {
    grid-area: panel;
    align-self: start;
    position: relative;
    z-index: 2;
    margin-inline-start: -2.25rem;
    margin-block-start: 5.2rem;
    box-shadow: 0 28px 50px -32px rgba(0, 0, 0, 0.72);
  }
  .page-home .hero-follow {
    grid-area: follow;
    position: relative;
    z-index: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .hero-stack {
    animation: stack-settle 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
    --from: 0.35em;
  }
  .page-home .hero-stack .lime {
    display: inline-block;
    animation: lime-settle 620ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
  }
  .page-home .hero-panel {
    animation: panel-settle 820ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
  }
}

@keyframes stack-settle {
  from { transform: translateY(var(--from, 0.5em)); }
  to { transform: none; }
}
@keyframes lime-settle {
  from { transform: translateY(0.28em); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes panel-settle {
  from { transform: translate(22px, 28px); }
  to { transform: none; }
}

.page-home .stack-title > span { display: block; }
html.js .page-home .stack-title:not(.is-in) > span + span {
  transform: translateY(-0.92em);
}
html.js .page-home .stack-title.is-in > span {
  transform: none;
  transition: transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .page-home .branch-fan:not(.is-in) .branch-card {
  transform: translate(calc(var(--i) * -28px), calc(var(--i) * 16px));
}
html.js .page-home .branch-fan.is-in .branch-card {
  transform: none;
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 70ms);
}

@media (max-width: 1100px) {
  .page-home .hero-panel {
    margin: 0;
    animation: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-stack,
  .page-home .hero-stack .lime,
  .page-home .hero-panel,
  .page-home .stack-title > span,
  .page-home .branch-fan .branch-card,
  .page-home .corp-visual img,
  .page-home .corp-note {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ---------- Accueil corporate : courtier, pas affiche -------------------- */
.page-home {
  background: #f4f1ea;
  color: #1c2833;
  --fg: #1c2833;
  --fg-soft: #3d4c58;
  --fg-mute: #5c6b76;
  --lime: #16324f;
  --bg: #f4f1ea;
  --bg-card: #fffdf9;
  --rule: rgba(28, 40, 51, 0.12);
  --rule-strong: rgba(28, 40, 51, 0.22);
}
.page-home .site-header {
  background: rgba(244, 241, 234, 0.94);
  border-bottom-color: rgba(28, 40, 51, 0.1);
}
.page-home .brand,
.page-home .nav-links a,
.page-home .trust-line,
.page-home h1,
.page-home h2,
.page-home h3,
.page-home h4 {
  color: #1c2833;
  font-family: "Inter Tight", system-ui, sans-serif;
  text-transform: none;
  letter-spacing: -0.02em;
}
.page-home .nav-links a { letter-spacing: 0; font-size: 0.92rem; }
.page-home .brand-mark--arf { background: #16324f; color: #f4f1ea; }
.page-home .btn--primary {
  background: #16324f;
  color: #f7f4ee;
  letter-spacing: 0.04em;
}
.page-home .btn--primary:hover { background: #0f2438; }
.page-home .btn--ghost {
  color: #16324f;
  border-color: rgba(22, 50, 79, 0.28);
}
.page-home .site-footer,
.page-home .branch-card,
.page-home .price-card,
.page-home .stat-cell,
.page-home .notice {
  background: #fffdf9;
  color: #1c2833;
  border-color: rgba(28, 40, 51, 0.1);
}
.page-home .branch-card h3,
.page-home .branch-card p,
.page-home .lede,
.page-home .price-card .price-amount,
.page-home .stat-num,
.page-home .stat-label {
  color: #1c2833;
}
.page-home .price-card .price-days,
.page-home .label,
.page-home .eyebrow { color: #5c6b76; }
.page-home .lime,
.page-home .label--lime { color: #16324f; }
.page-home .price-card--best { border-color: #16324f; background: #f7f4ee; }
.page-home .footer-brand p,
.page-home .site-footer a,
.page-home .site-footer h4 { color: #1c2833; }

.page-home .corp-hero { padding-block: 2.75rem 2.5rem; background: #f4f1ea; }
.page-home .corp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 4rem;
  align-items: center;
}
.page-home .corp-kicker {
  margin: 0 0 1rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #16324f;
}
.page-home .corp-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.15;
  font-weight: 600;
  max-width: 14ch;
}
.page-home .corp-lede {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #3d4c58;
}
.page-home .corp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.page-home .corp-facts {
  display: grid;
  gap: 0.55rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  color: #3d4c58;
}
.page-home .corp-facts strong { color: #1c2833; font-weight: 600; }
.page-home .corp-visual {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.page-home .corp-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: #e7e1d6;
  box-shadow: 0 16px 36px rgba(22, 50, 79, 0.1);
}
.page-home .corp-note {
  position: relative;
  width: calc(100% - 1.4rem);
  margin: -1.35rem 0 0 1.4rem;
  padding: 1rem 1.1rem;
  background: #fffdf9;
  border: 1px solid rgba(22, 50, 79, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(22, 50, 79, 0.08);
}
.page-home .corp-note span {
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6b76;
}
.page-home .corp-note strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.35rem;
  color: #16324f;
}
.page-home .corp-note p {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #3d4c58;
}
html.js .page-home .branch-fan .branch-card,
html.js .page-home .branch-fan:not(.is-in) .branch-card,
.page-home .branch-grid {
  transform: none !important;
  overflow: visible;
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .corp-visual img {
    animation: corp-photo 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .page-home .corp-note {
    animation: corp-note 760ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
  }
}
@keyframes corp-photo {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes corp-note {
  from { opacity: 0; transform: translate(10px, 16px); }
  to { opacity: 1; transform: none; }
}
.page-home .center-row {
  align-items: flex-start;
  flex-wrap: wrap;
}
.page-home .center-row .mono,
.page-home .center-row .mono span {
  display: inline;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: normal;
  color: #3d4c58;
}
@media (max-width: 900px) {
  .page-home .corp-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-home .corp-visual { max-width: 340px; }
  .page-home .corp-visual img { max-height: none; width: 100%; height: auto; }
}
.page-home .author-page .corp-copy h1 {
  max-width: 16ch;
}
.page-home .author-page .corp-lede + .corp-lede {
  margin-top: 1rem;
}
.page-home .author-page .notice {
  margin-top: 1.75rem;
}
.page-home .page-title {
  font-size: clamp(1.85rem, 2.2vw + 1rem, 2.55rem);
  line-height: 1.2;
  font-weight: 600;
  max-width: 22em;
}
.page-home .byline-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #16324f;
  color: #f4f1ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  flex: none;
}
.page-home .faq-item summary {
  font-family: "Inter Tight", system-ui, sans-serif;
  color: #1c2833;
}
.page-home .faq-item[open] summary .faq-icon {
  color: #f4f1ea;
}
.page-home .mobile-drawer {
  background: #f4f1ea;
  color: #1c2833;
  font-family: "Inter Tight", system-ui, sans-serif;
  text-transform: none;
  font-size: 1.35rem;
}
.page-home .mobile-drawer a,
.page-home .drawer-close {
  color: #1c2833;
}
.review-note {
  margin: 0.85rem 0 0;
  font-size: 0.625rem;
  line-height: 1.4;
  color: #8b8680;
  letter-spacing: 0.01em;
}
.blog-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.blog-list a {
  color: #16324f;
  font-weight: 600;
}
.article-body {
  max-width: 42rem;
  margin-top: 1.25rem;
  color: #3d4c58;
}
.article-body p { margin: 1rem 0 0; }
.article-author {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28, 40, 51, 0.12);
}
.article-author img {
  width: 160px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #e7e1d6;
}
.article-author-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.article-author-name a { color: #1c2833; }
.article-author-sign {
  margin: 0.45rem 0 0;
  color: #5c6b76;
  font-size: 0.75rem;
}
.article-author p:last-child {
  margin: 0.8rem 0 0;
  color: #3d4c58;
}
@media (max-width: 720px) {
  .article-author { grid-template-columns: 1fr; }
  .article-author img { width: min(100%, 220px); }
  .brand-logo { height: 44px; width: 138px; }
  .brand-logo--footer { height: 72px; width: 226px; }
}
