﻿:root {
  --bg: #F2F2F2; 
  --text: #1d3a6e; 
  --muted: #6e6e73;
  --border: rgba(29, 58, 110, 0.08);

  --panel: rgba(255,255,255,0.7);
  --panel-2: rgba(255,255,255,0.5);
  
  --radius: 20px;
  --radius-sm: 12px;

  --shadow: 0 10px 40px rgba(29, 58, 110, 0.08); 
  --shadow-soft: 0 4px 12px rgba(29, 58, 110, 0.04);

  --brand: #1d3a6e; 
  --brand-2: #243f84; 

  --max: 1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
}

.hero{
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.hero-media{
  position:absolute;
  inset:0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(160deg, rgba(29, 58, 110,0.7) 0%, rgba(29, 58, 110,0.3) 40%, rgba(0,0,0,0.2) 60%, rgba(29, 58, 110,0.8) 100%);
}

.hero-inner{
  position: relative;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}

.hero-copy {
  max-width: 920px;
  text-align: center;
  color: #fff;
}

.hero-copy h1{
  margin:0;
  color:#fff;
  letter-spacing: -0.02em;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  text-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.hero-copy h2 {
  margin: 10px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
  color: #fff;
}

.hero-copy p {
  margin: 0 auto 10px;
  max-width: 78ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0 40px;
}

.intro{
  text-align:center;
  max-width: 860px;
  margin: 0 auto 32px;
}

.intro h2{
  margin:0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.01em;
  font-weight: 500;
  font-size: 24px;
  color: var(--text);
}

.intro p{
  margin:0 auto;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 300;
  max-width: 60ch;
}

.card-bg-picker {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.bg-thumb {
  width: 64px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.bg-thumb:hover { transform: scale(1.08); }
.bg-thumb.active { border-color: #EDD56A; box-shadow: 0 0 0 2px #EDD56A; }

.card-preview{
  display:flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 10px;
  gap: 20px;
}

.btn-use-card {
  background: linear-gradient(135deg, #EDD56A 0%, #D9BE48 100%);
  border: none;
  color: #13387c;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 12px;
  padding: 18px 44px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 168, 42, 0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-use-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='60'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1.2 0.4 0 0 0.05 0.5 0.8 0 0 0 0 0 0.6 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='200' height='60' filter='url(%23g)' opacity='0.90'/%3E%3C/svg%3E");
  background-size: 200px 60px;
  background-repeat: repeat;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.btn-use-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s ease;
}
.btn-use-card:hover::after { left: 150%; }
.btn-use-card:hover {
  background: linear-gradient(135deg, #DFBB68 0%, #EDD56A 100%);
  color: #0f2347;
  box-shadow: 0 14px 36px rgba(212, 168, 42, 0.45);
  transform: translateY(-3px);
}

.card-img {
  width: min(520px, 92vw);
  aspect-ratio: 419 / 298;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13,33,71,0.55) 0%, rgba(13,33,71,0.2) 50%, rgba(13,33,71,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 22px;
  color: #fff;
}

.card-preview-in-form {
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(29, 58, 110, 0.12);
  box-shadow: 0 10px 24px rgba(29, 58, 110, 0.08);
}

.card-preview-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  color: #1d3a6e;
  text-align: center;
}

.card-preview-in-form .card-img {
  width: min(560px, 100%);
}

.card-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-top-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  opacity: 0.9;
}

.card-label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(237, 213, 106, 0.2);
  border: 1px solid rgba(237, 213, 106, 0.5);
  color: #EDD56A;
  padding: 3px 8px;
  border-radius: 999px;
}

.card-overlay-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
}

.card-recipient {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.card-message {
  font-size: 0.6rem;
  opacity: 0.85;
  font-style: italic;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.card-overlay-bot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-amount {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 700;
  color: #EDD56A;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.card-date {
  font-size: 0.55rem;
  opacity: 0.75;
  letter-spacing: 0.05em;
}


.how-it-works {
  background: #f8f7f4;
  padding: 56px 24px;
}

.how-container {
  max-width: 760px;
  margin: 0 auto;
}

.how-container h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 10px;
  text-align: center;
}

.how-intro {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
  font-weight: 300;
}

.how-steps {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.how-steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 230px 1fr;
  column-gap: 26px;
  align-items: stretch;
}

.how-steps li::before {
  content: none;
}

.how-steps li strong {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1d3a6e, #243f84);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(29, 58, 110, 0.22);
}

.how-steps li strong::before {
  content: counter(steps);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-steps li p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  padding-top: 6px;
}

.how-cta-wrap {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.form-wrap{
  position: relative;
  margin-top: 40px;
  padding: 60px 0;
  overflow:hidden;
}

.form-bg{
  position:absolute;
  inset:0;
  background-image: url("../img/arc%20triomphe_vue%20a%C3%A9rienne/17.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.form-overlay{
  display: none;
}

.form-container{
  position: relative;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-container h3{
  margin: 0 0 24px;
  text-align:center;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--text);
  font-size: 18px;
  font-family: "Playfair Display", Georgia, serif;
}

.empty{
  margin: 10px auto 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #f8f8f8;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
  text-align:center;
}

.gift-form{ margin-top: 20px; }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field{ display:flex; flex-direction:column; gap: 8px; }
.field.full{ grid-column: 1 / -1; }
.field[hidden] { display: none !important; }

label{
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--text);
}

label span{ color: #EDD56A; } 

input, select, textarea{
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 51, 102, 0.1);
  background: #f9f9f9;
  color: var(--text);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(29, 58, 110,0.3);
  background: white;
  box-shadow: 0 0 0 3px rgba(29, 58, 110,0.08);
}

.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 16px;
    background: #1d3a6e;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 20px;
}

.btn-submit:hover {
    background: #EDD56A;
}

textarea{ resize: vertical; min-height: 92px; }

input:focus, select:focus, textarea:focus{
  border-color: rgba(29, 58, 110,0.3);
  box-shadow: 0 0 0 4px rgba(29, 58, 110,0.08);
}

.hint{
  margin-top: -2px;
  font-size: 12px;
  color: var(--muted);
}


.gift-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.gift-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.gift-mode-btn .gift-mode-icon { font-size: 1.6rem; }
.gift-mode-btn strong { font-size: 0.85rem; color: var(--navy); }
.gift-mode-btn span:last-child { font-size: 0.7rem; color: var(--muted); }
.gift-mode-btn:hover { border-color: rgba(29,58,110,0.4); }
.gift-mode-btn.active {
  border-color: #EDD56A;
  background: linear-gradient(135deg, rgba(237,213,106,0.08), rgba(29,58,110,0.04));
  box-shadow: 0 0 0 3px rgba(237,213,106,0.25);
}

.picker{
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f9f9f9;
  padding: 10px;
}

.items{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(29, 58, 110,0.04);
  border: 1px solid var(--border);
}

.item-left{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  min-width: 0;
}

.chk{
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.item-title{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
}

.item-title strong{
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-title span{
  color: var(--muted);
  font-size: 12px;
}

.badge{
  display:inline-flex;
  align-items:center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(29, 58, 110,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.picker-foot{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  padding-top: 10px;
}

.pill{
  border: 1px solid var(--border);
  background: rgba(29, 58, 110,0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  cursor:pointer;
}

.pill:hover{
  background: rgba(29, 58, 110,0.08);
}

.actions{
  display:flex;
  justify-content:center;
  margin-top: 18px;
}

.btn{
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 10px;
  cursor:pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.btn:hover{ background: var(--brand-2); }

.toast{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(29, 58, 110,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  text-align:center;
}

@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }

  
  .hero { height: 50vh; }
  .hero-copy h1 { font-size: clamp(26px, 8vw, 36px); }
  .hero-copy h2 { font-size: clamp(17px, 5.6vw, 24px); margin-top: 8px; }
  .hero-copy p { font-size: 13px; line-height: 1.45; max-width: 100%; }

  
  .container { padding: 36px 0 24px; }
  .intro h2 { font-size: 20px; }
  .intro p { font-size: 15px; }

  
  .card-preview { padding: 16px 0 8px; gap: 14px; }
  .card-img { width: min(100%, 92vw); }
  .bg-thumb { width: 52px; height: 34px; }
  .card-preview-in-form {
    margin-bottom: 20px;
    padding: 14px;
    gap: 14px;
  }
  .card-preview-title { font-size: clamp(18px, 5.3vw, 24px); }
  .card-preview-in-form .bg-thumb { width: 56px; height: 36px; }

  
  .how-it-works { padding: 36px 16px; }
  .how-steps li {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }
  .how-steps li strong {
    min-height: 72px;
    font-size: 12px;
    font-weight: 400;
  }
  .how-steps li p {
    grid-column: 1;
    padding-top: 0;
  }
  .how-cta-wrap { margin-top: 18px; }

  
  .form-wrap { padding: 32px 0; }
  .form-container {
    width: calc(100% - 24px);
    padding: 24px 16px;
    border-radius: var(--radius-sm);
  }
  .form-container h3 { font-size: 16px; margin-bottom: 18px; }

  
  .gift-mode-selector { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gift-mode-btn { padding: 12px 8px; }
  .gift-mode-btn .gift-mode-icon { font-size: 1.3rem; }
  .gift-mode-btn strong { font-size: 0.78rem; }

  
  input, select, textarea { padding: 12px 14px; font-size: 14px; }
  textarea { min-height: 80px; }

  
  .item-title strong { white-space: normal; }
  .badge { font-size: 11px; padding: 0 8px; }

  
  .reveal-text strong { font-size: 13px; }
  .reveal-text span { font-size: 11px; }
  .reveal-switch { width: 40px; height: 22px; }
  .reveal-switch::after { width: 16px; height: 16px; }
  .reveal-checkbox:checked + .reveal-label .reveal-switch::after { transform: translateX(18px); }

  
  .btn { width: 100%; padding: 14px; font-size: 14px; }
  .btn-use-card { padding: 14px 32px; font-size: 11px; }
}

@media (max-width: 420px) {
  .gift-mode-selector { grid-template-columns: 1fr; }
  .bg-thumb { width: 46px; height: 30px; }
  .card-img { width: 98vw; }
  .form-container { padding: 20px 12px; }
}


.reveal-option {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(29, 58, 110,0.04);
  transition: all 0.2s ease;
  overflow: hidden;
  margin-top: 10px;
}

.reveal-option:hover {
  background: rgba(29, 58, 110,0.08);
  border-color: rgba(29, 58, 110,0.2);
}

.reveal-checkbox {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.reveal-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.reveal-icon {
  font-size: 24px;
  margin-right: 16px;
  flex-shrink: 0;
}

.reveal-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reveal-text strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.reveal-text span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.reveal-switch {
  width: 48px;
  height: 26px;
  background: rgba(29, 58, 110,0.2);
  border-radius: 99px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  flex-shrink: 0;
  margin-left: 12px;
}

.reveal-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.reveal-checkbox:checked + .reveal-label .reveal-switch {
  background: #10b981;
}

.reveal-checkbox:checked + .reveal-label .reveal-switch::after {
  transform: translateX(22px);
}
