/* Zone de feedback après soumission du formulaire.
   Masquée par défaut (display:none), rendue visible par JS avec la classe --success ou --error. */
.form-feedback {
  margin: 18px 0 0;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 2px;
  display: none;
}
.form-feedback--success {
  display: block;
  background: #edf7ed;
  color: #2e6e34;
  border: 1px solid #b6dfb8;
}
.form-feedback--error {
  display: block;
  background: #fdf2f2;
  color: #8b2020;
  border: 1px solid #f1bcbc;
}

/* Bouton de soumission désactivé pendant l'envoi (contact.js applique btn.disabled). */
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Message d'erreur sous un champ. min-height évite que la mise en page saute
   quand le message apparaît ou disparaît. */
.field-error {
  display: block;
  min-height: 18px;
  font-size: 12px;
  color: #c0392b;
  margin-top: 5px;
  padding-left: 2px;
}

/* États visuels des champs : is-error (rouge) et is-valid (vert).
   La classe est appliquée sur le conteneur .ff par contact.js. */
.ff.is-error .input-wrap > i { color: #c0392b; }
.ff.is-error input,
.ff.is-error textarea {
  border-color: #e57373;
  background: #fff8f8;
}
.ff.is-error input:focus,
.ff.is-error textarea:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.ff.is-valid .input-wrap > i { color: #2e7d32; }
.ff.is-valid input {
  border-color: #81c784;
  background: #f6fff6;
}

/* Section contact principale : fond gris clair, grille deux colonnes (coordonnées + carte) */
.contact-wrap {
  background: var(--section-bg);
  padding: 30px 36px 36px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: stretch;
}

/* Bloc coordonnées : carte blanche avec ombre douce.
   Le trait orange en haut est un pseudo-élément ::before de 3px. */
.coord {
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 32px 36px 28px;
  box-shadow: 0 14px 40px -20px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.04);
  position: relative;
}
.coord::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 3px;
  background: var(--orange);
}
.coord-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 30px;
  color: #1d1d1d;
  margin: 0 0 22px;
}
.coord-title i { color: var(--orange); font-size: 26px; }

.coord-info p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #1d1d1d;
}
.coord-info .tels {
  display: flex;
  gap: 12px;
  margin: 18px 0 14px;
  flex-wrap: wrap;
}
.coord-info .tels .tel-btn {
  text-transform: uppercase;
  padding: 8px 18px;
}
.coord-info .email {
  color: var(--orange);
  text-decoration: underline;
  font-size: 14px;
  word-break: break-all;
}
.coord-info .hours {
  margin-top: 22px;
  color: #2a2a2a;
  font-size: 14.5px;
}

/* Colonne carte : flex column pour empiler onglets, iframe et lien Maps */
.map-col {
  display: flex;
  flex-direction: column;
}
/* Barre d'onglets au-dessus de l'iframe pour choisir le magasin */
.map-tabs-bar {
  display: flex;
  gap: 8px;
  padding: 0 0 8px;
}
.map-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.3px;
  background: #f0f0f0;
  color: #666;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.map-tab i { font-size: 11px; }
.map-tab:hover { background: #e5e5e5; color: #1d1d1d; }
/* Onglet actif : fond blanc avec bordure orange */
.map-tab.active {
  background: #fff;
  color: var(--orange);
  border-color: var(--orange);
}

/* Conteneur de l'iframe. min-height garantit une taille minimale sur mobile. */
.map {
  width: 100%;
  min-height: 300px;
  border: 1px solid #cfcfcf;
  overflow: hidden;
}

/* Séparateur horizontal entre info et formulaire.
   Les pseudo-éléments ::before et ::after créent les lignes de part et d'autre du texte. */
.info-form-sep {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 56px 0 0;
  color: #bbb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.info-form-sep::before,
.info-form-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

/* Bloc formulaire centré avec largeur maximale.
   Même traitement que .coord : carte blanche, ombre douce, trait orange en haut. */
.contact-form-wrap {
  margin-top: 48px;
}
.form-shell {
  background: #fff;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 44px 36px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 14px 40px -20px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.04);
  position: relative;
}
.form-shell::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 3px;
  background: var(--orange);
}
.form-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 8px;
}
.form-h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 8px;
  color: #1d1d1d;
}
.form-intro {
  color: #5a5a5a;
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 540px;
}

/* Grille de champs du formulaire : 2 colonnes. La classe .full force 1 seul champ sur toute la largeur. */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.form-grid .full { grid-column: 1 / -1; }

/* Conteneur d'un champ (.ff = "form field").
   L'icône est positionnée en absolu à gauche, le padding-left du input la laisse visible. */
.ff {
  position: relative;
  display: flex;
  flex-direction: column;
}
.ff label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 7px;
}
.ff label .req { color: var(--orange); margin-left: 2px; }

.ff .input-wrap {
  position: relative;
}
.ff .input-wrap > i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #b5b5b5;
  font-size: 14px;
  pointer-events: none;
  transition: color .2s;
}
.ff input,
.ff select,
.ff textarea {
  width: 100%;
  border: 1px solid #dcdcdc;
  background: #fafafa;
  padding: 13px 14px 13px 42px;
  font-size: 14.5px;
  font-family: inherit;
  color: #1d1d1d;
  outline: none;
  transition: all .18s;
  border-radius: 2px;
}
.ff textarea {
  padding: 13px 14px; /* pas d'icône dans le textarea, pas de padding-left étendu */
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
/* Flèche personnalisée pour les <select> via une image SVG inline */
.ff select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  padding-right: 36px;
}
.ff input:hover,
.ff select:hover,
.ff textarea:hover {
  border-color: #c4c4c4;
  background: #fff;
}
/* Focus : bordure orange + halo orange */
.ff input:focus,
.ff select:focus,
.ff textarea:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,155,42,0.15);
}
/* L'icône du champ prend la couleur orange quand le champ est actif */
.ff input:focus ~ i,
.ff .input-wrap:focus-within > i {
  color: var(--orange);
}

/* Compteur de caractères affiché en bas à droite du textarea */
.char-count {
  position: absolute;
  right: 10px; bottom: 10px;
  font-size: 11px;
  color: #aaa;
  background: #fff;
  padding: 1px 6px;
  pointer-events: none;
}

/* Ligne de consentement RGPD avec interrupteur toggle.
   L'état actif (classe "on") est géré par un onclick inline dans le HTML. */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0 0;
  padding: 16px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 2px;
}
/* Le switch est un div avec pseudo-élément ::after pour la pastille blanche.
   La classe "on" translate la pastille vers la droite et colore le fond en orange. */
.consent-row .switch {
  flex-shrink: 0;
  width: 42px; height: 22px;
  background: #d0d0d0;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
  margin-top: 2px;
}
.consent-row .switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform .2s;
}
.consent-row .switch.on { background: var(--orange); }
.consent-row .switch.on::after { transform: translateX(20px); }
.consent-row .text {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.consent-row .text a {
  color: var(--orange);
  text-decoration: underline;
}

/* Ligne de soumission : note "champs obligatoires" à gauche, bouton à droite */
.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  gap: 16px;
  flex-wrap: wrap;
}
.required-note {
  font-size: 12.5px;
  color: #888;
}
.required-note .req { color: var(--orange); }
.submit-btn {
  background: var(--orange);
  border: 1px solid var(--orange);
  padding: 13px 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  color: #1d1d1d;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .18s;
}
.submit-btn:hover {
  background: #f4ae44;
  border-color: #f4ae44;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(232,155,42,0.6);
}
.submit-btn i { font-size: 12px; }

/* Lien "Voir sur Google Maps" — caché sur desktop, affiché sur mobile (< 820px).
   Sert d'alternative à l'iframe qui prend trop de place sur petits écrans. */
.map-link {
  display: none;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 18px 20px;
  text-decoration: none;
  color: #1d1d1d;
  transition: border-color .15s, box-shadow .15s;
}
.map-link:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 10px rgba(232,155,42,0.15);
}
.map-link .map-link-icon {
  width: 46px; height: 46px;
  background: #e8f0fe;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: #1a73e8;
}
.map-link .map-link-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}
.map-link .map-link-text span {
  font-size: 13px;
  color: #666;
}
.map-link .map-link-arrow {
  margin-left: auto;
  color: var(--orange);
  font-size: 18px;
}

/* Tablette : une colonne, formulaire et coordonnées empilés.
   Le lien Maps devient visible car l'iframe est trop petite. */
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .coord { padding: 24px 20px 20px; }
  .form-shell { padding: 28px 20px 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .map-col { display: flex; }
  .map { min-height: 220px; }
  .map-link { display: flex; }
  .info-form-sep { margin: 40px 0 0; }
}

@media (max-width: 480px) {
  .contact-wrap { padding: 16px 12px 20px; }
  .coord { padding: 16px 12px 14px; }
  .coord-title { font-size: 24px; }
  .form-shell { padding: 18px 12px 18px; }
  .form-h2 { font-size: 24px; }
  .contact-form-wrap { margin-top: 28px; }
  .info-form-sep { margin: 28px 0 0; }
  /* Bouton pleine largeur centré sur très petit écran */
  .submit-row { flex-direction: column; align-items: stretch; }
  .submit-btn { justify-content: center; }
}
