/* ============================================================
   Atelier Nord — Site vitrine 4 pages (exemple LuxFix)
   Palette : pétrole #175e5d · terracotta #d97b42 · sable #fbf7f1
   ============================================================ */

/* --- Variables + Reset --- */
:root {
  --bg: #fbf7f1;
  --bg-alt: #f2ebe0;
  --surface: #ffffff;
  --ink: #1f2a2b;
  --muted: #57676a;
  --primary: #175e5d;
  --primary-dark: #0d4544;
  --accent: #d97b42;
  --accent-dark: #b85c27;
  --border: rgba(31, 42, 43, 0.08);
  --shadow-sm: 0 1px 3px rgba(23, 94, 93, 0.06);
  --shadow-md: 0 6px 20px rgba(23, 94, 93, 0.08);
  --shadow-lg: 0 12px 40px rgba(23, 94, 93, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1140px;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* --- Typographie --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.eyebrow { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.6rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); margin-top: 0.6rem; font-size: 0.98rem; }

/* --- Layout --- */
.container { width: min(90%, var(--max-w)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }

/* --- Préchargeur --- */
#preloader { position: fixed; inset: 0; z-index: 9999; background: var(--primary); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; transition: opacity 0.4s, visibility 0.4s; }
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.preloader-tag { color: rgba(255, 255, 255, 0.6); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
.preloader-bar { width: 200px; height: 3px; background: rgba(255, 255, 255, 0.2); border-radius: 4px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; }

/* --- Barre de progression + retour haut --- */
#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 10001; }
.to-top { position: fixed; bottom: 1.8rem; right: 1.8rem; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s; z-index: 999; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary-dark); }

/* --- Bandeau annonce --- */
.announce-bar { background: var(--primary); color: rgba(255, 255, 255, 0.88); text-align: center; padding: 0.5rem 1rem; font-size: 0.82rem; font-weight: 500; }
.announce-bar strong { color: var(--accent); }

/* --- Header --- */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1rem 0; margin-bottom: 0; transition: background 0.3s, box-shadow 0.3s, padding 0.3s; }
.site-header.scrolled { background: rgba(251, 247, 241, 0.94); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); padding: 0.55rem 0; }
.header-inner { width: min(90%, var(--max-w)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; }
.logo-mark.accent { background: var(--accent); }
.desktop-nav { display: flex; gap: 1.8rem; }
.desktop-nav a { font-size: 0.9rem; font-weight: 500; color: var(--ink); transition: color 0.2s; }
.desktop-nav a:hover { color: var(--primary); }
.header-cta { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.menu-btn { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* --- Menu mobile --- */
.mobile-menu { position: fixed; inset: 0; z-index: 10002; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2rem; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.menu-close { position: absolute; top: 1.2rem; right: 1.5rem; font-size: 2rem; color: var(--ink); line-height: 1; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.mobile-nav a { font-size: 1.4rem; font-weight: 600; font-family: var(--font-display); color: var(--ink); transition: color 0.2s; }
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav .btn { margin-top: 0.6rem; }

/* --- Boutons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.6rem; border-radius: 100px; font-weight: 600; font-size: 0.9rem; transition: background 0.25s, transform 0.2s, box-shadow 0.25s, color 0.25s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(23, 94, 93, 0.25); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 4px 14px rgba(217, 123, 66, 0.3); }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--bg-alt); }

/* --- Héro accueil --- */
.hero-section { padding: 8.5rem 0 5rem; }
.hero-section .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-copy h1 { margin-bottom: 1rem; }
.hero-copy h1 em { color: var(--primary); font-style: normal; }
.hero-copy .sub { font-size: 1.08rem; color: var(--muted); margin-bottom: 1.8rem; max-width: 480px; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-proof { display: flex; align-items: center; gap: 0.9rem; }
.avatar-stack { display: flex; }
.avatar-stack img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px; object-fit: cover; }
.avatar-stack img:first-child { margin-left: 0; }
.social-proof { font-size: 0.85rem; color: var(--muted); }
.social-proof strong { color: var(--ink); }
.social-proof .stars { color: var(--accent); letter-spacing: 1px; }

.hero-visual { position: relative; }
.hero-img-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-floating-card { position: absolute; bottom: -1.1rem; left: -1.6rem; background: var(--surface); border-radius: var(--radius-sm); padding: 0.85rem 1.2rem; box-shadow: var(--shadow-md); font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; gap: 0.6rem; }
.hero-floating-card .dot-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
.hero-chip { position: absolute; top: 1.2rem; right: -1rem; background: var(--accent); color: #fff; border-radius: 100px; padding: 0.5rem 1.05rem; font-size: 0.8rem; font-weight: 600; box-shadow: var(--shadow-md); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 123, 66, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(217, 123, 66, 0); }
}

/* --- Page héro interne --- */
.page-hero { padding: 7.5rem 0 3rem; text-align: center; }
.page-hero .container { max-width: 640px; }
.page-hero h1 { margin-bottom: 0.8rem; }
.page-hero p { color: var(--muted); font-size: 1.02rem; }

/* --- Bandeau de confiance --- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.8rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 3rem 0; }
.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 1.7rem; font-family: var(--font-display); color: var(--primary); margin-bottom: 0.15rem; }
.trust-item span { font-size: 0.85rem; color: var(--muted); }

/* --- Services (accueil) --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: var(--surface); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: box-shadow 0.3s, transform 0.3s; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); font-size: 0.9rem; }
.service-link { display: inline-block; margin-top: 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.service-link:hover { text-decoration: underline; }

/* --- Portfolio --- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: box-shadow 0.3s, transform 0.3s; }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project-img { position: relative; overflow: hidden; }
.project-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.45s; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-badge { position: absolute; top: 0.8rem; left: 0.8rem; background: var(--primary); color: #fff; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.32rem 0.75rem; border-radius: 100px; }
.project-info { padding: 1.25rem 1.4rem 1.4rem; }
.project-info h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.project-info p { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.9rem; }
.project-meta { display: flex; gap: 1.1rem; font-size: 0.78rem; color: var(--muted); }
.project-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* --- Chips filtres --- */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2rem; justify-content: center; }
.chip { padding: 0.45rem 1.15rem; border-radius: 100px; border: 1.5px solid var(--border); font-size: 0.85rem; font-weight: 500; background: var(--surface); color: var(--muted); transition: all 0.2s; cursor: pointer; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Processus --- */
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px; background: var(--border); }
.process-step { text-align: center; position: relative; z-index: 1; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 0 auto 1rem; box-shadow: 0 6px 16px rgba(23, 94, 93, 0.3); }
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { color: var(--muted); font-size: 0.9rem; max-width: 280px; margin: 0 auto; }

/* --- Témoignages --- */
.slider-wrapper { position: relative; margin-top: 1.5rem; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.slide { min-width: 100%; padding: 0 1rem; }
.slide-card { background: var(--surface); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); text-align: center; max-width: 620px; margin: 0 auto; }
.slide-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 0.9rem; letter-spacing: 2px; }
.slide-card blockquote { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--ink); margin-bottom: 1.2rem; line-height: 1.55; }
.slide-author { display: flex; align-items: center; justify-content: center; gap: 0.8rem; }
.slide-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.slide-author-info { text-align: left; }
.slide-author-info strong { display: block; font-size: 0.9rem; }
.slide-author-info span { font-size: 0.8rem; color: var(--muted); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.4rem; }
.slider-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--ink); transition: background 0.2s, color 0.2s, border-color 0.2s; background: var(--surface); }
.slider-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.slider-dots { display: flex; gap: 0.45rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); transition: background 0.2s, transform 0.2s; }
.dot.active { background: var(--primary); transform: scale(1.3); }

/* --- Bannière CTA --- */
.cta-banner { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border-radius: var(--radius); padding: 3.5rem 2.5rem; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.82); margin-bottom: 1.6rem; max-width: 500px; margin-inline: auto; }

/* --- Équipe --- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { background: var(--surface); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: box-shadow 0.3s, transform 0.3s; }
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.team-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 3px solid var(--bg-alt); }
.team-card h3 { margin-bottom: 0.2rem; }
.team-card .role { color: var(--accent); font-size: 0.85rem; font-weight: 500; }
.team-card .bio { color: var(--muted); font-size: 0.85rem; margin-top: 0.7rem; line-height: 1.6; }

/* --- Valeurs --- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card { background: var(--surface); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: box-shadow 0.3s, transform 0.3s; }
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.value-icon { font-size: 2.2rem; margin-bottom: 0.8rem; display: block; }
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { color: var(--muted); font-size: 0.9rem; }

/* --- Statistiques --- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 1.6rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.stat-num { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--primary); display: block; line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; display: block; }

/* --- À propos : histoire --- */
.about-story { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.story-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.story-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.story-text p { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }
.story-text h2 { margin-bottom: 1.1rem; }
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--primary); margin-top: 1.4rem; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.info-card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.info-card .info-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.4rem; }
.info-card p { color: var(--muted); font-size: 0.94rem; line-height: 1.7; }
.info-card a { color: var(--primary); font-weight: 500; }
.info-card a:hover { text-decoration: underline; }
.info-card h4 { margin-bottom: 0.5rem; }
.contact-form { background: var(--surface); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 0.72rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9rem; background: var(--bg); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23, 94, 93, 0.1); }
.field textarea { resize: vertical; min-height: 120px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e74c3c; }
.field-error { font-size: 0.78rem; color: #e74c3c; margin-top: 0.3rem; min-height: 1em; }
.form-feedback { font-size: 0.88rem; min-height: 1.2em; margin-top: 0.6rem; }
.form-feedback.error { color: #e74c3c; }
.form-success { background: #e6f4e8; border: 1px solid #bfe2c6; border-radius: var(--radius-sm); padding: 1.3rem; text-align: center; margin-top: 1rem; }
.form-success strong { color: #2e7d32; display: block; font-size: 1rem; margin-bottom: 0.4rem; }
.form-success p { color: #4c7c51; font-size: 0.9rem; }

/* --- Footer --- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.68); margin-top: 5rem; }
.footer-inner { width: min(90%, var(--max-w)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 2.5rem; padding: 3.2rem 0 2.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer-col p { font-size: 0.86rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.85rem; }
.footer-col a { display: block; font-size: 0.88rem; margin-bottom: 0.45rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding: 1.2rem 1rem; font-size: 0.82rem; }
.footer-bottom strong { color: var(--accent); font-weight: 600; }

/* --- Révélations --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-section .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; margin: 0 auto; }
  .hero-floating-card { left: 0; }
  .hero-chip { right: 0.5rem; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .process-steps, .team-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-story { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .desktop-nav, .header-cta { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 560px) {
  .hero-section { padding: 6.5rem 0 3rem; }
  .services-grid, .projects-grid, .process-steps, .team-grid, .values-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .to-top { bottom: 1.2rem; right: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .slider-track { transition: none; }
  html { scroll-behavior: auto; }
}