/* Pétalerie : feuille de style unique, pensée d'abord pour le téléphone.
   Charte d'origine : ivoire, lin, osier, eucalyptus, brun ; Marcellus, Jost, Caveat.
   Légèreté : flou réservé aux deux barres, aucun calque animé plein écran ; seules les
   transformations et l'opacité sont animées. */

@font-face { font-family: 'Marcellus'; src: url('/polices/marcellus.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/polices/jost.woff2') format('woff2'); font-weight: 300 500; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/polices/caveat-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --ivoire: #FAF6F0;
  --lin: #EFE7DA;
  --poudre: #F3DCD0;
  --osier: #C8A97E;
  --osier-fonce: #9C7B4F;
  --eucalyptus: #7D8C79;
  --eucalyptus-fonce: #536052;
  --brun: #3B342C;
  --brun-doux: #6B6157;
  --trait: rgba(59, 52, 44, .1);
  --carte: rgba(255, 255, 255, .62);
  --carte-bord: rgba(255, 255, 255, .85);
  --ombre: 0 16px 36px -20px rgba(59, 52, 44, .35);

  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%237D8C79' stroke-width='1.1' stroke-linecap='round' stroke-opacity='.4'%3E%3Cpath d='M24 44V18M24 38c-4-1.5-6.5-4-7.2-8 3.2.8 6.2 3.2 7.2 7M24 38c4-1.5 6.5-4 7.2-8-3.2.8-6.2 3.2-7.2 7M24 29c-4-1.5-6.5-4-7.2-8 3.2.8 6.2 3.2 7.2 7M24 29c4-1.5 6.5-4 7.2-8-3.2.8-6.2 3.2-7.2 7'/%3E%3Cpath transform='rotate(180 48 48)' d='M24 44V18M24 38c-4-1.5-6.5-4-7.2-8 3.2.8 6.2 3.2 7.2 7M24 38c4-1.5 6.5-4 7.2-8-3.2.8-6.2 3.2-7.2 7M24 29c-4-1.5-6.5-4-7.2-8 3.2.8 6.2 3.2 7.2 7M24 29c4-1.5 6.5-4 7.2-8-3.2.8-6.2 3.2-7.2 7'/%3E%3C/g%3E%3Cg fill='%23C8A97E' fill-opacity='.55'%3E%3Ccircle cx='72' cy='22' r='1.6'/%3E%3Ccircle cx='22' cy='74' r='1.6'/%3E%3C/g%3E%3C/svg%3E");

  --titre: 'Marcellus', 'Iowan Old Style', Georgia, serif;
  --texte: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --main: 'Caveat', cursive;

  --largeur: 1120px;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --rayon: 6px;
  --courbe: cubic-bezier(.16, 1, .3, 1);
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  color: var(--brun);
  font: 300 1rem/1.65 var(--texte);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(70vmax 50vmax at 0% 0%, rgba(243, 220, 208, .8), transparent 70%),
    radial-gradient(60vmax 50vmax at 100% 30%, rgba(214, 186, 140, .28), transparent 70%),
    radial-gradient(60vmax 50vmax at 20% 100%, rgba(170, 188, 160, .22), transparent 70%),
    var(--ivoire);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:where(ul[role='list'], ol[role='list']) { list-style: none; padding: 0; }
::selection { background: rgba(125, 140, 121, .28); }
:focus-visible { outline: 2px solid var(--eucalyptus-fonce); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: 5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .petales { display: none; }
}

h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.14; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 1.35rem + 1vw, 2.2rem); margin-bottom: 1.1rem; }
h3 { font-size: 1rem; }
p { text-wrap: pretty; }
strong { font-weight: 500; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur--etroit { max-width: 46rem; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brun); color: var(--ivoire); padding: .6rem 1rem; border-radius: var(--rayon); }
.lien-evitement:focus { top: 1rem; }
.icone { width: 1.3rem; height: 1.3rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.surtitre {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .8rem;
  font: 500 .66rem/1.4 var(--texte); letter-spacing: .2em; text-transform: uppercase; color: var(--eucalyptus-fonce);
}
.surtitre::before { content: ''; width: .42rem; height: .42rem; border-radius: 50%; background: var(--eucalyptus); animation: pouls 2.6s ease-in-out infinite; }
@keyframes pouls { 50% { box-shadow: 0 0 0 5px rgba(125, 140, 121, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(125, 140, 121, .35); } }
.chapo { color: var(--brun-doux); font-size: clamp(.98rem, .94rem + .2vw, 1.08rem); max-width: 36em; }
.note-main { font: 500 1.35rem/1 var(--main); color: var(--eucalyptus-fonce); }

/* ---------------------------------------------------------------- boutons */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.3rem;
  border: 1px solid transparent; border-radius: var(--rayon);
  font: 400 .92rem/1.2 var(--texte); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--courbe), box-shadow .3s var(--courbe), background .3s;
  -webkit-tap-highlight-color: transparent;
}
.bouton .icone { width: 1.15rem; height: 1.15rem; }
.bouton:active { transform: scale(.97); }
.bouton--plein { color: var(--ivoire); background: linear-gradient(180deg, #5E6C5C, var(--eucalyptus-fonce)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px -10px rgba(83, 96, 82, .75); }
.bouton--plein:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 28px -12px rgba(83, 96, 82, .85); }
.bouton--contour { background: var(--carte); border-color: var(--carte-bord); box-shadow: var(--ombre); }
.bouton--contour:hover { background: #fff; }
.bouton--petit { min-height: 2.4rem; padding: .45rem .85rem; font-size: .85rem; }
.bouton--grand { min-height: 3.4rem; padding-inline: 1.6rem; font-size: 1rem; }

/* ---------------------------------------------------------------- en-tête */

.entete { position: sticky; top: .6rem; z-index: 50; margin-top: .6rem; }
.entete__barre {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 3.5rem; padding: 0 .45rem 0 1rem;
  background: rgba(250, 246, 240, .78);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--carte-bord); border-radius: var(--rayon); box-shadow: 0 8px 26px -18px rgba(59, 52, 44, .35);
}
.entete__logo img { width: 6.4rem; }
.navigation { display: flex; gap: .2rem; margin-left: auto; }
.navigation__lien { padding: .4rem .7rem; font-size: .88rem; text-decoration: none; border-radius: var(--rayon); transition: background .25s; }
.navigation__lien:hover { background: rgba(255, 255, 255, .7); }
@media (max-width: 40rem) { .navigation { display: none; } .entete__logo img { width: 5.9rem; } }

/* ---------------------------------------------------------------- haut de page */

.heros { position: relative; isolation: isolate; overflow: hidden; margin-top: -4.1rem; padding: 6.2rem 0 2.6rem; }
.heros::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--motif); background-size: 96px; opacity: .45; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 75%); }
.heros__grille { display: grid; gap: 1.6rem; }
.heros__titre { margin-bottom: .9rem; }
.heros__titre em { font-style: normal; background: linear-gradient(100deg, var(--eucalyptus-fonce), #8A9A72 35%, var(--osier-fonce) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.heros__actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.heros__actions .bouton--plein { flex: 1 1 13rem; }
.heros__actions .bouton--contour { flex: 0 1 auto; }

/* Trois photos en éventail */
.heros__photos { position: relative; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: .55rem; align-items: end; }
.heros__photos > span { overflow: hidden; border-radius: var(--rayon); border: 2px solid #fff; box-shadow: 0 16px 30px -16px rgba(59, 52, 44, .5); animation: flotte 6s ease-in-out infinite alternate; }
.heros__photos > span:nth-child(1) { aspect-ratio: 4 / 5; }
.heros__photos > span:nth-child(2) { aspect-ratio: 3 / 4; animation-delay: -2s; }
.heros__photos > span:nth-child(3) { aspect-ratio: 3 / 4; animation-delay: -4s; margin-bottom: 1rem; }
.heros__photos img { width: 100%; height: 100%; object-fit: cover; }
.heros__note { position: absolute; left: -.2rem; bottom: -1rem; padding: .35rem .7rem; background: rgba(255, 255, 255, .92); border-radius: var(--rayon); box-shadow: var(--ombre); rotate: -4deg; }
@keyframes flotte { to { translate: 0 -6px; } }

.petales { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.petale { position: absolute; top: -2rem; left: var(--x); width: .65rem; height: .9rem; border-radius: 80% 0 80% 0; opacity: 0; animation: tombe var(--t) linear var(--d) infinite; }
.petale--1 { background: linear-gradient(135deg, #EBC8B6, #D9A891); }
.petale--2 { background: linear-gradient(135deg, #DCC7A2, var(--osier)); width: .5rem; height: .7rem; }
.petale--3 { background: linear-gradient(135deg, #B9C6B0, var(--eucalyptus)); width: .5rem; height: .75rem; border-radius: 0 80% 0 80%; }
@keyframes tombe {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0); }
  10% { opacity: .85; }
  35% { transform: translate3d(2rem, 32vh, 0) rotate(130deg); }
  65% { transform: translate3d(-1.2rem, 62vh, 0) rotate(250deg); }
  90% { opacity: .6; }
  100% { opacity: 0; transform: translate3d(1.5rem, 92vh, 0) rotate(380deg); }
}

@media (min-width: 52rem) {
  .heros { padding: 8rem 0 4rem; }
  .heros__grille { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3.5rem; }
  .heros__photos { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: .8rem; }
  .heros__photos > span:nth-child(1) { grid-row: span 2; }
  .heros__photos > span:nth-child(3) { margin-bottom: 0; }
}

/* ---------------------------------------------------------------- sections */

.section { position: relative; padding-block: 2.8rem; }
@media (min-width: 52rem) { .section { padding-block: 4.5rem; } }

/* Créations */
.section--creations { background: linear-gradient(180deg, transparent, rgba(243, 220, 208, .35) 20%, rgba(243, 220, 208, .35) 80%, transparent); }
.pastilles { display: flex; gap: .45rem; margin: 0 calc(var(--gouttiere) * -1) 1.2rem; padding: .2rem var(--gouttiere); overflow-x: auto; scrollbar-width: none; }
.pastilles::-webkit-scrollbar { display: none; }
.pastille { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; font-size: .85rem; white-space: nowrap; text-decoration: none; background: var(--carte); border: 1px solid var(--carte-bord); border-radius: 999px; transition: background .25s, transform .25s var(--courbe); }
.pastille:hover { background: #fff; transform: translateY(-1px); }
.pastille .icone { width: 1.05rem; height: 1.05rem; color: var(--eucalyptus-fonce); }
@media (min-width: 52rem) { .pastilles { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }

.defile { margin-inline: calc(var(--gouttiere) * -1); }
.creations { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); padding: .2rem var(--gouttiere) 1rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.creations::-webkit-scrollbar { display: none; }
.creation { flex: 0 0 58%; scroll-snap-align: start; display: flex; flex-direction: column; gap: .1rem; }
@media (min-width: 52rem) {
  .defile { margin-inline: 0; }
  .creations { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; overflow: visible; padding: 0; }
}
.creation__media { position: relative; display: block; aspect-ratio: 9 / 16; margin-bottom: .55rem; overflow: hidden; border-radius: var(--rayon); background: var(--lin); box-shadow: 0 16px 32px -20px rgba(59, 52, 44, .55); -webkit-tap-highlight-color: transparent; }
.creation__media img, .creation__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.creation__media video { opacity: 0; transition: opacity .4s; }
.creation__media.est-lue video { opacity: 1; }
.creation__lecture { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin: -1.6rem 0 0 -1.6rem; border-radius: 50%; color: #fff; background: rgba(59, 52, 44, .3); border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); transition: transform .3s var(--courbe), opacity .3s; }
.creation__lecture .icone { width: 1.2rem; height: 1.2rem; margin-left: .15rem; fill: currentColor; stroke: none; }
.creation__media:hover .creation__lecture { transform: scale(1.08); }
.creation__media.est-lue .creation__lecture { opacity: 0; }
.creation__titre { font: 400 1rem/1.25 var(--titre); }
.creation__legende { font-size: .8rem; line-height: 1.45; color: var(--brun-doux); }
.reseaux { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .88rem; color: var(--brun-doux); }
.reseaux a {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 6px;
  color: var(--eucalyptus-fonce); text-decoration: none; font-weight: 400;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(91, 107, 88, .18);
  transition: background .2s, border-color .2s;
}
.reseaux a:hover { background: rgba(255, 255, 255, .9); border-color: rgba(91, 107, 88, .4); }
.reseaux .icone { width: 1.05rem; height: 1.05rem; }
.reseaux > span { flex-basis: 100%; }
@media (min-width: 40rem) { .reseaux > span { flex-basis: auto; margin-right: .2rem; } }

/* Contact, mis en avant */
.section--contact .conteneur { position: relative; }
.contact {
  position: relative; overflow: hidden; display: grid; gap: 1.4rem;
  padding: 1.6rem 1.2rem; border-radius: 10px; color: var(--ivoire);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(200, 169, 126, .45), transparent 70%),
    radial-gradient(60% 70% at 0% 100%, rgba(170, 188, 160, .5), transparent 70%),
    linear-gradient(150deg, #5B6A59, #3E4A3D);
  box-shadow: 0 30px 60px -30px rgba(59, 52, 44, .6);
}
.contact::before { content: ''; position: absolute; inset: 0; background-image: var(--motif); background-size: 96px; opacity: .18; filter: brightness(3); pointer-events: none; }
.contact > * { position: relative; }
.contact .surtitre { color: var(--osier); }
.contact .surtitre::before { background: var(--osier); }
.contact h2 { color: #fff; }
.contact .chapo { color: rgba(250, 246, 240, .85); }
.etapes { display: grid; gap: .5rem; }
.etape { display: grid; grid-template-columns: 1.7rem 1fr; gap: .7rem; align-items: center; padding: .65rem .8rem; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--rayon); }
.etape__numero { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: var(--rayon); font: 500 .75rem/1 var(--texte); color: var(--brun); background: var(--ivoire); }
.etape__titre { font-size: .95rem; line-height: 1.25; color: #fff; margin-bottom: .1rem; }
.etape p { font-size: .78rem; line-height: 1.45; color: rgba(250, 246, 240, .75); }
.contact__actions { display: grid; gap: .6rem; justify-items: start; }
.contact__actions .bouton--plein { width: 100%; color: var(--brun); background: var(--ivoire); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .45); }
.contact__actions .bouton--plein:hover { background: #fff; }
.contact__actions p { font-size: .85rem; color: rgba(250, 246, 240, .8); }
.contact__actions a:not(.bouton) { color: #fff; }
@media (min-width: 52rem) {
  .contact { grid-template-columns: 1fr 1.1fr; padding: 2.8rem; gap: 2rem 3rem; align-items: center; }
  .contact__tete { grid-row: span 2; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .contact__actions .bouton--plein { width: auto; }
}

/* Questions */
.questions { display: grid; gap: .5rem; }
.question { background: var(--carte); border: 1px solid var(--carte-bord); border-radius: var(--rayon); transition: background .3s; }
.question[open] { background: #fff; }
.question summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; font: 400 1rem/1.35 var(--titre); cursor: pointer; list-style: none; }
.question summary::-webkit-details-marker { display: none; }
.question__signe { position: relative; flex: none; width: 1.6rem; height: 1.6rem; border-radius: var(--rayon); background: rgba(125, 140, 121, .14); transition: rotate .4s var(--courbe), background .3s; }
.question__signe::before, .question__signe::after { content: ''; position: absolute; left: 30%; right: 30%; top: 50%; height: 1.5px; background: var(--eucalyptus-fonce); transition: transform .3s var(--courbe); }
.question__signe::after { transform: rotate(90deg); }
.question[open] .question__signe { rotate: 180deg; }
.question[open] .question__signe::after { transform: rotate(0); }
.question p { padding: 0 1rem 1rem; color: var(--brun-doux); font-size: .92rem; }

/* ---------------------------------------------------------------- légal, 404 */

.section--legal { padding-top: 2.5rem; }
.texte-legal h1 { margin-bottom: 1.2rem; }
.texte-legal h2 { font-size: 1.25rem; margin: 1.8rem 0 .4rem; }
.texte-legal p { color: var(--brun-doux); }
.introuvable { text-align: center; padding-top: 4rem; }
.introuvable .conteneur { display: grid; justify-items: center; gap: 1rem; }
.introuvable__epi { width: 3.5rem; height: 3.5rem; color: var(--eucalyptus); }

/* ---------------------------------------------------------------- pied */

.pied { margin-top: 1rem; color: var(--ivoire); background: radial-gradient(50% 80% at 100% 0%, rgba(200, 169, 126, .18), transparent 70%), var(--brun); }
.pied a { text-decoration: none; }
.pied__haut { display: grid; gap: .9rem; justify-items: start; padding-block: 2.2rem 1.4rem; }
.pied__haut img { width: 7.5rem; }
.pied__haut p { font-size: .88rem; opacity: .72; max-width: 34em; }
.pied__reseaux { display: flex; gap: .45rem; }
.pied__reseaux a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--rayon); color: var(--osier); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); transition: background .25s, color .25s; }
.pied__reseaux a:hover { color: var(--brun); background: var(--ivoire); }
.pied__reseaux .icone { width: 1.1rem; height: 1.1rem; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-block: 1.1rem 1.3rem; border-top: 1px solid rgba(250, 246, 240, .12); font-size: .78rem; opacity: .6; }
/* Place libre sous le pied pour la barre d'action, seulement là où elle existe. */
@media (max-width: 51.99rem) { body:has(.barre-mobile) .pied__bas { padding-bottom: 5.5rem; } }

/* ---------------------------------------------------------------- barre d'action (téléphone) */

.barre-mobile {
  position: fixed; z-index: 80; left: .7rem; right: .7rem; bottom: calc(.7rem + env(safe-area-inset-bottom));
  display: flex; padding: .35rem;
  background: rgba(250, 246, 240, .8); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--carte-bord); border-radius: 12px; box-shadow: 0 16px 36px -16px rgba(59, 52, 44, .5);
  transform: translateY(160%); transition: transform .45s var(--courbe);
}
.barre-mobile.est-visible { transform: none; }
.barre-mobile .bouton { flex: 1; }
@media (min-width: 52rem) { .barre-mobile { display: none; } }

/* ---------------------------------------------------------------- apparitions */

.js .apparait { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--courbe), transform .7s var(--courbe); }
.js .apparait.est-visible { opacity: 1; transform: none; }
