/* ============================================================
   toiture-renovation.lu — direction artistique inspirée de Planity
   (design system relevé le 23/08/2026 : palette indigo + corail,
   Inter, rayons doux, bordures internes plutôt qu'ombres portées)
   Mobile first. Aucune dépendance externe hormis la police.
   ============================================================ */

:root {
  /* Primaire indigo (Planity) */
  --primary-100: #e5e6ff;
  --primary-200: #625df5;
  --primary-300: #1f1ab9;
  --primary-400: #171386;
  --primary-500: #131070;

  /* Secondaire corail : réservé aux appels à l'action d'urgence */
  --secondary-100: #faddd2;
  --secondary-200: #ed8c6a;
  --secondary-300: #be5834;

  /* Gris */
  --grey-100: #f7f7f7;
  --grey-200: #eef0f2;
  --grey-300: #e6e6e2;
  --grey-400: #c7cfd7;
  --grey-500: #869098;
  --grey-600: #4e5860;
  --grey-700: #202020;
  --grey-800: #040407;
  --white: #fff;

  --success-200: #07cec4;
  --warning-200: #ffab00;

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 16px;

  --font: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1140px;
  --gap: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-300); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--grey-800); }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3.5vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 28px; }
.bg-light { background: var(--grey-100); }
.bg-gradient { background: linear-gradient(135deg, var(--primary-300), var(--primary-200)); color: var(--white); }
.bg-gradient h2, .bg-gradient h3 { color: var(--white); }

/* ---------- Bandeau et navigation ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--grey-200); }
.header-top { background: var(--grey-800); color: var(--white); font-size: .82rem; }
.header-top-content { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; padding: 7px 0; }
.header-urgency { color: var(--warning-200); font-weight: 600; }
.header-contact a { color: var(--white); font-weight: 600; }

.nav-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; color: var(--grey-800); }
.logo:hover { text-decoration: none; }
.logo-icon { width: 34px; height: 34px; border-radius: var(--radius-m); background: var(--primary-200); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
/* Menu : <ul> avec <li>, donc puces a retirer explicitement.
   Le script bascule la classe .active sur le menu ET sur le bouton. */
.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: none; gap: 4px; flex-direction: column;
}
.nav-menu.active {
  display: flex;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--grey-200);
  box-shadow: 0 12px 24px rgba(8, 8, 11, .08);
  padding: 8px var(--gap) 14px; z-index: 40;
}
.nav-menu li { list-style: none; }
.nav-menu a {
  display: block; padding: 11px 8px; border-radius: var(--radius-m);
  color: var(--grey-700); font-weight: 500; font-size: .97rem;
}
.nav-menu a:hover { background: var(--grey-100); color: var(--primary-300); text-decoration: none; }

/* Bouton burger : 3 barres dessinees, qui se transforment en croix */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 10px;
  background: var(--white); border: 1px solid var(--grey-300);
  border-radius: var(--radius-m); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: var(--grey-700); transition: transform .2s, opacity .2s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: .95rem; font-weight: 600; line-height: 1;
  padding: 13px 20px; border-radius: var(--radius-m); border: none; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s; text-align: center; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary-200); color: var(--white); }
.btn-primary:hover { background: var(--primary-300); }
.btn-secondary { background: var(--white); color: var(--grey-800); box-shadow: inset 0 0 0 1.5px var(--grey-400); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--grey-700); }
.btn-accent { background: var(--secondary-200); color: var(--white); }
.btn-accent:hover { background: var(--secondary-300); }
.btn-lg { padding: 16px 26px; font-size: 1.02rem; }
.bg-gradient .btn-secondary { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 44px; background:
  radial-gradient(120% 100% at 50% 0, var(--primary-100) 0, var(--white) 62%); }
.hero-content { text-align: center; max-width: 720px; margin: 0 auto; }
.hero-subtitle { font-size: 1.05rem; color: var(--grey-600); margin-bottom: 22px; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.hero-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-feature { background: var(--white); border-radius: 100px; padding: 7px 14px; font-size: .84rem;
  font-weight: 600; color: var(--grey-600); box-shadow: inset 0 0 0 1px var(--grey-300); }

/* ---------- Grilles et cartes ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-3, .grid-4 { grid-template-columns: 1fr; }
.card { background: var(--white); border-radius: var(--radius-l); padding: 20px;
  box-shadow: inset 0 0 0 1px var(--grey-300); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: inset 0 0 0 1.5px var(--primary-200); transform: translateY(-2px); }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.card-text { color: var(--grey-600); font-size: .94rem; margin: 0; }

.features-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.feature { text-align: center; padding: 18px; }
.feature-icon { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--primary-100); color: var(--primary-300);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }

.cta-section { text-align: center; border-radius: 0; }

/* ---------- Pied de page ---------- */
.footer { background: var(--grey-800); color: var(--grey-400); padding: 40px 0 0; font-size: .92rem; }
.footer h3, .footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 10px; }
.footer a { color: var(--grey-400); }
.footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding: 16px 0;
  text-align: center; font-size: .84rem; color: var(--grey-500); }

/* ---------- Barre d'appel mobile (ajout : conversion) ---------- */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--grey-200); }
.call-bar .btn { flex: 1; }
body { padding-bottom: 72px; }

/* ---------- Écrans larges ---------- */
@media (min-width: 768px) {
  .section { padding: 64px 0; }
  .nav-menu { display: flex; flex-direction: row; gap: 22px; position: static;
    padding: 0; box-shadow: none; border: none; background: none; }
  .nav-menu a { padding: 6px 2px; font-size: .94rem; color: var(--grey-600); }
  .nav-menu a:hover { background: none; }
  .nav-toggle { display: none; }
  .hero { padding: 64px 0 68px; }
  .hero-cta { flex-direction: row; justify-content: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .call-bar { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Composants manquants — ajoutés le 23/08 après contrôle du rendu :
   ces classes étaient utilisées dans le HTML mais n'existaient pas
   dans la feuille, donc les blocs s'affichaient sans mise en forme.
   ============================================================ */

/* En-tête de section */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.section-header .section-title { margin-bottom: 8px; }
.section-subtitle { color: var(--grey-600); font-size: 1rem; margin: 0; }

/* Cartes service */
.service-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.service-card .card-text { flex: 1; margin-bottom: 14px; }
.service-card .btn { align-self: stretch; }
.service-icon {
  width: 48px; height: 48px; margin-bottom: 10px; border-radius: var(--radius-m);
  background: var(--primary-100); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem;
}

/* Cartes zone */
.zone-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.zone-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: var(--secondary-100); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem;
}
.zone-info h4 { margin: 0 0 2px; font-size: 1rem; font-weight: 700; color: var(--grey-800); }
.zone-delay { margin: 0; font-size: .86rem; color: var(--primary-300); font-weight: 600; }

/* Témoignages */
.testimonial-card {
  background: var(--white); border-radius: var(--radius-l); padding: 22px;
  box-shadow: inset 0 0 0 1px var(--grey-300); display: flex; flex-direction: column; gap: 10px;
}
.testimonial-rating { font-size: .95rem; letter-spacing: 2px; }
.testimonial-text { margin: 0; font-size: .97rem; color: var(--grey-700); font-style: italic; }
.testimonial-author { margin: 0; font-size: .88rem; font-weight: 600; color: var(--grey-600); }

/* La barre de navigation hérite du conteneur, rien à surcharger côté .nav */
.nav { width: 100%; position: relative; }

/* ============================================================
   Fil d'Ariane, formulaires et grille 2 colonnes — 23/08.
   Repérés par un audit exhaustif des classes de TOUTES les pages
   (le premier passage n'avait comparé que la page d'accueil).
   ============================================================ */

/* Fil d'Ariane : discret, séparateurs en chevron, jamais de puces */
.breadcrumb { background: var(--grey-100); border-bottom: 1px solid var(--grey-200); }
.breadcrumb-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 10px 0;
  font-size: .84rem; color: var(--grey-500);
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb-list li + li::before {
  content: "›"; color: var(--grey-400); font-size: 1rem; line-height: 1;
}
.breadcrumb-list a { color: var(--grey-600); font-weight: 500; }
.breadcrumb-list a:hover { color: var(--primary-300); text-decoration: none; }
.breadcrumb-list li:last-child { color: var(--grey-800); font-weight: 600; }

/* Formulaires */
.grid-2 { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: .88rem; font-weight: 600; color: var(--grey-700); }
.form-input, .form-select, .form-textarea {
  font-family: inherit; font-size: 1rem; color: var(--grey-800);
  padding: 12px 14px; border: none; border-radius: var(--radius-m);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--grey-400);
  transition: box-shadow .15s; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; box-shadow: inset 0 0 0 2px var(--primary-200);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--grey-500); }
.form-textarea { min-height: 130px; resize: vertical; }
.form-select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  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='%234e5860' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

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