/* Simmala Flower Time — site vitrine
   Charte « Lilas sur feuillage » : vert du logo, chartreuse, lilas (titres, fonds), aubergine (boutons, accents), céladon. Le vert et le violet ne se mélangent pas. */

@font-face {
  font-family: "Gloock";
  src: url("fonts/gloock-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("fonts/albert-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("fonts/albert-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("fonts/albert-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --violet: #4a2360;           /* aubergine : boutons, liens, accents */
  --lilas-titre: #8a5fb2;      /* lilas : titres */
  --violet-fonce: #7a50a3;     /* lilas soutenu : survol */
  --aubergine: #28292b;      /* gris anthracite du logo */
  --vert: #67c42f;           /* vert du « S » */
  --vert-fonce: #3b801c;
  --lilas: #f4eff8;
  --celadon: #b6c8b4;
  --celadon-brume: #e6ede4;
  --chartreuse: #c5e34b;
  --lilas-trait: #e3d8ee;
  --blanc: #ffffff;
  --texte: #28292b;
  --texte-doux: #5c5d66;

  --degrade: linear-gradient(90deg, #c5e34b 0%, #67c42f 100%);   /* feuillage */
  --degrade-doux: linear-gradient(115deg, #e2ecdd 0%, #f2e9f8 100%);   /* brume : céladon vers lilas */
  --degrade-lilas: linear-gradient(110deg, #9c74c1 0%, #7a50a3 100%);

  --serif: "Gloock", "Georgia", serif;
  --sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --page: min(1200px, 100% - 2.5rem);
  --rayon: 4px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: 0.18em; }
a:hover { color: var(--violet-fonce); }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  color: var(--aubergine);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); letter-spacing: -0.01em; color: var(--lilas-titre); }
h2 { color: var(--lilas-titre); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }

.saut {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--aubergine);
  color: var(--blanc);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.saut:focus { top: 1rem; }

.conteneur { width: var(--page); margin-inline: auto; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--violet);
  background: var(--violet);
  color: var(--blanc);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.bouton:hover { background: var(--violet-fonce); border-color: var(--violet-fonce); color: var(--blanc); }
.bouton--clair { background: transparent; color: var(--violet); }
.bouton--clair:hover { background: var(--lilas); color: var(--violet-fonce); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
}
.entete::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--degrade);
}
.entete__barre {
  width: var(--page);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.marque img { display: block; }
.marque__s { width: 2.4rem; height: 2.4rem; }
.marque__texte { width: 14.5rem; height: auto; }

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--texte);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.nav a:hover { color: var(--violet); text-decoration: underline; }
.entete__tel {
  font-weight: 600;
  color: var(--aubergine);
  text-decoration: none;
  white-space: nowrap;
}
.entete .bouton { min-height: 2.6rem; padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.menu-bouton { display: none; }

@media (max-width: 1060px) {
  .entete__tel { display: none; }
}
@media (max-width: 900px) {
  .menu-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--lilas-trait);
    border-radius: 50%;
    background: var(--blanc);
    color: var(--aubergine);
    cursor: pointer;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    border-bottom: 1px solid var(--lilas-trait);
    display: none;
  }
  .nav[data-ouvert="true"] { display: block; }
  .nav ul { flex-direction: column; gap: 0; width: var(--page); margin-inline: auto; padding: 0.5rem 0 1rem; }
  .nav a { display: block; padding: 0.8rem 0; font-size: 1.1rem; }
}
@media (max-width: 520px) {
  .entete .bouton { display: none; }
  .marque__s { width: 2.1rem; height: 2.1rem; }
  .marque__texte { width: 10.5rem; }
}

/* ---------- Ouverture ---------- */
.ouverture-fond { background: var(--degrade-doux); }
.ouverture {
  width: var(--page);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 5.5vw, 4.5rem);
}
.ouverture__intro { max-width: 34rem; font-size: 1.2rem; color: var(--texte-doux); margin-top: 1.5rem; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.ouverture__preuve {
  margin-top: 2rem;
  font-size: 0.98rem;
  color: var(--texte-doux);
  max-width: 30rem;
}
.ouverture__preuve strong { color: var(--aubergine); }

/* Trois tiges : trois photos de hauteurs différentes, alignées en bas */
.tiges {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0.9rem;
  align-items: end;
}
.tiges figure { margin: 0; }
.tiges img { width: 100%; object-fit: cover; border-radius: var(--rayon); }
.tiges figure:nth-child(1) img { aspect-ratio: 3 / 5; }
.tiges figure:nth-child(2) img { aspect-ratio: 3 / 6.3; }
.tiges figure:nth-child(3) img { aspect-ratio: 3 / 4.1; }
.tiges figcaption {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--texte-doux);
  margin-top: 0.55rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--vert);
}
.tiges img { box-shadow: 0 18px 40px -24px rgba(40, 41, 43, 0.45); }

@media (max-width: 860px) {
  .ouverture { grid-template-columns: 1fr; }
  .tiges { max-width: 34rem; }
}

/* ---------- Références ---------- */
.references {
  border-bottom: 1px solid var(--lilas-trait);
  padding: 1.6rem 0;
}
.references .conteneur { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 2.2rem; }
.references h2 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--texte-doux);
}
.references ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.references li { font-family: var(--serif); font-size: 1.12rem; color: var(--aubergine); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--lilas { background: var(--lilas); }
.section--celadon { background: var(--celadon-brume); }
.section__tete { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section__tete p { color: var(--texte-doux); font-size: 1.15rem; margin-top: 1rem; }

/* ---------- Offres ---------- */
.offres {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
}
.offre {
  padding: 1.8rem 0 2rem;
  border-top: 1px solid var(--lilas-trait);
}
.offre h3 { margin-bottom: 0.7rem; }
.offre p { color: var(--texte-doux); max-width: 34rem; }
.offre__ref {
  font-size: 0.95rem;
  color: var(--aubergine);
  margin: 0;
  padding-left: 1.1rem;
  position: relative;
}
.offre__ref::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--vert);
}
@media (max-width: 760px) {
  .offres { grid-template-columns: 1fr; }
}

/* ---------- Réalisations ---------- */
.legende-matieres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--texte-doux);
}
.matiere { display: inline-flex; align-items: center; gap: 0.45rem; }
.matiere::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex: none;
}
.matiere--fraiche::before { background: #d4577a; }
.matiere--stabilisee::before { background: var(--vert); }
.matiere--artificielle::before { background: var(--violet); }
.matiere--papier::before { background: #c9a227; }
.matiere--plante::before { background: var(--vert-fonce); }

.projets { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.projet {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
.projet:nth-child(even) .projet__photos { order: 2; }
.projet__photos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.8rem;
}
.projet__photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rayon); }
.projet__photos .principale { grid-row: span 2; aspect-ratio: 4 / 5; }
.projet__photos .seconde { aspect-ratio: 4 / 5; }
.projet__photos--seule { grid-template-columns: 1fr; }
.projet__photos--seule .principale { aspect-ratio: 4 / 3; grid-row: auto; }
.projet__texte { padding-top: 0.5rem; max-width: 30rem; }
.projet__lieu { color: var(--texte-doux); margin: 0.6rem 0 1rem; font-size: 1rem; }
.projet__texte .matieres { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.95rem; }

@media (max-width: 820px) {
  .projet { grid-template-columns: 1fr; }
  .projet:nth-child(even) .projet__photos { order: 0; }
}

/* ---------- Matières ---------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.trio > div { border-top: 3px solid var(--lilas-trait); padding-top: 1.4rem; }
.trio > div:nth-child(1) { border-top-color: #d4577a; }
.trio > div:nth-child(2) { border-top-color: var(--vert); }
.trio > div:nth-child(3) { border-top-color: var(--violet); }
.trio h3 { margin-bottom: 0.8rem; }
.trio p { color: var(--texte-doux); }
.trio .pour { color: var(--aubergine); font-size: 0.97rem; }
.note { margin-top: 2.2rem; max-width: 46rem; color: var(--texte-doux); }
@media (max-width: 820px) { .trio { grid-template-columns: 1fr; } }

/* ---------- Méthode ---------- */
.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: etape;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.etapes li { counter-increment: etape; }
.etapes li::before {
  content: counter(etape);
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--violet);
  margin-bottom: 0.9rem;
}
.etapes h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.etapes p { color: var(--texte-doux); font-size: 1rem; }
@media (max-width: 900px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; } }

/* ---------- À propos ---------- */
.apropos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.apropos figure { margin: 0; }
.apropos img { border-radius: var(--rayon); width: 100%; }
.apropos figcaption { font-size: 0.85rem; color: var(--texte-doux); margin-top: 0.6rem; }
.apropos__texte p { font-size: 1.12rem; max-width: 36rem; }
.apropos__texte h2 { margin-bottom: 1.4rem; }
.chiffres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem 1.8rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.chiffres li { font-size: 0.95rem; color: var(--texte-doux); line-height: 1.35; }
.chiffres strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.2rem; color: var(--aubergine); line-height: 1.1; margin-bottom: 0.2rem; }
@media (max-width: 820px) { .apropos { grid-template-columns: 1fr; } }

/* ---------- Particuliers ---------- */
.particuliers {
  background: var(--degrade-lilas);
  color: #ffffff;
  padding: clamp(2.8rem, 5vw, 4rem) 0;
}
.particuliers .conteneur {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.5rem 4rem;
  align-items: start;
}
.particuliers h2 { color: var(--blanc); font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.particuliers p { margin: 0 0 0.8rem; max-width: 40rem; }
.particuliers a { color: var(--blanc); font-weight: 600; }
@media (max-width: 760px) { .particuliers .conteneur { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--lilas-trait); }
.faq details:last-child { border-bottom: 1px solid var(--lilas-trait); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 2.5rem 1.3rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--aubergine);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 1.1rem;
  font-family: var(--sans);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--violet);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.4rem; color: var(--texte-doux); max-width: 44rem; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; }
.champ { display: grid; gap: 0.4rem; }
.champ--large { grid-column: 1 / -1; }
.champ label, .champ legend { font-weight: 600; font-size: 0.95rem; color: var(--aubergine); }
.champ .facultatif { font-weight: 400; color: var(--texte-doux); }
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans);
  color: var(--texte);
  background: var(--blanc);
  border: 1px solid #c9c1d9;
  border-radius: var(--rayon);
  padding: 0.75rem 0.85rem;
  min-height: 3rem;
}
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--violet); outline: 2px solid var(--violet); outline-offset: 0; }
.champ input[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: #b3261e; }
.consentement { grid-column: 1 / -1; display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.93rem; color: var(--texte-doux); }
.consentement input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--violet); flex: none; }
.pot-de-miel { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__envoi { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.formulaire__statut { margin: 0; font-weight: 500; }
.formulaire__statut[data-etat="ok"] { color: var(--vert-fonce); }
.formulaire__statut[data-etat="erreur"] { color: #b3261e; }
@media (max-width: 640px) { .formulaire { grid-template-columns: 1fr; } }

.coordonnees { background: var(--blanc); border-radius: var(--rayon); padding: 1.8rem; }
.coordonnees h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.coordonnees dl { margin: 0; display: grid; gap: 1rem; }
.coordonnees dt { font-weight: 600; font-size: 0.9rem; color: var(--texte-doux); }
.coordonnees dd { margin: 0.15rem 0 0; color: var(--aubergine); }
.coordonnees .tel { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; color: var(--aubergine); }
.reseaux { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.pied { position: relative; padding: 2.5rem 0 3rem; font-size: 0.92rem; color: var(--texte-doux); }
.pied::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--degrade); }
.pied .marque__texte { width: 11rem; margin-bottom: 0.7rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.pied p { margin: 0; }
.pied a { color: var(--texte-doux); }

/* ---------- Pages simples (mentions, merci) ---------- */
.page-simple { width: min(46rem, 100% - 2.5rem); margin: 0 auto; padding: 3.5rem 0 5rem; }
.page-simple h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 2rem; }
.page-simple h2 { font-size: 1.6rem; margin: 2.5rem 0 0.9rem; }
.page-simple p, .page-simple li { color: var(--texte); }
.a-completer { background: #fff3c4; padding: 0 0.25rem; }
