/* ===========================================================
   Le Temps des Étoffes — feuille de style commune
   Palette et typographies reprises de la plaque de l'atelier.
   =========================================================== */


:root {
  --blue: #cfe1e5;
  --blue-deep: #9fb7c3;
  --terracotta: #c85a3c;
  --cream: #f7f2e8;
  --surface: #fbf6ec;
  --ink: #362e27;
  --muted: #6b6154;
  --border: #e6ddc9;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  height: 44px;
  width: auto;
}

.nav-brand .name {
  font-family: "Pinyon Script", cursive;
  font-size: 1.7rem;
  color: var(--terracotta);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--terracotta);
}

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--surface) !important;
  border: none;
  padding: 11px 22px;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.88; }
.btn:active { opacity: 0.78; }

.btn-outline {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
}

.nav-toggle {
  display: none;
}

/* ---------- Hero plaque (accueil) ---------- */

.hero-plaque {
  text-align: center;
  padding: 64px 24px 44px;
  background: linear-gradient(180deg, #d6e5e9 0%, #c9dbe0 100%);
  color: var(--terracotta);
}

.hero-plaque .sprig {
  width: 78px;
  height: auto;
  margin: 0 auto 12px;
}

.hero-plaque .name {
  font-family: "Pinyon Script", cursive;
  font-size: clamp(3rem, 8vw, 4.4rem);
  line-height: 1;
  margin: 0 0 12px;
}

.hero-plaque .tag {
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
}

.meadow-strip {
  height: 16px;
  background-image:
    radial-gradient(circle, #e2864f 3px, transparent 3.2px),
    radial-gradient(circle, #d9718c 2.4px, transparent 2.6px),
    radial-gradient(circle, #e0b23f 2.2px, transparent 2.4px);
  background-size: 46px 16px, 46px 16px, 46px 16px;
  background-position: 6px 60%, 22px 30%, 34px 70%;
}

.hero-band {
  background: var(--terracotta);
  color: var(--surface);
  text-align: center;
  padding: 18px 24px;
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* ---------- Hero photo (première section, accueil) ---------- */

.hero-photo {
  position: relative;
  overflow: hidden;
  padding: 100px 24px 88px;
  color: var(--surface);
}

.hero-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 42%;
  z-index: 0;
}

.hero-photo-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(54, 46, 39, 0.90) 0%,
    rgba(54, 46, 39, 0.78) 32%,
    rgba(54, 46, 39, 0.42) 60%,
    rgba(54, 46, 39, 0.14) 100%
  );
}

.hero-photo-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-photo-content .eyebrow-small { color: #eabd94; }
.hero-photo-content .intro-title { color: var(--surface); }
.hero-photo-content p { color: rgba(251, 246, 236, 0.9); }
.hero-photo-content p.lead { color: var(--surface); }

.hero-photo-content .btn-outline {
  border-color: var(--surface);
  color: var(--surface) !important;
}

@media (max-width: 760px) {
  .hero-photo {
    padding: 72px 20px 56px;
  }
  .hero-photo-content {
    max-width: 100%;
  }
  .hero-photo-bg {
    object-position: 22% 32%;
  }
  .hero-photo-scrim {
    background: linear-gradient(
      180deg,
      rgba(54, 46, 39, 0.62) 0%,
      rgba(54, 46, 39, 0.88) 55%,
      rgba(54, 46, 39, 0.94) 100%
    );
  }
}

/* Variante centrée du fond photo (bandeaux d'appel à l'action) */

.cta-photo {
  position: relative;
  overflow: hidden;
  padding: 84px 24px;
  text-align: center;
  color: var(--surface);
}

.cta-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  z-index: 0;
}

.cta-photo-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(54, 46, 39, 0.82) 0%,
    rgba(54, 46, 39, 0.68) 100%
  );
}

.cta-photo-content {
  position: relative;
  z-index: 2;
}

.cta-photo-content .eyebrow-small { color: #eabd94; }
.cta-photo-content .section-title { color: var(--surface); }

/* Second bouton (outline) sur fond photo : passe en blanc plein pour
   rester bien visible, plutôt qu'un simple contour qui se fond dans l'image. */
.cta-photo-content .btn-outline {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--terracotta) !important;
}

@media (max-width: 760px) {
  .cta-photo { padding: 64px 20px; }
}

/* Photo à côté du texte (composition en 2 colonnes, sans superposition) */

.split-section {
  padding: 72px 24px;
}

.split-section.accent {
  background: var(--blue);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-photo {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 3/2;
  box-shadow: 0 22px 44px rgba(54, 46, 39, 0.16);
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .split-section { padding: 52px 20px; }
  .split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Section finale de l'accueil ("Parlons de votre projet") : sur mobile,
     la photo devient un vrai visuel en tête de section, suivi du texte
     centré, plutôt qu'un simple empilement photo/texte alignés à gauche. */
  .split-section.accent .split-photo {
    order: -1;
  }
  .split-section.accent .split-text {
    text-align: center;
  }
  .split-section.accent .cta-row {
    justify-content: center;
  }
}

.intro-title {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 20ch;
}

.teaser-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.link-more {
  font-family: "EB Garamond", serif;
  font-style: italic;
  color: var(--terracotta);
  font-size: 0.98rem;
  white-space: nowrap;
}

.link-more:hover { text-decoration: underline; }

/* Le paragraphe générique limite sa largeur à 66ch pour la lecture, mais
   ce plafond empêchait le nom/l'accroche du bandeau et le pied de page
   de se centrer sur les grands écrans : on l'annule ici. */
.hero-plaque .name,
.hero-plaque .tag,
.site-footer .name,
.site-footer .addr,
.eyebrow-small,
.page-header .eyebrow {
  max-width: none;
}

/* ---------- Icônes de services ---------- */

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--terracotta);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Galerie atelier (page Mon entreprise) ---------- */

.atelier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.atelier-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface);
  aspect-ratio: 4/5;
}

.atelier-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Page header (autres pages) ---------- */

.page-header {
  background: var(--blue);
  padding: 54px 24px 44px;
  text-align: center;
}

.page-header .eyebrow {
  font-family: "EB Garamond", serif;
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 10px;
}

.page-header h1 {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0;
  color: var(--ink);
}

/* ---------- Sections ---------- */

section.block {
  padding: 56px 0;
}

section.block + section.block,
.split-section + section.block,
section.block + .split-section {
  border-top: 1px solid var(--border);
}

h2.section-title {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 16px;
  color: var(--ink);
}

.eyebrow-small {
  font-family: "EB Garamond", serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 8px;
}

p {
  color: var(--muted);
  max-width: 66ch;
  margin: 0 0 16px;
  font-size: 1.02rem;
}

p.lead {
  font-size: 1.1rem;
  color: var(--ink);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 8px;
}

.service-card h3 {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--terracotta);
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface);
  aspect-ratio: 4/5;
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.045);
}

/* Mosaïque moderne — variante de .gallery-grid avec des vignettes de tailles
   mêlées (grands et petits formats) pour un rendu plus dynamique. */

.gallery-grid.mosaic {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-auto-rows: 120px;
  grid-auto-flow: dense;
}

.gallery-grid.mosaic figure {
  aspect-ratio: auto;
}

.gallery-grid.mosaic figure.tile-big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid.mosaic figure.tile-wide {
  grid-column: span 2;
}

.gallery-grid.mosaic figure.tile-tall {
  grid-row: span 2;
}

@media (max-width: 540px) {
  .gallery-grid.mosaic {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-auto-rows: 100px;
  }
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(54, 46, 39, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px 20px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  width: auto;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  font-family: "Work Sans", sans-serif;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 12px 18px;
  font-family: "Work Sans", sans-serif;
}

.lightbox-prev { left: 6px; }
.lightbox-next { right: 6px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info dt {
  font-family: "EB Garamond", serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 20px;
}

.contact-info dt:first-child { margin-top: 0; }

.contact-info dd {
  margin: 4px 0 0;
  font-size: 1.02rem;
  color: var(--ink);
}

form.contact-form {
  display: grid;
  gap: 16px;
}

form.contact-form label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: "Work Sans", sans-serif;
  font-size: 0.96rem;
  color: var(--ink);
  border-radius: 2px;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
}

form.contact-form textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-deep);
  color: var(--surface);
  padding: 40px 24px;
  text-align: center;
}

.site-footer .name {
  font-family: "Pinyon Script", cursive;
  font-size: 1.7rem;
  color: var(--surface);
}

.site-footer .addr {
  font-family: "Work Sans", sans-serif;
  font-size: 0.86rem;
  opacity: 0.92;
  margin-top: 6px;
}

.site-footer .foot-links {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 0.84rem;
}

.site-footer .foot-links a:hover { text-decoration: underline; }

/* ---------- Réseaux sociaux ---------- */

.foot-social {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  justify-content: center;
}

.foot-social a {
  color: var(--surface);
  opacity: 0.88;
  transition: opacity 0.15s ease;
}

.foot-social a:hover { opacity: 1; }

.foot-social svg {
  width: 21px;
  height: 21px;
  display: block;
}

/* ---------- Liens légaux (pied de page) ---------- */

.foot-legal {
  max-width: none;
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  opacity: 0.82;
  text-align: center;
}

.foot-legal a { color: var(--surface); }
.foot-legal a:hover { text-decoration: underline; }

/* ---------- Pages légales (mentions, confidentialité, cookies) ---------- */

.legal-content h2.section-title {
  margin-top: 40px;
  font-size: 1.3rem;
  text-align: left;
}

.legal-content h2.section-title:first-child { margin-top: 0; }

.legal-content p { max-width: 68ch; }

/* ---------- Case de consentement RGPD (formulaire de contact) ---------- */

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.4;
}

.consent-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.consent-check a { color: inherit; text-decoration: underline; }

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.social-icons a {
  color: var(--terracotta);
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.social-icons a:hover { opacity: 1; }

.social-icons svg {
  width: 22px;
  height: 22px;
  display: block;
}

.insta-cta {
  margin-top: 32px;
  text-align: center;
}

.insta-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "EB Garamond", serif;
  font-style: italic;
  color: var(--terracotta);
  font-size: 1rem;
}

.insta-cta a:hover { text-decoration: underline; }

.insta-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 22px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--ink);
    border-radius: 2px;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--ink);
  }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
