/* Page d'accueil : styles propres à la page, repris de maquettes/accueil.html (les styles communs sont dans pages.css). */
/* ---------- Le haut : le diaporama du site, en fondu lent ---------- */
.une { position: relative; height: min(88vh, 820px); min-height: 520px; overflow: hidden; background: #1a1a1a; color: #fff; }
.diapo { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.diapo.is-on { opacity: 1; }
.diapo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.diapo.is-on img { animation: approche 9s ease-out forwards; }
@keyframes approche { from { transform: scale(1.06); } to { transform: scale(1); } }
.une::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.08) 55%, rgba(0,0,0,.7) 100%); pointer-events: none; }
.une-texte { position: absolute; z-index: 2; left: 0; right: 0; bottom: 92px; }
.une-texte .in { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.une .filet { border-color: var(--gold-clair); }
.une-titres { position: relative; min-height: 2.1em; text-shadow: 0 2px 28px rgba(0,0,0,.28); margin: 20px 0 0; font-size: clamp(36px, 5vw, 66px); line-height: 1.02; font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; }
.une-titres span { position: absolute; left: 0; bottom: 0; max-width: 15em; opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.une-titres span.is-on { opacity: 1; transform: none; }
.recherche { display: flex; align-items: center; max-width: 640px; margin-top: 30px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.recherche svg { flex: none; width: 20px; height: 20px; margin: 0 4px 0 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.recherche input { flex: 1; min-width: 0; height: 58px; padding: 0 12px; border: 0; background: none; color: var(--ink); font-size: 15px; outline: none; }
.recherche .btn-plein { height: 58px; padding: 0 26px; }
.une-liens { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; }
.une-liens a { color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.une-liens a::after { content: " →"; color: var(--gold-clair); }
.une-liens a:hover { color: var(--gold-clair); }
.reperes { position: absolute; z-index: 2; right: max(16px, calc((100vw - var(--wrap)) / 2 + 16px)); bottom: 40px; display: flex; gap: 8px; }
.repere { position: relative; width: 46px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.repere::before, .repere i { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(255,255,255,.35); }
.repere i { right: auto; width: 0; background: var(--gold-clair); }
.repere.is-on i { width: 100%; transition: width var(--duree, 6.5s) linear; }
.repere:focus-visible { outline: 2px solid var(--gold-clair); outline-offset: 2px; }

/* ---------- Les quatre blocs du site : en alternance, une grande photo et une carte qui la chevauche ---------- */
.blocs { padding: 16px 0 0; }
.bloc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; max-width: var(--wrap); margin: 96px auto 0; padding: 0 16px; }
.bloc-photo { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #ddd; }
.bloc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s ease; }
.bloc:hover .bloc-photo img { transform: scale(1.04); }
.bloc-carte { position: relative; z-index: 1; margin-left: -96px; padding: 46px 48px 44px; background: var(--card); box-shadow: 0 24px 60px rgba(0,0,0,.08); }
.bloc:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.bloc:nth-child(even) .bloc-photo { order: 2; }
.bloc:nth-child(even) .bloc-carte { margin-left: 0; margin-right: -96px; }
.bloc-carte small { display: block; color: var(--gold); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.bloc h2 { margin: 10px 0 0; color: var(--ink); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.02; font-weight: 700; letter-spacing: -.015em; text-transform: uppercase; }
.bloc .filet { margin: 18px 0 20px; transition: width .6s ease; }
.bloc:hover .filet { width: 120px; }
.bloc p { margin: 0 0 26px; font-size: 16px; line-height: 1.75; }

/* Le badge ffgolf du site, posé sur le diaporama */
.ffgolf { position: absolute; z-index: 2; top: 22px; left: max(16px, calc((100vw - var(--wrap)) / 2 + 16px)); width: 92px; padding: 8px 10px; background: #fff; }

/* ---------- Instagram ---------- */
.insta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.section-tete .sur { display: block; margin-bottom: 8px; color: var(--gold); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.insta a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #222; color: #fff; text-decoration: none; }
.insta img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .3s ease; }
.insta span { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75)); font-size: 12px; line-height: 1.4; opacity: 0; transition: opacity .3s ease; }
.insta a:hover span, .insta a.sans-image span { opacity: 1; }
.insta a:hover img { transform: scale(1.05); }

/* ---------- Partenaires : une bande qui défile lentement, arrêt au survol ---------- */
.partenaires { overflow: hidden; padding: 30px 0; background: var(--card); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partenaires-piste { display: flex; width: max-content; gap: 72px; animation: defile 38s linear infinite; }
.partenaires:hover .partenaires-piste { animation-play-state: paused; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partenaires img { flex: none; width: 150px; height: 80px; object-fit: contain; filter: grayscale(1) contrast(1.15); opacity: .9; transition: filter .3s ease, opacity .3s ease; }
.partenaires img:hover { filter: none; opacity: 1; }

@media (max-width: 1100px) {
	.bloc-carte { margin-left: -64px; padding: 36px 34px; }
	.bloc:nth-child(even) .bloc-carte { margin-right: -64px; }
	.insta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.insta a:nth-child(n+9) { display: none; }
}
@media (max-width: 900px) {
	.une { height: 82vh; min-height: 520px; }
	.une-texte { bottom: 70px; }
	.une-titres { font-size: clamp(30px, 9vw, 40px); }
	.recherche { flex-wrap: wrap; }
	.recherche input { height: 52px; }
	.recherche .btn-plein { width: 100%; height: 48px; }
	.reperes { left: 16px; right: auto; bottom: 30px; }
	.ffgolf { top: 14px; width: 74px; }
	.bloc, .bloc:nth-child(even) { grid-template-columns: 1fr; margin-top: 56px; }
	.bloc:nth-child(even) .bloc-photo { order: 0; }
	.bloc-photo { aspect-ratio: 4 / 3; }
	.bloc-carte, .bloc:nth-child(even) .bloc-carte { margin: -48px 12px 0; padding: 26px 22px 28px; }
	.insta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.insta a:nth-child(n+7) { display: none; }
	.partenaires-piste { gap: 44px; }
	.partenaires img { width: 120px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .diapo.is-on img { animation: none; transform: none; } .partenaires-piste { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* ---------- Hors maquette : les suggestions de la recherche (fonction de l'accueil actuel, voir accueil.js) ----------
   La liste s'ouvre au-dessus du champ : le diaporama coupe tout ce qui dépasse en bas. */
.recherche { position: relative; }
.recherche-liste { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(100% + 6px); max-height: min(348px, 46vh); overflow-y: auto; background: #fff; box-shadow: 0 -14px 40px rgba(0,0,0,.2); text-shadow: none; }
.recherche-liste[hidden] { display: none; }
.recherche-liste a { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.recherche-liste a:first-child { border-top: 0; }
.recherche-liste a:hover, .recherche-liste a.is-on { background: var(--gold-pale); }
.recherche-image { flex: none; width: 56px; height: 42px; overflow: hidden; background: #ddd; }
.recherche-image img { width: 100%; height: 100%; object-fit: cover; }
.recherche-liste b { display: block; font-size: 14px; line-height: 1.3; font-weight: 500; }
.recherche-liste small { display: block; margin-top: 2px; color: var(--gold-deep); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* Revue du 2026-11-20 : sur téléphone, le texte d'aide de la recherche était coupé (« … a city in Fr »). */
@media (max-width: 420px) { .recherche input::placeholder { font-size: 12.5px; letter-spacing: -.01em; } }
