/* ==========================================================
   Crystal Flower – feuille de style
   Thème : fleurs jaunes, orange et roses, feuilles vertes,
   taches d'aquarelle bleues, couleurs pastel.
   ========================================================== */

:root {
  /* Palette pastel du cahier des charges */
  --vert: #c8e6cf;
  --bleu: #c2ebe6;
  --creme: #ffe9c7;
  --rose: #ffdae0;

  /* Accents (fleurs) */
  --fleur-jaune: #fbd46d;
  --fleur-orange: #f9b47a;
  --fleur-rose: #f7a8b8;
  --feuille: #a8d5b0;
  --aquarelle: #9fd3e8;

  /* Texte & fonds */
  --fond: #fffaf3;
  --texte: #4a3f45;
  --texte-doux: #7a6b72;
  --accent: #d9748a;
  --accent-fonce: #b85a70;
  --blanc: #ffffff;

  --rayon: 22px;
  --ombre: 0 10px 30px rgba(120, 80, 90, 0.10);
  --police-titre: "Dancing Script", cursive;
  --police-texte: "Quicksand", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
  overflow-x: hidden;
}

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

a { color: var(--accent-fonce); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

h1, h2 {
  font-family: var(--police-titre);
  font-weight: 700;
  color: var(--accent-fonce);
}

h2 { font-size: clamp(2.3rem, 5vw, 3.2rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

.conteneur {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.surtitre {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--texte-doux);
  margin: 0 0 .4em;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block;
  padding: .85em 1.7em;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--blanc);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 6px 16px rgba(217, 116, 138, .28);
}
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); transform: translateY(-2px); }
.bouton:focus-visible { outline: 3px solid var(--aquarelle); outline-offset: 3px; }
.bouton:disabled { opacity: .6; cursor: wait; transform: none; }

.bouton-contour { background: transparent; color: var(--accent-fonce); box-shadow: none; }
.bouton-contour:hover { background: var(--rose); color: var(--accent-fonce); }

.bouton-petit { padding: .45em 1.2em; font-size: .95rem; }

/* ---------- Décors : taches d'aquarelle ---------- */
.tache {
  position: absolute;
  border-radius: 50%;
  filter: url(#aquarelle);
  pointer-events: none;
  z-index: 0;
}
.tache-bleue { background: radial-gradient(circle at 40% 40%, rgba(159, 211, 232, .55), rgba(194, 235, 230, .35) 60%, transparent 72%); }
.tache-rose  { background: radial-gradient(circle at 50% 50%, rgba(255, 218, 224, .8), rgba(255, 218, 224, .35) 60%, transparent 72%); }

/* Feuillages aquarelle (tirés de la bannière de Crystal Flower) */
.feuillage {
  position: absolute;
  z-index: 0;
  width: clamp(170px, 24vw, 330px);
  height: auto;
  pointer-events: none;
  user-select: none;
}
.feuillage-hg { top: 0; left: 0; }
.feuillage-hd { top: 0; right: 0; transform: scaleX(-1); }
.feuillage-bd { bottom: 0; right: 0; width: clamp(150px, 20vw, 280px); }
.feuillage-bg { bottom: 0; left: 0; width: clamp(150px, 20vw, 280px); transform: scaleX(-1); }

.feuille-volante {
  position: absolute;
  z-index: 0;
  top: 14%;
  right: 12%;
  width: 70px;
  opacity: .8;
  pointer-events: none;
  animation: flotte 8s ease-in-out infinite;
}
@keyframes flotte {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(12px) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feuille-volante { animation: none; }
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 116, 138, .12);
}

.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }

.logo {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--police-titre);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-fonce);
  text-decoration: none;
  margin: 0;
}
.logo-img { height: 50px; width: auto; }

.nav-liens { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav-liens a:not(.bouton) { color: var(--texte); text-decoration: none; font-weight: 600; }
.nav-liens a:not(.bouton):hover { color: var(--accent-fonce); }

.nav-bouton { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-bouton span { display: block; width: 26px; height: 3px; margin: 5px 0; border-radius: 3px; background: var(--accent-fonce); transition: transform .25s, opacity .25s; }
.nav-bouton[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-bouton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-bouton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(5rem, 11vw, 8rem);
  text-align: center;
  background: linear-gradient(180deg, var(--creme) 0%, var(--fond) 100%);
}

.hero-contenu { max-width: 720px; }

.hero-logo { height: clamp(170px, 26vw, 250px); width: auto; margin: 0 auto 1.4rem; }

.hero h1 { font-size: clamp(3.6rem, 11vw, 6.5rem); margin-bottom: .15em; }

.hero-texte { font-size: clamp(1.1rem, 2.4vw, 1.3rem); margin: 0 auto 2rem; max-width: 560px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }


/* ---------- Sections ---------- */
.section { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-teinte { background: linear-gradient(135deg, rgba(200, 230, 207, .45), rgba(194, 235, 230, .45)); }

.section-titre { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-titre p:last-child { color: var(--texte-doux); }
.section-titre-gauche { text-align: left; margin: 0; }

/* ---------- Cartes produits ---------- */
.grille-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.carte {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 2rem 1.8rem;
  box-shadow: var(--ombre);
  border-top: 8px solid var(--c);
  transition: transform .25s;
}
.carte:hover { transform: translateY(-6px); }
.carte-rose  { --c: var(--rose);  --ci: #e38aa0; }
.carte-bleue { --c: var(--bleu);  --ci: #5fb3ae; }
.carte-jaune { --c: var(--creme); --ci: #e0a04a; }

.carte-icone {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c);
  color: var(--ci);
  margin-bottom: 1.1rem;
}
.carte-icone svg { width: 38px; height: 38px; }
.carte-texte { color: var(--texte-doux); margin: 0 0 1.2rem; }

.tarifs { list-style: none; margin: 0; padding: 0; }
.tarifs li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px dashed rgba(122, 107, 114, .25);
}
.tarifs li:last-child { border-bottom: 0; }
.prix { font-weight: 700; color: var(--accent-fonce); white-space: nowrap; }
.prix-offert { color: #4f9a61; }

/* ---------- Galerie ---------- */
.section-creme { background: linear-gradient(180deg, var(--fond), rgba(255, 233, 199, .55) 50%, var(--fond)); }

.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.galerie-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  background: var(--blanc);
  cursor: zoom-in;
}
.galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galerie-item:hover img { transform: scale(1.06); }
.galerie-item:focus-visible { outline: 3px solid var(--aquarelle); outline-offset: 3px; }

.galerie-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1rem .8rem;
  color: var(--blanc);
  font-weight: 700;
  background: linear-gradient(transparent, rgba(74, 63, 69, .65));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.galerie-item:hover figcaption,
.galerie-item:focus-visible figcaption { opacity: 1; transform: none; }

/* Emplacement tant que la photo n'est pas encore déposée */
.galerie-item.vide { cursor: default; display: grid; place-items: center; text-align: center; }
.galerie-item.vide img { display: none; }
.galerie-item.vide:nth-child(4n+1) { background: var(--rose); }
.galerie-item.vide:nth-child(4n+2) { background: var(--bleu); }
.galerie-item.vide:nth-child(4n+3) { background: var(--creme); }
.galerie-item.vide:nth-child(4n+4) { background: var(--vert); }
.galerie-item.vide::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/logo.png") center 34% / auto 42% no-repeat;
  opacity: .55;
}
.galerie-item.vide figcaption {
  position: static;
  opacity: 1;
  transform: none;
  background: none;
  color: var(--texte-doux);
  padding: 62% 1rem 0;
}
.galerie-item.vide figcaption::after { content: "Photo à venir"; display: block; font-weight: 500; font-size: .85rem; }

/* Visionneuse */
.visionneuse {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 16px;
  border: 0;
  background: rgba(40, 32, 36, .92);
  color: var(--blanc);
}
.visionneuse[open] { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.visionneuse::backdrop { background: transparent; }
.visionneuse figure { margin: 0; text-align: center; max-width: min(1000px, 100%); }
.visionneuse img { max-height: 80vh; margin-inline: auto; border-radius: 14px; }
.visionneuse figcaption { margin-top: .8rem; font-weight: 600; }
.visionneuse button {
  border: 0; cursor: pointer;
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: var(--blanc);
  font-size: 2rem; line-height: 1;
}
.visionneuse button:hover { background: rgba(255, 255, 255, .3); }
.visionneuse-fermer { position: absolute; top: 16px; right: 16px; }

/* ---------- Livraisons ---------- */
.livraisons { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; }
.livraisons .section-titre p:last-child { color: var(--texte); }
.section-titre .badge {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin: .4rem 0 0;
  padding: .5em 1.2em;
  border-radius: 999px;
  background: var(--blanc);
  color: var(--accent-fonce);
  font-weight: 700;
  box-shadow: var(--ombre);
}
.badge::before {
  content: "";
  width: 14px;
  height: 28px;
  background: url("../img/logo.png") center / contain no-repeat;
}
.livraisons-listes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.bloc-livraison { background: rgba(255, 255, 255, .85); border-radius: var(--rayon); padding: 1.6rem; box-shadow: var(--ombre); }

/* ---------- Décoration ---------- */
.decoration { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.decoration-visuel { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; }
.decoration-visuel .tache { border-radius: 50%; }
.decoration-logo { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
/* Sans logo : la section passe sur une colonne centrée */
.decoration.sans-visuel { grid-template-columns: 1fr; max-width: 680px; text-align: center; }
.decoration-texte p:not(.surtitre) { margin-bottom: 1.8rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }

.coordonnees { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .9rem; }
.coordonnees li { display: flex; align-items: center; gap: .8rem; }
.coordonnees svg {
  width: 40px; height: 40px; padding: 9px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--blanc);
  color: var(--accent);
  box-shadow: var(--ombre);
}
.coordonnees a { color: var(--texte); font-weight: 600; text-decoration: none; word-break: break-word; }
.coordonnees a:hover { color: var(--accent-fonce); text-decoration: underline; }

.formulaire { background: var(--blanc); border-radius: var(--rayon); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--ombre); }

.champ { margin-bottom: 1.1rem; }
.champ-double { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.champ[hidden] { display: none; }

label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--texte);
  padding: .75em .9em;
  border: 2px solid #eee2e5;
  border-radius: 14px;
  background: #fffdfb;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--aquarelle); box-shadow: 0 0 0 4px rgba(159, 211, 232, .3); }
.invalide { border-color: #e07b7b; }

.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note { font-size: .88rem; color: var(--texte-doux); margin: 0 0 1.2rem; }

.formulaire .bouton { width: 100%; }

.formulaire-statut { margin: 1rem 0 0; font-weight: 600; min-height: 1.5em; text-align: center; }
.formulaire-statut.succes { color: #3f8a52; }
.formulaire-statut.erreur { color: #c0504f; }

/* ---------- Pied de page ---------- */
.pied { background: var(--rose); padding: 2.5rem 0; text-align: center; }
.pied-contenu .logo { justify-content: center; }
.pied p { margin: .2rem 0; }
.pied-petit { font-size: .88rem; color: var(--texte-doux); }

/* Signature du créateur du site */
.signature { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(184, 90, 112, .18); }
.signature a {
  display: inline-block;
  padding: .45em 1.2em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  color: var(--texte);
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.signature a:hover { background: var(--blanc); transform: translateY(-2px); }
.signature strong { color: #e8742c; }

/* ---------- Page mentions légales ---------- */
.page-texte { max-width: 760px; padding: 4rem 0; }
.page-texte h1 { font-size: clamp(2.6rem, 7vw, 3.6rem); }
.page-texte h2 { font-family: var(--police-texte); font-size: 1.25rem; color: var(--texte); margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .livraisons, .decoration, .contact { grid-template-columns: 1fr; }
  .grille-cartes { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .galerie { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .section-titre-gauche { text-align: center; margin: 0 auto; }
  .decoration-texte { text-align: center; }
  .decoration-visuel { max-width: 320px; }
}

@media (max-width: 760px) {
  .nav-bouton { display: block; }
  .nav-liens {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 1rem;
    padding: 1.4rem 16px 1.8rem;
    background: var(--fond);
    box-shadow: 0 12px 20px rgba(120, 80, 90, .1);
    display: none;
  }
  .nav-liens.ouvert { display: flex; }
  .feuillage { width: 130px; opacity: .75; }
  .feuille-volante { width: 48px; top: 6%; right: 6%; }
}

@media (max-width: 560px) {
  .livraisons-listes, .champ-double { grid-template-columns: 1fr; }
  .visionneuse-nav { position: absolute; bottom: 20px; }
  .visionneuse-prec { left: calc(50% - 60px); }
  .visionneuse-suiv { right: calc(50% - 60px); }
  .champ-double { gap: 0; }
  .hero-actions .bouton { width: 100%; }
}
