/* Sofakom – feuille de style unique du site. Couleurs reprises du logo. */

:root {
  --encre: #1c1f33;
  --texte: #3c4055;
  --discret: #676c84;
  --fond: #ffffff;
  --fond-doux: #f4f5fa;
  --bordure: #e2e4ee;
  --violet: #4b3fa8;
  --violet-fonce: #382f86;
  --magenta: #b02e98;
  --bleu: #2c6fb8;
  --degrade: linear-gradient(120deg, #c13cb2 0%, #5a4bb4 52%, #3a86d0 100%);
  --ombre: 0 1px 2px rgb(28 31 51 / 0.06), 0 8px 24px rgb(28 31 51 / 0.08);
  --rayon: 14px;
  --police: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 1rem/1.6 var(--police);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--magenta);
}

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  color: var(--encre);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
}

h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

address {
  font-style: normal;
}

.conteneur {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

.discret {
  color: var(--discret);
}

.texte-centre {
  text-align: center;
}

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--encre);
  color: #fff;
  padding: 0.6em 1em;
}

.evitement:focus {
  left: 1rem;
}

/* Icônes */

.icone {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  vertical-align: -0.18em;
}

.icone--visuel {
  width: 56px;
  height: 56px;
  color: var(--violet);
}

.icone--service,
.icone--outil,
.icone--coordonnee {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  color: #fff;
  background: var(--degrade);
}

.icone--profil,
.icone--encart {
  width: 40px;
  height: 40px;
  color: var(--magenta);
}

.icone--support {
  width: 22px;
  height: 22px;
  color: var(--violet);
}

/* Boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.3em;
  border: 2px solid var(--violet);
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.bouton:hover {
  background: var(--violet-fonce);
  border-color: var(--violet-fonce);
  color: #fff;
}

.bouton--contour {
  background: transparent;
  color: var(--violet);
}

.bouton--contour:hover {
  background: var(--violet);
  color: #fff;
}

.bouton--clair {
  background: #fff;
  border-color: #fff;
  color: var(--violet-fonce);
}

.bouton--clair:hover {
  background: var(--fond-doux);
  border-color: var(--fond-doux);
  color: var(--violet-fonce);
}

.bouton--contour-clair {
  background: transparent;
  border-color: rgb(255 255 255 / 0.8);
  color: #fff;
}

.bouton--contour-clair:hover {
  background: #fff;
  border-color: #fff;
  color: var(--violet-fonce);
}

.bouton--petit {
  padding: 0.5em 1.1em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.actions--centre {
  justify-content: center;
}

/* Bandeau supérieur */

.bandeau {
  background: var(--encre);
  color: #d9dbe8;
  font-size: 0.875rem;
}

.bandeau__interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.5rem;
  padding-block: 0.5rem;
}

.bandeau__accueil {
  margin-right: auto;
}

.bandeau a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: inherit;
  text-decoration: none;
}

.bandeau a:hover {
  color: #fff;
}

.bandeau strong {
  color: #fff;
}

/* En-tête et menu */

.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.97);
  border-bottom: 1px solid var(--bordure);
}

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.entete__logo img {
  width: 140px;
  height: auto;
}

.menu-bascule {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-bouton {
  display: none;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.9em;
  border: 1px solid var(--bordure);
  border-radius: 10px;
  color: var(--encre);
  font-weight: 600;
  cursor: pointer;
}

.menu-bascule:focus-visible + .menu-bouton {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
}

.menu__liste {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__liste a:not(.bouton) {
  display: block;
  padding: 0.5em 0.75em;
  border-radius: 8px;
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
}

.menu__liste a:not(.bouton):hover,
.menu__liste a[aria-current="page"]:not(.bouton) {
  color: var(--magenta);
  background: var(--fond-doux);
}

/* Lien vers le site de formation, mis en avant et signalé comme externe. */
.menu__liste a.menu__formation {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.menu__formation .icone:first-child {
  color: var(--magenta);
}

.menu__formation .icone--externe {
  width: 0.85em;
  height: 0.85em;
  color: var(--discret);
}

.menu__liste li:last-child {
  margin-left: 0.5rem;
}

@media (max-width: 1020px) {
  .menu-bouton {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--bordure);
    box-shadow: var(--ombre);
  }

  .menu-bascule:checked ~ .menu {
    display: block;
  }

  .menu__liste {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 20px 1.25rem;
  }

  .menu__liste li:last-child {
    margin: 0.5rem 0 0;
  }

  .menu__liste .bouton {
    justify-content: center;
    width: 100%;
  }
}

/* Fil d'Ariane */

.fil {
  border-bottom: 1px solid var(--bordure);
  font-size: 0.875rem;
}

.fil ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 auto;
  padding-block: 0.7rem;
  list-style: none;
  color: var(--discret);
}

.fil li + li::before {
  content: "›";
  margin-right: 0.35rem;
}

.fil a {
  color: var(--discret);
}

/* Sections */

.section {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.section--serree {
  padding-block: 0 clamp(2rem, 1.5rem + 2vw, 3rem);
}

.section--douce {
  background: var(--fond-doux);
}

.section--erreur {
  padding-block: 6rem;
}

.section__titre {
  margin-bottom: 1.5rem;
}

.section__titre--centre {
  text-align: center;
}

.surtitre {
  margin: 0 0 0.6rem;
  color: var(--magenta);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surtitre a {
  color: inherit;
  text-decoration: none;
}

.chapo {
  font-size: 1.125rem;
  color: var(--texte);
  max-width: 65ch;
}

.grille {
  display: grid;
  gap: 1.5rem;
}

.grille--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.grille--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grille--produits {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.liste-puces {
  margin: 0;
  padding: 0;
  list-style: none;
}

.liste-puces li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.45em;
}

.liste-puces li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--degrade);
}

/* Accroche de l'accueil */

.accroche {
  background:
    radial-gradient(circle at 8% 10%, rgb(193 60 178 / 0.12), transparent 40%),
    radial-gradient(circle at 92% 90%, rgb(58 134 208 / 0.14), transparent 45%),
    var(--fond);
  padding-block: clamp(2.5rem, 2rem + 4vw, 5rem);
}

.accroche__interieur {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.accroche__visuel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--ombre);
}

@media (max-width: 860px) {
  .accroche__interieur {
    grid-template-columns: 1fr;
  }

  .accroche__visuel {
    order: -1;
  }

  .accroche__visuel img {
    aspect-ratio: 16 / 9;
  }
}

/* En-tête des pages intérieures */

.en-tete-page {
  background:
    radial-gradient(circle at 0% 0%, rgb(193 60 178 / 0.1), transparent 45%),
    radial-gradient(circle at 100% 100%, rgb(58 134 208 / 0.12), transparent 50%),
    var(--fond-doux);
  padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem);
}

.en-tete-page__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.en-tete-page__visuel {
  flex: 0 0 auto;
}

.en-tete-page__visuel img {
  width: 220px;
  max-height: 140px;
  object-fit: contain;
  border-radius: 12px;
}

@media (max-width: 700px) {
  .en-tete-page__interieur {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .en-tete-page__visuel img {
    width: 160px;
  }
}

/* Cartes */

.carte {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.carte:hover {
  box-shadow: var(--ombre);
  transform: translateY(-2px);
}

.carte__lien {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.carte__lien:hover {
  color: inherit;
}

.carte__visuel,
.carte__logo {
  position: relative;
  display: grid;
  place-items: center;
  background: #fff;
  border-bottom: 1px solid var(--bordure);
}

.carte__visuel {
  aspect-ratio: 4 / 3;
}

.carte__logo {
  height: 150px;
}

.carte__visuel img,
.carte__logo img {
  position: absolute;
  inset: 1.25rem;
  width: calc(100% - 2.5rem);
  height: calc(100% - 2.5rem);
  object-fit: contain;
}

.carte__corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.4rem 1.4rem;
}

.carte__titre {
  margin-bottom: 0.3rem;
}

.carte__sous-titre {
  margin-bottom: 0.6rem;
  color: var(--discret);
  font-size: 0.9rem;
}

.carte__texte {
  font-size: 0.95rem;
}

.carte__suite {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: auto;
  color: var(--violet);
  font-weight: 600;
}

.carte:hover .carte__suite {
  color: var(--magenta);
}

.prix {
  margin: 0 0 0.8rem;
  color: var(--encre);
  font-weight: 700;
}

.prix--grand {
  font-size: 1.25rem;
}

/* Certifications */

.certifications {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.certifications__item {
  display: grid;
  place-items: center;
  width: 220px;
  height: 150px;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}

.certifications__item img {
  max-height: 118px;
  object-fit: contain;
}

/* Services, profils, métiers */

.service {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  color: var(--texte);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service:hover {
  color: var(--texte);
  box-shadow: var(--ombre);
  transform: translateY(-2px);
}

.service strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--encre);
  font-size: 1.1rem;
}

.profil,
.metier,
.coordonnee {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}

.profil h2,
.coordonnee h2 {
  font-size: 1.25rem;
  margin-top: 0.9rem;
}

.metier h3 {
  margin-top: 0.8rem;
}

.metier p {
  margin: 0;
}

.coordonnee {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.coordonnee address,
.coordonnee p {
  margin-bottom: 1.25rem;
}

.coordonnee .bouton {
  margin-top: auto;
}

.coordonnee__principal {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

/* Encarts */

.encart {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--magenta);
  border-radius: var(--rayon);
}

.encart h2 {
  font-size: 1.3rem;
}

.encart p:last-child {
  margin-bottom: 0;
}

.encart--simple {
  border-left: 1px solid var(--bordure);
}

.encart .bouton {
  margin-top: 0.25rem;
}

@media (max-width: 560px) {
  .encart {
    flex-direction: column;
    padding: 1.5rem;
  }
}

/* Maintenance à distance */

.outil {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.75rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  color: var(--texte);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.outil:hover {
  color: var(--texte);
  box-shadow: var(--ombre);
  transform: translateY(-2px);
}

.outil h2 {
  margin: 0;
  font-size: 1.2rem;
}

.outil__action {
  margin-top: auto;
  color: var(--violet);
  font-weight: 600;
}

.outil:hover .outil__action {
  color: var(--magenta);
}

.liens-support {
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 1rem;
}

.lien-support {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  padding: 1.1rem 1.3rem;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
}

.lien-support span {
  flex: 1;
}

.lien-support:hover {
  border-color: var(--violet);
  color: var(--violet);
}

/* Fiche produit */

.section--produit {
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.produit {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}

.produit__galerie {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 20px;
  justify-items: center;
}

.produit__galerie--multiple {
  grid-template-columns: 1fr 1fr;
}

.produit__galerie img {
  max-height: 320px;
  object-fit: contain;
}

.produit__vide {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.produit__infos h1 {
  margin-bottom: 0.3rem;
}

.produit__sous-titre {
  color: var(--discret);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.produit__telephone {
  margin-top: 1.25rem;
  color: var(--discret);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .produit {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.texte-produit > p {
  max-width: 75ch;
  font-size: 1.05rem;
}

.formules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  max-width: 780px;
  margin-top: 1.5rem;
}

.formule {
  padding: 1.25rem 1.5rem;
  border-radius: var(--rayon);
  background: var(--degrade);
  color: #fff;
}

.formule__nom {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.formule ul {
  margin: 0;
  padding-left: 1.1em;
}

.caracteristiques {
  columns: 3 300px;
  column-gap: 1.5rem;
}

.caracteristique {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  font-size: 0.95rem;
}

.caracteristique h3 {
  color: var(--violet);
}

.notes {
  margin-top: 0.5rem;
  color: var(--discret);
  font-size: 0.85rem;
}

.notes p {
  margin-bottom: 0.3em;
}

/* Textes longs */

.texte-courant > * {
  max-width: 800px;
}

.texte-courant p,
.texte-courant li {
  font-size: 1.05rem;
}

.texte-legal > * {
  max-width: 860px;
}

.texte-legal h2 {
  margin-top: 2.2rem;
  font-size: 1.2rem;
}

.texte-legal h2:first-child,
.texte-legal p:first-child + h2 {
  margin-top: 0;
}

.texte-legal ul {
  padding-left: 1.3em;
}

.texte-legal p,
.texte-legal li {
  overflow-wrap: anywhere;
}

/* Bandeau d'appel au contact */

.appel {
  background: var(--degrade);
  color: #fff;
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.appel__interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.appel h2 {
  color: #fff;
  margin-bottom: 0.3rem;
}

.appel p {
  margin: 0;
  color: rgb(255 255 255 / 0.9);
}

.appel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Pied de page */

.pied {
  background: var(--encre);
  color: #c5c8d8;
  font-size: 0.95rem;
}

.pied__grille {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem;
}

@media (max-width: 900px) {
  .pied__grille {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .pied__grille {
    grid-template-columns: 1fr;
  }
}

.pied__marque img {
  width: 140px;
  margin-bottom: 1rem;
  padding: 8px 10px;
  background: #fff;
  border-radius: 10px;
}

.pied__titre {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.pied__liste {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pied__liste li {
  display: flex;
  gap: 0.6em;
  margin-bottom: 0.7rem;
}

.pied__liste .icone {
  margin-top: 0.2em;
  color: #e08ad3;
}

.pied a {
  color: #fff;
  text-decoration: none;
}

.pied a:hover {
  color: #e08ad3;
  text-decoration: underline;
}

.pied .discret {
  color: #9a9db3;
}

.pied__bas {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-block: 1.1rem;
  font-size: 0.85rem;
  color: #9a9db3;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
