/* ============================================
   polish.css — retouche visuelle globale du site
   Chargée après les styles des pages : affine
   le rendu sans casser le design existant.
   ============================================ */

/* ---------- Confort de lecture / toucher ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }

/* Sécurité responsive : aucune image ne déborde jamais */
img, video { max-width: 100%; height: auto; }

/* Anti zoom automatique iOS sur les champs de formulaire */
input, textarea, select { font-size: 16px; }

/* Sélection de texte aux couleurs de la marque */
::selection { background: rgba(31, 164, 122, 0.25); }

/* Focus clavier visible (accessibilité / professionnalisme) */
:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.45); outline-offset: 2px; border-radius: 4px; }

/* Retour tactile sur les éléments cliquables */
a, button, [role="button"] { touch-action: manipulation; }
.nav-devis:active, .btn:active, button:active { transform: scale(0.97); }

/* ---------- 1. Hero plus impactant ---------- */
.hero-title { font-size: clamp(2.3rem, 6vw, 3.5rem); letter-spacing: -0.02em; }
.hero-subtitle { font-size: clamp(1.05rem, 2.6vw, 1.4rem); line-height: 1.55; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-content { animation: fadeUp 0.8s ease both; }
  .hero-img { animation: fadeUp 0.8s 0.25s ease both; }
}
.hero-img img { transition: transform 0.5s ease; }
.hero-img img:hover { transform: translateY(-6px) scale(1.02); }

/* ---------- 2. Cartes premium ---------- */
.service-card, .realisation-card, .promo-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover, .realisation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.service-card h3, .service-card h4 { transition: color 0.3s ease; }
.service-card:hover h3, .service-card:hover h4 { color: var(--vert); }

/* ---------- 3. Typographie ---------- */
.section-header h2 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.02em; }
.btn { letter-spacing: 0.01em; }

/* ---------- 4. Espacements / rythme ---------- */
.section-header { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Mobile : cibles tactiles et respiration */
@media (max-width: 768px) {
  section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  h1 { line-height: 1.25; }
  h2 { line-height: 1.3; }
  p { text-align: left; }
}

/* Barre de défilement discrète (desktop) */
@media (min-width: 769px) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: #f1f5f9; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #1fa47a, #2563eb); border-radius: 8px; }
}
