/* ═══════════════════════════════════════════════
   contact.css — Résidence Les Acacias
═══════════════════════════════════════════════ */

/* ── Page hero compact ── */
.page-hero {
  background: linear-gradient(160deg, var(--text) 0%, #1a2f40 55%, #2a5060 100%);
  padding: calc(var(--nav-h) + 56px) 0 64px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(74,144,164,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.page-hero .hero-eyebrow { color: var(--primary-lt); }
.page-hero .cms-hero-title { font-size: clamp(36px,5vw,56px); color: #fff; margin-bottom: 14px; }
.page-hero .cms-hero-subtitle { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 520px; margin: 0; }

/* ── Quickinfo ── */
.section-contact-quickinfo { background: var(--white); padding: 0; position: relative; z-index: 10; }
.quickinfo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-bottom: 1px solid var(--border); }
.quickinfo-card {
  display: flex; align-items: center; gap: 16px; padding: 28px 32px;
  border-right: 1px solid var(--border); text-decoration: none; color: var(--text); transition: background .2s;
}
.quickinfo-card:last-child { border-right: none; }
.quickinfo-card:hover { background: var(--bg); }
.quickinfo-card--primary { background: rgba(74,144,164,0.04); }
.quickinfo-icon { font-size: 28px; flex-shrink: 0; }
.quickinfo-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 4px; }
.quickinfo-value { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.quickinfo-sub { font-size: 12px; color: var(--text-light); }

/* ── Section principale ── */
.section-contact-main { padding: 72px 0 96px; }
.contact-main-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: flex-start; }

/* ── Formulaire ── */
.contact-form-header { margin-bottom: 32px; }
.contact-form-header .section-title { font-size: 34px; margin-bottom: 10px; }

.form-tabs {
  display: flex; gap: 6px; margin-bottom: 28px;
  background: var(--bg-section); padding: 5px; border-radius: var(--radius-md); width: fit-content;
}
.form-tab {
  font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--text-light);
  background: transparent; border: none; padding: 8px 18px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .18s, color .18s; white-space: nowrap;
}
.form-tab.active { background: var(--white); color: var(--primary); font-weight: 600; box-shadow: 0 2px 8px rgba(44,62,80,0.08); }
.form-tab:not(.active):hover { color: var(--text); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.req { color: var(--primary); }
.opt { font-weight: 400; color: var(--text-light); font-size: 12px; }

/* Champs */
.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none; width: 100%; appearance: none; -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); opacity: 0.65; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,144,164,0.14);
  background: #f0f8fa;
}
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) { border-color: #e05a5a; }
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7C8D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}

/* Blocs admission/visite — pile verticale, gap entre chaque enfant */
.admission-block,
.form-visite-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Toggle "pour moi-même" ── */
.selfcheck-wrap {
  background: rgba(74,144,164,0.06);
  border: 1.5px solid rgba(74,144,164,0.2);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  width: 100%;
}
.selfcheck-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  width: 100%;
}
.selfcheck-label input[type="checkbox"] { display: none; }
.selfcheck-custom {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, border-color .18s;
}
.selfcheck-tick { font-size: 12px; color: #fff; opacity: 0; transition: opacity .15s; line-height: 1; }
.selfcheck-label input:checked ~ .selfcheck-custom { background: var(--primary); border-color: var(--primary); }
.selfcheck-label input:checked ~ .selfcheck-custom .selfcheck-tick { opacity: 1; }
.selfcheck-text { font-size: 14px; font-weight: 500; color: var(--text); }

/* ── RGPD checkbox ── */
.rgpd-label {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer; user-select: none;
}
.rgpd-label input[type="checkbox"] { display: none; }
.rgpd-custom {
  width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px;
  border: 2px solid var(--border); border-radius: 6px;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.rgpd-tick { font-size: 14px; color: #fff; opacity: 0; transition: opacity .15s; }
.rgpd-custom.is-checked {
  background: #2e9e6b;
  border-color: #2e9e6b;
  box-shadow: 0 0 0 3px rgba(46,158,107,0.2);
}
.rgpd-custom.is-checked .rgpd-tick { opacity: 1; }
.rgpd-text { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.rgpd-text a { color: var(--primary); text-decoration: underline; }

/* ── Feedback ── */
.form-feedback {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
}
.form-feedback--success { background: rgba(46,158,107,0.1); color: #1e6b5e; border: 1px solid rgba(46,158,107,0.3); }
.form-feedback--error   { background: rgba(224,90,90,0.1);  color: #a83232; border: 1px solid rgba(224,90,90,0.25); }

.form-submit { margin-top: 4px; width: fit-content; }
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none !important; }

/* ── Sidebar ── */
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-block { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-clay); }
.sidebar-block-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 16px; }

/* Horaires */
.cms-hours-table { width: 100%; }
.cms-hours-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); gap: 8px; }
.cms-hours-row:last-child { border-bottom: none; }
.cms-hours-day { font-size: 14px; font-weight: 500; color: var(--text); }
.cms-hours-time { font-size: 13px; color: var(--text-light); text-align: right; }
.cms-hours-time--open { color: #1e7a5e; font-weight: 600; }
.cms-hours-note { font-size: 12px; color: var(--text-light); margin-top: 12px; line-height: 1.6; }

/* Accès */
.acces-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.acces-item { display: flex; gap: 12px; align-items: flex-start; }
.acces-icon { font-size: 20px; flex-shrink: 0; }
.acces-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.acces-desc { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.maps-btn {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500;
  color: var(--primary); background: rgba(74,144,164,0.08); padding: 9px 16px;
  border-radius: var(--radius-full); text-decoration: none; transition: background .2s;
}
.maps-btn:hover { background: rgba(74,144,164,0.15); }

.sidebar-block--map { padding: 0; overflow: hidden; }

.sidebar-block--urgence { background: linear-gradient(135deg, #1a2f40, #2a5060); text-align: center; }
.urgence-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.urgence-desc { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 14px; line-height: 1.5; }
.urgence-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; background: #e05a5a; color: #fff;
  font-size: 26px; font-weight: 700; border-radius: 50%; text-decoration: none; transition: transform .18s;
}
.urgence-number:hover { transform: scale(1.08); }

/* ── Avis ── */
.section-avis { padding: 80px 0; }
.avis-stars-global { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 44px; }
.avis-note { font-family: var(--font-display); font-size: 48px; font-weight: 600; color: var(--text); line-height: 1; }
.avis-stars-big { font-size: 28px; color: #F2A65A; letter-spacing: 3px; }
.avis-google-link { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--primary); font-weight: 500; text-decoration: none; opacity: 0.7; transition: opacity .2s; }
.avis-google-link:hover { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .contact-main-grid { grid-template-columns: 1fr; }
  .contact-sidebar { order: -1; }
}
@media (max-width: 768px) {
  .quickinfo-grid { grid-template-columns: 1fr; }
  .quickinfo-card { border-right: none; border-bottom: 1px solid var(--border); }
  .quickinfo-card:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-tabs { flex-wrap: wrap; width: 100%; }
  .form-tab { flex: 1; text-align: center; }
  .form-submit { width: 100%; justify-content: center; }
}
