/* ==========================================================
   Collab Inc. — feuille de styles
   Les couleurs et polices se changent ici, dans :root.
   ========================================================== */

:root {
  --marine: #14365F;      /* bleu foncé du logo */
  --marine-fonce: #0B2142;
  --bleu: #1E6FD9;        /* bleu vif des accents */
  --bleu-clair: #1E88E5;
  --fond: #F4F7FB;
  --texte: #1F2A3A;
  --texte-doux: #5A6779;
  --blanc: #fff;
  --rayon: 14px;
  --ombre: 0 10px 30px rgba(20, 54, 95, .08);
  --police-titres: "Montserrat", system-ui, sans-serif;
  --police-texte: "Open Sans", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
}
img { max-width: 100%; display: block; }
a { color: var(--bleu); }
h1, h2, h3 {
  font-family: var(--police-titres);
  color: var(--marine);
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 100%; height: 100%; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

.conteneur { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section__entete { text-align: center; max-width: 640px; margin: 0 auto 3rem; }

.surtitre {
  font-family: var(--police-titres);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: .8rem;
}
.surtitre--clair { color: #7DB8FF; }
.accent { color: var(--bleu); }
.discret { color: var(--texte-doux); font-size: .92em; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block;
  padding: .9em 1.6em;
  border-radius: 999px;
  background: var(--bleu);
  color: var(--blanc);
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid var(--bleu);
  transition: background .2s, transform .2s, color .2s;
}
.bouton:hover { background: var(--marine); border-color: var(--marine); transform: translateY(-2px); }
.bouton--contour { background: transparent; color: var(--marine); border-color: #C9D6E8; }
.bouton--contour:hover { background: var(--marine); color: var(--blanc); }
.bouton--petit { padding: .6em 1.2em; font-size: .88rem; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E6ECF4;
}
.entete__inner { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.logo { display: flex; align-items: center; }
.logo img { height: 72px; width: auto; }

.menu { display: flex; align-items: center; gap: 2rem; }
.menu a:not(.bouton) {
  color: var(--texte); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.menu a:not(.bouton):hover { color: var(--bleu); }

.menu-bouton { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-bouton span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--marine); transition: .3s; }

/* ---------- Accueil (hero) ---------- */
.hero {
  background:
    linear-gradient(135deg, transparent 0 60%, rgba(30, 111, 217, .06) 60%),
    var(--fond);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 3rem;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.hero__logo { width: 210px; height: auto; margin-bottom: 2rem; }
.hero h1::after {
  content: ""; display: block; width: 70px; height: 5px;
  background: var(--bleu); border-radius: 3px; margin-top: 1.4rem;
}
.hero__intro { font-size: 1.15rem; color: var(--texte-doux); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__visuel { position: relative; }
.hero__visuel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  box-shadow: var(--ombre);
}
.hero__visuel::before {
  content: ""; position: absolute; inset: -18px -18px auto auto;
  width: 45%; height: 45%; background: var(--bleu-clair); z-index: -1;
  border-radius: 0 var(--rayon) 0 0;
}
.hero__signature {
  position: absolute; right: -10px; bottom: 28px;
  margin: 0; padding: .9rem 1.4rem;
  background: var(--marine); color: var(--blanc);
  font-family: "Caveat", cursive; font-size: 1.6rem; line-height: 1.1;
  border-radius: var(--rayon) 0 0 var(--rayon);
  box-shadow: var(--ombre);
}

/* ---------- Piliers ---------- */
.piliers { background: var(--blanc); border-bottom: 1px solid #E6ECF4; }
.piliers__grille { display: grid; grid-template-columns: repeat(3, 1fr); }
.pilier { padding: 2.5rem 2rem; text-align: center; }
.pilier + .pilier { border-left: 1px solid #E6ECF4; }
.pilier__icone {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; padding: 16px; margin-bottom: 1rem;
  border-radius: 50%; background: #E9F1FC; color: var(--bleu);
}
.pilier h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.pilier p { color: var(--texte-doux); font-size: .97rem; margin: 0; }

/* ---------- Services ---------- */
#services { background: var(--fond); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  background: var(--blanc);
  padding: 2rem;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  border-top: 4px solid var(--c, var(--bleu));
  transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 54, 95, .12); }
.service__icone {
  display: grid; place-items: center;
  width: 56px; height: 56px; padding: 14px; margin-bottom: 1.2rem;
  border-radius: 50%; background: var(--c); color: var(--blanc);
}
.service__icone > span { display: contents; }
.service h3 { margin-bottom: .5rem; }
.service__mots { color: var(--texte-doux); font-size: .92rem; margin: 0; }

/* ---------- Approche ---------- */
.section--fonce {
  background: linear-gradient(135deg, var(--marine-fonce), var(--marine));
  color: #D5E2F3;
}
.section--fonce h2, .section--fonce h3 { color: var(--blanc); }
.approche { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.etapes li {
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--rayon);
  background: rgba(255, 255, 255, .04);
}
.etapes span { font-family: var(--police-titres); font-weight: 800; color: #7DB8FF; font-size: .9rem; }
.etapes h3 { margin: .3rem 0 .4rem; }
.etapes p { margin: 0; font-size: .95rem; }

/* ---------- Présence ---------- */
.villes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ville { margin: 0; position: relative; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.ville img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.ville:hover img { transform: scale(1.05); }
.ville figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem 1.4rem 1.2rem;
  background: linear-gradient(transparent, rgba(11, 33, 66, .9));
  color: var(--blanc);
  font-family: var(--police-titres); font-weight: 800; font-size: 1.35rem;
}
.ville figcaption small { display: block; font-family: var(--police-texte); font-weight: 400; font-size: .85rem; opacity: .85; }

/* ---------- Slogan ---------- */
.slogan { background: var(--bleu); color: var(--blanc); text-align: center; padding: 3rem 0; }
.slogan p { font-family: "Caveat", cursive; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; line-height: 1.2; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.coordonnees { list-style: none; margin: 0; padding: 2rem; background: var(--fond); border-radius: var(--rayon); }
.coordonnees li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; }
.coordonnees li + li { border-top: 1px solid #E0E7F1; }
.coordonnees__icone {
  flex: none; width: 44px; height: 44px; padding: 11px;
  border-radius: 50%; background: var(--marine); color: var(--blanc);
}
.coordonnees small { display: block; color: var(--texte-doux); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.coordonnees a { color: var(--marine); font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.coordonnees a:hover { color: var(--bleu); }
address { font-style: normal; font-weight: 600; color: var(--marine); }

/* ---------- Pied de page ---------- */
.pied { background: var(--marine-fonce); color: #A9BBD3; padding: 2rem 0; font-size: .9rem; }
.pied__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.pied p { margin: 0; }
.pied strong { color: var(--blanc); }

/* ==========================================================
   Tablettes et téléphones
   ========================================================== */
@media (max-width: 960px) {
  .hero__inner, .approche, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visuel { max-width: 460px; }
  .services, .villes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .menu-bouton { display: block; }
  .menu {
    position: absolute; top: 92px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 1rem 1.25rem 1.5rem;
    background: var(--blanc); border-bottom: 1px solid #E6ECF4;
    box-shadow: var(--ombre);
    display: none;
  }
  .menu.ouvert { display: flex; }
  .menu a:not(.bouton) { padding: .8rem 0; width: 100%; border-bottom: 1px solid #EEF2F7; }
  .menu .bouton { margin-top: 1rem; }
  .menu-bouton[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-bouton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-bouton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .piliers__grille, .services, .villes, .etapes { grid-template-columns: 1fr; }
  .pilier + .pilier { border-left: 0; border-top: 1px solid #E6ECF4; }
  .hero__logo { width: 160px; }
  .hero__visuel img { aspect-ratio: 1 / 1; object-position: center 25%; }
  .hero__signature { font-size: 1.3rem; right: 0; }
}

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