/* Le Pied de la Lettre — site styles. Replaces Tailwind Play CDN + Font Awesome. */

/* ---------- Self-hosted Montserrat (variable, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local('Montserrat'), url('/assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local('Montserrat'), url('/assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #fdf6e3;
  color: #333;
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
ul { padding-left: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5rem; line-height: 1.25; }
p { margin: 0 0 1rem; }

/* Skip link */
.skip-link {
  position: absolute; top: -40px; left: 0; background: #654321; color: #fff;
  padding: 8px 16px; z-index: 100; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(253, 246, 227, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.nav-container {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.125rem;
  color: #333;
}
.brand img {
  height: 5rem;
  width: auto;
  margin-right: 1rem;
  transition: transform 0.2s ease;
}
.brand:hover img { transform: scale(1.05); }
.menu-btn {
  display: flex;
  align-items: center;
  color: #4b5563;
}
.menu-btn:focus-visible { outline: 2px solid #b58900; outline-offset: 2px; }
.menu-btn svg { width: 1.5rem; height: 1.5rem; }
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  flex-direction: column;
  background-color: #fdf6e3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0;
  color: #333;
}
.site-nav a:hover { color: #b58900; }
.site-nav a.is-active { color: #b58900; font-weight: 600; }
.site-nav.is-open { display: flex; }

@media (min-width: 768px) {
  .nav-container { padding: 1rem 2rem; }
  .brand { font-size: 1.25rem; }
  .brand img { height: 7rem; }
  .menu-btn { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 2rem;
    font-size: 1rem;
  }
  .site-nav a { padding: 0; }
}

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background-image: url('../images/image.webp');
  background-size: cover;
  background-position: center;
}
@media (min-width: 768px) {
  .hero { background-attachment: fixed; }
}
.hero-card {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 42rem;
}
.hero-card h2 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #2b2b2b;
}
@media (min-width: 768px) {
  .hero-card { padding: 2.5rem; }
  .hero-card h2 { font-size: 1.125rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background-color: #b58900;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}
.btn:hover { background-color: #8c6a00; transform: translateY(-2px); color: #fff; }

.cta-bottom {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #8c6a00;
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s, transform 0.2s;
  z-index: 60;
  text-align: center;
}
.cta-bottom:hover {
  background-color: #6f5400;
  transform: translateX(-50%) scale(1.05);
  color: #fff;
}

/* ---------- Banner (page hero on subpages) ---------- */
.banner {
  position: relative;
  width: 100%;
  height: 50vh;
  margin-top: 7rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner img,
.banner picture,
.banner picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}
.banner:hover img { transform: scale(1.05); }
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.banner h1, .banner-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .banner h1, .banner-text { font-size: 3rem; }
}

/* Compact contact banner variant */
.banner.banner-compact { height: 40vh; margin-top: 6.5rem; }

/* ---------- Main content ---------- */
.main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}
@media (min-width: 768px) {
  .main { padding: 4rem 2rem; }
}

.content-block,
.content-card,
.content-section {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}
.content-block.has-accent { border-left: 4px solid #b58900; }
@media (min-width: 768px) {
  .content-block, .content-card, .content-section { padding: 2.5rem; }
}

.content-block ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}
.content-block ul li { margin-bottom: 0.75rem; }
.content-block p, .content-card p, .content-section p { line-height: 1.7; }

.content-card p { text-align: left; }
.content-section p { text-align: justify; }

/* ---------- Tarifs page ---------- */
.tarif-list { display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0; }
.tarif-block {
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1.125rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tarif-block:hover {
  background-color: #f7f1e8;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.tarif-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: #8c6a00;
}
.tarif-text { flex: 1; font-weight: 500; font-size: 1.05rem; }
.tarif-price { font-weight: 700; color: #8c6a00; text-align: right; min-width: 7rem; }
.contact-cta { margin-top: 2rem; font-size: 1.05rem; font-weight: 500; line-height: 1.7; }
.contact-cta a { color: #8c6a00; font-weight: 600; }
.contact-cta a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .tarif-block { flex-wrap: wrap; }
  .tarif-price { min-width: 100%; text-align: left; padding-left: 3rem; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}
.contact-block:hover { transform: translateY(-3px); }
.contact-icon { width: 2rem; height: 2rem; flex-shrink: 0; color: #8c6a00; }
.section-sub { font-size: 1.05rem; color: #4a3a26; font-weight: 600; margin-bottom: 0.25rem; }
.contact-block a { color: #333; }
.contact-block a:hover { color: #8c6a00; }
.map-card { background-color: #fff; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.map-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.map-header svg { width: 2rem; height: 2rem; color: #8c6a00; flex-shrink: 0; }
.map-container { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.map-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ethics {
  background: rgba(101, 67, 33, 0.06);
  border-radius: 1rem;
  padding: 2rem;
}
.ethics h2 { font-size: 1.6rem; font-weight: 600; color: #4a3a26; margin-bottom: 1rem; }
.ethics p { font-size: 1.05rem; line-height: 1.6; }

/* ---------- Parcours timeline ---------- */
.parchemin-bg {
  background-image: url('/images/parchemin-1920w.webp');
  background-size: cover;
  background-position: center;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  position: relative;
}
@media (min-width: 768px) {
  .parchemin-bg { background-attachment: fixed; padding: 2.5rem; }
}
.parcours-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 3rem; }
.parcours-header img {
  width: 8rem; height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 4px solid #fdf6e3;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}
.parcours-header img:hover { transform: scale(1.05); }
.parcours-header .name { font-size: 1.125rem; font-weight: 600; color: #4a3a26; margin-bottom: 1rem; }
.parcours-header h1 { font-size: 1.875rem; font-weight: 700; color: #4a3a26; text-align: center; }
@media (min-width: 768px) {
  .parcours-header img { width: 10rem; height: 10rem; }
  .parcours-header h1 { font-size: 2.25rem; }
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #b58900;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
}
.timeline-icon {
  width: 2.5rem; height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  z-index: 1;
}
.timeline-icon svg { width: 1.125rem; height: 1.125rem; }
.timeline-icon.bg-1 { background: #b58900; }
.timeline-icon.bg-2 { background: #5b8d6a; }
.timeline-icon.bg-3 { background: #c97259; }
.timeline-icon.bg-4 { background: #b89139; }
.timeline-card {
  background-color: rgba(255, 255, 255, 0.92);
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}
.timeline-card:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); }
.timeline-card h3 { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; }
.timeline-card p { font-size: 0.9rem; margin: 0; line-height: 1.65; }
@media (min-width: 768px) {
  .timeline { gap: 4rem; }
  .timeline-item { align-items: center; }
  .timeline-card { width: 75%; padding: 1.5rem; }
  .timeline-card h3 { font-size: 1.25rem; }
  .timeline-card p { font-size: 1rem; }
  .timeline-item.alt { flex-direction: row-reverse; }
  .timeline-icon { width: 3rem; height: 3rem; }
}

/* ---------- References list ---------- */
.refs { display: flex; flex-direction: column; gap: 2.5rem; line-height: 1.7; }
.refs section h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: #2b2b2b; }
.refs section p { margin: 0 0 0.5rem; }
.refs ul { list-style: disc; padding-left: 1.5rem; margin: 0.5rem 0 0; }
.refs ul li { margin-bottom: 0.25rem; }

/* ---------- Floating feather ---------- */
.feather-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  color: #8c6a00;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s, transform 0.4s;
  z-index: 50;
  pointer-events: none;
}
.feather-float.show { opacity: 1; transform: translateY(0); animation: float 3s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.show { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in.show, .feather-float, .feather-float.show, .banner img, .timeline-card,
  .btn, .cta-bottom, .tarif-block, .contact-block, .brand img, .parcours-header img {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
