/*
Theme Name:     Hello Elementor Child
Theme URI:      
Description:    Hello-elementor child theme.
Author:         Me
Author URI:     
Template:       hello-elementor
Version:        0.1.0
*/



/* =====================================================================
   OCTA SERVICES EXPRESS – CSS sur mesure (à coller à la fin du style.css
   du thème enfant). Les couleurs / polices viennent du kit Elementor :
   --e-global-color-primary / secondary / text / accent
   --e-global-typography-fba1777-* (H1), 8a92e86-* (H2), b629465-* (H3)
   ===================================================================== */

:root {
  --oc-ink: #2e1d36;
  --oc-violet: #7a4a8c;
  --oc-muted: #5d4a68;
  --oc-line: #e3d6e8;
  --oc-lilac: #f1e9f5;
  --oc-ease: cubic-bezier(.2, .7, .2, 1);
  --oc-head-font: var(--e-global-typography-8a92e86-font-family, "Montserrat"), "Segoe UI", Arial, sans-serif;
  --oc-body-font: var(--e-global-typography-text-font-family, "Open Sans"), "Segoe UI", Arial, sans-serif;
}

/* Les liens d'ancre (#contact, #vehicule) s'arrêtent sous l'en-tête collant */
html { scroll-padding-top: 100px; }

/* ---------- Texte courant ---------- */
.oc-txt strong { color: var(--oc-ink); }
.oc-txt--violet strong { color: var(--oc-violet); }
.oc-txt--ink strong { color: var(--oc-ink); }
.oc-txt a { color: var(--oc-violet); text-decoration: underline; text-underline-offset: 3px; }
.oc-txt a:hover { color: var(--oc-ink); }
.oc-txt--light, .oc-txt--light strong, .oc-txt--light a { color: #fff; }
.oc-txt--light a { overflow-wrap: anywhere; }
.oc-accent { color: var(--e-global-color-accent); }
.oc-violet { color: var(--e-global-color-primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--e-global-color-accent); outline-offset: 3px; }

/* =====================================================================
   ANIMATIONS D'APPARITION (identiques à la maquette)
   - .oc-load   : joue au chargement (bandeau d'accueil, en-tête)
   - .oc-right  : variante « arrive par la droite »
   - .oc-d1…d4  : décalages (0.1 s, 0.2 s, 0.3 s, 0.45 s)
   - .oc-reveal : sections qui apparaissent au défilement (JS : octa.js)
   - .oc-pop    : badge « 20 ans » (grossit en tournant)
   ===================================================================== */
@keyframes ocUp    { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes ocRight { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: none; } }

.oc-load  { animation: ocUp .8s var(--oc-ease) both; animation-delay: var(--d, 0s); }
.oc-right { animation-name: ocRight; }
.oc-d1 { --d: .1s; }
.oc-d2 { --d: .2s; }
.oc-d3 { --d: .3s; }
.oc-d4 { --d: .45s; }

.oc-reveal, .oc-pop {
  transition: opacity .8s var(--oc-ease), transform .8s var(--oc-ease);
}
/* « armé » uniquement quand le JS tourne (et jamais dans l'éditeur Elementor) */
.oc-armed .oc-reveal:not(.oc-in) { opacity: 0; transform: translateY(32px); }
.oc-armed .oc-pop:not(.oc-in)    { opacity: 0; transform: scale(.7) rotate(-10deg) !important; }

@media (prefers-reduced-motion: reduce) {
  .oc-load { animation: none !important; }
  .oc-armed .oc-reveal:not(.oc-in),
  .oc-armed .oc-pop:not(.oc-in) { opacity: 1; transform: none; }
  .oc-reveal, .oc-pop { transition: none; }
}

/* =====================================================================
   EN-TÊTE COLLANT QUI RÉTRÉCIT (Elementor Pro : Effets de mouvement > Sticky)
   Elementor ajoute .elementor-sticky--effects après 40 px de défilement
   ===================================================================== */
.oc-header { transition: padding .3s ease, box-shadow .3s ease; }
.oc-header .oc-logo img { transition: width .3s ease, height .3s ease; height: auto; }
.oc-header.elementor-sticky--effects {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  box-shadow: 0 4px 16px rgba(46, 29, 54, .16);
}
.oc-header.elementor-sticky--effects .oc-logo img { width: 83px !important; }
@media (max-width: 767px) {
  .oc-header.elementor-sticky--effects .oc-logo img { width: 60px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .oc-header, .oc-header .oc-logo img { transition: none; }
}

/* ---------- Bouton « PRO & PARTICULIERS » : pastille blanche autour de la flèche ---------- */
.oc-btn-arrow .elementor-button-content-wrapper { align-items: center; gap: 14px; }
.oc-btn-arrow .elementor-button-text { letter-spacing: .04em; }
.oc-btn-arrow .elementor-button-icon {
  margin: 0 !important;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--oc-violet);
}
.oc-btn-arrow .elementor-button-icon i { font-size: 18px; }
.oc-btn-arrow .elementor-button-icon svg { width: 18px; height: 18px; fill: currentColor; }

/* =====================================================================
   CURSEUR « QUEL VÉHICULE POUR VOTRE ENVOI ? » (widget HTML + octa.js)
   ===================================================================== */
.oc-gauge { --v: 50; }
.oc-gauge__readout {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 24px; margin-bottom: 6px;
}
.oc-gauge__weight {
  font: 700 40px/1.1 var(--oc-head-font); letter-spacing: -.02em;
  color: var(--e-global-color-primary);
}
.oc-gauge__vehicle {
  margin: 0; font: 600 18px/1.3 var(--oc-head-font); color: var(--oc-ink); text-align: right;
}
.oc-gauge__ticks {
  display: flex; justify-content: space-between; font-size: 14px; color: var(--oc-muted); margin-top: 2px;
}
.oc-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 36px;
  background: transparent; cursor: pointer; margin: 0; --v: 50;
}
.oc-range:focus-visible { outline: 3px solid var(--e-global-color-accent); outline-offset: 4px; border-radius: 999px; }
.oc-range::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--e-global-color-primary) calc(var(--v) * 1%), #d9d0de calc(var(--v) * 1%));
}
.oc-range::-moz-range-track { height: 10px; border-radius: 999px; background: #d9d0de; }
.oc-range::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--e-global-color-primary); }
.oc-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--e-global-color-accent); border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--e-global-color-primary); margin-top: -10px;
}
.oc-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--e-global-color-accent); border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--e-global-color-primary);
}
@media (max-width: 767px) {
  .oc-gauge__weight { font-size: 32px; }
  .oc-gauge__vehicle { text-align: left; font-size: 16px; }
}

/* =====================================================================
   BADGE « 20 ANS D'EXPÉRIENCE » posé sur la photo (widget HTML)
   Le conteneur parent porte la classe .oc-media
   ===================================================================== */
.oc-media { position: relative; }
.oc-badge-widget { position: absolute !important; left: 24px; bottom: 28px; z-index: 2; width: auto !important; }
.oc-badge {
  display: flex; align-items: center; gap: 14px;
  background: var(--e-global-color-primary); color: #fff;
  border-radius: 14px; padding: 16px 30px 16px 22px;
  box-shadow: 0 8px 20px rgba(46, 29, 54, .3);
  transform: rotate(-6deg); transform-origin: left bottom;
}
.oc-badge__number { font: 700 68px/.95 var(--oc-head-font); letter-spacing: -.02em; }
.oc-badge__text { display: flex; flex-direction: column; gap: 4px; }
.oc-badge__text b { font: 700 26px/1 var(--oc-head-font); color: var(--e-global-color-accent); }
.oc-badge__text i {
  font: 700 13px/1.2 var(--oc-head-font); font-style: normal;
  letter-spacing: .12em; text-transform: uppercase;
}
@media (max-width: 767px) {
  .oc-badge-widget { left: 12px; bottom: 16px; }
  .oc-badge { padding: 12px 20px 12px 16px; }
  .oc-badge__number { font-size: 48px; }
  .oc-badge__text b { font-size: 20px; }
}

/* ---------- Liste à coches dorées (France et Europe) ---------- */
.oc-checks .elementor-icon-list-items {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px 34px;
}
.oc-checks .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.oc-checks .elementor-icon-list-icon {
  flex: none; display: inline-flex !important; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--e-global-color-accent);
}
.oc-checks .elementor-icon-list-icon i { font-size: 13px; color: var(--oc-ink); }
.oc-checks .elementor-icon-list-icon svg { width: 13px; height: 13px; fill: var(--oc-ink); }
.oc-checks .elementor-icon-list-text { padding-left: 12px !important; }

/* ---------- Bannière en flèche (bandeau de pictogrammes) ---------- */
.oc-arrow {
  position: relative;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 0 100%);
}
.oc-arrow::after {
  content: ""; position: absolute; top: 0; left: 0; width: 52px; height: 100%;
  background: var(--e-global-color-accent); clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}
.oc-arrow .elementor-heading-title { text-align: left; }

/* ---------- Losange ADR ---------- */
.oc-adr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.oc-adr__box {
  width: 40px; height: 40px; margin: 6px; box-sizing: border-box;
  background: var(--e-global-color-accent); border: 3px solid var(--oc-ink);
  transform: rotate(45deg); display: flex; align-items: center; justify-content: center;
}
.oc-adr__box b { transform: rotate(-45deg); font: 700 13px/1 var(--oc-head-font); color: var(--oc-ink); }
.oc-adr__label { font: 600 15px/1.3 var(--oc-body-font); color: #3b2f45; }

/* ---------- Pictogrammes : texte centré ---------- */
.oc-picts .elementor-icon-box-wrapper { text-align: center; }

/* ---------- Départements & cartes de contact ---------- */
.oc-dept .elementor-heading-title { line-height: 1.1; }
.oc-person__sub { color: #e3d6ea; font-size: 16px; font-weight: 400; }
.oc-person__tel a { color: #fff !important; text-decoration: none; padding: 8px 0; display: inline-block; }
.oc-person__tel a:hover { color: var(--e-global-color-accent) !important; }

/* ---------- Pied de page ---------- */
.oc-footer-copy a { color: rgba(205, 191, 214, .56); text-decoration: none; }
.oc-footer-copy a:hover { color: #fff; }

/* ---------- Responsive : justification → alignement à gauche sur mobile ---------- */
@media (max-width: 767px) {
  .oc-txt { text-align: left !important; }
  .oc-hero .oc-woman img { margin-inline: auto; }
}