/* NC² Consulting — feuille de style unique
   Direction « Nuit & lumière » : bandeaux bleu nuit (couleur du logo), contenu sur fond crème.
   Aucune police ni ressource externe : rien n'est envoyé à un tiers (RGPD). */

:root {
  --nuit: #00012F;
  --nuit-2: #0B0E47;
  --nuit-trait: rgba(255, 255, 255, .12);
  --or: #F4B024;
  --or-fonce: #D9951A;
  --orange: #E8762B;
  --bleu: #2E8FD6;
  --ciel: #7CC4EA;
  --creme: #FAF8F3;
  --creme-2: #F2EEE5;
  --carte: #FFFFFF;
  --encre: #11132F;
  --texte: #3A3D58;
  --doux: #6A6D85;
  --trait: #E5E0D5;
  --sur-nuit: #EEF0FA;
  --sur-nuit-doux: #B4B9D4;

  --police: "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --rayon: 14px;
  --rayon-s: 8px;
  --ombre: 0 1px 2px rgba(17, 19, 47, .04), 0 8px 24px rgba(17, 19, 47, .06);
  --largeur: 1160px;
  --gouttiere: clamp(16px, 4vw, 32px);
  --duree: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--encre); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: 12px; top: -60px; background: var(--or); color: var(--nuit); padding: 8px 14px; border-radius: var(--rayon-s); z-index: 100; font-weight: 600; }
.lien-evitement:focus { top: 12px; }

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

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(0, 1, 47, .94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--nuit-trait); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.marque img { width: 44px; height: 44px; }
.marque-texte { display: flex; flex-direction: column; line-height: 1.05; }
.marque-nom { font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; color: #fff; }
.marque-nom sup { font-size: .6em; vertical-align: .55em; line-height: 0; }
.marque-slogan { font-weight: 600; font-size: .62rem; letter-spacing: .32em; color: var(--or); margin-top: 4px; }
.marque:hover .marque-nom { color: #fff; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 8px 14px; border-radius: var(--rayon-s); color: var(--sur-nuit); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color var(--duree), background-color var(--duree); }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--or); }
.nav .bouton { margin-left: 8px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--nuit-trait); background: transparent; border-radius: var(--rayon-s); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--nuit); border-bottom: 1px solid var(--nuit-trait); padding: 8px var(--gouttiere) 20px; display: none; }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav .bouton { margin: 10px 0 0; text-align: center; }
}

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color var(--duree), color var(--duree), border-color var(--duree), transform var(--duree); }
.bouton-or { background: var(--or); color: var(--nuit); }
.bouton-or:hover { background: #FFC23F; color: var(--nuit); }
.bouton-contour { border-color: rgba(255, 255, 255, .3); color: #fff; }
.bouton-contour:hover { border-color: #fff; color: #fff; }
.bouton-sombre { background: var(--nuit); color: #fff; }
.bouton-sombre:hover { background: var(--nuit-2); color: #fff; }
.nav .bouton { min-height: 40px; padding: 8px 18px; color: var(--nuit); }
.nav .bouton:hover { background: #FFC23F; color: var(--nuit); }
.fleche::after { content: "→"; display: inline-block; margin-left: 8px; transition: transform var(--duree); }
.bouton:hover .fleche::after, .lien-fleche:hover::after { transform: translateX(3px); }
.lien-fleche { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; }
.lien-fleche::after { content: "→"; display: inline-block; transition: transform var(--duree); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-claire { background: var(--creme); }
.section-creme { background: var(--creme-2); }
.section-nuit { background: var(--nuit); color: var(--sur-nuit-doux); }
.section-nuit h1, .section-nuit h2, .section-nuit h3 { color: #fff; }
.surtitre { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.section-nuit .surtitre { color: var(--or); }
.chapeau { font-size: 1.2rem; color: var(--doux); max-width: 640px; }
.section-nuit .chapeau { color: var(--sur-nuit-doux); }
.entete-section { max-width: 720px; margin-bottom: 48px; }

/* ---------- Accroche ---------- */
.accroche { position: relative; overflow: hidden; background: var(--nuit); color: var(--sur-nuit-doux); padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.accroche .conteneur { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.accroche h1 { color: #fff; }
.accroche h1 em { font-style: normal; background: linear-gradient(90deg, var(--or), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accroche h1 .bleu { background: linear-gradient(90deg, var(--ciel), var(--bleu)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accroche .chapeau { font-size: clamp(1.1rem, 1.6vw, 1.25rem); margin-bottom: 32px; color: #C6CAE2; }
.accroche .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.accroche-visuel { position: relative; justify-self: center; width: min(100%, 440px); }
.accroche-visuel img { width: 100%; position: relative; z-index: 1; mix-blend-mode: lighten; }
.reseau-fond { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 78%); mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 78%); }
@media (max-width: 900px) { .reseau-fond { -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 45%); mask-image: linear-gradient(180deg, #000 0%, transparent 45%); } }

.accroche-page { padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px); }
.accroche-page .conteneur { display: block; }
.reseau-leger { opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 85%); mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 85%); }
.accroche-page h1 { max-width: 820px; }

.preuves { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--nuit-trait); font-size: .92rem; }
.preuves span { display: inline-flex; align-items: center; gap: 8px; color: var(--sur-nuit); }
.preuves span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--or); }

@media (max-width: 900px) {
  .accroche .conteneur { grid-template-columns: 1fr; gap: 24px; }
  .accroche-visuel { order: -1; width: min(70%, 300px); }
}

/* ---------- Cartes d'expertise ---------- */
.grille { display: grid; gap: 20px; }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grille-3, .grille-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grille-3, .grille-2, .grille-4 { grid-template-columns: 1fr; } }

.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 28px; display: flex; flex-direction: column; transition: border-color var(--duree), box-shadow var(--duree), transform var(--duree); }
.carte p { color: var(--doux); }
.carte .lien-fleche { margin-top: auto; }
a.carte { text-decoration: none; color: inherit; }
a.carte:hover { border-color: #D4CDBE; box-shadow: var(--ombre); transform: translateY(-2px); }
.carte-icone { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(46, 143, 214, .1); color: var(--bleu); }
.carte-icone.chaud { background: rgba(232, 118, 43, .1); color: var(--orange); }
.carte-icone svg { width: 24px; height: 24px; }
.carte-mise-en-avant { background: var(--nuit); border-color: var(--nuit); }
.carte-mise-en-avant h3 { color: #fff; }
.carte-mise-en-avant p { color: var(--sur-nuit-doux); }
.carte-mise-en-avant .lien-fleche { color: var(--or); }

/* ---------- Méthode (étapes) ---------- */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: etape; }
.etapes li { counter-increment: etape; position: relative; padding-top: 56px; }
.etapes li::before { content: counter(etape, decimal-leading-zero); position: absolute; top: 0; left: 0; font-weight: 700; font-size: 1.05rem; color: var(--or); width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(244, 176, 36, .5); display: grid; place-items: center; }
.etapes li::after { content: ""; position: absolute; top: 20px; left: 52px; right: -8px; height: 1px; background: linear-gradient(90deg, rgba(244, 176, 36, .5), rgba(124, 196, 234, .25)); }
.etapes li:last-child::after { display: none; }
.etapes h3 { margin-bottom: 8px; }
.section-claire .etapes li::before, .section-creme .etapes li::before { color: var(--orange); border-color: rgba(232, 118, 43, .45); }
@media (max-width: 900px) {
  .etapes { grid-template-columns: 1fr 1fr; }
  .etapes li::after { display: none; }
}
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }

/* ---------- Bloc « Trusted Human » ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.liste-coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.liste-coches li { position: relative; padding-left: 34px; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: rgba(244, 176, 36, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9951A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.liste-coches strong { color: var(--encre); }
.section-nuit .liste-coches strong { color: #fff; }

.citation { margin: 0; padding: 32px; border-radius: var(--rayon); background: var(--nuit); color: var(--sur-nuit); position: relative; }
.citation p { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; color: #fff; font-weight: 500; }
.citation footer { color: var(--or); font-size: .8rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }

/* ---------- Détail des expertises ---------- */
.expertise { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 5vw, 64px); padding: 56px 0; border-top: 1px solid var(--trait); scroll-margin-top: 96px; }
.expertise:first-of-type { border-top: 0; padding-top: 0; }
.expertise-num { font-weight: 700; color: var(--orange); letter-spacing: .14em; font-size: .85rem; }
.expertise h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 8px; }
.expertise .pour-qui { color: var(--doux); font-size: .98rem; }
.expertise h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--doux); margin-top: 8px; }
.expertise .exemple { background: var(--creme-2); border-left: 3px solid var(--or); border-radius: 0 var(--rayon-s) var(--rayon-s) 0; padding: 16px 20px; margin-top: 24px; color: var(--texte); }
@media (max-width: 860px) { .expertise { grid-template-columns: 1fr; gap: 8px; } }
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sommaire a { padding: 8px 14px; border: 1px solid var(--nuit-trait); border-radius: 999px; color: var(--sur-nuit); text-decoration: none; font-size: .92rem; }
.sommaire a:hover { border-color: var(--or); color: #fff; }

/* ---------- Appel à l'action ---------- */
.appel { background: var(--nuit); border-radius: 20px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; position: relative; overflow: hidden; }
.appel h2 { color: #fff; margin-bottom: 8px; }
.appel p { color: var(--sur-nuit-doux); margin: 0; }
.appel::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 176, 36, .18), transparent 70%); pointer-events: none; }
@media (max-width: 760px) { .appel { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 32px; }
.contact-ligne { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--trait); }
.contact-ligne:first-child { border-top: 0; padding-top: 0; }
.contact-ligne .carte-icone { margin: 0; flex: none; }
.contact-ligne strong { display: block; color: var(--encre); }
.contact-ligne a { font-size: 1.1rem; font-weight: 600; word-break: break-word; }

/* ---------- Mentions ---------- */
.texte-legal h2 { font-size: 1.35rem; margin-top: 2em; }
.texte-legal h2:first-child { margin-top: 0; }
.a-completer { background: rgba(244, 176, 36, .2); color: #7A4E00; padding: 1px 6px; border-radius: 4px; font-size: .92em; font-weight: 600; }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit); color: var(--sur-nuit-doux); padding: 64px 0 32px; font-size: .95rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--nuit-trait); }
.pied h4 { color: #fff; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pied a { color: var(--sur-nuit-doux); text-decoration: none; }
.pied a:hover { color: #fff; }
.pied .marque { margin-bottom: 16px; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .85rem; }
@media (max-width: 760px) { .pied-grille { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Animations ---------- */
.halo { position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle at 35% 50%, rgba(244, 176, 36, .30), transparent 60%), radial-gradient(circle at 68% 50%, rgba(46, 143, 214, .30), transparent 60%); filter: blur(30px); z-index: 0; }
.entete { transition: background-color var(--duree), box-shadow var(--duree); }
.entete .conteneur { transition: height 220ms ease; }
.entete.defile .conteneur { height: 62px; }
.entete.defile { box-shadow: 0 6px 24px rgba(0, 1, 47, .35); }
@media (min-width: 901px) {
  .nav a:not(.bouton) { position: relative; }
  .nav a:not(.bouton)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform 240ms ease; }
  .nav a:not(.bouton):hover::after, .nav a[aria-current="page"]:not(.bouton)::after { transform: scaleX(1); }
}
.bouton-or { position: relative; overflow: hidden; isolation: isolate; }
.bouton-or::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); z-index: -1; }
.carte-icone { transition: transform 300ms cubic-bezier(.34, 1.56, .64, 1), background-color var(--duree); }
a.carte:hover .carte-icone { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
a.carte { position: relative; }
a.carte::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--or), transparent 40%, transparent 60%, var(--ciel)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 300ms ease; pointer-events: none; }
a.carte:hover::before { opacity: 1; }
a.carte.carte-mise-en-avant::before { background: linear-gradient(135deg, var(--or), transparent 50%, var(--ciel)); }

@media (prefers-reduced-motion: no-preference) {
  /* Entrée de l'accroche, sans JavaScript */
  .accroche .conteneur > div:first-child > *, .accroche-page .conteneur > * { animation: monte 800ms cubic-bezier(.2, .7, .2, 1) both; }
  .accroche .conteneur > div:first-child > :nth-child(2), .accroche-page .conteneur > :nth-child(2) { animation-delay: 90ms; }
  .accroche .conteneur > div:first-child > :nth-child(3), .accroche-page .conteneur > :nth-child(3) { animation-delay: 180ms; }
  .accroche .conteneur > div:first-child > :nth-child(4), .accroche-page .conteneur > :nth-child(4) { animation-delay: 270ms; }
  .accroche .conteneur > div:first-child > :nth-child(5) { animation-delay: 380ms; }
  .accroche-visuel { animation: apparitionLogo 1200ms cubic-bezier(.2, .7, .2, 1) 150ms both; }
  .accroche-visuel img { animation: flotte 7s ease-in-out 1.4s infinite; }
  .halo { animation: respire 6s ease-in-out infinite; }
  .accroche h1 em, .accroche h1 .bleu { background-size: 200% 100%; animation: monte 800ms cubic-bezier(.2, .7, .2, 1) both, reflet 6s ease-in-out 1.2s infinite; }
  .accroche h1 em { background-image: linear-gradient(90deg, var(--or), var(--orange), #FFD36B, var(--or)); }
  .bouton-or:hover::before { animation: balayage 800ms ease; }
  /* Étapes : le trait se dessine, la pastille rebondit */
  .js .etapes li.apparait::after { transform: scaleX(0); transform-origin: left; transition: transform 900ms ease 300ms; }
  .js .etapes li.apparait.visible::after { transform: scaleX(1); }
  .js .etapes li.apparait::before { transform: scale(.4); transition: transform 500ms cubic-bezier(.34, 1.56, .64, 1) 150ms; }
  .js .etapes li.apparait.visible::before { transform: none; }
  .js .liste-coches li { opacity: 0; transform: translateX(-8px); transition: opacity 500ms ease, transform 500ms ease; }
  .js .visible .liste-coches li, .js .liste-coches.visible li { opacity: 1; transform: none; }
  .js .visible .liste-coches li:nth-child(2) { transition-delay: 90ms; }
  .js .visible .liste-coches li:nth-child(3) { transition-delay: 180ms; }
  .js .visible .liste-coches li:nth-child(4) { transition-delay: 270ms; }
  .js .visible .liste-coches li:nth-child(5) { transition-delay: 360ms; }
}
@keyframes monte { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes apparitionLogo { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes respire { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes reflet { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes balayage { from { left: -60%; } to { left: 130%; } }

/* ---------- Apparition au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .apparait { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .7, .2, 1); transition-delay: var(--retard, 0ms); }
  .js .apparait.visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}
