/* ═══════════════════════════════════════════════
   L'atelier iTech — Feuille de style principale
   ═══════════════════════════════════════════════ */

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

:root {
  --dark:       #0d0d0d;
  --charcoal:   #1a1a1a;
  --gold:       #c9a84c;
  --gold-light: #e8c97b;
  --cream:      #f5f0e8;
  --white:      #ffffff;
  --gray:       #888;
  --border:     rgba(201,168,76,0.25);
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ══════════════════════════════════════
   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 3rem;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.4));
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover               { color: var(--gold-light); }
.nav-links a:hover::after        { width: 100%; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 3rem 4rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      to right,
      rgba(10,10,10,0.92) 0%,
      rgba(10,10,10,0.75) 50%,
      rgba(10,10,10,0.45) 100%
    ),
    url('/images/hero-bg.jpg') center center / cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--dark));
  pointer-events: none;
}

.hero-text {
  max-width: 660px;
  position: relative;
  z-index: 1;
  animation: fadeUp 1s ease both;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  background: rgba(201,168,76,0.06);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.6rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #aaa;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-tel {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.05em;
}

.hero-tel strong {
  color: var(--gold-light);
  font-weight: 500;
}

/* ══════════════════════════════════════
   BOUTONS
══════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}

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

.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: border-color 0.3s, color 0.3s;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ══════════════════════════════════════
   SECTIONS GÉNÉRALES
══════════════════════════════════════ */
section { padding: 6rem 3rem; }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.section-sub {
  font-size: 1rem;
  color: #888;
  max-width: 560px;
  line-height: 1.8;
  margin: 0 auto 3.5rem;
}

.text-center { text-align: center; }

/* ══════════════════════════════════════
   SERVICES
══════════════════════════════════════ */
#services {
  background:
    linear-gradient(
      rgba(13,13,13,0.82) 0%,
      rgba(13,13,13,0.88) 100%
    ),
    url('/images/services-bg.jpg') center center / cover no-repeat !important;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.service-card {
  background: rgba(26,26,26,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.7rem;
}

/* ══════════════════════════════════════
   À PROPOS
══════════════════════════════════════ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-text .section-label,
.about-text .section-title { text-align: left; }

.about-text p {
  color: #999;
  line-height: 1.9;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 6px;
  flex-shrink: 0;
}

.value-item strong { color: var(--cream); font-weight: 500; }
.value-item span   { color: #777; font-size: 0.9rem; }

.about-visual { position: relative; }

.about-visual img {
  width: 100%;
  border-radius: 14px;
  filter: brightness(0.75) contrast(1.1);
}

.about-quote {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  max-width: 220px;
}

.about-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold-light);
  line-height: 1.5;
}

/* ══════════════════════════════════════
   TARIFS
══════════════════════════════════════ */
.tarifs-section { background: var(--charcoal); }

.tarifs-intro {
  text-align: center;
  font-size: 1rem;
  color: #888;
  max-width: 620px;
  margin: 0 auto 3.5rem;
  font-style: italic;
}

.tarif-category {
  max-width: 1100px;
  margin: 0 auto 3.5rem;
}

.tarif-category-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.tarif-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.tarif-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.tarif-card.green::before  { background: #4caf78; }
.tarif-card.blue::before   { background: #4c8ecf; }
.tarif-card.purple::before { background: #9c6bcf; }
.tarif-card.red::before    { background: #cf4c4c; }
.tarif-card.yellow::before { background: #c9a84c; }

.tarif-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border-color: rgba(201,168,76,0.4);
}

.tarif-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
  flex-shrink: 0;
}

.dot-green  { background: #4caf78; }
.dot-blue   { background: #4c8ecf; }
.dot-purple { background: #9c6bcf; }
.dot-red    { background: #cf4c4c; }
.dot-yellow { background: #c9a84c; }

.tarif-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tarif-card .tarif-desc {
  font-size: 0.83rem;
  color: #777;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tarif-features { list-style: none; }

.tarif-features li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
  color: #999;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.tarif-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.tarif-price-tag {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.25rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

.tarif-info-box {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  max-width: 1100px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.tarif-info-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tarif-info-box ul { list-style: none; }

.tarif-info-box ul li {
  font-size: 0.85rem;
  color: #888;
  padding: 0.3rem 0;
  display: flex;
  gap: 0.5rem;
}

.tarif-info-box ul li::before {
  content: '→';
  color: var(--gold);
}

/* ══════════════════════════════════════
   TARIF TIP & PREMIUM CARD
══════════════════════════════════════ */
.tarif-tip {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: #777;
  font-style: italic;
}

.tarif-card--premium {
  border-color: rgba(240,114,48,0.4);
  background: rgba(240,114,48,0.05);
  position: relative;
}

.tarif-card--premium::before {
  background: linear-gradient(to right, #f07230, #e8c97b) !important;
}

.premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f07230, #e8c97b);
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info .section-label,
.contact-info .section-title { text-align: left; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(37,211,102,0.25);
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

.contact-info p {
  color: #888;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 500;
}

.contact-item span {
  color: var(--gray);
  font-size: 0.82rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.form-group select option {
  background: var(--charcoal);
  color: var(--cream);
}

.form-group select optgroup {
  color: var(--gold);
  font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }

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

.form-group input::placeholder,
.form-group textarea::placeholder { color: #555; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  padding: 3rem;
  text-align: center;
}

footer p {
  font-size: 0.82rem;
  color: #555;
  margin-top: 0.5rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 1.5rem 0;
}

footer .footer-links a {
  font-size: 0.8rem;
  color: #666;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE MOBILE
══════════════════════════════════════ */
@media (max-width: 900px) {
  nav                  { padding: 1rem 1.5rem; }
  .nav-links           { display: none; }
  .hero                { padding: 6rem 1.5rem 3rem; }
  .about-inner         { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual        { display: none; }
  .contact-inner       { grid-template-columns: 1fr; gap: 2.5rem; }
  section              { padding: 4rem 1.5rem; }
}

@media (max-width: 600px) {
  .tarif-info-box { grid-template-columns: 1fr; }
}
