/* dgkgroup.fr — couleurs et police de la charte de DGK Group (marque/brand.json, marque/couleurs/palette.css). */

@font-face { font-family: 'Poppins'; src: url('../marque/polices/Poppins-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../marque/polices/Poppins-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../marque/polices/Poppins-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --marine: #0A3D6B;
  --marine-nuit: #062A4B;   /* la marine, assombrie : le fond de la carte du groupe */
  --or: #B8843F;
  --or-clair: #D2A059;
  --or-texte: #8A5F27;      /* l'or, assombri pour se lire en petit sur fond clair */
  --ardoise: #4A4946;
  --gris-clair: #D9D7D2;
  --blanc: #FFFFFF;
  --fond: #F7F6F3;          /* le gris clair, très éclairci : les sections alternées */
  --trait: #E7E5E0;
  --sans: 'Poppins', system-ui, 'Segoe UI', Arial, sans-serif;
  --largeur: 1160px;
  --courbe: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ardoise);
  background: var(--blanc);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--marine); text-decoration-color: rgba(10, 61, 107, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--or); }
:focus-visible { outline: 3px solid var(--or-clair); outline-offset: 3px; border-radius: 4px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
/* Le fichier du kit garde son aire de protection (un quart de la hauteur de DGK) : 72 px pour un dessin de 48. */
.entete .logo img { height: 72px; width: auto; }
.entete nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.entete nav a { position: relative; padding: 6px 0; color: var(--ardoise); text-decoration: none; }
.entete nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--courbe); }
.entete nav a:hover { color: var(--marine); }
.entete nav a:hover::after { transform: scaleX(1); }

/* Accueil : le texte, et la carte du groupe */
.accueil {
  position: relative; overflow: hidden; color: var(--gris-clair);
  background:
    radial-gradient(60% 55% at 74% 50%, rgba(210, 160, 89, .16), transparent 70%),
    radial-gradient(120% 110% at 78% 40%, #10548F 0%, var(--marine) 42%, var(--marine-nuit) 100%);
}
.accueil::before {          /* un semis de points, estompé vers les bords */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 50%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse at 72% 50%, #000 25%, transparent 75%);
}
.accueil .conteneur { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.surtitre { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--or-texte); }
.surtitre::before { content: ''; width: 28px; height: 2px; background: var(--or); }
.accueil .surtitre { color: var(--or-clair); }
.accueil .surtitre::before { background: var(--or-clair); }
.accueil h1 { margin: 0 0 24px; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; color: var(--blanc); }
.accueil h1 em { font-style: normal; color: var(--or-clair); }
.accueil .chapo { max-width: 50ch; margin: 0 0 32px; font-size: 18.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.bouton { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s var(--courbe); }
.bouton:hover { transform: translateY(-1px); }
.bouton.or { background: var(--or-clair); color: var(--marine-nuit); }
.bouton.or:hover { background: #DFB273; }
.bouton.clair { border: 1.5px solid rgba(255, 255, 255, .45); color: var(--blanc); }
.bouton.clair:hover { border-color: var(--or-clair); color: var(--or-clair); }
.section .bouton.or { background: var(--marine); color: var(--blanc); }
.section .bouton.or:hover { background: #082F53; }
.reperes { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 44px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid rgba(217, 215, 210, .2); font-size: 14px; }
.reperes li { display: flex; align-items: baseline; gap: 8px; }
.reperes strong { font-size: 26px; font-weight: 600; line-height: 1; color: var(--or-clair); }

/* La carte du groupe : DGK au centre, ses familles d'activités en orbite, et ce que chacune porte.
   Les places sont écrites par assets/galaxie.js, en pourcentage d'une scène carrée. */
.galaxie-cadre { container-type: inline-size; width: 100%; max-width: 640px; margin: 0 auto; }
html:not(.js) .galaxie-cadre { display: none; }
html:not(.js) .accueil .conteneur { grid-template-columns: 1fr; }
.galaxie {
  --centre: clamp(76px, 22cqw, 136px);
  --hub: clamp(34px, 9.4cqw, 58px);
  --sat: clamp(28px, 7.8cqw, 48px);
  position: relative; width: 100%; aspect-ratio: 1; user-select: none;
}
.g-traits, .g-toile { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.g-traits { overflow: visible; }
.g-orbite { fill: none; stroke: rgba(217, 215, 210, .2); stroke-width: 1; }
.g-anneau { fill: none; stroke: rgba(217, 215, 210, .26); stroke-width: 1; stroke-dasharray: 2 4; }
.g-rayon { stroke-width: 1.5; stroke-opacity: .55; }
.g-lien { stroke-width: 1; stroke-opacity: .38; }

.g-centre, .g-hub, .g-sat { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.g-centre {
  width: var(--centre); height: var(--centre); display: grid; place-items: center; border-radius: 50%; background: var(--blanc);
  box-shadow: 0 0 0 1px rgba(210, 160, 89, .9), 0 0 0 7px rgba(210, 160, 89, .16), 0 24px 60px -18px rgba(0, 0, 0, .65), 0 0 90px -8px rgba(210, 160, 89, .55);
  z-index: 4;
}
.g-centre svg { width: 84%; height: auto; }

.g-hub { width: var(--hub); height: var(--hub); z-index: 3; }
.g-sat { width: var(--sat); height: var(--sat); z-index: 2; text-decoration: none; }
.g-sat:hover, .g-sat[data-emet] { z-index: 5; }
.g-disque { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--blanc); box-shadow: 0 0 0 2px var(--teinte, var(--or-clair)), 0 10px 24px -10px rgba(0, 0, 0, .6); transition: transform .3s var(--courbe), box-shadow .3s; }
.g-hub .g-disque { background: var(--marine-nuit); color: var(--teinte); }
.g-hub svg, .g-disque.texte svg { width: 54%; height: 54%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.g-sat .g-disque img { width: 66%; height: 66%; object-fit: contain; }
.g-sat .g-disque.plein img { width: 100%; height: 100%; }
.g-disque.texte { color: var(--marine); font-size: clamp(8px, 2cqw, 12px); font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.g-nom { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 0 7px; border-radius: 999px; background: rgba(6, 42, 75, .82); white-space: nowrap; font-size: clamp(8.5px, 2cqw, 11px); font-weight: 600; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--teinte); }
.g-bulle {
  position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translate(-50%, 4px); padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--blanc); color: var(--marine); font-size: 12.5px; font-weight: 600; line-height: 1.3; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--courbe);
}
.g-bulle::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--blanc); border-bottom-width: 0; }
.g-sat:hover .g-bulle, .g-sat[data-emet] .g-bulle { opacity: 1; transform: translate(-50%, 0); }
.g-sat:hover .g-disque { transform: scale(1.12); }
.g-sat[data-emet] .g-disque { box-shadow: 0 0 0 2px var(--teinte), 0 0 0 7px color-mix(in srgb, var(--teinte) 28%, transparent), 0 10px 24px -10px rgba(0, 0, 0, .6); }

/* Sections */
.section { padding: 96px 0; }
.section.alternee { background: var(--fond); }
.section h2 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; color: var(--marine); }
.section .tete { margin: 0 0 44px; }
.section .intro { max-width: 64ch; margin: 0; }

.grille { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grille.six > * { grid-column: span 2; }
.grille.six > :nth-child(n+4) { grid-column: span 3; }
.grille.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grille.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.carte { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--blanc); border: 1px solid var(--trait); border-radius: 16px; padding: 30px 28px 26px; transition: border-color .25s, box-shadow .3s, transform .3s var(--courbe); }
.carte::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--teinte, var(--or)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--courbe); }
.section.alternee .carte { border-color: transparent; box-shadow: 0 1px 2px rgba(10, 61, 107, .06); }
a.carte { color: inherit; text-decoration: none; }
a.carte:hover { border-color: transparent; transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(10, 61, 107, .38), 0 0 0 1px rgba(10, 61, 107, .07); }
a.carte:hover::before { transform: scaleX(1); }
.carte h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--marine); }
.carte .pour { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; color: var(--or-texte); }
.carte p { margin: 0 0 18px; font-size: 15.5px; }
.carte .lien { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--marine); }
.carte .lien::after, .lien-fleche::after { content: '→'; display: inline-block; margin-left: 6px; color: var(--or); transition: transform .25s var(--courbe); }
a.carte:hover .lien::after, .lien-fleche:hover::after { transform: translateX(5px); }
.lien-fleche { font-weight: 600; text-decoration: none; }
.carte .marque { height: 46px; margin: 0 0 22px; display: flex; align-items: center; }
.carte .marque img { max-height: 40px; width: auto; max-width: 100%; }
.carte .marque.icone img { height: 44px; max-height: 44px; border-radius: 9px; }
.carte .marque.icone .nom-texte { margin-left: 14px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: #1A2230; }
.etiquette { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(184, 132, 63, .13); color: var(--or-texte); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; vertical-align: middle; }

/* La Maison, bandeau */
.maison { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; margin: 0 0 40px; padding: 32px 36px; background: var(--blanc); border-radius: 16px; box-shadow: 0 1px 2px rgba(10, 61, 107, .06); }
.maison img { width: 100%; max-width: 300px; }
.maison p { margin: 0 0 10px; max-width: 62ch; }
.maison p:last-child { margin: 0; }

/* La société */
.societe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.societe dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 15.5px; }
.societe dt { font-weight: 600; color: var(--marine); }
.societe dd { margin: 0; }
.contact { text-align: center; background: var(--blanc); border-radius: 16px; padding: 36px 28px; box-shadow: 0 1px 2px rgba(10, 61, 107, .06); }
.contact h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--marine); }
.contact p { margin: 0 0 24px; }
.contact .actions { justify-content: center; }
.section:not(.alternee) .contact { background: var(--fond); box-shadow: none; }

/* Pied de page */
.pied { background: var(--marine); color: var(--gris-clair); padding: 56px 0 40px; font-size: 14px; }
.pied a { color: var(--blanc); text-decoration-color: rgba(255, 255, 255, .35); }
.pied a:hover { text-decoration-color: var(--or-clair); }
.pied .haut { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid rgba(217, 215, 210, .22); }
.pied .haut img { height: 64px; width: auto; }
.pied .devise { margin: 0; color: var(--or-clair); font-weight: 500; letter-spacing: .04em; }
.pied .legal { margin: 0 0 6px; }
.pied .liens { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }

/* Mentions légales */
.page-texte { padding: 72px 0 88px; }
.page-texte h1 { margin: 0 0 32px; font-size: clamp(30px, 4vw, 42px); font-weight: 600; color: var(--marine); }
.page-texte h2 { margin: 36px 0 10px; font-size: 20px; font-weight: 600; color: var(--marine); }
.page-texte p, .page-texte li { max-width: 70ch; }

/* Le mouvement : seulement pour qui ne l'a pas refusé. */
@media (prefers-reduced-motion: no-preference) {
  .anime [data-apparait] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--courbe), transform .7s var(--courbe), border-color .25s, box-shadow .3s; transition-delay: var(--retard, 0ms), var(--retard, 0ms), 0ms, 0ms; }
  .anime [data-apparait].visible { opacity: 1; transform: none; }
  .anime a.carte[data-apparait].visible:hover { transform: translateY(-4px); transition-delay: 0ms; transition-duration: .3s; }

  .accueil-texte > * { animation: monte .8s var(--courbe) both; }
  .accueil-texte > :nth-child(2) { animation-delay: .08s; }
  .accueil-texte > :nth-child(3) { animation-delay: .16s; }
  .accueil-texte > :nth-child(4) { animation-delay: .24s; }
  .accueil-texte > :nth-child(5) { animation-delay: .32s; }
  .js .galaxie { animation: eclot 1.1s var(--courbe) .1s both; }
  .js .g-fleche { animation: fleche 1.3s cubic-bezier(.6, 0, .2, 1) .7s both; }   /* la flèche du logo se trace */
  .js .g-orbite { stroke-dasharray: 1 6; animation: derive 50s linear infinite; }
}
@keyframes monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes eclot { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fleche { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes derive { to { stroke-dashoffset: -140; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 1000px) {
  .accueil .conteneur { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; padding-bottom: 48px; }
  .accueil::before { -webkit-mask-image: radial-gradient(ellipse at 50% 72%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 72%, #000 25%, transparent 75%); }
  .galaxie-cadre { max-width: 560px; }
  .grille, .grille.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille.six > *, .grille.six > :nth-child(n+4) { grid-column: auto; }
  .grille.six > :last-child { grid-column: 1 / -1; }
  .maison { grid-template-columns: 1fr; gap: 24px; }
  .societe { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .conteneur { padding: 0 16px; }
  .entete nav { display: none; }
  .entete .conteneur { min-height: 72px; }
  .entete .logo img { height: 60px; }
  .accueil .conteneur { padding-top: 44px; padding-bottom: 36px; }
  .accueil .chapo { font-size: 17px; }
  .reperes { display: none; }
  .section { padding: 64px 0; }
  .section .tete { margin-bottom: 32px; }
  .grille, .grille.six, .grille.quatre, .grille.deux { grid-template-columns: 1fr; }
  .grille.six > :last-child { grid-column: auto; }
  .maison { padding: 24px 20px; }
  .societe dl { grid-template-columns: 1fr; gap: 2px; }
  .societe dd { margin-bottom: 10px; }
  .g-bulle { font-size: 11.5px; padding: 4px 9px; }
}
