/* Page d'attente Metiva : texte à gauche, photo entière en pleine hauteur à droite */
:root { --sapin:#1E4D3A; --ocre:#B08D3C; --ocre-texte:#7A5F1B; --pierre:#6B6A63; --lin:#ECE8DD; --anthracite:#2C2C2A; --blanc:#fff; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Calibri, Carlito, "Source Sans 3", "Segoe UI", Arial, sans-serif; font-size: 1.0625rem; line-height: 1.55; color: var(--anthracite); background: var(--lin); }
a { color: var(--sapin); text-underline-offset: 3px; }
a:hover { color: var(--anthracite); }
:focus-visible { outline: 3px solid var(--sapin); outline-offset: 3px; }

.page { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 100vh; }

/* Colonne texte */
.gauche { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(1.25rem, 3.2vh, 2.25rem) clamp(1.5rem, 5vw, 4.5rem) clamp(1rem, 2.4vh, 1.5rem); }
.gauche > *:not(.contours) { position: relative; z-index: 1; }
.contours { position: absolute; left: -6%; bottom: -8%; width: min(100%, 780px); opacity: .6; pointer-events: none; z-index: 0; }
.contours path { fill: none; stroke: var(--sapin); stroke-width: 1.2; opacity: .3; stroke-dasharray: 1; }
.contours path.accent { stroke: var(--ocre); opacity: .8; }

.logotype { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; align-self: flex-start; }
.marque { font-family: Georgia, "Times New Roman", serif; font-size: 1.85rem; color: var(--sapin); }
.signature { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: .95rem; color: var(--ocre-texte); }

main { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 37rem; padding: clamp(1rem, 2.4vh, 2rem) 0; }
.surtitre { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; margin: 0 0 1rem; }
.surtitre::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--ocre); margin-right: .7rem; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--sapin); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin-top: 1.4rem; }
.statut { display: inline-flex; align-items: center; gap: .7rem; align-self: flex-start; margin: .2rem 0 0; padding: .45rem 1rem; border-left: 4px solid var(--sapin); background: var(--blanc); }
.point { width: 10px; height: 10px; background: var(--ocre); flex: none; }
ul.puces { list-style: none; padding: 0; margin: 0 0 .4rem; }
ul.puces li { position: relative; padding-left: 1.5rem; margin-bottom: .3rem; }
ul.puces li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; background: var(--ocre); }
main p { margin: 0 0 .6rem; }
.bouton { display: inline-block; align-self: flex-start; margin-top: 1rem; background: var(--sapin); color: var(--blanc); text-decoration: none; padding: .8rem 1.5rem; border: 2px solid var(--sapin); transition: background .2s, border-color .2s; }
.bouton:hover { background: var(--anthracite); border-color: var(--anthracite); color: var(--blanc); }
footer { font-size: .95rem; padding-top: 1rem; }
footer a { color: var(--anthracite); }

/* Photo entière, pleine hauteur */
.droite { margin: 0; align-self: start; position: sticky; top: 0; width: min(42vw, 66.667vh); aspect-ratio: 2 / 3; overflow: hidden; background: var(--sapin); }
.droite img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Animations (désactivées si le visiteur réduit les mouvements) */
.contours path { animation: tracer 2.8s cubic-bezier(.4,0,.2,1) both; }
.contours path:nth-child(2) { animation-delay: .25s; } .contours path:nth-child(3) { animation-delay: .5s; }
.contours path:nth-child(4) { animation-delay: .9s; animation-duration: 3.2s; } .contours path:nth-child(5) { animation-delay: .75s; }
main > * { animation: monter .9s ease-out both; }
main > :nth-child(1) { animation-delay: .1s; } main > :nth-child(2) { animation-delay: .25s; } main > :nth-child(3) { animation-delay: .45s; }
main > :nth-child(4) { animation-delay: .6s; } main > :nth-child(5) { animation-delay: .7s; } main > :nth-child(6) { animation-delay: .8s; }
main > :nth-child(7) { animation-delay: .9s; } main > :nth-child(8) { animation-delay: 1s; } main > :nth-child(9) { animation-delay: 1.1s; }
.droite img { animation: reveler 1.8s ease-out both; }
.point { animation: pulse 2.4s ease-in-out 1.6s infinite; }
@keyframes tracer { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes monter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes reveler { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .contours path, main > *, .droite img, .point { animation: none !important; } }

/* Tablette et mobile : une seule colonne, la photo (entière) sous le texte */
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }
  .droite { position: static; width: min(100% - 3rem, 380px); margin: 0 auto 2rem; }
  main { max-width: none; }
}
