/*!
Theme Name: Vault Child
Theme URI: https://uicore.co
Description: Multi-Purpose Elementor WordPress Theme
Author: UiCore
Author URI: https://uicore.co
Template: vault
Version: 1.0.0
Text Domain: vault
*/

 /* Add your custom style here */



/* Idem pour les titres dans les blocs Gutenberg / Elementor si le thème
   réinjecte un bold sur les balises fortes à l'intérieur des titres */
h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong,
h1 b, h2 b, h3 b, h4 b, h5 b, h6 b {
  font-weight: 400 !important;
}

/* CTA du header UiCore */
body .uicore-cta-wrapper a,
body .uicore-navbar .uicore-cta-wrapper a.uicore-btn,
body .uicore-header-wrapper > nav > div .uicore-cta-wrapper a,
body .uicore-mobile-menu-wrapper .uicore-cta-wrapper a,
body .uicore-left-menu .uicore-cta-wrapper a {
  background: #1a1a1a;
  color: #fff;
  padding: 16px 22px;
  font-size: 18px;
  font-weight: 400;
  border: none;
  font-family: 'Staatliches', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background .15s;
}

body .uicore-cta-wrapper a:hover,
body .uicore-cta-wrapper a:focus,
body .uicore-navbar .uicore-cta-wrapper a.uicore-btn:hover,
body .uicore-navbar .uicore-cta-wrapper a.uicore-btn:focus,
body .uicore-transparent .uicore-cta-wrapper a.uicore-btn.uicore-inverted:hover,
body .uicore-transparent .uicore-cta-wrapper a.uicore-btn.uicore-inverted:focus {
  background: var(--uicore-primary-color);
  color: #fff;
}

/* Flèche des listes déroulantes (le thème retire celle du navigateur) */
select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  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 1.2l5 5 5-5' fill='none' stroke='%231a1a1a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
  padding-right: 36px;
}



.wpcf7 form br{ display:none !important; }
.wpcf7 form p{ margin:0; padding:0; }
.wpcf7-form-control-wrap{ display:block; width:100%; }



/* ---------- Lignes et champs (balisage personnalisé : form-row / form-field) ---------- */
.wpcf7 .form-row{ display:flex; gap:16px; margin-bottom:16px; }
.wpcf7 .form-field{ flex:1; display:flex; flex-direction:column; gap:7px; }
.wpcf7 .form-field label{
  font-size:14px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
  color:#9b9a8c;
}

/* ---------- Champs générés par CF7 ---------- */
.wpcf7 input.wpcf7-form-control,
.wpcf7 select.wpcf7-form-control,
.wpcf7 textarea.wpcf7-form-control{
  border:1px solid var(--line, #e3e0d2);
  background:#fff;
  padding:13px 14px;
  font-size:15.5px;
  font-weight:400;
  color:var(--ink, #15150f);
  width:100%;
  border-radius:0;
  box-sizing:border-box;
}
.wpcf7 input.wpcf7-form-control:focus,
.wpcf7 select.wpcf7-form-control:focus,
.wpcf7 textarea.wpcf7-form-control:focus{
  outline:none;
  border-color:var(--uicore-primary-color);
}
.wpcf7 textarea.wpcf7-form-control{
  resize:vertical;
  min-height:140px;
}
.wpcf7 select.wpcf7-form-control{
  appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:16px;
  padding-right:38px;
}

/* ---------- Champ invalide (validation CF7) ---------- */
.wpcf7 input.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid{
  border-color:#d64545;
}
.wpcf7-not-valid-tip{
  display:block;
  font-size:13px;
  color:#d64545;
  margin-top:6px;
}

/* ---------- Case à cocher "acceptance" (consentement RGPD) ---------- */
.wpcf7 .form-check{ margin:22px 0 28px; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item{ margin:0; display:flex; align-items:flex-start; gap:10px; }
.wpcf7 .wpcf7-acceptance input[type="checkbox"]{ margin-top:4px; flex-shrink:0; }
.wpcf7 .wpcf7-acceptance label{
  font-size:14.5px;
  color:var(--ink-soft, rgb(107,114,128));
  line-height:1.5;
  display:flex;
  align-items:center;
  gap:10px;
}
.wpcf7 .wpcf7-acceptance a{ color:var(--accent-deep, #5f8f28); text-decoration:underline; }

/* ---------- Bouton d'envoi ---------- */
.wpcf7 input.form-submit,
.wpcf7 input[type="submit"].wpcf7-submit{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--uicore-primary-color);
  color:#fff;
  border:none;
  padding:16px 30px;
  border-radius:3px;
  font-weight:400;
  font-size:17px;
  text-transform:uppercase;
  letter-spacing:0.03em;
  cursor:pointer;
  transition:background .15s;
}
.wpcf7 input.form-submit:hover,
.wpcf7 input[type="submit"].wpcf7-submit:hover{
  background:var(--accent-deep, #5f8f28);
}

/* ---------- Spinner d'envoi ---------- */
.wpcf7-spinner{ margin-left:12px; }

/* ---------- Messages de réponse (succès / erreur) ---------- */
.wpcf7-response-output{
  margin-top:20px !important;
  padding:14px 18px;
  border-radius:0;
  font-size:15px;
}
.wpcf7-mail-sent-ok{
  background:var(--accent-tint, #eef7e2);
  border:1px solid var(--uicore-primary-color) !important;
  color:var(--accent-deep, #5f8f28);
}
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked{
  background:#fdeceb;
  border:1px solid #d64545 !important;
  color:#b23030;
}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .wpcf7 .form-row{ flex-direction:column; gap:16px; }
}

/* ---------- Tableaux des contenus rédigés (pages légales, widget Texte Elementor) ---------- */
.elementor-widget-text-editor table{
  width:100%;
  margin:24px 0 32px;
  border:none;
  border-collapse:collapse;
  font-size:16px;
  line-height:1.5;
}
.elementor-widget-text-editor table th,
.elementor-widget-text-editor table td{
  padding:14px 18px;
  border:none;
  border-bottom:1px solid #e3e0d2;
  background:transparent;
  color:#3d3d3d;
  font-size:inherit;
  font-weight:400;
  text-align:left;
  vertical-align:top;
}
.elementor-widget-text-editor table th{
  background:#f4f3ee;
  border-bottom:2px solid #1a1a1a;
  color:#1a1a1a;
  font-family:'Staatliches', sans-serif;
  font-size:17px;
  letter-spacing:.03em;
  text-transform:uppercase;
  white-space:nowrap;
}
.elementor-widget-text-editor table th p,
.elementor-widget-text-editor table td p{ margin:0; }
.elementor-widget-text-editor table td code{
  padding:2px 6px;
  background:#f4f3ee;
  color:#1a1a1a;
  font-size:14px;
  white-space:nowrap;
}

/* Sur petit écran, le tableau défile horizontalement sans élargir la page */
@media (max-width:768px){
  .elementor-widget-text-editor table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    font-size:15px;
  }
  .elementor-widget-text-editor table th,
  .elementor-widget-text-editor table td{
    min-width:150px;
    padding:12px 14px;
  }
}

/* ---------- Page 404 ---------- */
.st-404{
  --st-404-ink:#1a1a1a;
  --st-404-heading:'Staatliches', sans-serif;
  position:relative;
  overflow:hidden;
  padding:150px 0;
  background:#f4f3ee;
  color:#3d3d3d;
}
.st-404-contours{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  stroke:#e3e0d2;
  stroke-width:1.5;
}
/* Largeur portée par .uicore-container, comme le menu ; seul l'affichage interne change */
.st-404 .uicore-container.st-404-inner{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:64px;
  align-items:center;
}
.st-404 .st-404-eyebrow{
  margin:0 0 14px;
  color:var(--uicore-primary-color);
  font-family:var(--st-404-heading);
  font-size:20px;
  letter-spacing:.06em;
  line-height:1.2;
  text-transform:uppercase;
}
.st-404 .st-404-title{
  margin:0 0 20px;
  color:var(--st-404-ink);
  font-family:var(--st-404-heading);
  font-size:clamp(42px, 5.4vw, 72px);
  font-weight:400;
  letter-spacing:.01em;
  line-height:1.02;
  text-transform:uppercase;
}
.st-404 .st-404-text{
  max-width:560px;
  margin:0 0 32px;
  font-size:18px;
  line-height:1.6;
}

/* Recherche */
.st-404-search{
  display:flex;
  align-items:center;
  gap:12px;
  max-width:600px;
  margin:0 0 28px;
  padding:8px 8px 8px 18px;
  background:#fff;
  box-shadow:0 16px 40px -22px rgba(20,20,10,.45);
}
.st-404-search > svg{ width:22px; height:22px; flex-shrink:0; color:#9aa0a6; }
.st-404-search input[type="search"]{
  flex:1;
  min-width:0;
  margin:0;
  padding:12px 0;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:var(--st-404-ink);
  font-size:16px;
  outline:none;
}
.st-404-search input[type="search"]::placeholder{ color:#8a8f94; }
.st-404-search button{
  flex-shrink:0;
  padding:15px 22px;
  border:none;
  border-radius:0;
  background:var(--uicore-primary-color);
  color:#fff;
  cursor:pointer;
  font-family:var(--st-404-heading);
  font-size:18px;
  font-weight:400;
  letter-spacing:.03em;
  line-height:1;
  text-transform:uppercase;
  transition:background .15s;
}
.st-404-search button:hover,
.st-404-search button:focus{ background:#5f8f28; color:#fff; }

/* Actions */
.st-404-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 26px; }
.st-404 a.st-404-btn{
  display:inline-flex;
  padding:16px 22px;
  background:var(--st-404-ink);
  color:#fff;
  font-family:var(--st-404-heading);
  font-size:18px;
  letter-spacing:.03em;
  line-height:1;
  text-decoration:none;
  text-transform:uppercase;
  transition:background .15s;
}
.st-404 a.st-404-btn:hover,
.st-404 a.st-404-btn:focus{ background:var(--uicore-primary-color); color:#fff; }
.st-404 a.st-404-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--st-404-ink);
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  transition:color .15s;
}
.st-404 a.st-404-link:hover,
.st-404 a.st-404-link:focus{ color:#5f8f28; }
.st-404-link svg{ width:18px; height:18px; flex-shrink:0; }

/* Visuel 4-épingle-4 */
.st-404-visual{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.05em;
  color:var(--st-404-ink);
  font-family:var(--st-404-heading);
  font-size:clamp(150px, 21vw, 290px);
  line-height:.9;
  user-select:none;
}
.st-404-pin{
  width:.6em;
  height:.79em;
  flex-shrink:0;
  animation:st404Float 3.2s ease-in-out infinite;
}
.st-404-pin path{ fill:var(--uicore-primary-color); }
.st-404-pin circle{ fill:#f4f3ee; }
@keyframes st404Float{
  0%, 100%{ transform:translateY(0); }
  50%{ transform:translateY(-8px); }
}

.st-404 a:focus-visible,
.st-404 button:focus-visible{ outline:2px solid #5f8f28; outline-offset:2px; }

@media (prefers-reduced-motion:reduce){
  .st-404-pin{ animation:none; }
}
@media (max-width:980px){
  .st-404{ padding:56px 0; }
  .st-404-contours{ opacity:.55; }
  .st-404 .uicore-container.st-404-inner{ grid-template-columns:minmax(0,1fr); gap:32px; }
  .st-404-visual{ order:-1; justify-content:flex-start; font-size:clamp(110px, 30vw, 180px); }
}
@media (max-width:520px){
  .st-404-search{ flex-wrap:wrap; padding:12px; }
  .st-404-search input[type="search"]{ flex:1 1 calc(100% - 34px); }
  .st-404-search button{ width:100%; }
}