/* ===== FONTS ===== */
@font-face {
  font-family: 'Pearl Jean';
  src: url('fonts/PearlJean.woff2') format('woff2'),
       url('fonts/PearlJean.otf') format('opentype'),
       url('fonts/PearlJean.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: #1a1a1a;
  background: #faf8f4;
  overflow-x: hidden;
}

/* ===== VARIABLES ===== */
:root {
  --maize: #FCC74B;
  --coral: #F28983;
  --orange: #E17126;
  --green: #C8D35F;
  --dark: #1a1a1a;
  --light: #faf8f4;
  --mid: #f0ece4;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: 'Pearl Jean', serif !important; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
h1 em, h2 em, h3 em { font-family: 'Pearl Jean', serif !important; font-style: normal; color: var(--orange); }
em { font-style: italic; color: var(--orange); }
p { line-height: 1.7; color: #444; }
a { text-decoration: none; color: inherit; }

/* ===== CONTAINER ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ===== LABEL LINE ===== */
.label-line {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark); color: #fff;
  padding: 14px 28px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 500; font-family: 'DM Sans', sans-serif;
  transition: transform 0.2s, background 0.2s;
  cursor: pointer; border: none;
}
.btn-primary:hover { background: var(--orange); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--dark); color: var(--dark);
  padding: 13px 28px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 500;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--dark); color: #fff; transform: translateY(-2px); }

.btn-dark {
  display: inline-flex; align-items: center;
  background: #fff; color: var(--dark);
  padding: 14px 32px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 500; font-family: 'DM Sans', sans-serif;
  transition: transform 0.2s, background 0.2s;
  cursor: pointer; border: none;
}
.btn-dark:hover { background: var(--maize); transform: translateY(-2px); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.nav-logo {
  display: flex; align-items: center;
}
.nav-logo img { height: 90px; width: auto; display: block; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 400; color: #555; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; }

.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--light); z-index: 99; flex-direction: column;
  align-items: center; justify-content: center; gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Pearl Jean', serif; font-size: 2rem; color: var(--dark); }
.mobile-menu a:hover { color: var(--orange); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 2rem 5rem;
  position: relative; overflow: hidden;
}
.hero-tag {
  display: inline-block;
  background: var(--mid); color: #666;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero-title {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}
.hero-sub {
  font-size: 1.1rem; max-width: 520px; margin: 0 auto 2.5rem;
  color: #555; animation: fadeUp 0.8s 0.15s ease both;
}
.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.8s 0.3s ease both;
}

/* Blobs décoratifs */
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px);
  pointer-events: none; z-index: -1;
}
.blob1 { width: 400px; height: 400px; background: var(--maize); opacity: 0.25; top: -100px; right: -100px; }
.blob2 { width: 300px; height: 300px; background: var(--coral); opacity: 0.2; bottom: -50px; left: -80px; }
.blob3 { width: 250px; height: 250px; background: var(--green); opacity: 0.2; bottom: 100px; right: 10%; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SERVICES PREVIEW (accueil) ===== */
.services-preview {
  padding: 6rem 0;
  background: var(--mid);
}
.services-preview h2 { margin-bottom: 3rem; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem;
}
.service-card {
  background: var(--light);
  border-radius: 20px; padding: 2rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.service-icon { font-size: 1.5rem; }
.service-card h3 { font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; color: #666; flex: 1; }
.arrow { font-size: 1.2rem; color: var(--orange); }
.s1 { border-top: 4px solid var(--maize); }
.s2 { border-top: 4px solid var(--coral); }
.s3 { border-top: 4px solid var(--green); }
.s4 { border-top: 4px solid var(--orange); }

/* ===== ABOUT ===== */
.about-strip { padding: 6rem 0; }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.25rem; }
.about-text .btn-primary { margin-top: 0.5rem; }
.about-visual { position: relative; height: 320px; }
.about-blob {
  position: absolute; inset: 0; border-radius: 60% 40% 50% 60%;
  background: linear-gradient(135deg, var(--maize) 0%, var(--coral) 100%);
  opacity: 0.3;
}
.about-card {
  position: absolute; inset: 30px;
  background: var(--dark); border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.about-stat { text-align: center; color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.about-stat span { display: block; font-family: 'Pearl Jean', serif; font-size: 2rem; font-weight: 700; color: var(--maize); }

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { height: auto; padding: 1.5rem 0; }
  .about-blob { display: none; }
  .about-card { position: relative; inset: unset; padding: 2rem 1.5rem; gap: 1.2rem; }
  .about-stat span { font-size: 1.6rem; }
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--dark); padding: 5rem 2rem; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: #aaa; font-size: 1.1rem; margin-bottom: 2rem; }

/* ===== PAGE HERO (pages internes) ===== */
.page-hero {
  padding: 9rem 0 4rem; position: relative; overflow: hidden;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; max-width: 500px; }

/* ===== SERVICES PAGE ===== */
.services-full { padding: 4rem 0 6rem; }
.service-row {
  display: grid; grid-template-columns: 80px 1fr; gap: 2rem; align-items: start;
  padding: 3rem 0; border-bottom: 1px solid #e8e4dc;
}
.service-row.alt { background: var(--mid); padding: 3rem 2rem; border-radius: 20px; margin: 1.5rem -2rem; border-bottom: none; }
.service-num { font-family: 'Pearl Jean', serif; font-size: 3rem; font-weight: 700; color: #ddd; line-height: 1; }
.service-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.service-header h2 { font-size: 1.6rem; }
.service-tag { font-size: 0.75rem; font-weight: 500; padding: 5px 14px; border-radius: 100px; }
.service-desc { color: #555; margin-bottom: 1.25rem; }
.service-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
.service-list li { font-size: 0.9rem; color: #444; padding-left: 1.2rem; position: relative; }
.service-list li::before { content: '—'; position: absolute; left: 0; color: var(--orange); }

@media (max-width: 600px) {
  .service-row { grid-template-columns: 1fr; }
  .service-num { font-size: 2rem; }
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-section { padding: 3rem 0 6rem; }
.filter-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 8px 20px; border-radius: 100px;
  border: 1.5px solid #ddd; background: transparent;
  font-size: 0.85rem; font-family: 'DM Sans', sans-serif; cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--dark); color: #fff; border-color: var(--dark); }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem;
}
.portfolio-item { transition: transform 0.25s; }
.portfolio-item:hover { transform: translateY(-4px); }
.portfolio-thumb {
  border-radius: 16px; aspect-ratio: 4/3;
  overflow: hidden; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-placeholder { text-align: center; color: rgba(0,0,0,0.5); font-size: 0.9rem; }
.portfolio-placeholder small { display: block; font-size: 0.75rem; margin-top: 4px; opacity: 0.7; }
.portfolio-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); font-weight: 500; }
.portfolio-info h3 { font-size: 1rem; margin-top: 4px; }
.portfolio-note {
  margin-top: 3rem; padding: 1rem 1.5rem;
  background: #fff3cd; border-radius: 12px;
  font-size: 0.85rem; color: #6b4e00;
}
.portfolio-note code { background: rgba(0,0,0,0.08); padding: 2px 6px; border-radius: 4px; }

/* ===== CONTACT PAGE ===== */
.contact-section { padding: 3rem 0 6rem; }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #888; }
.contact-item a, .contact-item span { font-size: 0.95rem; color: var(--dark); }
.contact-item a:hover { color: var(--orange); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: #333; }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border: 1.5px solid #e0dbd2;
  border-radius: 12px; font-size: 0.95rem; font-family: 'DM Sans', sans-serif;
  background: #fff; color: var(--dark);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--orange);
}
.form-group textarea { resize: vertical; }
.form-success {
  background: #e8f5e9; color: #2e7d32;
  padding: 14px 18px; border-radius: 12px; font-size: 0.9rem; text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark); padding: 1.25rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; }
.footer-logo img { height: 60px; width: auto; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: #888; font-size: 0.85rem; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-copy { color: #555; font-size: 0.75rem; }

.devis-link {
  display: inline-block; margin-top: 1.25rem;
  font-size: 0.9rem; font-weight: 500; color: var(--orange);
  border-bottom: 1.5px solid var(--orange); padding-bottom: 2px;
  transition: opacity 0.2s;
}
.devis-link:hover { opacity: 0.7; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #111; color: #fff;
  padding: 1.25rem 2.5rem;
  align-items: center; justify-content: center; gap: 2rem;
  flex-wrap: wrap; z-index: 9999;
  border-top: 1px solid #333;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { font-size: 0.875rem; color: #ccc; margin: 0; }
.cookie-banner p a { color: #FCC74B; text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-accept {
  background: #E17126; color: #fff;
  border: none; padding: 10px 24px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: background 0.2s;
}
.cookie-accept:hover { background: #c55e1a; }
.cookie-decline {
  background: transparent; color: #aaa;
  border: 1.5px solid #555; padding: 10px 24px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.cookie-decline:hover { border-color: #aaa; color: #fff; }
