/* okkin.fr · page Contact : ce qui s'ajoute au socle (okkin.css, v2.css, fiche.css).
   Composition : photo en plein cadre, formulaire en verre à gauche, grand titre à droite, contact direct en bas à droite.
   Le formulaire est celui de l'accueil (mêmes champs, mêmes messages) dans son habillage « verre » d'origine (.formu dans okkin.css). */

/* ---------- 1. L'en-tête plein cadre ---------- */
.co-hero{min-height:100svh;padding-bottom:calc(32px + var(--r-sheet))}
/* sur téléphone l'en-tête est long (un formulaire) : il défile normalement, le pied de page ne passe pas par-dessus ce qu'on lit */
@media(max-width:899px){.co-hero{position:relative;top:auto}}
/* la photo : calée par variante (--co-t, --co-l), fondue dans le noir brun par un masque en haut et à gauche */
.co-fond{position:absolute;inset:0;z-index:-2;overflow:hidden;pointer-events:none}
.co-fond img{position:absolute;left:0;top:var(--co-tm,56px);width:100%;height:min(calc(100vw*var(--co-rm,1.1)),640px);max-width:none;object-fit:cover;object-position:50% 22%;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 12%,#000 78%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 12%,#000 78%,transparent 100%)}
/* la photo à la robe a un fond bleu nuit : elle est réchauffée pour rester dans les bruns de la charte */
.co-hero--robe .co-fond img{filter:sepia(.5) saturate(1.3) hue-rotate(-8deg)}
/* voile : le texte reste lisible sur la photo, à toutes les tailles */
.co-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(26,8,0,.6) 0,rgba(26,8,0,0) 120px,rgba(26,8,0,0) 250px,rgba(26,8,0,.8) 340px,rgba(26,8,0,.66) 560px,var(--brun) 760px)}
html.js:not(.rm) .co-fond img{animation:co-arrivee 1.2s var(--ok-ease-out) both}
@keyframes co-arrivee{from{transform:scale(1.06)}to{transform:none}}

.co-grille{display:grid;gap:22px}
.co-titre{padding-top:clamp(170px,50vw,230px)}
.co-hero .fi-h1{margin-top:12px;font-size:clamp(44px,12.4vw,58px)}
.co-hero .fi-h1 em{font-style:normal;color:var(--peche)}
.co-gauche{display:grid;gap:20px;min-width:0}
.co-txt{font-size:17px;line-height:1.3;max-width:34ch;color:var(--creme)}

/* ---------- 2. Le formulaire en verre ---------- */
/* le verre : la photo passe derrière la carte et s'y floute ; le fond noir brun de la carte garde les libellés lisibles */
.co-hero .formu{padding:20px 20px 22px;background:rgba(26,8,0,.36);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.co-hero .champ label{font-size:14px}
.co-hero .champ .err{font-size:14px;line-height:1.25;padding-top:4px}
.co-hero .champ .err:empty{padding-top:0}
.co-hero .champ select:focus-visible{outline:none}
.co-hero .formu .btn{margin-top:22px}
.co-hero .formu .btn:focus-visible,.co-direct a:focus-visible,.co-merci .btn:focus-visible{outline:2px solid var(--creme);outline-offset:3px}

/* confirmation : remplace le formulaire dans la même carte */
.co-merci{display:grid;justify-items:start;gap:0;padding:6px 0 4px}
.co-merci:focus{outline:none}
.co-ok{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--orange);color:var(--brun)}
.co-ok svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.co-ok path{stroke-dasharray:24;stroke-dashoffset:0}
.co-merci h2{margin-top:18px;font-weight:400;font-size:30px;line-height:1;letter-spacing:-.03em}
.co-merci p{margin-top:12px;font-size:16px;line-height:1.35;max-width:36ch}
.co-merci .co-maquette{font-size:14px;color:var(--peche)}
.co-merci .btn{margin-top:20px}
html.js:not(.rm) .co-ok{animation:co-ok .3s var(--ok-ease-out) both}
html.js:not(.rm) .co-ok path{animation:co-trait .45s var(--ok-ease-out) .2s both}
@keyframes co-ok{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:none}}
@keyframes co-trait{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}

/* ---------- 3. Contact direct ---------- */
.co-direct{display:grid;gap:2px;padding:16px 20px 18px;border-radius:var(--r-card);background:rgba(26,8,0,.4);border:1px solid rgba(254,248,232,.3);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.co-direct__t{font-size:14px;line-height:1.2;color:var(--peche)}
.co-direct .pied__mail{margin:0}
.co-direct__bas{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:6px}
.co-insta{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--creme);color:var(--orange);transition:transform .14s var(--ok-ease-ui)}
.co-insta .ico{width:20px;height:20px}
.co-insta:active{transform:scale(.97)}

/* verre : sans transparence demandée par le système, ou sans flou disponible, la carte devient opaque */
@media (prefers-reduced-transparency:reduce){.co-hero .formu,.co-direct{background:var(--brun);-webkit-backdrop-filter:none;backdrop-filter:none}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.co-hero .formu,.co-direct{background:rgba(26,8,0,.86)}}

/* ---------- 4. Ordinateur : la composition en deux colonnes ---------- */
@media(min-width:900px){
  .co-hero{padding-top:128px;padding-bottom:calc(48px + var(--r-sheet))}
  .co-fond img{left:var(--co-l,0);top:var(--co-t,0);width:var(--co-w,100%);height:var(--co-h,100%);object-fit:cover;object-position:var(--co-pos,50% 50%);
    -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 24%),linear-gradient(to right,transparent 0,#000 16%);mask-image:linear-gradient(to bottom,transparent 0,#000 24%),linear-gradient(to right,transparent 0,#000 16%);
    -webkit-mask-composite:source-in;mask-composite:intersect}
  .co-hero::before{background:linear-gradient(90deg,rgba(26,8,0,.5) 0,rgba(26,8,0,.18) 30%,rgba(26,8,0,0) 50%),linear-gradient(180deg,rgba(26,8,0,.6) 0,rgba(26,8,0,0) 30%)}
  .co-grille{min-height:calc(100svh - 128px - 48px - var(--r-sheet));grid-template-columns:minmax(0,440px) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:clamp(40px,6vw,96px);row-gap:28px}
  .co-titre{grid-column:2;grid-row:1;padding-top:0;display:flex;flex-direction:column;align-items:flex-end;text-align:right}
  .co-hero .fi-h1{margin-top:16px;font-size:clamp(46px,5.2vw,62px);max-width:none}
  .co-gauche{grid-column:1;grid-row:1/span 2;align-self:start;gap:24px}
  .co-hero .formu{order:0}
  .co-direct{grid-column:2;grid-row:2;align-self:end;justify-self:end;width:min(100%,340px)}
  .co-txt{font-size:18px}
}
@media(min-width:1200px){.co-hero .fi-h1{font-size:clamp(58px,6.1vw,96px)}}
/* photo à la veste blanche : calée sur le formulaire, pas sur l'écran. Le visage reste juste à droite de la carte à toutes les largeurs,
   le bras et l'épaule passent derrière elle (c'est ce que le verre floute), et la photo va toujours jusqu'au bord droit. */
@media(min-width:900px){
  .co-hero--veste .co-fond img{--wl:calc(var(--pad) + max(0px,(100vw - var(--max))/2));--iw:max(150svh,1292px,calc((100vw - var(--wl) - 470px)/.57));
    left:calc(var(--wl) + 470px - .43*var(--iw));top:25%;width:var(--iw);height:auto;object-fit:fill}
}
