/* Vitrine mecalogic.fr — page statique (Regis, 04/11/2026). Polices hébergées sur le site (aucun appel à Google). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2'); }

:root {
  --bleu: #2474bc;
  --bleu-fonce: #1b5a93;
  --gris-marque: #666767;
  --marine: #13294b;
  --marine-clair: #1e3a66;
  --texte: #1f2937;
  --texte-doux: #4b5563;
  --fond-clair: #f5f7fa;
  --bordure: #e5e9f0;
  --or: #f3c08d;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--texte); background: #fff; line-height: 1.55; }
img, svg { display: block; }
a { color: var(--bleu); }
a:hover { color: var(--bleu-fonce); }
section[id] { scroll-margin-top: 80px; }

.conteneur { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Logo : même rendu que dans l'application (Montserrat, « meca » bleu 700, « logic » gris 500). */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-texte { font-family: 'Montserrat', sans-serif; font-size: 26px; letter-spacing: -.01em; line-height: 1; }
.logo-meca { font-weight: 700; color: var(--bleu); }
.logo-logic { font-weight: 500; color: var(--gris-marque); }
.logo-sombre .logo-meca { color: #7fb5e6; }
.logo-sombre .logo-logic { color: #fff; }

/* Boutons */
.bouton { display: inline-block; background: var(--bleu); color: #fff; text-decoration: none; padding: 12px 18px;
  border: 0; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.bouton:hover { background: var(--bleu-fonce); color: #fff; }
.bouton-grand { padding: 15px 24px; font-size: 16px; }
.bouton-contour { background: transparent; border: 1px solid #5b7398; padding: 14px 23px; font-size: 16px; }
.bouton-contour:hover { background: var(--marine-clair); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

/* En-tête */
.entete { background: #fff; border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 10; }
.entete-contenu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.navigation a:not(.bouton) { color: #374151; text-decoration: none; }
.navigation a:not(.bouton):hover { color: var(--bleu); }

/* Accroche */
.accroche { background: var(--marine); color: #fff; }
.accroche-contenu { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.accroche-texte { flex: 1 1 460px; min-width: 0; }
.surtitre { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #9cc7ee; }
.accroche h1 { margin: 0 0 20px; font-size: clamp(32px, 5vw, 48px); line-height: 1.12; font-weight: 700; letter-spacing: -1px; }
.chapeau { margin: 0 0 32px; font-size: 19px; color: #c9d6e8; max-width: 560px; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.badges { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.badges li { display: flex; align-items: center; gap: 12px; background: var(--marine-clair); border: 1px solid #3e5c8a; border-radius: 10px; padding: 14px 20px; }
.badges svg { flex: none; fill: none; stroke: var(--or); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Chaîne des documents (couleurs de la charte) */
.chaine { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.chaine li { border-radius: 12px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chaine strong { display: block; font-size: 18px; }
.chaine span { font-size: 14px; }
.chaine b { font-size: 13px; background: #fff; border-radius: 999px; padding: 4px 12px; }
.chaine-devis { background: #a8d4e8; color: #12324a; }
.chaine-commande { background: #b7dcae; color: #1e3a1a; margin-left: 24px; }
.chaine-or { background: var(--or); color: #4a2a0a; margin-left: 48px; }
.chaine-facture { background: #c9bee6; color: #2a1f4a; margin-left: 72px; }
@media (max-width: 560px) { .chaine li { margin-left: 0; } }

/* Arrivée de la chaîne (Regis, 09/11/2026) : les blocs arrivent de la droite l'un après l'autre, puis leur numéro apparaît.
   La classe « anime » est posée par js/chaine.js, « visible » quand la chaîne entre à l'écran. Sans elles : blocs affichés tels quels. */
.accroche { overflow: hidden; }
.anime .chaine li { opacity: 0; }
.anime .chaine.visible li { animation: chaine-arrivee .7s cubic-bezier(.2, .8, .2, 1) both; }
.anime .chaine.visible b { animation: chaine-numero .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.anime .chaine.visible li:nth-child(1), .anime .chaine.visible li:nth-child(1) b { --attente: .1s; }
.anime .chaine.visible li:nth-child(2), .anime .chaine.visible li:nth-child(2) b { --attente: .35s; }
.anime .chaine.visible li:nth-child(3), .anime .chaine.visible li:nth-child(3) b { --attente: .6s; }
.anime .chaine.visible li:nth-child(4), .anime .chaine.visible li:nth-child(4) b { --attente: .85s; }
.anime .chaine.visible li { animation-delay: var(--attente); }
.anime .chaine.visible b { animation-delay: calc(var(--attente) + .5s); }
@keyframes chaine-arrivee {
  from { opacity: 0; transform: translateX(120px); }
  to { opacity: 1; transform: none; }
}
@keyframes chaine-numero {
  from { opacity: 0; transform: scale(.3); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .anime .chaine li, .anime .chaine b { opacity: 1; animation: none !important; }
}

/* Bandes */
.bande { padding: 88px 0; }
.bande-claire { background: var(--fond-clair); }
h2 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; color: var(--marine); }
.intro { margin: 0 0 40px; font-size: 18px; color: var(--texte-doux); max-width: 680px; }
.cartes { display: flex; flex-wrap: wrap; gap: 20px; }

.carte { flex: 1 1 320px; background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: 28px; }
.carte svg { fill: none; stroke: var(--bleu); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carte h3 { margin: 14px 0 8px; font-size: 19px; color: var(--marine); }
.carte p { margin: 0; color: var(--texte-doux); }
/* Option IA : carte sur toute la largeur, renvoi « * Option à venir ». */
.carte-ia { flex-basis: 100%; display: flex; gap: 20px; align-items: flex-start; border-left: 6px solid var(--or); }
.carte-ia svg { flex: none; margin-top: 12px; }
.renvoi { color: var(--bleu); margin-left: 2px; }
@media (max-width: 560px) { .carte-ia { flex-direction: column; gap: 0; } .carte-ia svg { margin-top: 0; } }
.note-renvoi { margin: 14px 0 0; font-size: 14px; color: var(--texte-doux); }

.metier { flex: 1 1 340px; border: 1px solid var(--bordure); border-radius: 12px; overflow: hidden; }
.metier-titre { background: var(--marine); color: #fff; padding: 22px 26px; }
.metier-titre span { font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: #9cc7ee; font-weight: 600; }
.metier-titre h3 { margin: 4px 0 0; font-size: 22px; }
.metier p { margin: 0; padding: 24px 26px; color: var(--texte-doux); }

/* Fonctionnalités et contact : deux colonnes qui s'empilent sur téléphone */
.deux-colonnes { display: flex; flex-wrap: wrap; gap: 48px; }
.colonne-titre { flex: 1 1 320px; min-width: 0; }
.colonne-titre .intro { margin-bottom: 28px; }
.fonctions { flex: 2 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 16px; }
.fonctions li { flex: 1 1 240px; padding-left: 26px; position: relative; }
.fonctions li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px;
  border-left: 2px solid var(--bleu); border-bottom: 2px solid var(--bleu); transform: rotate(-45deg); }

.coordonnees { margin: 0; display: flex; flex-direction: column; gap: 8px; color: #374151; }
.coordonnees div { display: flex; gap: 6px; }
.coordonnees dt { font-weight: 700; }
.coordonnees dd { margin: 0; }

.formulaire { flex: 1 1 480px; min-width: 0; background: var(--fond-clair); border: 1px solid var(--bordure); border-radius: 12px;
  padding: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.champ { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.champ-large { flex-basis: 100%; }
.champ label { font-size: 14px; font-weight: 600; color: #374151; }
.champ input, .champ select, .champ textarea { font: inherit; padding: 12px; border: 1px solid #c5cdd8; border-radius: 8px; background: #fff; width: 100%; }
.champ textarea { resize: vertical; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.message-envoi { flex-basis: 100%; margin: 0; padding: 12px 16px; border-radius: 8px; font-weight: 500; }
.message-ok { background: #e3f3df; color: #1e4a17; }
.message-erreur { background: #fde8e1; color: #7a2410; }

/* Pied de page */
.pied { background: var(--marine); color: #c9d6e8; }
.pied-contenu { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 36px; padding-bottom: 36px; font-size: 14px; }
.pied .logo-texte { font-size: 20px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied a { color: #c9d6e8; }
.pied a:hover { color: #fff; }

@media (max-width: 640px) {
  .bande { padding: 56px 0; }
  .accroche-contenu { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .entete { position: static; }
  .badges { font-size: 16px; }
}

/* « mecalogic » dans le texte : les deux couleurs du logo (Regis, 04/11/2026). Le nom garde la police du texte qui l'entoure.
   Sur fond marine (accroche, pied de page), mêmes couleurs que le logo sur fond sombre. */
.nom { white-space: nowrap; }
.nom-meca { color: var(--bleu); }
.nom-logic { color: var(--gris-marque); }
.accroche .nom-meca, .pied .nom-meca, .appel .nom-meca { color: #7fb5e6; }
.accroche .nom-logic, .pied .nom-logic, .appel .nom-logic { color: #fff; }

/* Pages métiers (Regis, 04/11/2026) */
.navigation a[aria-current="page"] { color: var(--bleu); text-decoration: underline; text-underline-offset: 6px; }
.chaine-bl { background: #e6d49a; color: #3f340c; margin-left: 48px; }
.fiche { flex: 1 1 420px; min-width: 0; background: #fff; color: var(--texte); border-radius: 12px; overflow: hidden;
  border-top: 6px solid var(--or); box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
.fiche-titre { margin: 0; padding: 18px 22px 10px; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--texte-doux); font-weight: 600; }
.fiche dl { margin: 0; padding: 0 22px 18px; }
.fiche dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--bordure); }
.fiche dt { color: var(--texte-doux); }
.fiche dd { margin: 0; font-weight: 600; text-align: right; }
.metier-lien { display: inline-block; margin: 0 26px 24px; font-weight: 600; text-decoration: none; }
.metier-lien:hover { text-decoration: underline; }
.metier h3 a { color: inherit; text-decoration: none; }
.appel { background: var(--marine); color: #fff; text-align: center; }
.appel h2 { color: #fff; }
.appel .intro { color: #c9d6e8; margin-left: auto; margin-right: auto; }
.appel .boutons { justify-content: center; }
.pied-liens { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; border-top: 1px solid #2b4570; }
