/* Milestones Event — direction artistique : monogramme, arche, bleu & blanc du logo.
   Palette modifiable via les variables ci-dessous. */
:root {
  --encre: #071f3f;      /* bleu nuit, fond sombre */
  --bleu: #1058a8;       /* bleu du logo */
  --bleu-vif: #2f7fd6;   /* survols, focus */
  --ciel: #cfe0f3;       /* traits fins sur fond sombre, bordures */
  --brume: #f2f7fd;      /* fond de section clair */
  --blanc: #ffffff;
  --texte: #13233a;
  --texte-doux: #52667d;
  --police-titre: 'Bodoni Moda', 'Bodoni 72', Didot, 'Playfair Display', Georgia, serif;
  --police-texte: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --arche: 999px 999px 0 0;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police-texte); font-size: 1.0625rem; line-height: 1.65; color: var(--texte); background: var(--blanc); }
img { max-width: 100%; display: block; }
a { color: var(--bleu); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--bleu-vif); outline-offset: 3px; }
.conteneur { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.centre { text-align: center; }

/* ---------- Typographie ---------- */
.titre { font-family: var(--police-titre); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.01em; color: var(--encre); margin: 0 0 1.25rem; text-wrap: balance; }
.titre--clair { color: var(--blanc); }
.chapeau { font-size: 1.2rem; line-height: 1.6; color: var(--texte-doux); max-width: 56ch; }
.texte { max-width: 62ch; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ciel); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; min-height: 88px; }
.logo { display: inline-flex; }
.logo__image { height: 68px; width: auto; }
.logo__image--pied { height: 132px; margin-bottom: 1rem; }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav__lien { color: var(--encre); text-decoration: none; font-weight: 500; padding-block: .4rem; background: linear-gradient(var(--bleu), var(--bleu)) left bottom / 0 2px no-repeat; transition: background-size .25s; }
.nav__lien:hover { background-size: 100% 2px; }
.nav__lien--cta { background: var(--encre); color: var(--blanc); padding: .7rem 1.5rem; border-radius: 999px; transition: background-color .2s; }
.nav__lien--cta:hover { background: var(--bleu); background-size: 0; }
.burger { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--encre); margin: 6px 0; }

/* ---------- Boutons ---------- */
.bouton { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; padding: .95rem 2rem; border-radius: 999px; border: 1.5px solid var(--blanc); background: var(--blanc); color: var(--encre); transition: background-color .2s, color .2s, border-color .2s; }
.bouton:hover { background: transparent; color: var(--blanc); }
.bouton--plein { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.bouton--plein:hover { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }
.bouton--contour { background: transparent; border-color: var(--encre); color: var(--encre); }
.bouton--contour:hover { background: var(--encre); color: var(--blanc); }
.lien-fleche { font-weight: 600; color: var(--bleu); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.lien-fleche:hover { color: var(--encre); }

/* ---------- Arche (motif signature) ---------- */
.arche { position: relative; border-radius: var(--arche); overflow: hidden; background: linear-gradient(170deg, var(--bleu), var(--encre)); aspect-ratio: 3 / 4; display: grid; place-items: center; color: var(--ciel); }
.arche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arche .icone { width: 38%; height: auto; opacity: .85; }
.arche--filets::before, .arche--filets::after { content: ""; position: absolute; border: 1px solid rgba(207,224,243,.55); border-bottom: 0; border-radius: var(--arche); pointer-events: none; }
.arche--filets::before { inset: 14px 14px 0; }
.arche--filets::after { inset: 28px 28px 0; border-color: rgba(207,224,243,.3); }

/* ---------- Hero / carrousel ---------- */
.hero { position: relative; background: var(--encre); color: var(--blanc); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -180px; top: -260px; background: radial-gradient(closest-side, rgba(47,127,214,.38), transparent); pointer-events: none; }
.hero__scene { position: relative; min-height: min(86vh, 760px); }
.hero__diapo { position: absolute; inset: 0; display: none; align-items: flex-end; }
.hero__diapo.est-active { display: flex; }
.hero__grille { width: min(1200px, 100% - 3rem); margin-inline: auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; padding-top: 3rem; }
.hero__corps { padding-bottom: clamp(4rem, 9vw, 7rem); }
.hero__titre { font-family: var(--police-titre); font-weight: 500; font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.015em; margin: 0 0 1.4rem; text-wrap: balance; }
.hero__texte { font-size: 1.2rem; max-width: 40ch; color: var(--ciel); margin: 0 0 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__arche { width: min(100%, 400px); justify-self: end; }
.hero__points { position: absolute; left: 0; right: 0; bottom: 1.6rem; z-index: 2; }
.hero__points .conteneur { display: flex; gap: .7rem; }
.hero__point { width: 38px; height: 4px; border: 0; padding: 0; background: rgba(207,224,243,.35); cursor: pointer; }
.hero__point.est-actif { background: var(--blanc); }
/* Unique moment animé : l'arche se lève au chargement */
@keyframes lever { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
.hero__diapo.est-active .hero__arche { animation: lever 1.1s cubic-bezier(.2,.7,.2,1) both; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--brume { background: var(--brume); }
.section--sombre { background: var(--encre); color: var(--ciel); }
.entete-page { background: var(--brume); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--ciel); }
.entete-page .titre { margin-bottom: 0; }
.entete-page .chapeau { margin: 1.2rem 0 0; }

.intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro__texte p { margin: 0 0 1.5rem; max-width: 52ch; color: var(--texte-doux); }

/* ---------- Prestations : liste éditoriale ---------- */
.prestations__tete { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.prestations__tete .titre { margin: 0; }
.rang { display: grid; grid-template-columns: 120px 1fr auto; gap: clamp(1.2rem, 4vw, 3rem); align-items: center; padding: 1.6rem 0; border-top: 1px solid var(--ciel); text-decoration: none; color: inherit; }
.rang:last-child { border-bottom: 1px solid var(--ciel); }
.rang .arche { width: 120px; aspect-ratio: 3 / 4; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.rang:hover .arche { transform: translateY(-8px); }
.rang__titre { font-family: var(--police-titre); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--encre); margin: 0 0 .4rem; }
.rang__resume { margin: 0; color: var(--texte-doux); max-width: 52ch; }
.rang__cta { font-weight: 600; color: var(--bleu); white-space: nowrap; }
.rang:hover .rang__cta { color: var(--encre); }

/* ---------- Déroulé : vraie séquence, numérotation justifiée ---------- */
.etapes { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: etape; }
.etape { position: relative; padding: 2.4rem 1.6rem 0 0; border-top: 1px solid rgba(207,224,243,.4); counter-increment: etape; }
.etape::before { content: counter(etape); position: absolute; top: -1.15rem; left: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--encre); border: 1px solid var(--ciel); color: var(--blanc); font-family: var(--police-titre); font-size: 1.1rem; }
.etape__titre { font-family: var(--police-titre); font-weight: 500; font-size: 1.5rem; color: var(--blanc); margin: 0 0 .5rem; }
.etape p { margin: 0; }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; align-items: end; }
.galerie__item { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--brume); }
.galerie__item:nth-child(3n+1) { border-radius: var(--arche); }
.galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.galerie__item:hover img { transform: scale(1.04); }
.galerie__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem .9rem; color: var(--blanc); font-size: .95rem; background: linear-gradient(transparent, rgba(7,31,63,.88)); }
.instagram { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; border: 1px solid var(--ciel); padding: clamp(1.8rem, 4vw, 3rem); }
.instagram p { margin: 0; max-width: 52ch; color: var(--texte-doux); }

/* ---------- Appel à l'action ---------- */
.final { background: var(--bleu); color: var(--blanc); padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; overflow: hidden; }
.final__grille { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.final .titre { margin: 0; max-width: 18ch; }

/* ---------- Détail d'une prestation ---------- */
.fiche { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.fiche__visuel { width: min(100%, 440px); justify-self: end; }
.fiche__texte p { margin: 0 0 1.5rem; max-width: 56ch; }
.fil-ariane { margin: 0 0 1.2rem; font-size: .95rem; }
.fil-ariane a { color: var(--texte-doux); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.5rem; }
.formulaire__champ { display: grid; gap: .3rem; }
.formulaire__champ--large { grid-column: 1 / -1; }
.formulaire label { font-weight: 600; font-size: .95rem; color: var(--encre); }
.formulaire input, .formulaire textarea { font: inherit; padding: .7rem 0; border: 0; border-bottom: 1.5px solid var(--ciel); background: transparent; width: 100%; border-radius: 0; color: var(--texte); }
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-bottom-color: var(--bleu); box-shadow: 0 1.5px 0 var(--bleu); }
.formulaire__erreur { color: #b3261e; font-size: .9rem; }
.formulaire .bouton { grid-column: 1 / -1; justify-self: start; }
.coordonnees { background: var(--encre); color: var(--ciel); padding: clamp(1.8rem, 3.5vw, 2.8rem); border-radius: var(--arche); padding-top: clamp(4rem, 9vw, 7rem); }
.coordonnees__titre { font-family: var(--police-titre); font-weight: 500; font-size: 1.7rem; color: var(--blanc); margin: 0 0 1rem; }
.coordonnees p { margin: 0 0 .7rem; }
.coordonnees a { color: var(--blanc); }
.alerte { padding: 1rem 1.3rem; margin: 1.2rem 0 0; border-left: 4px solid var(--bleu); background: var(--brume); }
.alerte--error { border-color: #b3261e; background: #fdeceb; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: var(--ciel); padding-top: clamp(3rem, 6vw, 5rem); }
.pied__grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.pied a { display: block; color: var(--ciel); text-decoration: none; margin-bottom: .4rem; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied__titre { font-family: var(--police-titre); font-weight: 500; font-size: 1.25rem; color: var(--blanc); margin: 0 0 .9rem; }
.pied__petit { font-size: .92rem; opacity: .8; }
.pied__social { display: inline-flex !important; align-items: center; gap: .55rem; }
.pied__bas { text-align: center; font-size: .9rem; margin: 3rem 0 0; padding: 1.4rem 1rem; border-top: 1px solid rgba(207,224,243,.18); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grille, .intro, .fiche, .contact { grid-template-columns: 1fr; }
  .hero__scene { min-height: 0; }
  .hero__diapo { position: relative; }
  .hero__diapo:not(.est-active) { display: none; }
  .hero__grille { padding-block: 3rem 0; }
  .hero__corps { padding-bottom: 2.5rem; }
  .hero__arche { justify-self: start; width: min(70%, 240px); }
  .fiche__visuel { justify-self: start; width: min(100%, 300px); order: -1; }
  .etapes { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .final__grille, .instagram { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--blanc); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.5rem 1.4rem; border-bottom: 1px solid var(--ciel); display: none; }
  .nav.est-ouvert { display: flex; }
  .nav__lien { padding: .9rem 0; }
  .nav__lien--cta { text-align: center; margin-top: .6rem; }
}
@media (max-width: 640px) {
  .rang { grid-template-columns: 84px 1fr; }
  .rang .arche { width: 84px; }
  .rang__cta { display: none; }
  .formulaire { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .pied__grille { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.bouton--fantome { background: transparent; color: var(--blanc); }
.bouton--fantome:hover { background: var(--blanc); color: var(--encre); }
