* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(180deg, #0c0a0c 0%, #151015 45%, #0b090b 100%);
  color: #f3eadf;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("images/logo.png") center center / 680px no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(180, 145, 92, 0.08), transparent 30%),
    radial-gradient(circle at bottom, rgba(80, 55, 35, 0.08), transparent 35%);
  pointer-events: none;
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* HEADER */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  background: rgba(18, 14, 16, 0.88);
  border-bottom: 1px solid rgba(180, 145, 92, 0.18);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #f3eadf;
  letter-spacing: 0.4px;
}

.nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.nav a {
  color: #d8c7a6;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover {
  color: #fff4df;
}

/* MAIN */

main {
  padding: 0 40px 70px;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: 520px 1fr;
  align-items: center;
  gap: 56px;
  max-width: 1350px;
  margin: 0 auto;
  padding: 90px 20px 70px;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(180, 145, 92, 0.12);
}

.hero-left {
  max-width: 700px;
}

.hero-tag {
  color: #c7a46a;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  margin: 0 0 26px;
  color: #f7efe3;
}

.hero-text {
  color: #d8cbbb;
  font-size: 1.3rem;
  line-height: 1.8;
  margin: 0 0 34px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: #8a6842;
  color: #fff8ef;
  border: 1px solid #a98355;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(169, 131, 85, 0.25);
}

.btn-secondary {
  background: transparent;
  color: #e7d8c1;
  border: 1px solid rgba(169, 131, 85, 0.45);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 248, 239, 0.04);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.scan-line {
  display: none;
}

/* SECTIONS */

.featured,
.projects-page,
.article-content,
.about-text,
.projects-list,
.gallery-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.featured {
  margin-top: 30px;
}

.section-title {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 30px;
}

.section-title p {
  color: #c7a46a;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  color: #f3eadf;
}

/* CARDS */

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.card {
  width: 320px;
  background: rgba(24, 18, 20, 0.88);
  border: 1px solid rgba(180, 145, 92, 0.16);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(180, 145, 92, 0.35);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.card-label {
  color: #c7a46a;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: inline-block;
}

.card h3 {
  font-size: 1.5rem;
  margin: 0 0 12px;
  color: #f3eadf;
}

.card p {
  color: #d7cbbb;
  line-height: 1.7;
  margin: 0;
}

.card img,
.materiel-image {
  width: 120px;
  height: auto;
  display: block;
  margin: 16px auto;
}

/* FOOTER */

.footer {
  background: #0d0a0b;
  color: #e8dcc8;
  text-align: center;
  padding: 28px 20px;
  margin-top: 50px;
  border-top: 1px solid rgba(180, 145, 92, 0.14);
}

.footer .socials {
  margin-top: 12px;
}

.footer .socials a {
  color: #d8c7a6;
  margin: 0 10px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer .socials a:hover {
  color: #fff4df;
}

.footer-text {
  color: #cfc1ae;
  margin-top: 14px;
}

/* PROJECTS / ENQUÊTES */

.projects-list {
  width: 100%;
  max-width: 900px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-item {
  background: rgba(24, 18, 20, 0.88);
  border: 1px solid rgba(180, 145, 92, 0.16);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.project-item h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #f3eadf;
}

.project-item p {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #d7cbbb;
}

.project-item .btn {
  padding: 10px 16px;
  font-size: 0.95rem;
}

.project-image {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  display: block;
  margin-top: 14px;
}

.projects-page .btn-secondary {
  display: inline-block;
  margin-bottom: 20px;
}

/* SEARCH BAR */

.search-bar {
  display: flex;
  justify-content: center;
  margin: 30px 0 40px;
}

.search-bar input {
  width: 100%;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(180, 145, 92, 0.24);
  background: rgba(20, 16, 18, 0.9);
  color: #f3eadf;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar input::placeholder {
  color: rgba(243, 234, 223, 0.45);
}

.search-bar input:focus {
  border-color: rgba(180, 145, 92, 0.55);
  box-shadow: 0 0 20px rgba(169, 131, 85, 0.12);
}

/* ARTICLES */

.article-header {
  max-width: 900px;
  margin: 80px auto 60px;
  text-align: center;
  padding: 0 20px;
}

.article-tag,
.about-kicker {
  color: #c7a46a;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.article-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 20px;
  color: #f3eadf;
}

.article-intro {
  color: #d7cbbb;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-top: 10px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  text-align: center;
  font-size: 2.1rem;
  margin: 40px 0 20px;
  color: #f3eadf;
}

.article-content h3 {
  text-align: center;
  color: #eadfcd;
}

.article-content p {
  color: #d7cbbb;
  text-align: justify;
  line-height: 1.9;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.article-content ul {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 20px;
  color: #d7cbbb;
}

.article-content li {
  margin-bottom: 6px;
}

.article-image {
  display: block;
  margin: 40px auto;
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(180, 145, 92, 0.14);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
}

code {
  font-family: Consolas, monospace;
  font-size: 14px;
}

/* BLOC CONSEIL */

.beginner-tip {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px 24px;
  color: #e7d8c1;
  font-size: 1.05rem;
  line-height: 1.7;
  border-left: 3px solid #a98355;
  background: linear-gradient(
    90deg,
    rgba(169, 131, 85, 0.12),
    rgba(169, 131, 85, 0.03)
  );
  border-radius: 10px;
}

.beginner-tip strong {
  display: block;
  margin-bottom: 8px;
  color: #c7a46a;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ABOUT */

.about-text {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f3eadf;
}

.about-text p {
  color: #d7cbbb;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* SOCIAL CARD */

.social-card {
  color: #f3eadf;
}

.social-card:visited {
  color: #f3eadf;
}

.social-card h3 {
  color: #c7a46a;
  transition: color 0.2s ease;
}

.social-card:hover h3 {
  color: #fff4df;
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.gallery-item {
  background: rgba(24, 18, 20, 0.88);
  border: 1px solid rgba(180, 145, 92, 0.14);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  border-color: rgba(180, 145, 92, 0.28);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  background: #120f12;
  padding: 10px;
}

.gallery-content {
  padding: 20px;
}

.gallery-content h3 {
  color: #c7a46a;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-top: 0;
}

.gallery-content p {
  margin: 0;
  line-height: 1.7;
  color: #d7cbbb;
}

.gallery-item:hover h3 {
  color: #fff4df;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .header {
    padding: 18px 20px;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    justify-content: center;
  }

  main {
    padding: 0 20px 40px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 70px 10px 50px;
    text-align: center;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-tag,
  .hero h1,
  .hero-text {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-logo img {
    max-width: 420px;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 700px) {
  .logo {
    font-size: 1.6rem;
    text-align: center;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 0.98rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-text {
    font-size: 1.08rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .cards {
    gap: 18px;
  }

  .card {
    width: 100%;
  }

  body::before {
    background-size: 420px;
  }
}

.card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.newsletter {
  margin-top: 80px;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.newsletter-content {
  max-width: 700px;
  text-align: center;
  background: rgba(24, 18, 20, 0.85);
  border: 1px solid rgba(180, 145, 92, 0.2);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.newsletter-tag {
  color: #c7a46a;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.newsletter h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.newsletter-text {
  color: #d7cbbb;
  margin-bottom: 30px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(180, 145, 92, 0.3);
  background: rgba(20,16,18,0.9);
  color: white;
  min-width: 220px;
}

.newsletter-form button {
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  background: #8a6842;
  color: #fff8ef;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(169,131,85,0.3);
}

/* Effet lumière douce au hover */
.newsletter-content {
  position: relative;
  overflow: hidden;
}

.newsletter-content::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 220, 150, 0.18),
    rgba(255, 200, 120, 0.08) 25%,
    transparent 60%
  );
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.newsletter-content:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Légère mise en relief au hover */
.newsletter-content:hover {
  border-color: rgba(180, 145, 92, 0.35);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

/* ===== Effet lumière du manoir sur les cartes ===== */

.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 220, 150, 0.18),
    rgba(255, 200, 120, 0.08) 25%,
    transparent 60%
  );
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* petit boost visuel au hover */
.card:hover {
  border-color: rgba(180, 145, 92, 0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  transform: translateY(-6px);
}

/* ===== Bougies flottantes du manoir ===== */

.floating-candles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.candle {
  position: absolute;
  width: 14px;
  height: 34px;
  background: linear-gradient(180deg, #f4e6c8 0%, #d8b98a 100%);
  border-radius: 6px 6px 4px 4px;
  box-shadow:
    0 0 12px rgba(255, 220, 150, 0.18),
    0 0 30px rgba(255, 190, 110, 0.1);
  opacity: 0.35;
}

.candle::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 10px;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 70%, #ffd36b 0%, #ffb347 45%, rgba(255, 140, 60, 0.85) 75%, transparent 100%);
  border-radius: 50% 50% 45% 45%;
  filter: blur(0.4px);
  animation: flameFlicker 1.8s ease-in-out infinite;
}

.candle::after {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 55px;
  height: 55px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 210, 120, 0.16) 0%, rgba(255, 180, 90, 0.08) 35%, transparent 70%);
  pointer-events: none;
}

.candle-1 {
  left: 8%;
  top: 18%;
  animation: floatCandle1 12s ease-in-out infinite;
}

.candle-2 {
  left: 22%;
  top: 70%;
  animation: floatCandle2 15s ease-in-out infinite;
}

.candle-3 {
  right: 14%;
  top: 24%;
  animation: floatCandle3 14s ease-in-out infinite;
}

.candle-4 {
  right: 8%;
  top: 72%;
  animation: floatCandle4 16s ease-in-out infinite;
}

.candle-5 {
  left: 50%;
  top: 48%;
  animation: floatCandle5 18s ease-in-out infinite;
}

@keyframes flameFlicker {
  0%, 100% {
    transform: translateX(-50%) scale(1) rotate(0deg);
    opacity: 0.95;
  }
  50% {
    transform: translateX(-50%) scale(1.08, 0.95) rotate(2deg);
    opacity: 1;
  }
}

@keyframes floatCandle1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -22px); }
}

@keyframes floatCandle2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-16px, -28px); }
}

@keyframes floatCandle3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 18px); }
}

@keyframes floatCandle4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(14px, -20px); }
}

@keyframes floatCandle5 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -24px); }
}

.header,
main,
.footer {
  position: relative;
  z-index: 2;
}

.hero.centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.hero.centered .hero-left {
  max-width: 800px;
  margin: 0 auto;
}