/* Page : template-contact.php */
:root{
  --shadow-sm: 0 2px 8px rgba(26, 34, 56, 0.04);
  --shadow-md: 0 12px 24px rgba(26, 34, 56, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--police-texte);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1,
h2 {
  font-family: var(--police-titres);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 10px;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

header .mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--indigo);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 17px;
}

header .name {
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 17px;
}

header a.back {
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
}

header a.back:hover {
  color: var(--indigo-deep);
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.head-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--amber-texte);
  background: var(--amber-92);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.head-block h1 {
  font-size: 34px;
  color: var(--indigo-deep);
  margin-bottom: 12px;
}

.head-block p {
  font-size: 15px;
  color: var(--text-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.info-card-small {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.info-card-small:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.info-card-small .ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.info-card-small .ic svg {
  width: 22px;
  height: 22px;
}

.info-card-small .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.info-card-small .value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--indigo-deep);
  word-break: break-word;
}

.ic-amber {
  background: rgba(var(--amber-rgb), 0.1);
  color: var(--amber);
}

.ic-sage {
  background: rgba(74, 122, 92, 0.1);
  color: var(--sage);
}

.ic-indigo {
  background: rgba(var(--indigo-rgb), 0.1);
  color: var(--indigo);
}

.ic-brick {
  background: rgba(184, 80, 63, 0.1);
  color: var(--brick);
}

.bottom-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: stretch;
}

/* Lot 18 : sans photo, le formulaire seul (pas de bloc vide) */
.bottom-layout--seul {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.image-panel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--indigo-deep); /* visible si la photo manque */
  background-size: cover;
  background-position: center;
  min-height: 450px;
  position: relative;
}

.image-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(var(--indigo-deep-rgb), 0) 50%, rgba(var(--indigo-deep-rgb), 0.8) 100%);
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-error {
  background: rgba(184, 80, 63, 0.08);
  border: 1px solid rgba(184, 80, 63, 0.2);
  color: var(--brick);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-error svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(74, 122, 92, 0.08);
  border: 1px solid rgba(74, 122, 92, 0.2);
  color: var(--sage);
  font-size: 13.5px;
  padding: 18px 20px;
  border-radius: 10px;
  line-height: 1.6;
}

.form-success svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.form-success strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.field {
  margin-bottom: 18px;
  position: relative;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.input-group {
  position: relative;
}

.input-group svg.ic-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-light);
  pointer-events: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px 13px 46px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: all .2s ease;
  resize: vertical;
}

.field textarea {
  padding-left: 16px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(var(--indigo-rgb), .08);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.btn-primary {
  width: 100%;
  background: var(--indigo);
  color: #fff;
  border: none;
  padding: 15px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(var(--indigo-rgb), .2);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--indigo-deep);
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

  .image-panel {
    min-height: 250px;
    order: -1;
  }
}

@media(max-width:800px) {
  header {
    padding: 15px 20px;
  }

  .wrap {
    padding: 40px 16px 60px;
  }

  .head-block h1 {
    font-size: 26px;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .form-card {
    padding: 24px;
  }

  .row-2 {
    grid-template-columns: 1fr;
  }
}

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