/* Identité fournie par Planibox et largeur institutionnelle. */
:root { --orange: #e9503d; }
.container { width: min(1280px, calc(100% - 40px)); }
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 46px;
}
.brand-name {
  font-family: "Avenir Next", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .15px;
}
.brand-name strong { color: var(--navy); font-weight: 600; }
.brand-name b { color: var(--orange); font-weight: 600; }
.brand-name small { margin-top: 2px; font-family: Arial, Helvetica, sans-serif; }
.brand-footer .brand-name strong { color: #fff; }
.cards-three { grid-template-columns: repeat(4, 1fr); }
.ruper-hero-visual .hero-mascot {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  max-height: none;
  justify-self: center;
  margin: 0 auto;
 }
.ruper-hero-visual { margin: 18px 0 28px; text-align: center; min-width: 0; }
.ruper-hero-visual figcaption { margin-top: 18px; color: #fff; font: 400 23px/1.3 Georgia, "Times New Roman", serif; }
.mascot-wide { display: block; height: auto; aspect-ratio: 3 / 2; }
.cards-three.ruper-features { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ruper-features > article { grid-column: span 2; }
 
/* Carousel : fondu croisé fluide et premier affichage progressif. */
.carousel-stage { position: relative; }
.product-slide { animation: none; }
.product-slide:first-child { animation: planibox-first-slide 1.2s ease both; }
.product-slide.is-leaving {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
}
@keyframes planibox-first-slide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ruper conserve son univers, dans un slide Planibox clair. */
.ruper-slide {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
}
.ruper-slide .product-copy h2,
.ruper-slide .product-copy h3 { color: var(--navy); }
.ruper-slide .product-copy p { color: var(--muted); }
.ruper-slide .text-link { color: var(--navy); }
.ruper-visual {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.ruper-slide .ruper-maxi {
  width: 72%;
  max-height: 275px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}
.ruper-visual strong {
  color: var(--orange);
  font: 400 24px/1.1 Georgia, "Times New Roman", serif;
}

/* La présentation de Ruper reste lumineuse sur la page des solutions. */
.solution-detail.solution-ruper {
  color: var(--ink);
  border-color: var(--line);
  background: var(--soft);
}
.solution-detail.solution-ruper h2,
.solution-detail.solution-ruper h3 { color: var(--navy); }
.solution-detail.solution-ruper p { color: var(--muted); }
.solution-detail.solution-ruper .text-link { color: var(--navy); }
.solution-detail.solution-ruper img,
.solution-detail.solution-ruper svg.mascot-wide {
  display: block;
  width: min(100%, 280px);
  height: auto;
  max-height: none;
  margin: 0 auto;
  filter: none;
}
.solution-ruper-visual { min-width: 0; margin: 24px 0 0; text-align: center; }
.solution-ruper-visual figcaption { margin-top: 16px; color: var(--orange); font: 400 24px/1.3 Georgia, "Times New Roman", serif; }

/* Aperçu CMS Diabolo : contenu réel plutôt qu'un écran vide. */
.admin-preview {
  width: 95%;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 11px 15px; border-bottom: 1px solid var(--line); font-size: 11px; }
.preview-bar i { width: 7px; height: 7px; border-radius: 50%; background: #dfe5e9; }
.preview-bar i:first-child { background: var(--orange); }
.preview-bar b { margin-left: 8px; color: var(--navy); }
.preview-body { display: grid; grid-template-columns: 125px 1fr; min-height: 225px; }
.preview-menu { display: flex; flex-direction: column; gap: 11px; padding: 22px 16px; background: var(--navy); color: #bcc9d3; font-size: 10px; }
.preview-menu strong { color: #fff; }
.preview-content { padding: 24px; }
.preview-content small,.workflow-preview small { color: var(--orange); font-weight: 700; letter-spacing: 1.3px; }
.preview-content h4,.workflow-preview h4 { margin: 7px 0 18px; color: var(--navy); font: 400 22px Georgia, serif; }
.preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preview-stats span { padding: 12px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 9px; }
.preview-stats b { display: block; color: var(--navy); font-size: 18px; }
.preview-content p { margin-bottom: 0; color: var(--muted); font-size: 10px; }

.workflow-preview { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.workflow-preview > div { display: flex; align-items: stretch; gap: 7px; }
.workflow-preview > div span { flex: 1; padding: 14px 10px; border-radius: 9px; background: var(--soft); color: var(--navy); font-size: 10px; }
.workflow-preview > div b { display: block; margin-bottom: 7px; color: var(--orange); font: 400 18px Georgia, serif; }
.workflow-preview > div i { align-self: center; color: var(--orange); font-style: normal; }
.workflow-preview > p { margin: 18px 0 0; color: var(--muted); font-size: 11px; }

.footer-text-button {
  display: block;
  margin: 8px 0;
  padding: 0;
  border: 0;
  background: none;
  color: #aebac4;
  font-size: 12px;
  text-align: left;
}
.footer-text-button:hover { color: #fff; }
.privacy-dialog {
  width: min(610px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 100px #0f263b55;
}
.privacy-dialog::backdrop { background: #0f263bcc; backdrop-filter: blur(5px); }
.privacy-dialog h2 { margin: 8px 35px 20px 0; color: var(--navy); font: 400 35px/1.15 Georgia, serif; }
.privacy-dialog p { color: var(--muted); font-size: 13px; }
.privacy-dialog .button { margin-top: 10px; }
.dialog-close {
  position: absolute;
  top: 9px;
  right: 15px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 30px;
}
.dialog-open { overflow: hidden; }

.contact-form {
  display: grid;
  gap: 11px;
  margin-top: 25px;
}
.contact-form label { color: var(--navy); font-size: 13px; font-weight: 700; }
.contact-form input:not([type="hidden"]),
.contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #cbd5dc;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.contact-form .button { justify-self: start; width: auto; margin-top: 6px; }
.contact-form .button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.small-print { margin: 2px 0; color: var(--muted); font-size: 11px; }
.form-alert { padding: 11px 13px; border-left: 3px solid #b52b1d; background: #fff0ed; color: #8e2016; }
.contact-success { padding: 25px 0; }

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1280px); }
  .cards-three { grid-template-columns: 1fr; }
  .cards-three.ruper-features { grid-template-columns: minmax(0, 1fr); }
  .ruper-features > article:nth-child(n) { grid-column: auto; }
  .brand-logo { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-name { font-size: 27px; }
  .hero { padding: 30px 0 40px; }
  .page-hero { padding: 30px 0; }
  .ruper-hero { padding-top: 30px; }
  .ruper-hero-visual .hero-mascot { width: 100%; max-width: 170px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .expertise-list > article { padding: 24px 0; }
  .expertise-list > article > div > :last-child { margin-bottom: 0; }
  .site-footer { text-align: center; padding-top: 40px; }
  .footer-grid { justify-items: center; }
  .brand-footer { justify-content: center; }
  .footer-grid p { margin-left: auto; margin-right: auto; }
  .footer-text-button { margin-left: auto; margin-right: auto; text-align: center; }
  .footer-bottom { align-items: center; text-align: center; }
  .share-inner { justify-content: center; text-align: center; }
  .share-inner > span { flex-basis: 100%; }
  .share-inner small:empty { display: none; }
  .contact-form .g-recaptcha { transform: scale(.88); transform-origin: left top; }
  .ruper-slide .ruper-maxi { width: 78%; max-height: 205px; }
  .ruper-visual strong { font-size: 21px; }
  .admin-preview { width: 100%; }
  .preview-body { grid-template-columns: 95px 1fr; }
  .preview-content { padding: 17px; }
  .workflow-preview { padding: 22px 17px; }
  .workflow-preview > div { display: grid; grid-template-columns: 1fr; }
  .workflow-preview > div i { display: none; }
  .privacy-dialog { padding: 30px 24px; }
  .privacy-dialog h2 { font-size: 29px; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .cards-three { grid-template-columns: repeat(2, 1fr); }
  .cards-three.ruper-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruper-features > article:nth-child(n) { grid-column: auto; }
  .ruper-features > article:last-child { grid-column: 1 / -1; }
}


.solution-ruper-visual {
    position: relative;
}

.ruper-copyright {
    position: absolute;
    right: 6px;
    bottom: 30px;
    font-size: 12px;
    opacity: .55;
    pointer-events: none;
}
