/* ===== Éclat minéral : l’or, le nickel, le cuivre et le diamant des mines ===== */
:root {
  --or: linear-gradient(115deg, #7a5a14 0%, #c9a13b 18%, #f7e7a6 34%, #d8b24a 48%, #8f6b1c 62%, #e9cd78 80%, #9b7720 100%);
  --nickel: linear-gradient(115deg, #6f7a84 0%, #c3cbd2 20%, #f4f7f9 36%, #aab4bc 52%, #7c8791 66%, #dfe5ea 84%, #8a959e 100%);
  --cuivre: linear-gradient(115deg, #6e3416 0%, #b8693a 20%, #f0b48a 36%, #c47a45 52%, #7d3d1b 66%, #e39a6b 84%, #8c4720 100%);
  --diamant: linear-gradient(115deg, #a9c7d6 0%, #e9f6fb 22%, #ffffff 36%, #bfe1ee 50%, #8fb3c6 64%, #f2fbff 82%, #a7c4d3 100%);
  --or-plein: #c9a13b;
  --facettes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='208' viewBox='0 0 240 208'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09'%3E%3Cpath d='M0 0 60 104 120 0 180 104 240 0M0 208 60 104 120 208 180 104 240 208M60 104H180M0 104h60M180 104h60'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Cpath fill-opacity='.035' d='M60 104 120 0 180 104Z'/%3E%3Cpath fill-opacity='.02' d='M0 208 60 104 120 208Z'/%3E%3Cpath fill-opacity='.05' d='M120 208 180 104 240 208Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Texte métallique */
.or, .metal-or { background: var(--or); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: eclat-texte 6s ease-in-out infinite; }
@keyframes eclat-texte { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Reflet qui balaie une surface */
.eclat { position: relative; overflow: hidden; isolation: isolate; }
.eclat::after { content: ""; position: absolute; top: -50%; bottom: -50%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: eclat-balaye 5.5s ease-in-out infinite; pointer-events: none; z-index: 2; }
@keyframes eclat-balaye { 0%, 60% { left: -60%; } 100% { left: 140%; } }

/* Bandeaux des pages : facettes de diamant + pépite d’or */
.bandeau { background-image: var(--facettes), linear-gradient(135deg, var(--nuit), var(--nuit-2)); background-size: 240px 208px, cover; }
.bandeau::after { background: var(--or); background-size: 200% 100%; animation: eclat-texte 7s ease-in-out infinite; opacity: 1; }
.bandeau::before { content: ""; position: absolute; right: 9rem; bottom: -3rem; width: 7rem; height: 6rem; background: var(--nickel); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .55; }
.bandeau h1 { text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.bandeau h1::after { content: ""; display: block; width: 5.5rem; height: 4px; margin-top: 1rem; border-radius: 4px; background: var(--or); background-size: 200% 100%; animation: eclat-texte 5s ease-in-out infinite; }

/* Boutons : or poli, reflet au survol */
.bouton { position: relative; overflow: hidden; isolation: isolate; background: var(--or); background-size: 200% 100%; border-color: transparent; color: #241a04; text-shadow: 0 1px 0 rgba(255,255,255,.35); box-shadow: 0 .6rem 1.4rem -.6rem rgba(140,100,20,.7), inset 0 1px 0 rgba(255,255,255,.6); transition: background-position .6s, transform .2s, box-shadow .2s; }
.bouton::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); transition: left .7s; z-index: -1; }
.bouton:hover { background: var(--or); background-size: 200% 100%; background-position: 100% 50%; color: #241a04; border-color: transparent; }
.bouton:hover::after { left: 130%; }
.bouton--ligne { background: transparent; color: #fff; text-shadow: none; box-shadow: inset 0 0 0 2px rgba(233,205,120,.7); }
.bouton--ligne:hover { background: var(--nickel); background-size: 200% 100%; color: var(--nuit); }

/* Titres de section : trait d’or */
.entete-section .titre-section::after { content: ""; display: block; width: 4.5rem; height: 4px; margin-top: .9rem; border-radius: 4px; background: var(--or); background-size: 200% 100%; animation: eclat-texte 6s ease-in-out infinite; }
.entete-section--ligne .titre-section::after, .section--sable .entete-section .titre-section::after { margin-top: .7rem; }

/* Cartes : liseré nickel au survol */
.carte a, .offre a, .expert, .ac-offre, .ac-panneau, .pr-cycle li { transition: transform .25s, box-shadow .25s, border-color .25s; }
.carte a:hover, .offre a:hover, .expert:hover { border-color: transparent; box-shadow: 0 0 0 2px #c3cbd2, 0 1.6rem 2.6rem -1.6rem rgb(16 35 58 / .55); }

/* Afficheurs, chiffres : or */
.ac-afficheur, .chiffres b { position: relative; }
.ac-afficheur { background: var(--nickel); background-size: 200% 100%; box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(0,0,0,.18); }
.chiffres { background-image: var(--facettes), linear-gradient(135deg, #c45a17, var(--orange)); background-size: 240px 208px, cover; }

/* Panneau de chantier vert : rivets en nickel */
.ac-panneau-chantier::before, .ac-panneau-chantier::after { background: var(--nickel); }

/* Pied : filet d’or */
.pied { border-top: 3px solid transparent; border-image: var(--or) 1; }
.appel { background-image: var(--facettes), linear-gradient(135deg, var(--nuit), var(--nuit-2)); background-size: 240px 208px, cover; }

/* Hero d’accueil et présentation : facettes */
.ac-hero::before, .pr-hero::before { opacity: 1; background-image: var(--facettes); background-size: 240px 208px; }
.ac-surligne::after { background: var(--cuivre) !important; }
.ac-surligne--vert::after { background: linear-gradient(115deg, #1e5a40, #3fa77a 40%, #9be3c0 50%, #2f7d5b 62%, #1e5a40) !important; }
.pr-badge__attache { background: var(--nickel); }
.pr-reseau__titre b, .pr-vision blockquote em { background: var(--or); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-vision blockquote em { background: linear-gradient(115deg, #10233a, #2b4a70 40%, #6a8bb0 50%, #10233a 62%); -webkit-background-clip: text; background-clip: text; }

@media (prefers-reduced-motion: reduce) {
  .or, .metal-or, .bandeau::after, .bandeau h1::after, .entete-section .titre-section::after { animation: none; }
  .eclat::after { display: none; }
}
