/* ============================================================================
   accueil.css : page d'accueil de la vitrine Odoo d'Espace HiTech
   ============================================================================
   Parti pris : la page prolonge l'écran de connexion d'Odoo, pas un site
   commercial. Gris chauds tirés du logo éditeur (#3c3c3b, #575756), une seule
   couleur d'accent, celle des boutons d'Odoo et du socle (#714B67).
   Règles de la maison : aucun liseré coloré sur les tuiles (bordure neutre
   fine et ombre légère seulement), aucune police distante.
   ========================================================================= */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/archivo-400-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/archivo-400-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --papier: #f2f1ee;
  --carte: #ffffff;
  --encre: #2f2e2c;
  --encre-douce: #64625e;
  --filet: #dddbd6;
  --filet-fort: #b9b6af;
  --accent: #714b67;
  --plaque-logo: transparent;
  --ombre: 0 1px 2px rgba(47, 46, 44, .06), 0 2px 8px rgba(47, 46, 44, .04);
  --ombre-survol: 0 2px 4px rgba(47, 46, 44, .08), 0 8px 20px rgba(47, 46, 44, .08);
  --filtre-logo-editeur: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #1b1a19;
    --carte: #252422;
    --encre: #ecebe7;
    --encre-douce: #a7a49e;
    --filet: #393733;
    --filet-fort: #5a5751;
    --accent: #c9a3c1;
    --plaque-logo: #f2f1ee;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3);
    --ombre-survol: 0 4px 16px rgba(0, 0, 0, .4);
    --filtre-logo-editeur: invert(1) hue-rotate(180deg) brightness(1.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #1b1a19;
  --carte: #252422;
  --encre: #ecebe7;
  --encre-douce: #a7a49e;
  --filet: #393733;
  --filet-fort: #5a5751;
  --accent: #c9a3c1;
  --plaque-logo: #f2f1ee;
  --ombre: 0 1px 2px rgba(0, 0, 0, .3);
  --ombre-survol: 0 4px 16px rgba(0, 0, 0, .4);
  --filtre-logo-editeur: invert(1) hue-rotate(180deg) brightness(1.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 16px 32px;
}
@media (min-width: 720px) { .page { padding: 64px 32px 40px; } }

/* --- En-tête ---------------------------------------------------------------- */
.entete { margin-bottom: 40px; max-width: 46rem; }
.entete-logo {
  display: block;
  width: 118px;
  height: auto;
  margin-bottom: 28px;
  filter: var(--filtre-logo-editeur);
}
.surtitre {
  margin: 0 0 6px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--encre-douce);
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.chapeau { margin: 0; color: var(--encre-douce); font-size: 1.0625rem; }

/* --- Les activités ------------------------------------------------------------ */
.activites {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.activite-lien {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: 6px;
  box-shadow: var(--ombre);
  color: inherit;
  text-decoration: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.activite-lien:hover { box-shadow: var(--ombre-survol); border-color: var(--filet-fort); }
.activite-lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.activite-logo {
  display: flex;
  align-items: center;
  height: 88px;
  margin-bottom: 20px;
}
.activite-logo img {
  max-height: 88px;
  max-width: 200px;
  object-fit: contain;
  background: var(--plaque-logo);
  border-radius: 4px;
}
.activite h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}
.activite-accroche { margin: 0 0 16px; color: var(--encre-douce); }
.activite-applis {
  margin: 0 0 24px;
  font-size: .875rem;
  color: var(--encre-douce);
}
.activite-applis strong { font-weight: 500; color: var(--encre); }
.activite-pied {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--filet);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.activite-action { font-weight: 600; color: var(--accent); }
.activite-lien:hover .activite-action { text-decoration: underline; text-underline-offset: 3px; }
.activite-adresse {
  font-size: .8125rem;
  color: var(--encre-douce);
  overflow-wrap: anywhere;
}

/* --- Accès --------------------------------------------------------------------- */
.acces {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--filet);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px 32px;
}
.acces h2 { margin: 0 0 4px; font-size: .875rem; font-weight: 600; }
.acces p { margin: 0; font-size: .875rem; color: var(--encre-douce); }

.vide { color: var(--encre-douce); }

.pied {
  margin-top: 40px;
  font-size: .8125rem;
  color: var(--encre-douce);
}
