/* ==========================================================================
   ROUENTOILAGE — Landing page B2B
   Style inspiré esopfrance.fr — Mobile-first
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;700&display=swap');

/* --- Variables --- */
:root {
  --bleu-nuit: #000014;
  --jaune: #ffe055;
  --rouge: #ce1711;
  --vert: #6effd2;
  --bleu: #4a70ff;
  --blanc: #ffffff;
  --carte-fond: rgba(255, 224, 85, 0.07);
  --carte-bordure: rgba(255, 224, 85, 0.35);
  --section-padding: clamp(3rem, 8vw, 6.25rem);
  --radius-lg: 45px;
  --radius-md: 25px;
  --header-height: 72px;
  --transition: 0.25s ease;
}

/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 60px);
}

body {
  font-family: 'Readex Pro', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--blanc);
  background-color: var(--bleu-nuit);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--jaune);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--vert);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-padding);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-intro p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.legal-mention {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--jaune);
  background: rgba(255, 224, 85, 0.1);
  color: var(--blanc);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  color: var(--jaune);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--vert);
  outline-offset: 3px;
}

.btn-jaune {
  border-color: var(--jaune);
  background: rgba(255, 224, 85, 0.1);
}

.btn-primary {
  background: var(--jaune);
  color: var(--bleu-nuit);
  border-color: var(--jaune);
  font-weight: 700;
}

.btn-primary:hover {
  background: #fff080;
  color: var(--bleu-nuit);
}

.btn-small {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.btn-outline-light:hover {
  border-color: var(--jaune);
}

/* --- Cartes --- */
.card {
  background: var(--carte-fond);
  border: 1px solid var(--carte-bordure);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--jaune);
  transform: translateY(-2px);
}

.card-solution {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 224, 85, 0.2);
  color: var(--jaune);
  font-weight: 400;
}

.card-figure {
  margin: 0 0 1rem;
  border-radius: 20px;
  overflow: hidden;
}

.card-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.schema-block {
  margin-top: 3rem;
}

.schema-block h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.schema-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .schema-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.schema-card {
  text-align: center;
  padding: 1.25rem;
}

.schema-card img {
  margin-inline: auto;
  max-height: 180px;
  width: auto;
  object-fit: contain;
}

.schema-card figcaption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(0, 0, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 224, 85, 0.15);
  min-height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  flex-wrap: wrap;
}

.logo-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo {
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  color: var(--jaune);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-phone {
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--blanc);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--jaune);
}

/* --- Encart type visiteur --- */
.visitor-banner {
  position: sticky;
  top: var(--header-height);
  z-index: 850;
  background: rgba(74, 112, 255, 0.12);
  border-bottom: 1px solid rgba(74, 112, 255, 0.35);
  padding: 0.55rem 0;
}

.visitor-banner.is-hidden {
  display: none;
}

.visitor-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.visitor-label {
  font-weight: 400;
}

.visitor-msg {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 0.35rem;
  display: none;
}

.visitor-msg.is-visible {
  display: block;
}

/* --- Hero --- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: rgba(110, 255, 210, 0.08);
  border: 1px solid rgba(110, 255, 210, 0.35);
  border-radius: 50px;
  font-size: 0.88rem;
  width: fit-content;
}

.trust-badge .stars {
  color: var(--jaune);
  letter-spacing: 1px;
}

.hero-image {
  border-radius: var(--radius-lg);
  border: 1px solid var(--carte-bordure);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* --- Barre réassurance --- */
.reassurance-bar {
  background: rgba(255, 224, 85, 0.06);
  border-block: 1px solid rgba(255, 224, 85, 0.15);
  padding-block: 1.5rem;
}

.reassurance-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .reassurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .reassurance-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.reassurance-badges {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 224, 85, 0.12);
}

.reassurance-badges img {
  margin-inline: auto;
  max-width: min(720px, 100%);
  border-radius: var(--radius-md);
  opacity: 0.92;
}

.reassurance-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 224, 85, 0.12);
  border-radius: 50%;
  font-size: 1.1rem;
}

/* --- Grilles --- */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-4 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Services --- */
.service-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.service-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bleu-nuit);
  background: var(--jaune);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-keywords {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 224, 85, 0.15);
}

.service-keywords span {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  margin: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Avant / Après --- */
.before-after-section .slider-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--jaune);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}

.slider-dot.is-active,
.slider-dot:hover {
  background: var(--jaune);
}

.ba-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--carte-bordure);
  aspect-ratio: 16 / 10;
  max-width: 900px;
  margin-inline: auto;
  user-select: none;
}

.ba-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--jaune);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 5;
}

.ba-handle::before {
  content: '◀ ▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--jaune);
  color: var(--bleu-nuit);
  font-size: 0.65rem;
  padding: 0.5rem 0.35rem;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: -2px;
}

.ba-label {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 0, 20, 0.75);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 4;
}

.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; }

.ba-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.ba-thumbs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.ba-thumb {
  width: 80px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition), border-color var(--transition);
  padding: 0;
  background: none;
}

.ba-thumb.is-active,
.ba-thumb:hover {
  opacity: 1;
  border-color: var(--jaune);
}

.ba-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Cibles --- */
.target-card {
  text-align: center;
  padding: 1.25rem 0.75rem;
}

.target-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.target-card span {
  font-size: 0.85rem;
  display: block;
}

/* --- Bénéfices --- */
.benefit-list {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .benefit-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--jaune);
  line-height: 1;
  flex-shrink: 0;
}

.zone-list {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Avis --- */
.reviews-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--carte-fond);
  border: 1px solid var(--carte-bordure);
  border-radius: var(--radius-md);
}

.google-logo {
  font-weight: 700;
  font-size: 1.5rem;
}

.google-logo .g1 { color: #4285F4; }
.google-logo .g2 { color: #EA4335; }
.google-logo .g3 { color: #FBBC05; }
.google-logo .g4 { color: #4285F4; }
.google-logo .g5 { color: #34A853; }
.google-logo .g6 { color: #EA4335; }

.reviews-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--jaune);
}

.reviews-stars {
  color: var(--jaune);
  letter-spacing: 2px;
}

.review-card {
  border-radius: var(--radius-md);
}

.review-author {
  font-weight: 700;
  color: var(--jaune);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.review-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.review-stars {
  color: var(--jaune);
  margin-bottom: 0.5rem;
}

.reviews-verified {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1.5rem;
  text-align: center;
}

/* --- Formulaire --- */
.form-section {
  background: rgba(255, 224, 85, 0.03);
  border-block: 1px solid rgba(255, 224, 85, 0.1);
}

.form-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .form-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label,
.form-group legend {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
}

.form-group legend {
  margin-bottom: 0.6rem;
}

.required {
  color: var(--rouge);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 224, 85, 0.25);
  border-radius: 16px;
  color: var(--blanc);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--jaune);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffe055' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bleu-nuit);
  color: var(--blanc);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.92rem;
  margin-bottom: 0;
}

.radio-group input[type="radio"] {
  width: auto;
  accent-color: var(--jaune);
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.5;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--jaune);
  flex-shrink: 0;
}

.form-rassurance {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--carte-bordure);
  background: var(--carte-fond);
}

.form-rassurance h3 {
  margin-bottom: 1.25rem;
}

.rassurance-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.rassurance-item:last-child {
  margin-bottom: 0;
}

.form-success {
  display: none;
  padding: 1.5rem;
  background: rgba(110, 255, 210, 0.1);
  border: 1px solid rgba(110, 255, 210, 0.4);
  border-radius: var(--radius-md);
  margin-top: 1rem;
  text-align: center;
}

.form-success.is-visible {
  display: block;
}

.form-success p {
  color: var(--vert);
  font-weight: 400;
}

/* --- Footer --- */
.site-footer {
  padding-block: 3rem 2rem;
  border-top: 1px solid rgba(255, 224, 85, 0.12);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: 0.5rem;
}

.footer-baseline {
  font-style: italic;
  color: var(--jaune);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--jaune);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* --- Bannière cookies --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 20, 0.97);
  border-top: 1px solid rgba(255, 224, 85, 0.25);
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  width: min(960px, 94vw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Modal personnalisation cookies --- */
.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 20, 0.85);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.is-visible {
  display: flex;
}

.cookie-modal-content {
  background: var(--bleu-nuit);
  border: 1px solid var(--carte-bordure);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
}

.cookie-modal-content h3 {
  margin-bottom: 1rem;
}

.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.cookie-toggle input {
  accent-color: var(--jaune);
  width: 18px;
  height: 18px;
}

.cookie-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* --- Utilitaires --- */
.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;
}

.text-jaune { color: var(--jaune); }
.text-accent { color: var(--vert); }

.highlight-box {
  padding: 1rem 1.25rem;
  background: rgba(206, 23, 17, 0.08);
  border-left: 3px solid var(--rouge);
  border-radius: 0 12px 12px 0;
  font-size: 0.92rem;
  margin: 1rem 0;
}
