/* Site CenterERP par SkillNite : une seule feuille de style, aucune dépendance. */

@font-face { font-family: "Plex"; src: url("../assets/fonts/ibm-plex-sans-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../assets/fonts/ibm-plex-sans-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../assets/fonts/ibm-plex-sans-latin-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --encre: #3a4fd6;
  --encre-fonce: #2c3db0;
  --foret: #1f3a34;
  --foret-fonce: #162a26;
  --vert: #12b5a5;
  --ambre: #ffc53d;
  --rose: #ff6b6b;
  --texte: #1b2233;
  --doux: #5b667a;
  --trait: #e4e7ef;
  --papier: #f6f5f1;
  --blanc: #fff;
  --rayon: 16px;
  --ombre: 0 1px 2px rgb(16 24 40 / 0.06), 0 12px 32px rgb(16 24 40 / 0.1);
  --large: 73rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--texte); background: var(--blanc); }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.375rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.625rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 6px; }

.conteneur { width: min(var(--large), 100% - 2.5rem); margin-inline: auto; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.5rem 1rem; color: #fff; background: var(--encre); border-radius: 8px; }
.evitement:focus { top: 1rem; }

/* --- Boutons ------------------------------------------------------------------------------ */
.bouton { display: inline-flex; gap: 0.5rem; align-items: center; justify-content: center; padding: 0.75rem 1.375rem; font: inherit; font-weight: 600; color: #fff; text-decoration: none; cursor: pointer; background: var(--encre); border: 2px solid var(--encre); border-radius: 999px; transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease; }
.bouton:hover { background: var(--encre-fonce); border-color: var(--encre-fonce); transform: translateY(-1px); box-shadow: 0 8px 20px rgb(58 79 214 / 0.3); }
.bouton-petit { padding: 0.4375rem 1rem; font-size: 0.9375rem; }
.bouton-grand { padding: 0.9375rem 1.75rem; font-size: 1.0625rem; }
.bouton-clair { color: var(--texte); background: #fff; border-color: var(--trait); }
.bouton-clair:hover { color: var(--encre); background: #fff; border-color: var(--encre); box-shadow: none; }

/* --- Mots surlignés (trait de feutre) -------------------------------------------------------- */
.surligne { position: relative; z-index: 0; white-space: nowrap; }
.surligne::after { content: ""; position: absolute; z-index: -1; left: -0.12em; right: -0.12em; bottom: 0.04em; height: 0.42em; background: var(--ambre); border-radius: 0.3em 0.9em 0.4em 0.8em; transform: rotate(-1.2deg); opacity: 0.75; }
.surligne-vert::after { background: #8fe6da; }
.surligne-clair::after { background: var(--vert); opacity: 0.55; }

.etiquette { display: inline-block; margin-bottom: 1rem; padding: 0.3125rem 0.875rem; font-size: 0.8438rem; font-weight: 600; color: var(--encre-fonce); background: #e9ecfb; border-radius: 999px; }
.etiquette-rose { color: #b3363b; background: #ffe7e7; }
.etiquette-ambre { color: #8a5a00; background: #fff1cc; }
.etiquette-vert { color: #0b6f65; background: #dff7f3; }
.chapeau { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--doux); }

/* --- En-tête ------------------------------------------------------------------------------ */
.entete { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 200ms ease, box-shadow 200ms ease; }
.entete-fixee { border-color: var(--trait); box-shadow: 0 4px 20px rgb(16 24 40 / 0.06); }
.entete-ligne { display: flex; gap: 1rem; align-items: center; justify-content: space-between; min-height: 4.25rem; }
.marque { display: inline-flex; gap: 0.625rem; align-items: center; text-decoration: none; }
.marque img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; }
.marque-texte { display: grid; line-height: 1.1; }
.marque-texte strong { font-size: 1.1875rem; letter-spacing: -0.01em; }
.marque-texte small { font-size: 0.75rem; color: var(--doux); }
.menu { display: flex; gap: 0.25rem; align-items: center; }
.menu a:not(.bouton) { padding: 0.5rem 0.75rem; font-size: 0.9688rem; font-weight: 500; color: #38425a; text-decoration: none; border-radius: 8px; }
.menu a:not(.bouton):hover, .menu a[aria-current="true"] { color: var(--encre); background: #eef1fd; }
.menu .bouton { margin-left: 0.5rem; }
.menu-bouton { display: none; width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer; background: none; border: 0; border-radius: 10px; }
.menu-barres, .menu-barres::before, .menu-barres::after { display: block; width: 1.375rem; height: 2px; margin-inline: auto; background: var(--texte); border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }
.menu-barres { position: relative; }
.menu-barres::before, .menu-barres::after { content: ""; position: absolute; left: 0; }
.menu-barres::before { top: -7px; } .menu-barres::after { top: 7px; }
[aria-expanded="true"] .menu-barres { background: transparent; }
[aria-expanded="true"] .menu-barres::before { transform: translateY(7px) rotate(45deg); }
[aria-expanded="true"] .menu-barres::after { transform: translateY(-7px) rotate(-45deg); }

/* --- Accueil ------------------------------------------------------------------------------ */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; background: radial-gradient(60rem 30rem at 85% -10%, #e9ecfb 0%, transparent 60%), radial-gradient(40rem 26rem at -10% 20%, #dff7f3 0%, transparent 60%), var(--papier); }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 3.5vw, 3.5rem); align-items: center; }
.hero-texte { display: grid; gap: 1.25rem; justify-items: start; }
.hero-texte .etiquette { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.9375rem; color: var(--doux); }
.hero-points li { display: inline-flex; gap: 0.4375rem; align-items: center; }
.hero-points li::before { content: ""; width: 1.125rem; height: 1.125rem; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; border-radius: 50%; }

.fenetre { overflow: hidden; background: #fff; border: 1px solid #dfe3ee; border-radius: var(--rayon); box-shadow: 0 2px 4px rgb(16 24 40 / 0.06), 0 30px 60px rgb(31 58 52 / 0.18); }
.fenetre-barre { display: flex; gap: 0.375rem; align-items: center; padding: 0.625rem 0.875rem; background: #f1f3f8; border-bottom: 1px solid #e4e7ef; }
.fenetre-barre span { width: 0.625rem; height: 0.625rem; background: #cfd5e3; border-radius: 50%; }
.fenetre-barre span:first-child { background: var(--rose); } .fenetre-barre span:nth-child(2) { background: var(--ambre); } .fenetre-barre span:nth-child(3) { background: var(--vert); }
.hero-capture { transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; }

/* --- Sections ------------------------------------------------------------------------------ */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-teinte { background: var(--papier); }
.section-sombre { color: #eaf2ef; background: linear-gradient(160deg, var(--foret) 0%, var(--foret-fonce) 100%); }
.section-titre { display: grid; gap: 0.875rem; max-width: 44rem; margin: 0 auto clamp(2.25rem, 5vw, 3.5rem); text-align: center; }
.section-titre p { font-size: 1.125rem; color: var(--doux); }
.section-sombre .section-titre p { color: #b9cbc5; }

/* Applications */
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.apps li { display: grid; gap: 0.25rem; justify-items: center; padding: 1.5rem 1rem; text-align: center; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.apps li:hover { border-color: #cdd4f6; box-shadow: var(--ombre); transform: translateY(-4px); }
.app-icone { display: grid; width: 4.5rem; height: 4.5rem; margin-bottom: 0.625rem; background: #fff; border: 1px solid var(--trait); border-radius: 18px; box-shadow: 0 4px 12px rgb(16 24 40 / 0.07); place-items: center; }
.apps strong { font-size: 1.0625rem; }
.apps span:last-child { font-size: 0.9063rem; color: var(--doux); }
.apps-suite { margin-top: 1.75rem; color: var(--doux); text-align: center; }

/* Texte + visuel */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.duo + .duo { margin-top: clamp(3.5rem, 7vw, 6rem); }
.duo-inverse .duo-texte { order: 2; }
.duo-texte { display: grid; gap: 1rem; justify-items: start; }
.duo-texte .etiquette { margin: 0; }
.duo-texte h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.duo-texte > p:not(.etiquette) { color: var(--doux); }
.coches { display: grid; gap: 0.625rem; margin-top: 0.25rem; }
.coches li { position: relative; padding-left: 1.875rem; }
.coches li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.25rem; height: 1.25rem; background: #e9ecfb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a4fd6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 68% no-repeat; border-radius: 50%; }

/* Maquette d'une demande de congé (dessinée en CSS) */
.duo-visuel { position: relative; }
.maquette { display: grid; gap: 1rem; padding: 1.375rem; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); }
div.duo-visuel { padding: 1.5rem 1.5rem 3.5rem 0; }
.maquette-entete { display: flex; gap: 0.75rem; align-items: center; }
.maquette-entete div { display: grid; flex: 1; line-height: 1.3; }
.maquette small { font-size: 0.875rem; color: var(--doux); }
.maquette-avatar { display: grid; width: 2.75rem; height: 2.75rem; font-size: 0.875rem; font-weight: 700; color: var(--encre-fonce); background: #e9ecfb; border-radius: 50%; place-items: center; }
.maquette-etat { padding: 0.25rem 0.75rem; font-size: 0.8125rem; font-weight: 600; color: #8a5a00; background: #fff1cc; border-radius: 999px; }
.maquette-lignes { display: grid; gap: 0; border: 1px solid var(--trait); border-radius: 12px; }
.maquette-lignes div { display: flex; justify-content: space-between; padding: 0.625rem 0.875rem; font-size: 0.9375rem; }
.maquette-lignes div + div { border-top: 1px solid var(--trait); }
.maquette-lignes dt { color: var(--doux); } .maquette-lignes dd { font-weight: 600; }
.maquette-actions { display: flex; gap: 0.625rem; justify-content: flex-end; }
.maquette-bouton { padding: 0.5rem 1.125rem; font-size: 0.9375rem; font-weight: 600; border-radius: 999px; }
.maquette-refus { color: #b3363b; background: #ffe7e7; } .maquette-accord { color: #fff; background: #17a15b; }
.maquette-notif { position: absolute; right: 0; bottom: 0; display: flex; gap: 0.75rem; align-items: center; width: min(19rem, 86%); padding: 0.875rem 1rem; border-left: 4px solid #17a15b; }
.maquette-notif div { display: grid; line-height: 1.35; }
.maquette-point { flex: none; width: 1.75rem; height: 1.75rem; background: #17a15b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat; border-radius: 50%; }

/* Atouts */
.cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.carte { display: grid; gap: 0.625rem; align-content: start; padding: 1.75rem; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); transition: box-shadow 180ms ease, transform 180ms ease; }
.carte:hover { box-shadow: var(--ombre); transform: translateY(-3px); }
.carte p { font-size: 1rem; color: var(--doux); }
.carte-icone { display: grid; width: 3rem; height: 3rem; margin-bottom: 0.375rem; border-radius: 13px; place-items: center; }
.carte-icone svg, .coord-icone svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-bleu { color: var(--encre); background: #e9ecfb; } .ic-vert { color: #0b8a7d; background: #dff7f3; } .ic-ambre { color: #9a6700; background: #fff1cc; } .ic-rose { color: #c9373c; background: #ffe7e7; } .ic-violet { color: #7a3fc0; background: #f1e7fd; }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.75rem, 4vw, 2.75rem); color: #fff; background: linear-gradient(120deg, var(--encre) 0%, #5b3fd6 100%); border-radius: calc(var(--rayon) + 6px); }
.chiffres li { display: grid; gap: 0.25rem; text-align: center; }
.chiffres strong { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; }
.chiffres span { color: #dfe4ff; }

/* Pour qui */
.profils { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.profils li { display: grid; gap: 0.5rem; align-content: start; padding: 1.5rem; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.12); border-radius: var(--rayon); }
.profils h3 { color: #fff; } .profils p { font-size: 0.9688rem; color: #b9cbc5; }
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgb(255 255 255 / 0.14); counter-reset: etape; }
.etapes li { display: grid; gap: 0.5rem; align-content: start; }
.etapes h3 { color: #fff; } .etapes p { color: #b9cbc5; }
.etape-numero { display: grid; width: 2.75rem; height: 2.75rem; margin-bottom: 0.375rem; font-size: 1.125rem; font-weight: 700; color: var(--foret-fonce); background: var(--ambre); border-radius: 50%; place-items: center; }

/* Société */
.photo { overflow: hidden; border-radius: calc(var(--rayon) + 6px); box-shadow: var(--ombre); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
#societe h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); }
.societe-liens { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 0.5rem; }
.lien-fleche { font-weight: 600; color: var(--encre); text-decoration: none; }
.lien-fleche::after { content: " →"; transition: margin 150ms ease; }
.lien-fleche:hover::after { margin-left: 0.25rem; }
.lien-reseau { display: inline-flex; gap: 0.5rem; align-items: center; font-weight: 600; color: #0a66c2; text-decoration: none; }
.lien-reseau:hover { text-decoration: underline; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact h2 { margin-bottom: 1rem; }
.coordonnees { display: grid; gap: 1rem; margin-top: 2rem; }
.coordonnees li { display: flex; gap: 0.875rem; align-items: center; }
.coordonnees div { display: grid; line-height: 1.35; }
.coordonnees small { font-size: 0.8125rem; color: var(--doux); }
.coordonnees a { font-weight: 600; color: var(--texte); text-decoration: none; }
.coordonnees a:hover { color: var(--encre); text-decoration: underline; }
.coord-icone { display: grid; flex: none; width: 2.75rem; height: 2.75rem; color: var(--encre); background: #fff; border: 1px solid var(--trait); border-radius: 12px; place-items: center; }
.formulaire { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 4px); box-shadow: var(--ombre); }
.champ { display: grid; gap: 0.375rem; }
.champs-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.champ label { font-size: 0.9063rem; font-weight: 600; }
.champ input, .champ select, .champ textarea { width: 100%; padding: 0.75rem 0.875rem; font: inherit; color: var(--texte); background: #fbfbfd; border: 1.5px solid #d9deea; border-radius: 10px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.champ textarea { resize: vertical; min-height: 7rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus { background: #fff; border-color: var(--encre); outline: 0; box-shadow: 0 0 0 4px rgb(58 79 214 / 0.15); }
.champ-erreur input, .champ-erreur textarea { border-color: #d6373c; }
.formulaire-erreur { padding: 0.625rem 0.875rem; font-size: 0.9375rem; color: #a3282d; background: #ffe7e7; border-radius: 10px; }
.formulaire-note { font-size: 0.8438rem; color: var(--doux); }
.formulaire .bouton { justify-self: start; }

/* Pied */
.pied { padding-top: 3.5rem; color: #b9cbc5; background: var(--foret-fonce); }
.pied-grille { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.pied p { max-width: 24rem; margin-top: 1rem; font-size: 0.9688rem; }
.pied h3 { margin-bottom: 0.75rem; font-size: 0.875rem; color: #fff; letter-spacing: 0.06em; text-transform: uppercase; }
.pied nav { display: grid; gap: 0.5rem; align-content: start; }
.pied nav a { color: #b9cbc5; text-decoration: none; } .pied nav a:hover { color: #fff; }
.marque-claire strong { color: #fff; } .marque-claire small { color: #b9cbc5; }
.pied-bas { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; padding-block: 1.25rem; font-size: 0.875rem; border-top: 1px solid rgb(255 255 255 / 0.12); }
.pied-bas a { color: inherit; text-decoration: none; } .pied-bas a:hover { color: #fff; }

/* Apparition au défilement (seulement si le script tourne) */
.js [data-apparait] { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.js [data-apparait].visible { opacity: 1; transform: none; }
.js .hero-capture[data-apparait] { transform: perspective(1600px) rotateY(-5deg) rotateX(2deg) translateY(24px); }
.js .hero-capture[data-apparait].visible { transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); }

/* --- Tablette et téléphone ---------------------------------------------------------------- */
@media (max-width: 62rem) {
  .hero-grille, .duo, .contact { grid-template-columns: minmax(0, 1fr); }
  .duo-inverse .duo-texte { order: 0; }
  .hero-capture, .js .hero-capture[data-apparait], .js .hero-capture[data-apparait].visible { transform: none; }
  .cartes, .profils { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-bouton { display: block; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0.25rem; align-items: stretch; padding: 0.75rem 1.25rem 1.25rem; background: #fff; border-bottom: 1px solid var(--trait); box-shadow: 0 16px 30px rgb(16 24 40 / 0.1); }
  .menu-ouvert { display: flex; }
  .menu a:not(.bouton) { padding: 0.75rem; font-size: 1.0625rem; }
  .menu .bouton { margin: 0.5rem 0 0; padding: 0.75rem; }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .apps li { padding: 1.125rem 0.625rem; }
  .cartes, .profils, .etapes, .chiffres, .champs-2, .pied-grille { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .bouton { flex: 1 1 100%; }
  div.duo-visuel { padding-right: 0; }
  .formulaire .bouton { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-apparait] { opacity: 1; transform: none; }
}
