/* gt-base.css - règles écrites à la main pour golf-time.ca (les règles de la maquette sont dans gt-gen.css).
   Source : styles globaux de « Golf Time Site.dc.html » (html, body, *, a, champs) et comportements
   que l'arbre Oxygen ne porte pas (bascule bureau/mobile, entrée active de la barre du bas, icônes). */
html, body { margin: 0; background: #15130F; color: #F3EFE0; font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; }
body { font-size: 16px; line-height: 1.6; }
body *, body *::before, body *::after { box-sizing: border-box; }
body a { color: #D4A733; text-decoration: none; }
body a:hover { color: #F2D57E; }
body input, body textarea, body button, body select { font-family: inherit; }
body ::placeholder { color: #8C857A; }

/* bascule bureau / mobile : même seuil que la maquette (760 px), aligné sur le point de rupture d'Oxygen */
@media (max-width: 767px) { .gt-desk { display: none !important; } }
@media (min-width: 768px) { .gt-mob { display: none !important; } }

/* codes courts : le conteneur ne doit rien ajouter à la mise en page */
.gt-sc { display: contents; }

/* icônes : Oxygen pose stroke-width:0 et croise fill/stroke sur le <svg> ; les enfants portent leurs
   propres attributs (gen.py), on neutralise seulement le conteneur */
.gt-ico { --oxy-icon-stroke: none; --oxy-icon-fill: currentColor; display: inline-flex; flex: 0 0 auto; line-height: 0; }
.oxy-svg-icon.gt-ico > svg { width: 100%; height: 100%; stroke-width: unset; }

/* barre du bas : entrée de la page courante (posée par gt-site.js) */
nav.gt-desk a.gt-actif { color: #15130F !important; background: rgba(243,239,224,.92) !important; }
nav.gt-mob a.gt-actif { color: #D4A733 !important; }

/* G de l'accueil : transition douce entre les paliers (gt-site.js fait tourner 0 -> 30 %) */
[data-gt-g="remplissage"] { transition: clip-path .9s ease; }
[data-gt-etiquette] { transition: color .4s ease; }

/* sélecteur de langue (code court [gt_langue]) : styles des pastilles FR/EN de la maquette */
.gt-langue { display: flex; align-items: center; border: 1px solid rgba(193,157,72,.3); border-radius: 999px; padding: 3px; font-size: 12px; font-weight: 600; }
.gt-langue a { border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 600; line-height: 1; color: #F3EFE0; background: transparent; }
.gt-langue a.gt-langue--on { background: #D4A733; color: #15130F; }
.gt-langue--pied { display: flex; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; border: 0; padding: 0; }
.gt-langue--pied a { padding: 0; background: transparent !important; color: #8C857A; font-size: 13px; }
.gt-langue--pied a.gt-langue--on { color: #D4A733; }

/* carte (code court [gt_carte]) : rien ne charge Google avant le clic (Loi 25) */
.gt-carte { position: relative; width: 100%; height: 280px; border: 1px solid rgba(193,157,72,.28); border-radius: 20px; overflow: hidden; background: #1B1817 radial-gradient(60% 80% at 50% 40%, rgba(212,167,51,.16), transparent 70%); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.gt-carte__btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 1px solid rgba(212,167,51,.6); color: #F3EFE0 !important; font-weight: 600; font-size: 15px; background: rgba(21,19,15,.6); cursor: pointer; }
.gt-carte__note { display: block; margin-top: 10px; font-size: 12px; color: #8C857A; }
.gt-carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* formulaires (code court [gt_form]) : CF7 ajoute ses propres enveloppes */
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 form .wpcf7-response-output { margin: 12px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; color: #E4DFCF; border: 1px solid rgba(212,167,51,.5); }
.wpcf7-not-valid-tip { color: #F2D57E; font-size: 13px; margin-top: 6px; }
.wpcf7 .wpcf7-spinner { display: none; }
.gt-form-ligne { display: flex; flex-direction: column; gap: 12px; }

/* les attributs width/height des images servent au ratio, jamais à la hauteur affichée */
body img { height: auto; max-width: 100%; }

/* page Fidélité : palier choisi (gt-site.js) */
[data-gt-niveau] { transition: background .25s ease, color .25s ease; }
[data-gt-niveau].gt-on { background: #D4A733 !important; color: #15130F !important; border-color: #D4A733 !important; }
[data-gt-niveau]:not(.gt-on) { background: transparent !important; color: #E4DFCF !important; }
[data-gt-carte] { transition: border-color .25s ease; }
[data-gt-carte].gt-on { border-color: rgba(212,167,51,.75) !important; }
[data-gt-carte]:not(.gt-on) { border-color: rgba(193,157,72,.28) !important; }

/* tableaux : Oxygen les convertit en conteneurs <div>, on leur rend l'affichage de tableau */
.gt-t-table { display: table !important; width: 100%; border-collapse: collapse; }
.gt-t-thead { display: table-header-group !important; }
.gt-t-tbody { display: table-row-group !important; }
.gt-t-tr { display: table-row !important; }
.gt-t-th, .gt-t-td { display: table-cell !important; }

/* texte réservé aux lecteurs d'écran (étiquette du champ de l'infolettre) */
.gt-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gt-infolettre-champ { display: block; }
.gt-form-note { margin: 4px 0 0; font-size: 12px; color: #8C857A; }

/* CookieYes : le bouton pour revenir sur son choix ne doit pas se cacher sous la barre du bas */
/* bureau : la barre du bas est centrée et flottante, le coin bas gauche est libre (revue de Wissem, 2026-12-03) */
.cky-btn-revisit-wrapper.cky-btn-revisit-wrapper { bottom: 20px !important; left: 20px !important; background-color: #D4A733 !important; }
/* mobile : la barre occupe toute la largeur, le bouton se pose juste au-dessus */
@media (max-width: 767px) { .cky-btn-revisit-wrapper.cky-btn-revisit-wrapper { bottom: calc(84px + env(safe-area-inset-bottom)) !important; left: 12px !important; width: 40px !important; height: 40px !important; } }

/* CF7 pose size="40" sur ses champs : sans ceci, ils débordent l'écran mobile */
.wpcf7 input:not([type=submit]):not([type=hidden]), .wpcf7 textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.wpcf7 form { min-width: 0; }

/* pages Conditions, Règlement, Confidentialité : le sommaire ne colle qu'à côté du texte (bureau) ; sur mobile il passe au-dessus */
@media (max-width: 767px) { .gt-a492a5 { position: static !important; } }

/* barre du bas mobile : icônes plus grandes (revue de Wissem, 2026-12-03). Oxygen rendait le conteneur
   de l'icône à 11 px ; on fixe sa taille, et celle du libellé. */
nav.gt-mob .gt-ico { width: 26px !important; height: 26px !important; }
nav.gt-mob > a { font-size: 12px !important; gap: 5px !important; }
nav.gt-mob .gt-c40cbf { width: 62px !important; height: 62px !important; }
nav.gt-mob .gt-c40cbf .gt-ico { width: 28px !important; height: 28px !important; }

/* bande « Propulsé par » : logo officiel Trackman (fond sombre) */
.gt-tm-logo { display: block; width: 132px; height: auto; }

/* en-tête de la page Cartes-cadeaux : photo de la baie VIP */
.gt-hero-vip { background-image: url("/wp-content/uploads/2026/12/golf-time-baie-vip.webp") !important; }

/* blocs de cartes ajoutés (Cartes-cadeaux, Tournois) */
.gt-bloc { max-width: 1200px; margin: 0 auto; padding: 56px clamp(20px, 5vw, 48px) 32px; display: flex; flex-direction: column; gap: 14px; }
.gt-bloc__h { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: #F3EFE0; }
.gt-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gt-cartei { padding: 26px; border: 1px solid rgba(193,157,72,.28); border-radius: 20px; background: #1B1817; min-width: 0; }
.gt-cartei__t { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #F3EFE0; }
.gt-cartei__p { margin: 0; font-size: 15px; line-height: 1.6; color: #E4DFCF; }
@media (max-width: 767px) { .gt-cartes { grid-template-columns: minmax(0, 1fr); } .gt-bloc { padding-top: 40px; } }
