/* goldendream.be : style commun (accueil, vision, hey, principes) + haut et bas de page injectés par site.js */
:root {
  --gd-paper: #f1efe8;
  --gd-card: #ffffff;
  --gd-ink: #2b2b2b;
  --gd-soft: #5d5a52;
  --gd-blue: #2f77bb;
  --gd-blue-dark: #1d5590;
  --gd-blue-50: #e4eef8;
  --gd-line: #e3d9c2;
}
body.gd { margin: 0; background: var(--gd-paper); color: var(--gd-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.65; }
.gd *, .gd *::before, .gd *::after { box-sizing: border-box; }

/* --- Haut de page --- */
.gd-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 28px; background: var(--gd-paper); border-bottom: 2px solid var(--gd-line); }
.gd-brand { font-family: "Caveat", cursive; font-weight: 700; font-size: 32px; line-height: 1; color: var(--gd-blue-dark); text-decoration: none; }
.gd-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.gd-nav a { padding: 7px 15px; border-radius: 999px; color: var(--gd-blue-dark); text-decoration: none; font-weight: 600; font-size: 15px; }
.gd-nav a:hover { background: var(--gd-blue-50); }
.gd-nav a.on { background: var(--gd-blue); color: #fff; }

/* --- Bas de page --- */
.gd-footer { margin-top: 72px; background: var(--gd-blue-dark); color: #dbe7f3; font-size: 14px; }
.gd-footer-in { max-width: 1040px; margin: 0 auto; padding: 44px 24px 12px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.gd-footer h4 { margin: 0 0 10px; color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.gd-footer a { display: block; color: #dbe7f3; text-decoration: none; padding: 3px 0; }
.gd-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gd-footer p { margin: 6px 0 0; }
.gd-brand-sm { font-family: "Caveat", cursive; font-size: 28px; color: #fff; }
.gd-copy { max-width: 1040px; margin: 0 auto; padding: 18px 24px 30px; color: #9db6cf; font-size: 13px; }

/* --- Pages de contenu --- */
.gd-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.gd-hero { padding: 72px 0 36px; max-width: 760px; }
.gd-hero h1 { font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(44px, 7vw, 76px); line-height: 1.02; color: var(--gd-blue-dark); margin: 0 0 18px; }
.gd-hero p { font-size: clamp(18px, 2vw, 21px); color: var(--gd-soft); margin: 0 0 26px; }
.gd-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gd-section { padding: 40px 0 8px; }
.gd-section > h2 { font-family: "Caveat", cursive; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; color: var(--gd-blue); margin: 0 0 8px; }
.gd-lead { font-size: 18px; max-width: 46rem; margin: 0 0 18px; }
.gd-quote { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.55; max-width: 46rem; margin: 0 0 18px; padding-left: 20px; border-left: 4px solid var(--gd-blue); }

.gd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--gd-blue); background: var(--gd-blue); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; transition: background .15s, color .15s; }
.gd-btn:hover { background: var(--gd-blue-dark); border-color: var(--gd-blue-dark); }
.gd-btn.alt { background: transparent; color: var(--gd-blue); }
.gd-btn.alt:hover { background: var(--gd-blue-50); }
.gd-btn:focus-visible, .gd-nav a:focus-visible, .gd-footer a:focus-visible, .gd-brand:focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }

.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 18px 0 0; }
.gd-card { background: var(--gd-card); border: 1px solid var(--gd-line); border-radius: 16px; padding: 24px; box-shadow: 0 2px 0 var(--gd-line); }
.gd-card:nth-child(odd) { transform: rotate(-0.6deg); }
.gd-card:nth-child(even) { transform: rotate(0.5deg); }
.gd-card .ico { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--gd-blue-50); color: var(--gd-blue); margin-bottom: 12px; }
.gd-card .ico .ic { width: 26px; height: 26px; }
.gd-card h3 { margin: 0 0 6px; font-family: "Caveat", cursive; font-size: 28px; line-height: 1.1; color: var(--gd-blue-dark); }
.gd-card p { margin: 0; color: var(--gd-ink); }
.gd-card a.more { display: inline-block; margin-top: 10px; color: var(--gd-blue); font-weight: 600; text-decoration: none; }
.gd-card a.more:hover { text-decoration: underline; }
.gd-num { font-family: "Caveat", cursive; font-size: 40px; color: var(--gd-blue); line-height: 1; }

.gd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.gd-note { margin-top: 22px; padding: 16px 20px; background: var(--gd-blue-50); border-radius: 14px; color: var(--gd-blue-dark); }

.gd-next { margin-top: 56px; padding: 32px; border-radius: 20px; background: var(--gd-card); border: 2px dashed var(--gd-line); text-align: center; }
.gd-next h2 { font-family: "Caveat", cursive; font-size: 36px; margin: 0 0 6px; color: var(--gd-blue-dark); }
.gd-next p { margin: 0 0 16px; color: var(--gd-soft); }
.gd-next .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 760px) {
  .gd-header { padding: 10px 16px; gap: 8px; }
  .gd-nav { margin-left: 0; width: 100%; }
  .gd-nav a { padding: 6px 12px; font-size: 14px; }
  .gd-hero { padding: 40px 0 20px; }
  .gd-wrap { padding: 0 16px; }
  .gd-split { grid-template-columns: 1fr; }
  .gd-footer-in { grid-template-columns: 1fr 1fr; padding: 32px 16px 8px; }
  .gd-copy { padding: 14px 16px 26px; }
  .gd-card:nth-child(odd), .gd-card:nth-child(even) { transform: none; }
}

.gd-header, .gd-header *, .gd-footer, .gd-footer * { box-sizing: border-box; }

/* --- Mise en page ouverte : pleine largeur, sans cadres --- */
.gd-wrap { max-width: 1480px; padding: 0 clamp(20px, 6vw, 110px); }
.gd-hero { max-width: 980px; padding: clamp(56px, 9vw, 120px) 0 clamp(28px, 4vw, 56px); }
.gd-hero h1 { font-size: clamp(48px, 8.5vw, 104px); }
.gd-hero p { font-size: clamp(19px, 2.2vw, 26px); }
.gd-section { padding: clamp(32px, 5vw, 64px) 0 8px; }
.gd-section > h2 { font-size: clamp(36px, 4.6vw, 56px); }
.gd-lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 60rem; }
.gd-quote { font-size: clamp(21px, 2.4vw, 28px); max-width: 60rem; }
.gd-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: 28px; }
.gd-card, .gd-card:nth-child(odd), .gd-card:nth-child(even) { background: none; border: 0; border-top: 2px dashed var(--gd-line); border-radius: 0; box-shadow: none; transform: none; padding: 22px 0 0; }
.gd-card .ico { background: none; width: auto; height: auto; justify-content: flex-start; margin-bottom: 10px; }
.gd-card .ico .ic { width: 40px; height: 40px; }
.gd-card h3 { font-size: 32px; }
.gd-card p { font-size: 17px; color: var(--gd-soft); }
.gd-note { background: none; border-left: 4px solid var(--gd-blue); border-radius: 0; padding: 4px 0 4px 18px; font-size: 18px; }
.gd-next { background: none; border: 0; border-top: 2px dashed var(--gd-line); border-radius: 0; text-align: left; padding: 40px 0 0; }
.gd-next .actions { justify-content: flex-start; }
.gd-footer-in, .gd-copy { max-width: 1480px; padding-left: clamp(20px, 6vw, 110px); padding-right: clamp(20px, 6vw, 110px); }
.gd-header { padding-left: clamp(16px, 6vw, 110px); padding-right: clamp(16px, 6vw, 110px); }

/* --- Haut de page : outils, sous-menu, fenêtre de connexion --- */
[hidden] { display: none !important; }
.gd-header { position: sticky; top: 0; z-index: 50; margin: 0; }
.gd-tools { position: relative; display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.gd-nav { margin-left: auto; }
.gd-account { font-size: 13px; color: var(--gd-soft); }
.gd-dots { background: none; border: 0; padding: 6px; border-radius: 12px; cursor: pointer; color: var(--gd-blue-dark); line-height: 0; }
.gd-dots:hover { background: var(--gd-blue-50); }
.gd-dots .ic { width: 26px; height: 26px; }
.gd-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 210px; display: flex; flex-direction: column; padding: 6px; background: #fff; border: 2px solid var(--gd-line); border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.gd-menu button, .gd-menu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; color: var(--gd-ink); text-decoration: none; cursor: pointer; }
.gd-menu button:hover, .gd-menu a:hover { background: var(--gd-blue-50); }
.gd-menu button[hidden], .gd-menu a[hidden] { display: none; }
.gd-subnav { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px clamp(16px, 6vw, 110px); background: var(--gd-paper); border-bottom: 2px dashed var(--gd-line); }
.gd-subnav a { padding: 5px 14px; border-radius: 999px; color: var(--gd-blue-dark); text-decoration: none; font-size: 14px; font-weight: 600; }
.gd-subnav a:hover { background: var(--gd-blue-50); }
.gd-subnav a.on { background: var(--gd-blue-dark); color: #fff; }

.gd-modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 30, 45, .45); }
.gd-modal { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--gd-paper); border: 2px solid var(--gd-line); border-radius: 18px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.gd-modal h2 { margin: 0; font-family: "Caveat", cursive; font-size: 34px; color: var(--gd-blue-dark); }
.gd-modal label { font-size: 13px; color: var(--gd-soft); }
.gd-modal input { font: inherit; padding: 10px 12px; border: 2px solid var(--gd-line); border-radius: 12px; background: #fff; }
.gd-modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.gd-modal .gd-btn { padding: 9px 18px; font-size: 14px; cursor: pointer; }
.gd-modal .link-toggle { background: none; border: 0; color: var(--gd-blue); cursor: pointer; font-size: 13px; text-align: left; padding: 0; }
.gd-modal .hint.error { color: #d6264f; font-size: 13px; margin: 0; }

/* --- Cartes : icône à gauche, titre à sa droite --- */
.gd-card .head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.gd-card .head h3 { margin: 0; }
.gd-card .head .ico { margin: 0; flex: none; }
.gd-card .pic { width: 56px; height: 56px; object-fit: contain; flex: none; }
.gd-card .more { margin-right: 18px; }
.gd-center-btn { margin-top: 28px; }
.gd-lead.tight { margin-bottom: 10px; }
.gd-after { margin-top: 22px; }

@media (max-width: 760px) {
  .gd-nav { margin-left: 0; order: 3; width: 100%; }
  .gd-tools { margin-left: auto; }
  .gd-subnav { padding: 8px 16px; }
}

.gd-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-lead.big { font-size: clamp(21px, 2.4vw, 28px); max-width: 60rem; }
@media (max-width: 760px) { .gd-grid.two { grid-template-columns: 1fr; } }

/* --- Ajustements : tailles plus sobres, sous-menu compact et fixe, grilles de 5 centrées --- */
.gd-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(20px, 3vw, 36px); max-width: 900px; }
.gd-hero h1 { font-size: clamp(38px, 5.4vw, 66px); }
.gd-hero p { font-size: clamp(17px, 1.6vw, 20px); }
.gd-section { padding: clamp(24px, 3.5vw, 44px) 0 6px; }
.gd-section > h2 { font-size: clamp(30px, 3.4vw, 42px); }
.gd-lead { font-size: clamp(16px, 1.3vw, 18px); }
.gd-lead.big { font-size: clamp(18px, 1.8vw, 22px); }
.gd-grid { gap: clamp(22px, 3vw, 40px); margin-top: 20px; }
.gd-card h3 { font-size: 27px; }
.gd-card p { font-size: 16px; }
.gd-card .pic { width: 48px; height: 48px; }
.gd-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gd-grid.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gd-grid.five > .gd-card { grid-column: span 2; }
.gd-grid.five > .gd-card:nth-child(4) { grid-column: 2 / span 2; }
.gd-grid.five > .gd-card:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 900px) {
  .gd-grid.three, .gd-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-grid.five > .gd-card, .gd-grid.five > .gd-card:nth-child(4) { grid-column: auto; }
  .gd-grid.five > .gd-card:nth-child(5) { grid-column: 1 / -1; justify-self: center; max-width: 50%; }
}
@media (max-width: 600px) {
  .gd-grid.three, .gd-grid.five { grid-template-columns: 1fr; }
  .gd-grid.five > .gd-card:nth-child(5) { max-width: none; }
}
.gd-subnav { position: sticky; z-index: 49; flex-wrap: nowrap; overflow-x: auto; gap: 2px; padding-top: 4px; padding-bottom: 4px; }
.gd-subnav a { padding: 3px 11px; font-size: 13px; white-space: nowrap; }

.gd-section[id] { scroll-margin-top: 70px; }

/* Dans la page Messages (body en colonne flex), le haut de page et le sous-menu ne doivent jamais être écrasés. */
.gd-header, .gd-subnav { flex: none; }

/* --- Haut de page pleine largeur, sans marges inutiles --- */
.gd-header { padding-left: clamp(14px, 2vw, 28px); padding-right: clamp(14px, 2vw, 28px); }
.gd-subnav { padding-left: clamp(14px, 2vw, 28px); padding-right: clamp(14px, 2vw, 28px); }

/* --- Décor aléatoire en arrière-plan (stickers, post-it à punaise ou adhésif) --- */
.gd-deco { position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; z-index: -1; pointer-events: none; }
.gd-deco > * { position: absolute; user-select: none; }
.gd-deco img { display: block; height: auto; }
.gd-deco-note { display: flex; align-items: center; justify-content: center; padding: 18px 10px 10px; text-align: center; line-height: 1.15; color: #2b2b2b; box-shadow: 2px 5px 9px rgba(0,0,0,.16); }
.gd-deco-note .pin { position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9a9a, #d6264f 60%, #8c1530); box-shadow: 1px 3px 3px rgba(0,0,0,.3); }
.gd-deco-note .tape { position: absolute; top: -10px; left: 50%; width: 48px; height: 17px; margin-left: -24px; background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.06); transform: rotate(-4deg); }
.gd-deco-note img { position: absolute; right: -16px; bottom: -16px; }

/* --- Nom du compte : emplacement réservé (ne décale jamais les boutons du menu) --- */
.gd-tools .gd-account, .gd-tools .gd-account[hidden] { display: inline-block !important; width: 150px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-tools .gd-account[hidden] { visibility: hidden; }
@media (max-width: 760px) { .gd-tools .gd-account, .gd-tools .gd-account[hidden] { width: 90px; } }
.gd-header, .gd-subnav { padding-left: 10px; padding-right: 10px; }
