/* ==========================================================
   Nettoyage Rouen — style.css v1
   ========================================================== */

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

:root {
  --blue:        #1e3a5f;
  --blue-dark:   #162d4a;
  --blue-light:  #2a4f82;
  --orange:      #ea580c;
  --orange-dark: #c2410c;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-600:    #4b5563;
  --gray-800:    #1f2937;
  --white:       #ffffff;
  --font-main:   'Inter', 'Segoe UI', Arial, sans-serif;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.12);
  --shadow-md:   0 4px 12px rgba(0,0,0,.15);
  --shadow-lg:   0 8px 30px rgba(0,0,0,.18);
  --radius:      8px;
  --radius-lg:   14px;
  --transition:  .3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue);
}

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}
.nav-logo img { height: 44px; width: auto; }
.nav-logo span {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .3px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: .25rem;
  padding: 0;
  margin: 0;
}

nav ul li a {
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .8rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
nav ul li a:hover,
nav ul li a.active {
  color: var(--white);
  background: rgba(255,255,255,.15);
}
nav ul li a.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: .45rem 1rem;
}
nav ul li a.nav-cta:hover {
  background: var(--orange-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('/images/hero-nettoyage.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,58,95,.87);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 5rem 1.5rem;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}
.hero-content .badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Section generic ---------- */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .overline {
  display: block;
  color: var(--orange);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.section-header p { color: var(--gray-600); max-width: 620px; margin: .8rem auto 0; font-size: 1.05rem; }

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff3ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.service-card p { color: var(--gray-600); font-size: .95rem; margin: 0; }

/* ---------- 2-col split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-img img { width: 100%; height: 400px; object-fit: cover; }
.split-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.split-text p { color: var(--gray-600); }
.split-text ul { color: var(--gray-600); }
.split-text ul li { margin-bottom: .5rem; }
.split-text .btn { margin-top: 1.2rem; }

/* ---------- Banner / vue-rouen ---------- */
.banner-section {
  background-image: url('/images/vue-rouen.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,58,95,.85);
}
.banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 5rem 1.5rem;
}
.banner-inner h2 { color: var(--white); font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.banner-inner p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 650px; margin: 0 auto 1.8rem; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item { padding: 1rem; }
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.stat-label { color: var(--gray-600); font-size: .9rem; margin-top: .4rem; }

/* ---------- Process Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  position: relative;
}
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step-card p { color: var(--gray-600); font-size: .93rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: .8rem; }
.testimonial-card p { color: var(--gray-600); font-style: italic; margin-bottom: 1.2rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.author-name { font-weight: 600; font-size: .9rem; }
.author-role { color: var(--gray-600); font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: .8rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  text-align: left;
  padding: 1.1rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-question .arrow {
  font-size: .8rem;
  transition: transform var(--transition);
  color: var(--orange);
}
.faq-question.open .arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 1.4rem 1.1rem;
  color: var(--gray-600);
  font-size: .97rem;
  background: var(--white);
}
.faq-answer.open { display: block; }

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img {
  height: 200px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 1.5rem; }
.blog-tag {
  display: inline-block;
  background: #fff3ed;
  color: var(--orange);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: .75rem;
}
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.blog-card-body h3 a { color: var(--blue); }
.blog-card-body h3 a:hover { color: var(--orange); }
.blog-card-body p { color: var(--gray-600); font-size: .9rem; margin-bottom: 1rem; }
.blog-meta { color: var(--gray-600); font-size: .82rem; display: flex; gap: 1rem; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--blue);
  color: var(--white);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cta-text h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.cta-text p { color: rgba(255,255,255,.85); }
.cta-text .btn { margin-top: 1rem; }
.cta-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-img img { width: 100%; height: 360px; object-fit: cover; }

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { font-size: 1.25rem; margin-bottom: .8rem; color: var(--blue); }
.contact-info p { color: var(--gray-600); }
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  background: #fff3ed;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item div p { margin: 0; color: var(--gray-600); font-size: .93rem; }
.contact-info-item div strong { color: var(--blue); }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-family: var(--font-main);
  font-size: .95rem;
  color: var(--gray-800);
  transition: border-color var(--transition);
  background: var(--gray-50);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ---------- Article (Blog Post) ---------- */
.article-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(30,58,95,.75));
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.article-content h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 1.2rem; }
.article-content h2 { font-size: 1.5rem; margin: 2.2rem 0 .9rem; color: var(--blue); }
.article-content h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; color: var(--blue); }
.article-content p { color: var(--gray-600); line-height: 1.8; }
.article-content ul, .article-content ol { color: var(--gray-600); line-height: 1.8; }
.article-content ul li, .article-content ol li { margin-bottom: .5rem; }
.article-content .article-mid-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
}
.article-content .article-mid-img img { width: 100%; height: 320px; object-fit: cover; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: var(--gray-600);
  font-size: .88rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.sidebar-card h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--blue); }
.sidebar-card ul { padding-left: 0; list-style: none; }
.sidebar-card ul li { border-bottom: 1px solid var(--gray-200); padding: .6rem 0; font-size: .9rem; }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--gray-800); }
.sidebar-card ul li a:hover { color: var(--orange); }

.sidebar-cta {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.sidebar-cta h4 { color: var(--white); margin-bottom: .75rem; font-size: 1.05rem; }
.sidebar-cta p { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 1.2rem; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--blue);
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.65); }

/* ---------- 404 ---------- */
.notfound-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.notfound-section h1 { font-size: 5rem; color: var(--orange); margin-bottom: .5rem; }
.notfound-section h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.notfound-section p { color: var(--gray-600); max-width: 480px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.78);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand img { height: 46px; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
footer h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: .6rem; }
footer ul li a { color: rgba(255,255,255,.7); font-size: .9rem; transition: color var(--transition); }
footer ul li a:hover { color: var(--orange); }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- Utility ---------- */
.bg-gray { background: var(--gray-50); }
.bg-blue { background: var(--blue); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ---------- Highlight box ---------- */
.info-box {
  background: #eff6ff;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--gray-800);
}
.warning-box {
  background: #fff7ed;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .nav-toggle { display: block; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    padding: 1rem;
    gap: .25rem;
  }
  nav ul.open { display: flex; }
  nav ul li a { padding: .6rem 1rem; display: block; }

  .split, .cta-inner, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse { direction: ltr; }
  .split-img img { height: 280px; }
  .cta-img img { height: 250px; }

  .article-layout { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-content { padding: 3.5rem 1.5rem; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
