/* contact.css — Page “Contact” */

:root{
  --contact-maxw: 1240px;
}

/* ================== PAGE ================== */
.page-main{
  max-width: var(--contact-maxw);
  margin: 0 auto;
  padding: 48px 16px 80px;
}

.page-section{ padding: 32px 0; }

.page-section h1{
  font-family: var(--ff-serif);
  font-weight: 900;
  font-size: 2.4rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--violet);
  text-align: center;
  margin: 0 0 24px;
}

.page-section p{
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
  color: var(--muted);
  font-family:"Big Caslon","Bodoni Moda",var(--ff-serif),Georgia,serif;
  font-size: 1.2rem;
}

/* ================== LAYOUT ================== */
.contact-layout{
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1.4fr);
  gap: 32px;
  align-items: flex-start;
}

.contact-infos{
  display: grid;
  gap: 16px;
}

/* ================== CARTES COORDONNÉES ================== */
.contact-card{
  position: relative;
  padding: 16px 18px 14px;
  border-radius: 16px;

  background:
    radial-gradient(160% 200% at 50% 40%,
      rgba(255,255,255,.92) 0%,
      rgba(191,195,243,.90) 45%,
      rgba(142,148,216,.90) 100%);

  box-shadow:
    0 0 0 1px rgba(230,231,255,.9),
    0 10px 22px rgba(158,168,255,.45);

  color: var(--ink);
  font-size: .95rem;
  overflow: hidden;
}

.contact-card-title{
  margin: 0 0 4px;
  font-family: Impact,"Bodoni Moda",var(--ff-serif),system-ui,sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
}

.contact-link{
  display: inline-block;
  margin-top: 2px;
  font-family:"Big Caslon","Bodoni Moda",var(--ff-serif),Georgia,serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-card .contact-text{
  margin: 2px 0 0;
  line-height: 1.5;
  text-align: left;
  color: var(--ink);
  font-family:"Big Caslon","Bodoni Moda",var(--ff-serif),Georgia,serif;
  font-size: 1.2rem;
}

/* Icônes (mail/tel) */
.contact-card--mail,
.contact-card--tel{
  padding-right: 64px;
}

.contact-card--mail::after,
.contact-card--tel::after{
  content:"";
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  border-radius:999px;

  background:#ffffff;
  box-shadow:
    0 0 0 1px rgba(230,231,255,.9),
    0 6px 14px rgba(158,168,255,.45);

  background-repeat:no-repeat;
  background-position:center;
  background-size:18px 18px;
}

.contact-card--mail::after{
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><rect x='3' y='5' width='18' height='14' rx='2' ry='2' fill='none' stroke='%232E2C62' stroke-width='1.8'/><path d='M5 7l7 6 7-6' fill='none' stroke='%232E2C62' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.contact-card--tel::after{
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.37 1.77.72 2.6a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.48-1.29a2 2 0 0 1 2.11-.45c.83.35 1.7.6 2.6.72A2 2 0 0 1 22 16.92z' fill='none' stroke='%232E2C62' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* ================== FORMULAIRE ================== */
.contact-form-shell{ width: 100%; }

.contact-form-card{
  position: relative;
  padding: 26px 26px 28px;
  border-radius: 18px;

  background:
    radial-gradient(160% 200% at 50% 40%,
      #1A1C4A 0%,
      #26295C 45%,
      #2E2C62 100%);

  box-shadow:
    0 0 0 1px rgba(230,231,255,.34),
    0 18px 40px rgba(14,16,48,.45),
    0 6px 16px rgba(0,0,0,.35);

  color: #F2F3FF;
  display: flow-root;
}

.contact-form-card::before{
  content:"";
  position:absolute;
  inset: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(230,231,255,.9);
  pointer-events:none;
  opacity:.9;
}

.contact-form-card .pf-title{
  margin: 0 0 16px;
  text-align:center;
  font-family: var(--ff-serif);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing:.10em;
  text-transform: uppercase;
  color:#F2F3FF;
}

.contact-form-card .pf-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 16px;
}

.contact-form-card .pf-span-2{ grid-column: 1 / -1; }

.contact-form-card .pf-field label{
  display:block;
  margin: 0 0 6px;
  font-family:"Big Caslon","Bodoni Moda",var(--ff-serif),Georgia,serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .86rem;
  color:#F2F3FF;
}

.contact-form-card .pf-field input,
.contact-form-card .pf-field textarea{
  width:100%;
  border-radius:10px;
  border:1px solid rgba(230,231,255,.85);
  padding:10px 12px;
  background:#ffffff;
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: .95rem;
}

.contact-form-card .pf-field textarea{
  resize: vertical;
  min-height: 160px;
}

.contact-form-card .pf-field input::placeholder,
.contact-form-card .pf-field textarea::placeholder{
  color:#8a90b2;
}

.contact-form-card .pf-field input:focus,
.contact-form-card .pf-field textarea:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(230,231,255,.40);
}

/* ================== ACTIONS + STATUS ================== */
.pf-actions{
  text-align:center;
  display:flex;
  justify-content:center;
  align-items:center;
  padding-top:28px;
  margin-top:6px;
  border-top:1px solid rgba(230,231,255,.25);
}

.pf-actions.pf-actions--stack{
  flex-direction:column;
  gap:10px;
}

#contact-status{
  display:block;
  opacity:0;
  font-family: var(--ff-sans);
  font-size:.95rem;
  transition: opacity .2s ease;
}

#contact-status:not(:empty){ opacity:1; }

/* ================== BOUTON ================== */
.mp-ebp__btn{
  display:inline-block;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  cursor:pointer;
  box-sizing:border-box;

  --scale:1;
  --hover-scale:1.24;

  padding:18px 34px;
  border-radius:9999px;

  font-family: var(--ff-accent);
  font-weight:900;
  font-size:1.1rem;
  line-height:1.1;
  text-transform:uppercase;

  color:#0e1030;
  border:0;

  background:
    radial-gradient(160% 200% at 50% 40%,
      #C6C9FF 0%, #9EA8FF 38%, #6F79B7 68%, #2E2C62 100%);
  background-color:#2E2C62;

  box-shadow:
    0 0 0 1px rgba(230,231,255,.28),
    0 12px 26px rgba(198,201,255,.40),
    0 2px 6px rgba(0,0,0,.12),
    0 0 0 2px rgba(198,201,255,.95),
    0 18px 46px rgba(158,168,255,.65),
    0 6px 16px rgba(0,0,0,.2) !important;

  transform:scale(var(--scale));
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}

.mp-ebp__btn:hover{
  --scale:var(--hover-scale);
  box-shadow:
    0 0 0 1px rgba(230,231,255,.36),
    0 16px 40px rgba(198,201,255,.55),
    0 4px 10px rgba(0,0,0,.14),
    0 0 0 3px rgba(198,201,255,1),
    0 26px 60px rgba(158,168,255,.78),
    0 10px 22px rgba(0,0,0,.24) !important;
}

.mp-ebp__btn:focus{ outline:none; }

.mp-ebp__btn:focus-visible{
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 8px rgba(158,168,255,.85),
    0 26px 60px rgba(158,168,255,.78),
    0 10px 22px rgba(0,0,0,.24) !important;
  transition: box-shadow .2s ease;
}

.mp-ebp__label{ position:relative; display:inline-block; }

.mp-ebp__label::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-8px;
  width:90%;
  height:3px;
  background:#fff;
  border-radius:2px;
  box-shadow:
    0 0 6px rgba(255,255,255,.95),
    0 0 14px rgba(255,255,255,.75),
    0 0 28px rgba(255,255,255,.45);
  transform:translateX(-130%);
  opacity:0;
  pointer-events:none;
}

.mp-ebp__btn:hover .mp-ebp__label::after{
  opacity:1;
  animation: mp-ebp-underline 900ms cubic-bezier(.2,.7,.3,1) forwards 120ms;
}

.mp-ebp__arrow{
  position:absolute;
  top:50%;
  left:0%;
  width:26px;
  height:26px;
  transform: translate(-140%, -50%);
  color: currentColor;
  opacity:0;
  pointer-events:none;
}

.mp-ebp__btn:hover .mp-ebp__arrow{
  animation: mp-ebp-arrow 800ms cubic-bezier(.18,.66,.26,.99) forwards;
}

.mp-ebp__btn::before,
.mp-ebp__btn::after{
  content:"";
  position:absolute;
  top:50%;
  width:10px;
  height:10px;
  border-radius:50%;
  transform: translate(-50%,-50%) scale(.25);
  opacity:0;
  pointer-events:none;
  box-shadow:
    inset 0 0 6px rgba(0,0,0,.45),
    0 0 10px rgba(198,201,255,.55);
  background: radial-gradient(circle at 50% 50%,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.25) 70%,
    rgba(0,0,0,0) 100%);
}

.mp-ebp__btn::before{ left:0%; }
.mp-ebp__btn::after{  left:100%; }

.mp-ebp__btn:hover::before{ animation: mp-ebp-hole-in 800ms ease-out forwards; }
.mp-ebp__btn:hover::after{  animation: mp-ebp-hole-out 800ms ease-out forwards; }

.mp-ebp__spark{
  --dx:0px;
  --dy:0px;
  --t:0ms;

  position:absolute;
  top:50%;
  left:100%;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#fff;
  filter:blur(.2px);
  transform: translate(-50%,-50%) scale(0);
  opacity:0;
  pointer-events:none;
  box-shadow:
    0 0 6px rgba(255,255,255,.9),
    0 0 12px rgba(198,201,255,.7);
}

.mp-ebp__btn:hover .mp-ebp__spark{
  animation: mp-ebp-spark 700ms ease-out forwards;
  animation-delay: var(--t);
}

.mp-ebp__spark.s1{ --dx:28px; --dy:-14px; --t:40ms; }
.mp-ebp__spark.s2{ --dx:18px; --dy: 12px; --t:60ms; }
.mp-ebp__spark.s3{ --dx:36px; --dy:  6px; --t:80ms; }

@keyframes mp-ebp-arrow{
  0%{ opacity:0; transform: translate(-140%, -50%); }
  15%{ opacity:1; }
  50%{ transform: translate(0%, -50%); }
  100%{ opacity:0; transform: translate(140%, -50%); }
}

@keyframes mp-ebp-hole-in{
  0%{ opacity:0; transform: translate(-50%,-50%) scale(.2); left:0%; }
  25%{ opacity:1; transform: translate(-50%,-50%) scale(1); left:8%; }
  60%{ opacity:1; transform: translate(-50%,-50%) scale(.92); left:16%; }
  100%{ opacity:0; transform: translate(-50%,-50%) scale(.6); left:24%; }
}

@keyframes mp-ebp-hole-out{
  0%{ opacity:0; transform: translate(-50%,-50%) scale(.2); left:76%; }
  40%{ opacity:1; transform: translate(-50%,-50%) scale(1); left:88%; }
  80%{ opacity:1; transform: translate(-50%,-50%) scale(.92); left:96%; }
  100%{ opacity:0; transform: translate(-50%,-50%) scale(.6); left:100%; }
}

@keyframes mp-ebp-spark{
  0%{ opacity:0; transform: translate(-50%,-50%) scale(.4); }
  20%{ opacity:1; transform: translate(calc(-50% + 4px), calc(-50%)) scale(.8); }
  100%{ opacity:0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2); }
}

@keyframes mp-ebp-underline{
  0%{ transform: translateX(-130%); }
  100%{ transform: translateX(130%); }
}

@media (prefers-reduced-motion: reduce){
  .mp-ebp__btn, .mp-ebp__btn:hover{ transform:none; }
  .mp-ebp__arrow,
  .mp-ebp__spark,
  .mp-ebp__btn::before,
  .mp-ebp__btn::after,
  .mp-ebp__label::after{
    animation:none !important;
    opacity:1;
    transform:none;
  }
}

/* ================== HONEYPOT ================== */
.contact-honeypot{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* ================== CONSENTEMENT — EXACTEMENT COMME PARRAINAGE ================== */
.contact-form-card .pf-consent{
  margin-top: 10px;
}

/* surclasse ".contact-form-card .pf-field label" */
.contact-form-card .pf-field .pf-consent__label{
  display: flex;
  align-items: stretch;             /* texte garde son flux, checkbox centrée via align-self */
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;

  background:
    radial-gradient(160% 200% at 50% 40%,
      rgba(255,255,255,.92) 0%,
      rgba(191,195,243,.90) 45%,
      rgba(142,148,216,.90) 100%);
  box-shadow:
    0 0 0 1px rgba(230,231,255,.9),
    0 10px 22px rgba(158,168,255,.28);

  border: 1px solid rgba(230,231,255,.85);

  color: var(--ink, #0E1030);
  cursor: pointer;
  user-select: none;

  font-family: "Big Caslon","Bodoni Moda",var(--ff-serif),Georgia,serif;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.contact-form-card .pf-field .pf-consent__label span{
  order: 1;
  flex: 1 1 auto;
  display: block;
  color: var(--ink, #0E1030);
  margin: 0;

  font-family: "Big Caslon","Bodoni Moda",var(--ff-serif),Georgia,serif;
  font-size: 1.02rem;
  line-height: 1.35;

  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* Checkbox custom */
.contact-form-card .pf-field .pf-consent__label input[type="checkbox"]{
  order: 2;
  flex: 0 0 auto;
  align-self: center;               /* ✅ centre verticalement */

  -webkit-appearance: none;
  appearance: none;

  width: 24px;
  height: 24px;
  margin: 0;

  border-radius: 8px;
  border: 2px solid rgba(46,44,98,.75);

  background: var(--violet, #2E2C62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 2px 6px rgba(14,16,48,.22);

  position: relative;
  cursor: pointer;
  transition: .18s ease;
}

/* coche */
.contact-form-card .pf-field .pf-consent__label input[type="checkbox"]::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 13px;
  border: solid #C6C9FF;
  border-width: 0 3px 3px 0;
  transform: translate(-50%, -58%) rotate(45deg) scale(.88);
  opacity: 0;
  transition: .15s ease;
}

.contact-form-card .pf-field .pf-consent__label input[type="checkbox"]:checked{
  background: linear-gradient(180deg, #36357A 0%, #2E2C62 100%);
  border-color: rgba(198,201,255,.65);
  box-shadow:
    0 0 0 2px rgba(198,201,255,.18),
    0 4px 10px rgba(46,44,98,.30),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.contact-form-card .pf-field .pf-consent__label input[type="checkbox"]:checked::after{
  opacity: 1;
  transform: translate(-50%, -58%) rotate(45deg) scale(1);
}

.contact-form-card .pf-field .pf-consent__label input[type="checkbox"]:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(198,201,255,.40),
    0 2px 8px rgba(46,44,98,.28);
}

/* ================== RESPONSIVE ================== */
@media (max-width:880px){
  .contact-layout{ grid-template-columns: 1fr; }
  .contact-form-card{ margin-top:8px; }
}

@media (max-width:640px){
  .page-section h1{ font-size:2rem; }
  .contact-form-card .pf-grid{ grid-template-columns:1fr; }
}

/* ✅ CONSENTEMENT — override du label uppercase du formulaire */
.contact-form-card .pf-field .pf-consent__label{
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* texte du consentement */
.contact-form-card .pf-field .pf-consent__label span{
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* Message haut (comme PAIDEIA) */
.contact-form-card .pf-msg{
  min-height: 1.25rem;
  text-align: center;
  margin: 0 0 14px;
  font-family: var(--ff-sans);
  font-size: .95rem;
  opacity: .95;
}