/* ==========================================
   QERKINI SÀRL - Menuiserie à Monthey
   ========================================== */

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

:root {
  /* Palette officielle Qerkini : bleu marine + jaune doré + beige */
  --primary: #1a2a5e;          /* Bleu marine du logo */
  --primary-light: #2a3d7a;
  --primary-dark: #121e44;
  --accent: #f0c640;           /* Jaune doré du logo */
  --accent-light: #fbd964;
  --accent-dark: #d4a830;
  --white: #ffffff;
  --off-white: #fbf6ee;        /* Beige très clair */
  --bg-warm: #f3e8d8;          /* Beige fond hero original */
  --gray-light: #e8e2da;
  --gray: #8a8278;
  --gray-dark: #5a5550;
  --text: #1a1f33;
  --text-light: #5c6680;
  --shadow: 0 4px 20px rgba(26, 42, 94, 0.1);
  --shadow-lg: 0 8px 40px rgba(26, 42, 94, 0.18);
  --radius: 10px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-light);
  margin-bottom: 1rem;
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
  -ms-hyphens: manual;
}

/* Exceptions : éléments UI courts ou centrés (la justification n'a pas de sens) */
.section-desc,
.page-header p,
.section-header p,
.cta-banner p,
.thanks-content p {
  text-align: center;
  hyphens: manual;
}

/* Exceptions stricts : éléments courts (1 ligne) ou structures non-textuelles */
.hero-stat p,
.hero-badge,
.footer-contact p,
.contact-detail p,
.service-card li,
.service-card ul,
.about-feature p,
.category-list,
.category-list li,
.realisation-overlay p,
.testimonial-author p,
.about-image-badge p,
.zone-tag,
.breadcrumb {
  text-align: left;
  hyphens: manual;
}

/* Le paragraphe descriptif du footer est justifié */
.footer-brand p {
  text-align: left;
  hyphens: manual;
}

.section-subtitle {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 198, 64, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* --- Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--gray-light);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.logo-mark {
  width: 56px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text-light {
  color: var(--accent-dark);
  font-weight: 600;
}

/* Vrai logo PNG Qerkini Sàrl (header) */
.logo-img {
  height: 64px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Logo dans le footer (fond bleu marine) : PNG inversé en blanc */
.footer .logo-img {
  height: 56px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Crédit Make Your Com */
.footer-credit {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}
.footer-credit a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-credit a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header .container { height: 80px; }
  .logo-img { height: 48px; }
}

/* Sur les pages, la classe .logo n'a plus besoin du texte si l'image suffit */
.logo:has(.logo-img) {
  gap: 0;
}

/* Ancien .logo-icon conservé pour compat fallback (Q simple) */
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: var(--primary) !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--off-white) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1581094288338-2314dddb7ece?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  opacity: 0.18;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(243, 232, 216, 0.7) 0%, rgba(251, 246, 238, 0.55) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.hero-content {
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 198, 64, 0.18);
  border: 1px solid rgba(240, 198, 64, 0.55);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--primary);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--accent-dark);
  font-style: italic;
  text-transform: none;
}

.hero p {
  color: var(--text);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(26, 42, 94, 0.15);
}

.hero-stat h3 {
  color: var(--primary);
  font-size: 2.4rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

.hero-stat p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* --- Section Common --- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Grille forcée en 2 colonnes (rénovation, sur-mesure) */
.services-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .services-grid.cols-2 { grid-template-columns: 1fr; }
}

/* Icônes SVG (remplacent les anciens emojis) */
.service-icon svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
}
.advantage-icon svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
}
.advantage-card:hover .advantage-icon svg {
  color: var(--white);
}
.contact-detail-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.contact-detail-icon[style*="25d366"] svg {
  color: #25d366;
}
.thanks-icon svg {
  width: 48px;
  height: 48px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--off-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--accent-dark);
  gap: 10px;
}

/* --- About / Presentation --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-light);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image.img-fallback {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  text-align: center;
  padding: 40px;
}

.about-image.img-fallback::before {
  content: 'Atelier de menuiserie\AQerkini Sàrl';
  white-space: pre;
}

.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--accent);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  font-family: 'Playfair Display', Georgia, serif;
}

.about-image-badge h3 {
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

.about-image-badge p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin: 0;
}

.about-content .section-subtitle { text-align: left; }

.about-content h2 { margin-bottom: 20px; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--off-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}

.about-feature h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.85rem;
  margin: 0;
}

/* --- Realisations --- */
.section-bg {
  background: var(--off-white);
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.realisation-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  cursor: pointer;
  color: var(--white);
}

.realisation-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.realisation-card:hover img {
  transform: scale(1.08);
}

/* Fallback si l'image ne charge pas (palettes différenciées par catégorie) */
.realisation-card.img-fallback-portes      { background: linear-gradient(135deg,#d4a574,#8b6f47); }
.realisation-card.img-fallback-cuisine     { background: linear-gradient(135deg,#a0826d,#5d4037); }
.realisation-card.img-fallback-fenetres    { background: linear-gradient(135deg,#c49a6c,#7b5e3d); }
.realisation-card.img-fallback-dressing    { background: linear-gradient(135deg,#b8956a,#6d503a); }
.realisation-card.img-fallback-porte       { background: linear-gradient(135deg,#9e8068,#4e342e); }
.realisation-card.img-fallback-amenagement { background: linear-gradient(135deg,#c7a882,#7a5c40); }

.realisation-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 24, 16, 0.85) 0%, rgba(44, 24, 16, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 1;
  transition: opacity var(--transition);
}

.realisation-overlay h3 { transform: translateY(8px); transition: transform var(--transition); }
.realisation-card:hover .realisation-overlay h3 { transform: translateY(0); }

.realisation-overlay h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.realisation-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0;
}

/* --- Advantages / Why Us --- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-card {
  text-align: center;
  padding: 40px 24px;
}

.advantage-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent);
  transition: all var(--transition);
}

.advantage-card:hover .advantage-icon {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.1);
}

.advantage-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 0.9rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(200, 145, 90, 0.1);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-banner .btn { position: relative; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info > p {
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--off-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-detail h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 0.95rem;
  margin: 0;
}

.contact-detail a {
  color: var(--accent);
}

.contact-detail a:hover {
  color: var(--accent-dark);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--off-white);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 145, 90, 0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

/* --- Map --- */
.map-section {
  height: 400px;
  background: var(--gray-light);
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  background: var(--accent);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color var(--transition);
}

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

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--accent-light);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page Header (sub-pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--accent-light);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Service Detail Page --- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail-content h2 {
  margin-bottom: 16px;
}

.service-detail-content ul {
  margin: 20px 0;
}

.service-detail-content li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-light);
}

.service-detail-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.service-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-light);
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow);
  }

  .nav-links.active { display: flex; }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .about-grid,
  .contact-grid,
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .realisations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-features {
    grid-template-columns: 1fr;
  }

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

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .realisations-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 60px 0; }
}

/* ==========================================
   NOUVEAUX BLOCS — Categories / Section-dark / Zones / FAQ
   ========================================== */

/* --- 4 cartes catégories (style Qerkini original alternance jaune/bleu) --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(26, 42, 94, 0.18);
}

.category-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-warm), var(--gray-light));
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.category-card:hover .category-image img {
  transform: scale(1.08);
}

.category-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  position: relative;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.category-list li {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-left: 22px;
}

.category-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.category-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  margin: auto -24px -24px -24px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  transition: all var(--transition);
}

.category-card:hover .category-plus {
  transform: rotate(90deg);
  background: rgba(255,255,255,0.4);
}

/* Variante jaune doré (cohérence logo Qerkini) */
.category-card--accent .category-label {
  background: var(--accent);
  color: var(--primary);
}
.category-card--accent .category-list li::before { color: var(--accent-dark); }

/* Variante bleu marine */
.category-card--primary .category-label {
  background: var(--primary);
  color: var(--white);
}
.category-card--primary .category-list li::before { color: var(--primary); }

/* --- Section bleu marine (about) --- */
.section-dark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240,198,64,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.section-dark h2,
.section-dark h3,
.section-dark .on-dark {
  color: var(--white);
  position: relative;
}

.section-dark .section-subtitle.on-dark {
  color: var(--accent);
}

.section-dark .on-dark-text {
  color: rgba(255,255,255,0.85);
  position: relative;
}

.section-dark .about-image-badge {
  background: var(--accent);
  color: var(--primary);
}
.section-dark .about-image-badge h3 { color: var(--primary); }
.section-dark .about-image-badge p { color: rgba(26,42,94,0.7); }

/* --- Zones d'intervention (SEO local) --- */
.zones-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.zone-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--off-white);
  border: 1.5px solid var(--gray-light);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition);
}

a.zone-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.zone-tag::before {
  content: '\1F4CD';
  font-size: 0.85rem;
}

.zone-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

/* --- FAQ accordéon --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(26,42,94,0.08);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--accent-dark);
  line-height: 1;
  transition: transform var(--transition);
  font-weight: 400;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 22px 18px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- CTA banner boutons doubles + variante outline blanc --- */
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,0.45);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary) !important;
  border-color: var(--white);
}

/* --- Bouton hero outline (mobile call) --- */
.hero .btn-outline {
  color: var(--primary) !important;
  border-color: var(--primary);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}
.hero .btn-outline:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* ==========================================
   NOUVEAUX BLOCS — Process / Témoignages / WhatsApp
   ========================================== */

/* --- Notre processus --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent-light), var(--accent-light), transparent);
  z-index: 0;
}

.process-step {
  position: relative;
  text-align: center;
  padding: 0 8px;
  z-index: 1;
}

.process-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--white);
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all var(--transition);
}

.process-step:hover .process-number {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(200, 145, 90, 0.35);
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  line-height: 1.55;
}

/* --- Témoignages --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray-light);
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  right: 22px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-light);
  opacity: 0.35;
}

.testimonial-stars {
  color: #e6b800;
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-light);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  flex-shrink: 0;
}

.testimonial-author h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.testimonial-author p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-light);
}

/* --- Bouton WhatsApp flottant --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition);
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background: #1ebe5d;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  animation: none;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50%      { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* --- Responsive nouveaux blocs --- */
@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .process-grid::before { display: none; }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

/* --- Bannière cookies (consentement) --- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 460px;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(160%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
}

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

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

.cookie-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-banner .btn {
  width: auto;
  padding: 10px 24px;
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .cookie-actions { justify-content: flex-start; }
}

