/* Orca Finance — feuille de style principale */

@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url("source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --pin: #1F3D34;        /* vert profond : titres, bandeaux */
  --pin-fonce: #17302A;  /* pied de page */
  --orca: #2F6150;       /* boutons, liens */
  --sauge: #609880;      /* vert du logo */
  --sauge-clair: #80B0A0;
  --brume: #EEF3F0;      /* fonds alternés */
  --pale: #D3E3DB;
  --texte: #2A3531;
  --texte-doux: #56655F;
  --filet: #D5DED9;
  --blanc: #FFFFFF;
  --erreur: #A3342B;

  --titre: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --corps: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --largeur: 1180px;
  --gouttiere: 24px;
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--orca); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pin); }
:focus-visible { outline: 3px solid var(--sauge); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--titre); font-weight: 500; color: var(--pin); margin: 0; }
h1 { font-size: clamp(2.35rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.005em; }
h3 { font-size: 1.375rem; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.conteneur { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin: 0 auto; padding: 0 var(--gouttiere); }

.lien-evitement { position: absolute; left: -9999px; top: 0; background: var(--pin); color: var(--blanc); padding: 10px 16px; z-index: 100; }
.lien-evitement:focus { left: 16px; top: 16px; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--corps); font-size: 1rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; border-radius: 2px; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bouton-plein { background: var(--orca); color: var(--blanc); }
.bouton-plein:hover { background: var(--pin); color: var(--blanc); }
.bouton-contour { border-color: var(--orca); color: var(--orca); background: transparent; }
.bouton-contour:hover { background: var(--orca); color: var(--blanc); }
.bouton-clair { background: var(--blanc); color: var(--pin); }
.bouton-clair:hover { background: var(--pale); color: var(--pin); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.entete.defile { border-bottom-color: var(--filet); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo { display: block; flex: 0 0 auto; }
.logo img { width: 232px; height: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--texte); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover { color: var(--pin); border-bottom-color: var(--sauge); }
.nav .bouton { min-height: 44px; padding: 10px 20px; }
.menu-bouton { display: none; }

/* Accueil */
.accueil { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); }
.accueil .conteneur { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.accueil h1 { max-width: 15ch; }
.accueil .chapeau { margin-top: 28px; font-size: 1.3125rem; line-height: 1.55; color: var(--texte-doux); max-width: 34em; }
.accueil .actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.mosaique { width: 100%; max-width: 460px; justify-self: end; }
.mosaique rect { transform-box: fill-box; transform-origin: 0% 100%; }

@media (prefers-reduced-motion: no-preference) {
  .js .mosaique rect { opacity: 0; transform: scale(.6); animation: apparition .55s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
  @keyframes apparition { to { opacity: 1; transform: scale(1); } }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-brume { background: var(--brume); }
.intro-section { max-width: 40em; }
.intro-section p { margin-top: 20px; color: var(--texte-doux); }

/* Expertises */
.expertises .conteneur { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
.expertises .intro-section { position: sticky; top: 124px; align-self: start; }
.liste-expertises { list-style: none; margin: 0; padding: 0; }
.expertise { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 40px; padding: 36px 0; border-top: 1px solid var(--filet); }
.expertise:first-child { border-top-color: var(--pin); padding-top: 32px; }
.expertise:last-child { border-bottom: 1px solid var(--filet); }
.expertise h3 { font-size: 1.5rem; }
.expertise .formule { display: block; margin-top: 10px; font-family: var(--corps); font-style: italic; font-weight: 400; font-size: 1.0625rem; color: #4F8571; }
.expertise ul { margin: 16px 0 0; padding: 0; list-style: none; }
.expertise li { position: relative; padding-left: 22px; margin-top: 6px; font-size: 1.0625rem; }
.expertise li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--sauge-clair); }

/* Bandeau */
.bandeau { background: var(--pin); color: #D9E7E0; padding: var(--section) 0; }
.bandeau h2 { color: var(--blanc); font-size: clamp(2.1rem, 4vw, 3.1rem); max-width: 18ch; }
.bandeau .colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.18); }
.bandeau h3 { color: var(--blanc); margin-bottom: 12px; }
.bandeau .actions { margin-top: 56px; }

/* Démarche */
.etapes { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: etape; }
.etape { padding-top: 24px; border-top: 2px solid var(--sauge); counter-increment: etape; }
.etape::before { content: counter(etape); display: block; font-family: var(--titre); font-weight: 500; font-size: 2.75rem; line-height: 1; color: var(--sauge); margin-bottom: 20px; }
.etape h3 { font-size: 1.25rem; margin-bottom: 10px; }
.etape p { font-size: 1.0625rem; color: var(--texte-doux); }

/* Contact */
.contact .conteneur { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.coordonnees { margin: 40px 0 0; }
.coordonnees div { padding: 18px 0; border-top: 1px solid var(--filet); }
.coordonnees div:last-child { border-bottom: 1px solid var(--filet); }
.coordonnees dt { font-size: .9375rem; color: var(--texte-doux); }
.coordonnees dd { margin: 2px 0 0; font-weight: 600; color: var(--pin); }
.coordonnees dd a { color: var(--pin); }
.coordonnees dd a:hover { color: var(--orca); }

.formulaire { background: var(--brume); padding: clamp(24px, 4vw, 48px); border-top: 3px solid var(--orca); }
.formulaire .grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ-large { grid-column: 1 / -1; }
.champ label { font-size: 1rem; font-weight: 600; color: var(--pin); }
.champ .facultatif { font-weight: 400; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--texte);
  background: var(--blanc); border: 1px solid #B9C8C1; border-radius: 2px; padding: 12px 14px; min-height: 48px;
}
.champ textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.champ select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232F6150' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--orca); box-shadow: 0 0 0 3px rgba(96,152,128,.35); }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
.consentement { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: var(--texte-doux); }
.consentement input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--orca); }
.piege { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.envoi { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.envoi .note { font-size: .9375rem; color: var(--texte-doux); }
.message-formulaire { grid-column: 1 / -1; padding: 14px 16px; font-weight: 600; border-left: 4px solid var(--orca); background: var(--blanc); color: var(--pin); }
.message-formulaire.erreur { border-left-color: var(--erreur); color: var(--erreur); }
.message-formulaire[hidden] { display: none; }

.intro-contact { margin-top: 20px; color: var(--texte-doux); }

/* Pied de page */
.pied { background: var(--pin-fonce); color: #B8CCC3; padding: 64px 0 40px; font-size: 1rem; }
.pied .haut { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.pied .marque img { width: 208px; height: auto; }
.pied .marque p { margin-top: 14px; color: #D9E7E0; }
.pied nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.pied a { color: #D9E7E0; text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied .bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; font-size: .9375rem; }

/* Pages de texte (mentions légales, confidentialité) */
.page-texte { padding: clamp(48px, 7vw, 88px) 0 var(--section); }
.page-texte .conteneur { max-width: calc(800px + 2 * var(--gouttiere)); }
.page-texte h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); }
.page-texte .maj { margin-top: 12px; color: var(--texte-doux); }
.page-texte h2 { font-size: 1.5rem; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--filet); }
.page-texte ul { padding-left: 1.2em; }
.page-texte li { margin-bottom: 6px; }
.page-texte address { font-style: normal; }
.retour-accueil { margin-top: 32px; }
.fil { font-size: .9375rem; margin-bottom: 28px; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }

/* Adaptation tablette et mobile */
@media (max-width: 1024px) {
  .expertises .conteneur { grid-template-columns: 1fr; }
  .expertises .intro-section { position: static; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}
@media (max-width: 880px) {
  :root { --gouttiere: 20px; }
  .menu-bouton {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
    background: transparent; border: 1.5px solid var(--orca); border-radius: 2px; color: var(--orca);
    font: 600 1rem var(--corps); cursor: pointer;
  }
  .menu-bouton .barres { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .menu-bouton .barres::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--blanc); border-bottom: 1px solid var(--filet); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gouttiere) 24px; display: none; }
  .nav.ouvert { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--filet); }
  .nav .bouton { margin-top: 20px; }
  .accueil .conteneur { grid-template-columns: 1fr; }
  .mosaique { order: -1; max-width: 172px; justify-self: start; }
  .expertise { grid-template-columns: 1fr; }
  .bandeau .colonnes { grid-template-columns: 1fr; }
  .contact .conteneur { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --gouttiere: 16px; }
  body { font-size: 1.0625rem; }
  .entete .conteneur { min-height: 72px; }
  .logo img { width: 184px; }
  .accueil .chapeau { font-size: 1.1875rem; }
  .accueil .actions .bouton { width: 100%; }
  .etapes { grid-template-columns: 1fr; }
  .formulaire .grille { grid-template-columns: 1fr; }
  .envoi .bouton { width: 100%; }
}

@media print {
  .entete, .formulaire, .mosaique, .bandeau .actions { display: none; }
  .bandeau { background: none; color: inherit; }
  .bandeau h2, .bandeau h3 { color: var(--pin); }
}
