@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap');

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --sauge:       #808C6D;
  --blanc-casse: #F2F2F0;
  --mauve:       #866D8C;
  --olive:       #B3B364;
  --violet:      #734B9D;
  --noir:        #000000;
  --gris-texte:  #2E2E2E;
  --gris-doux:   #6B6B6B;
  --gris-placeholder: #CCCCCA;

  --font-titre:  'Alex Brush', cursive;
  --font-corps:  Candara, 'Segoe UI', Calibri, sans-serif;

  /* 3 tailles : Titre / Sous-titre / Texte */
  --fs-titre:     3rem;
  --fs-soustitre: 2rem;
  --fs-texte:     1rem;

  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--blanc-casse);
  color: var(--gris-texte);
  font-family: var(--font-corps);
  font-size: var(--fs-texte);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--violet);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--mauve); }

/* ─── Header : menu en haut à droite, nom et titre centrés dessous ── */
.header {
  position: relative;
  background: var(--blanc-casse);
  padding: 1.25rem 2rem 2.5rem;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.nav__links a {
  display: block;
  padding: .4rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-texte);
  color: var(--violet);
  transition: border-color .2s, background .2s;
}
.nav__links a:hover { border-color: rgba(115,75,157,.45); }
.nav__links a.active { border-color: var(--violet); }

/* Identité */
.header__identity {
  margin-top: 1.5rem;
  text-align: center;
}
.header__name {
  display: inline-block;
  font-family: var(--font-titre);
  font-size: var(--fs-titre);
  line-height: 1.1;
  color: var(--violet);
}
.header__name:hover { color: var(--violet); }
.header__title {
  margin-top: .25rem;
  font-size: var(--fs-soustitre);
  line-height: 1.3;
  color: var(--violet);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--violet);
  transition: transform .3s, opacity .3s;
}

/* Mobile nav */
@media (max-width: 700px) {
  .header { padding: 1rem 1.25rem 1.75rem; }
  .nav__burger { display: flex; }

  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 100;
    background: var(--blanc-casse);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav__links.open {
    max-height: 340px;
    border-bottom: 1px solid rgba(115,75,157,.2);
  }
  .nav__links li { width: 100%; }
  .nav__links a {
    padding: .9rem 1.5rem;
    border-radius: 0;
    border: none;
    border-left: 3px solid transparent;
  }
  .nav__links a.active { border-left-color: var(--violet); }
}

/* Burger open state */
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Page wrapper ───────────────────────────────────────────── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Titres de section ──────────────────────────────────────── */
.section-heading {
  font-family: var(--font-titre);
  font-size: var(--fs-titre);
  color: var(--sauge);
  line-height: 1.1;
  margin-bottom: .25rem;
}
.section-subheading {
  font-size: var(--fs-soustitre);
  letter-spacing: .02em;
  color: var(--gris-doux);
  margin-bottom: 2.5rem;
}
.section-sep {
  width: 48px; height: 1px;
  background: var(--sauge);
  margin: .75rem 0 1.5rem;
}

/* ─── Footer ─────────────────────────────────────────────────── */
/* 3 colonnes : coordonnées | logo (disque clair) | réseaux */
.footer {
  padding: 2.5rem 2rem 1.5rem;
  color: #fff;
}
.footer--sauge  { background: var(--sauge); }
.footer--mauve  { background: var(--mauve); }

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer__contact {
  line-height: 1.9;
  color: rgba(255,255,255,.95);
}
.footer__contact a { color: inherit; }
.footer__contact a:hover { color: #fff; text-decoration: underline; }

.footer__logo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--blanc-casse);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__logo img {
  width: 80%;
  height: auto;
}

.footer__socials {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
}
.footer__socials a {
  display: inline-flex;
  color: rgba(255,255,255,.9);
  transition: color .2s, transform .2s;
}
.footer__socials a:hover { color: #fff; transform: translateY(-2px); }
.footer__socials svg { width: 28px; height: 28px; fill: currentColor; }

.footer__copy {
  margin-top: 1.75rem;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .03em;
}

@media (max-width: 700px) {
  .footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .footer__logo { order: -1; }
  .footer__socials { justify-content: center; }
}

/* ─── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  font-family: var(--font-corps);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--sauge);
  color: var(--sauge);
}
.btn--outline:hover {
  background: var(--sauge);
  color: #fff;
}
.btn--filled {
  background: var(--sauge);
  border: 1px solid var(--sauge);
  color: #fff;
}
.btn--filled:hover {
  background: var(--mauve);
  border-color: var(--mauve);
}

/* ─── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Section spacing ────────────────────────────────────────── */
.section {
  padding: 5rem 0;
}
.section--tight { padding: 3rem 0; }
.section--flush { padding: 0; }

/* ─── Hero (Accueil) : grande image d'ambiance pleine largeur ── */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 360px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-color: #d8d5cd; /* fallback */
}

/* Tant que la photo n'est pas reçue : fond dégradé neutre */
.hero__bg--placeholder {
  background: linear-gradient(135deg, #e8e4dc 0%, #d4cfc6 40%, #c8c4bc 100%);
}

/* ─── Galerie Réalisations ───────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: #e0ded9;
  aspect-ratio: 4/3;
}

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

.gallery__placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--gris-doux);
  background: var(--gris-placeholder);
  font-size: .82rem;
  letter-spacing: .05em;
}

.gallery__placeholder svg {
  width: 32px; height: 32px;
  opacity: .5;
}

.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem .75rem;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.gallery__item:hover .gallery__caption { transform: translateY(0); }

.gallery__caption-title {
  font-family: var(--font-titre);
  font-size: 1.4rem;
}
.gallery__caption-sub {
  font-size: .75rem;
  letter-spacing: .08em;
  opacity: .85;
}

/* ─── Prestations ────────────────────────────────────────────── */
.presta-intro {
  text-align: center;
  max-width: 820px;
  padding-top: 1rem;
  padding-bottom: 3rem;
}
.presta-intro .section-heading {
  color: var(--violet);
  margin-bottom: 1.25rem;
}
.presta-intro__text { margin-bottom: 2rem; }

.presta-part { padding-top: 2rem; padding-bottom: 2.5rem; }
.presta-part__title {
  font-family: var(--font-titre);
  font-size: var(--fs-soustitre);
  font-weight: 400;
  color: var(--violet);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(128,140,109,.4);
}

.presta-cards { display: grid; gap: 1.5rem; }
.presta-card + .presta-cards { margin-top: 1.5rem; }
.presta-cards--3 { grid-template-columns: repeat(3, 1fr); }
.presta-cards--2 { grid-template-columns: repeat(2, 1fr); }

.presta-card {
  background: #fff;
  border-top: 3px solid var(--mauve);
  padding: 1.75rem 1.5rem;
}
.presta-card__title {
  font-size: var(--fs-texte);
  font-weight: 700;
  color: var(--gris-texte);
  line-height: 1.4;
}
.presta-card__price {
  font-weight: 700;
  color: var(--violet);
  margin-bottom: .75rem;
}
.presta-card p:not(.presta-card__price) { color: var(--gris-texte); }

/* Tableau */
.presta-table-wrap { margin-top: 1rem; }
.presta-table { width: 100%; border-collapse: collapse; text-align: left; }
.presta-table th, .presta-table td {
  padding: .9rem 1rem .9rem 0;
  border-bottom: 1px solid rgba(128,140,109,.3);
  vertical-align: top;
  font-weight: 400;
}
.presta-table thead th {
  font-weight: 700;
  color: var(--violet);
  border-bottom: 2px solid var(--sauge);
}
.presta-table tbody th { font-weight: 700; color: var(--gris-texte); }
.presta-table__price { font-weight: 700; color: var(--violet); white-space: nowrap; }
.presta-table tbody tr:last-child th,
.presta-table tbody tr:last-child td { border-bottom: none; }

/* Encadré de fin */
.presta-end { padding-top: 2rem; padding-bottom: 4rem; }
.presta-end__box {
  text-align: center;
  background: #fff;
  border: 1px solid var(--mauve);
  padding: 2.5rem 1.5rem;
}
.presta-end__title {
  font-family: var(--font-titre);
  font-size: var(--fs-soustitre);
  font-weight: 400;
  color: var(--violet);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.presta-end__box p {
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

@media (max-width: 900px) {
  .presta-cards--3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .presta-cards--2 { grid-template-columns: 1fr; }
  /* Tableau : chaque ligne devient une fiche empilée */
  .presta-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  .presta-table, .presta-table tbody, .presta-table tr, .presta-table th, .presta-table td { display: block; }
  .presta-table tr { padding: 1rem 0; border-bottom: 1px solid rgba(128,140,109,.3); }
  .presta-table tbody tr:last-child { border-bottom: none; }
  .presta-table th, .presta-table td { border: none !important; padding: .15rem 0; }
  .presta-table td::before {
    content: attr(data-label) " : ";
    font-weight: 700;
    color: var(--gris-doux);
  }
  .presta-table tbody th { color: var(--violet); }
}

/* ─── À propos ───────────────────────────────────────────────── */
.apropos-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
}

.apropos-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}

.apropos-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gris-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris-doux);
  font-size: .85rem;
  letter-spacing: .05em;
}

.apropos-text p {
  margin-bottom: 1.5rem;
  font-size: var(--fs-texte);
  color: var(--gris-texte);
  line-height: 1.85;
  text-align: justify;
  hyphens: none;
}

.apropos-signature {
  font-family: var(--font-titre);
  font-size: var(--fs-soustitre);
  color: var(--mauve);
  margin-top: 2rem;
  display: block;
}

@media (max-width: 780px) {
  .apropos-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .apropos-text p { text-align: left; }
  .apropos-photo, .apropos-photo-placeholder {
    aspect-ratio: 4/3;
    max-height: 380px;
    width: 100%;
  }
}

/* ─── Contact ────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 780px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contact-info__label {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gris-doux);
  margin-bottom: .25rem;
}

.contact-info__value {
  font-size: 1rem;
  color: var(--gris-texte);
  margin-bottom: 1.75rem;
}

/* ─── Formulaire ─────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris-doux);
  margin-bottom: .5rem;
}

.form-control {
  width: 100%;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid #ddddd9;
  border-radius: 0;
  font-family: var(--font-corps);
  font-size: .95rem;
  color: var(--gris-texte);
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--sauge);
}
.form-control::placeholder { color: #b0b0aa; }

textarea.form-control { resize: vertical; min-height: 140px; }

.form-note {
  font-size: .78rem;
  color: var(--gris-doux);
  margin-top: 1rem;
}

/* ─── Intro band (pages intérieures) ─────────────────────────── */
.page-intro {
  padding: 4rem 2rem 3rem;
  background: var(--blanc-casse);
  border-bottom: 1px solid rgba(128,140,109,.15);
}

/* ─── Utilitaires ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

@media (max-width: 600px) {
  .section { padding: 3rem 0; }
  .gallery { grid-template-columns: 1fr; }
  :root { --fs-titre: 2.25rem; --fs-soustitre: 1.5rem; }
}
