/* ============================================
   CORDONNERIE DU CENTRE — Design v7
   Minimal Neutre
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --primary: #2A4A6A;
  --primary-dark: #1B3250;
  --primary-light: #3D6080;
  --accent: #D4A87A;
  --accent-light: #E8D5C0;
  --accent-glow: rgba(212,168,122,0.3);
  --bg: #F8F5F1;
  --surface: #FFFFFF;
  --text: #1D1A17;
  --muted: #8E857C;
  --border: #E4DDD5;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(42,74,106,0.08);
  --shadow-lg: 0 8px 40px rgba(42,74,106,0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
a { color: var(--accent); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--primary); }
::selection { background: var(--accent-light); color: var(--primary); }

/* ==================== TOP BAR ==================== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem 2rem;
  flex-wrap: wrap;
}
.top-bar span { white-space: nowrap; }
.top-bar .sep { color: rgba(255,255,255,0.1); }
.top-bar a { color: var(--accent-light); }
.top-bar a:hover { color: #fff; }

/* ==================== HEADER (coloré !) ==================== */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 66px;
}
.logo a {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.logo a:hover { color: var(--accent-light); }
.logo small {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #fff;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}
.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-menu > li > a:hover,
.nav-menu > li > a:focus-visible {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.nav-menu > li > a .arrow { font-size: 0.55rem; opacity: 0.5; transition: transform 0.2s ease; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.7rem 0.4rem 0.4rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.97);
  transition: all 0.2s var(--ease);
  z-index: 200;
}
.nav-menu > li:hover .dropdown,
.nav-menu > li:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.dropdown li { list-style: none; }
.dropdown a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text);
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown a:hover { background: var(--bg); color: var(--accent); }

/* ==================== HERO ==================== */
.hero {
  background: linear-gradient(160deg, var(--primary) 0%, #3D6080 60%, var(--primary-light) 100%);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(224,143,114,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  opacity: 0.82;
  line-height: 1.75;
}
.hero img {
  margin: 1.2rem auto 0;
  border-radius: var(--radius);
  max-height: 360px;
  object-fit: cover;
  width: auto;
  max-width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

/* ==================== PAGE WRAP ==================== */
.page-wrap {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}
.page-title { text-align: center; margin-bottom: 2.5rem; }
.page-title h1 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.page-title .sub { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }

/* ==================== CONTENT BLOCKS ==================== */
.content-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.4s var(--ease);
}
.content-block:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.content-block.flip { flex-direction: row-reverse; }
.content-block .block-img {
  flex: 1 1 300px;
  min-width: 200px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.content-block .block-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.content-block:hover .block-img img { transform: scale(1.05); }
.content-block .block-text { flex: 1 1 360px; min-width: 220px; }
.content-block .block-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.content-block .block-text p { color: var(--muted); margin-bottom: 1rem; line-height: 1.7; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #fff !important;
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.3s var(--ease);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::after { transform: translateX(100%); }
.btn:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #D07A5C; }

/* ==================== PRODUCT GRID ==================== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.prod-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease);
  animation: cardIn 0.5s var(--ease) both;
}
.prod-card:nth-child(2) { animation-delay: 0.05s; }
.prod-card:nth-child(3) { animation-delay: 0.1s; }
.prod-card:nth-child(4) { animation-delay: 0.15s; }
.prod-card:nth-child(5) { animation-delay: 0.2s; }
.prod-card:nth-child(6) { animation-delay: 0.25s; }
.prod-card:nth-child(7) { animation-delay: 0.3s; }
.prod-card:nth-child(8) { animation-delay: 0.35s; }
.prod-card:nth-child(9) { animation-delay: 0.4s; }

.prod-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.prod-card img {
  height: 140px;
  object-fit: contain;
  margin: 0 auto 0.7rem;
  width: 100%;
  transition: transform 0.4s var(--ease);
}
.prod-card:hover img { transform: scale(1.08); }
.prod-card .name { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.1rem; color: var(--text); }
.prod-card .price { font-weight: 700; font-size: 1.05rem; color: var(--accent); }
.prod-card .note { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }

/* ==================== SERVICE CARD ==================== */
.service-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
  align-items: flex-start;
  transition: all 0.3s var(--ease);
  animation: cardIn 0.5s var(--ease) both;
}
.service-block:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-block .sb-img { flex: 0 0 auto; max-width: 280px; }
.service-block .sb-img img { max-height: 200px; width: auto; border-radius: 6px; transition: transform 0.4s var(--ease); }
.service-block:hover .sb-img img { transform: scale(1.04); }
.service-block .sb-desc { flex: 1 1 240px; }
.service-block .sb-desc h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--primary); }
.service-block .sb-desc p { color: var(--muted); margin-bottom: 0.25rem; font-size: 0.9rem; }

/* ==================== GALLERY ==================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  animation: cardIn 0.5s var(--ease) both;
}
.gallery img:hover { transform: scale(1.04) rotate(-0.5deg); box-shadow: var(--shadow); }

/* ==================== TABLE ==================== */
.table-wrap { overflow-x: auto; margin-bottom: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.88rem; }
.price-table th { background: var(--primary); color: #fff; padding: 0.7rem 1rem; text-align: left; font-weight: 600; font-size: 0.82rem; }
.price-table td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tbody tr { transition: background 0.2s ease; }
.price-table tbody tr:hover { background: rgba(44,69,69,0.03); }

/* ==================== CONTACT ==================== */
.contact-grid { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.contact-form {
  flex: 1 1 420px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  animation: fadeUp 0.5s var(--ease) both;
}
.contact-form label { display: block; font-weight: 600; font-size: 0.82rem; margin-bottom: 0.35rem; color: var(--text); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--surface);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form .field { margin-bottom: 1rem; }
.contact-info {
  flex: 1 1 280px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  animation: fadeUp 0.5s var(--ease) both;
  animation-delay: 0.1s;
}
.contact-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); }
.contact-info p { margin-bottom: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.contact-info i { color: var(--accent); width: 1.4rem; }
.msg { padding: 0.7rem 1rem; border-radius: var(--radius-sm); margin-top: 1rem; font-weight: 500; font-size: 0.85rem; }
.msg.ok { background: #ECFDF3; color: #065F46; border: 1px solid #A7F3C0; }
.msg.err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ==================== MAP ==================== */
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.map-box iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ==================== DESC ==================== */
.desc {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  animation: fadeUp 0.4s var(--ease) both;
}
.desc p:last-child { margin-bottom: 0; }

/* ==================== CAROUSEL ==================== */
.carousel-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
}
.carousel-wrap h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); }
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.45s var(--ease); }
.carousel-slide { min-width: 100%; text-align: center; padding: 0.5rem; }
.carousel-slide a { display: block; color: var(--text); }
.carousel-slide .slide-img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: #EDE8E2;
  transition: transform 0.4s var(--ease);
}
.carousel-slide:hover .slide-img { transform: scale(1.02); }
.carousel-slide p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: #D5CFC8;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.carousel-dots button.active { background: var(--accent); width: 28px; border-radius: 4px; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.82rem;
  margin-top: auto;
}
.site-footer a { color: var(--accent-light); }
.site-footer a:hover { color: #fff; }

/* ==================== TWO-COL ==================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 2rem; }

/* ==================== MOBILE ==================== */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 300;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { padding: 0.6rem 1rem; white-space: normal; }
  .nav-menu > li > a:hover { background: rgba(255,255,255,0.1); border-radius: 6px; }

  .dropdown {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 1rem;
    display: none;
    background: transparent;
    margin: 0.15rem 0;
  }
  .nav-menu li.open > .dropdown { display: block; }
  .nav-menu li.open > a .arrow { transform: rotate(180deg); }
  .dropdown a { color: rgba(255,255,255,0.75); }
  .dropdown a:hover { background: rgba(255,255,255,0.08); color: #fff; }
}

@media (max-width: 768px) {
  .top-bar { font-size: 0.7rem; gap: 0.3rem 1rem; padding: 0.3rem 0.5rem; }
  .top-bar .hm { display: none; }
  .header-inner { height: 58px; padding: 0 1rem; }
  .logo a { font-size: 0.95rem; }
  .logo small { font-size: 0.55rem; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero img { max-height: 200px; }
  .page-wrap { padding: 2rem 0.8rem; }
  .content-block { padding: 1.2rem; gap: 1rem; flex-direction: column !important; }
  .content-block .block-img { flex: 1 1 100%; min-width: 100%; }
  .content-block .block-img img { height: 200px; }
  .content-block .block-text { flex: 1 1 100%; min-width: 100%; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .prod-card { padding: 0.7rem; }
  .prod-card img { height: 100px; }
  .service-block { flex-direction: column; text-align: center; }
  .service-block .sb-img { max-width: 100%; margin: 0 auto; }
  .service-block .sb-img img { max-height: 160px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { height: 150px; }
  .contact-grid { flex-direction: column; }
  .map-box iframe { height: 240px; }
  .desc { padding: 1.2rem; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .prod-grid { gap: 0.5rem; }
  .prod-card img { height: 80px; }
  .prod-card .name { font-size: 0.78rem; }
  .gallery { gap: 0.5rem; }
  .gallery img { height: 110px; }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* Hero animations */
.hero > * { animation: fadeUp 0.7s var(--ease) both; }
.hero p { animation-delay: 0.12s; }
.hero img { animation-delay: 0.25s; }

/* Content block stagger */
.content-block { animation: fadeUp 0.6s var(--ease) both; }
.content-block:nth-child(2) { animation-delay: 0.1s; }
.content-block:nth-child(3) { animation-delay: 0.2s; }

/* Bouton pulse au hover */
.btn:active { animation: pulseGlow 0.6s ease; }

/* Scroll animation : révélation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== UTILITY ==================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }