/* Page société d'ia-conseil.com : chaque moitié garde la charte de sa marque,
   la couture brune porte IA Conseil. */
@font-face { font-family: 'Inter'; src: url('/assets/societe/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Familjen Grotesk'; src: url('/assets/societe/familjen-grotesk-normal.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --bleu: #2563EB;
  --encre: #1B1716;
  --abricot: #FFA630;
  --creme: #FAF7F2;
  --brun: #8B7355;
  --brun-texte: #7A6448;
  --blanc: #FFFFFF;
  --marge: clamp(20px, 4vw, 64px);
  --sortie: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 400 1.0625rem/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; }
h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 2px; }

.tete {
  display: flex; align-items: center; gap: 14px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--marge) 14px;
}
.tete-logo { flex: none; width: 44px; height: 44px; mix-blend-mode: multiply; }
.tete-titre { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); font-weight: 400; line-height: 1.3; }
.tete-nom { font-weight: 700; }

.marques { display: grid; grid-template-columns: 1fr clamp(44px, 4vw, 60px) 1fr; min-height: calc(100svh - 72px); }

.panneau { position: relative; display: flex; padding: clamp(40px, 6vw, 88px) var(--marge); }
.panneau-avis { background: var(--bleu); color: var(--blanc); }
.panneau-mijolo { background: var(--encre); color: var(--blanc); }
.panneau-corps { display: flex; flex-direction: column; align-items: flex-start; max-width: 34rem; animation: arrive 320ms var(--sortie) 120ms both; }

.moment { font-size: 0.9375rem; margin-bottom: clamp(28px, 5vh, 56px); opacity: 0.86; }
.marque-nom { font-size: 1.75rem; line-height: 40px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.marque-logo { display: block; width: auto; height: 40px; margin-bottom: 20px; }

.accroche { font-size: clamp(2.375rem, 1.5rem + 3.1vw, 4.375rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.panneau-mijolo .accroche { font-family: 'Familjen Grotesk', 'Inter', sans-serif; }
.accroche em { font-style: normal; color: var(--abricot); }

.appui { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); max-width: 30rem; }

.lien { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding: 40px 0 0; font-weight: 600; text-decoration: none; user-select: none; -webkit-user-select: none; }
.lien::after { content: ''; position: absolute; inset: 0; }
.panneau-avis .lien:focus-visible, .panneau-mijolo .lien:focus-visible { outline-color: var(--blanc); }
.lien-yt { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 0; font-size: 0.9375rem; font-weight: 500; color: inherit; text-decoration: none; opacity: 0.85; }
.lien-yt svg { width: 20px; height: 20px; flex: none; }
.panneau .lien-yt:focus-visible { outline-color: var(--blanc); }
.fleche { display: inline-block; transition: transform 180ms var(--sortie); }
.panneau:active .fleche { transform: translateX(3px); }

.couture { background: var(--brun-texte); color: var(--blanc); display: flex; align-items: center; justify-content: center; transform-origin: top; animation: couture 420ms var(--sortie) both; }
.couture span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }

.societe { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); padding: clamp(64px, 9vw, 128px) var(--marge); align-items: end; }
.societe-titre { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brun-texte); padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--brun); }
.societe-phrase { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1.18; letter-spacing: -0.02em; font-weight: 600; text-wrap: pretty; }

.fondateur { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; font-size: 0.9375rem; color: #5E5650; }
.fondateur img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

.contact > div { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid rgba(139, 115, 85, 0.35); }
.contact dt { color: var(--brun-texte); }
.contact a { color: var(--bleu); font-weight: 600; text-decoration: none; padding: 4px 0; overflow-wrap: anywhere; }

.pied { padding: 28px var(--marge) calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(139, 115, 85, 0.35); color: #5E5650; font-size: 0.8125rem; line-height: 1.6; }
.pied-titre { font-size: inherit; font-weight: 600; color: var(--brun-texte); margin-bottom: 6px; }
.pied p + p { margin-top: 6px; }
.pied a { color: inherit; }

@media (hover: hover) and (pointer: fine) {
  .panneau:hover .fleche { transform: translateX(6px); }
  .lien:hover { text-decoration: underline; text-underline-offset: 4px; }
  .lien-yt:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
  .contact a:hover, .pied a:hover { text-decoration: underline; }
}

@media (max-width: 860px) {
  .marques { grid-template-columns: 1fr; min-height: 0; }
  .panneau { min-height: 74svh; padding-top: 40px; padding-bottom: 44px; }
  .couture { padding: 11px var(--marge); transform-origin: left; animation-name: couture-h; }
  .couture span { writing-mode: horizontal-tb; transform: none; }
  .societe { grid-template-columns: 1fr; align-items: start; }
}

@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
@keyframes couture { from { transform: scaleY(0.2); opacity: 0; } }
@keyframes couture-h { from { transform: scaleX(0.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .panneau-corps, .couture { animation: fondu 200ms ease both; }
  .fleche { transition: none; }
}
@keyframes fondu { from { opacity: 0; } }
