/*
Theme Name: FSM Drone
Description: Thème enfant de Hello Elementor pour les optimisations de FSM Drone.
Author: FSM Drone
Template: hello-elementor
Version: 1.2.0
Text Domain: fsm-drone
*/

@font-face {
  font-family: "Kumbh Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/kumbh-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Kumbh Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/kumbh-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fsm-font-family: "Kumbh Sans", sans-serif;
}

html,
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
label {
  font-family: var(--fsm-font-family) !important;
}

/* Système éditorial responsive */
:root {
  --fsm-container: 1280px;
  --fsm-text-width: 740px;
  --fsm-gutter: clamp(20px, 4vw, 64px);
  --fsm-section-space: clamp(56px, 7vw, 112px);
  --fsm-card-gap: clamp(20px, 2.2vw, 32px);
  --fsm-card-padding: clamp(24px, 2.4vw, 32px);
}

body {
  font-size: clamp(16px, 0.25vw + 15px, 18px);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body h1,
body h2,
body h3,
body h4 {
  text-wrap: balance;
}

body h1 {
  font-size: clamp(34px, 4.45vw, 64px) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.025em;
}

body h2 {
  font-size: clamp(30px, 3.6vw, 52px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.018em;
}

body h3 {
  font-size: clamp(22px, 2.1vw, 30px) !important;
  line-height: 1.2 !important;
}

body p,
body li {
  text-wrap: pretty;
}

/* Conteneurs des pages : largeur stable et gouttières fluides. */
body.elementor-page .elementor:not(.elementor-location-header):not(.elementor-location-footer) .e-con-boxed > .e-con-inner {
  width: min(100% - (2 * var(--fsm-gutter)), var(--fsm-container));
  max-width: var(--fsm-container);
}

body.elementor-page .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-widget-text-editor {
  max-width: var(--fsm-text-width);
}

/* Espacement vertical des grandes sections de contenu. */
body.elementor-page .elementor:not(.elementor-location-header):not(.elementor-location-footer) > .e-con.e-parent:not(:first-child) {
  padding-block: var(--fsm-section-space);
}

/* Hero de l'accueil : plus de place pour le nouveau contenu SEO. */
.home .elementor-12 .elementor-element-524c1f5f {
  width: min(100% - (2 * var(--fsm-gutter)), var(--fsm-container));
  max-width: var(--fsm-container);
}

.home .elementor-12 .elementor-element-1ca3cf84 {
  width: min(620px, 100%);
  max-width: 620px;
  padding: clamp(28px, 3.6vw, 52px);
}

.home .elementor-12 .elementor-element-1ca3cf84 .elementor-widget-text-editor {
  max-width: 58ch;
}

/* Grilles et cartes de prestations. */
.elementor .e-grid {
  gap: var(--fsm-card-gap);
}

.elementor .box_image_zoom {
  min-width: 0;
  min-height: 100%;
  padding: var(--fsm-card-padding) !important;
}

.elementor .box_image_zoom .elementor-widget-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.elementor .box_image_zoom .elementor-widget-text-editor {
  max-width: 62ch;
}

/* Boutons et appels à l'action. */
.elementor a.elementor-button,
.elementor button,
.elementor input[type="submit"] {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

@media (max-width: 1024px) {
  :root {
    --fsm-section-space: clamp(52px, 7.5vw, 76px);
  }

  .home .elementor-12 .elementor-element-1ca3cf84 {
    width: min(600px, 100%);
  }
}

@media (max-width: 767px) {
  :root {
    --fsm-gutter: 20px;
    --fsm-section-space: 52px;
    --fsm-card-gap: 20px;
    --fsm-card-padding: 24px;
  }

  body {
    line-height: 1.6;
  }

  .home .elementor-12 .elementor-element-1ca3cf84 {
    width: 100%;
    max-width: none;
    padding: 28px 24px 36px;
  }

  .elementor .box_image_zoom .elementor-widget-image img {
    aspect-ratio: 4 / 3;
  }

  .elementor a.elementor-button,
  .elementor button,
  .elementor input[type="submit"] {
    width: 100%;
  }
}

/* Finition visuelle 1.2 : profondeur, mouvement et détails. */
.elementor-shape {
  display: none !important;
}

.elementor-location-header {
  box-shadow: 0 8px 28px rgba(18, 113, 148, 0.08);
}

.elementor-location-header.elementor-sticky--effects {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.elementor .elementor-invisible {
  visibility: visible !important;
}

.elementor-12 .elementor-element-1ca3cf84,
body:not(.home) .elementor-element-1ca3cf84 {
  box-shadow: 0 26px 70px rgba(18, 113, 148, 0.2);
  animation: fsm-panel-reveal 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.elementor .box_image_zoom,
.elementor .elementor-cta {
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(18, 113, 148, 0.09);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 350ms ease;
}

.elementor .box_image_zoom:hover,
.elementor .elementor-cta:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(18, 113, 148, 0.17);
}

.elementor .box_image_zoom img,
.elementor .elementor-cta img {
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.elementor .box_image_zoom:hover img,
.elementor .elementor-cta:hover img {
  transform: scale(1.045);
}

.elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-widget-image img {
  border-radius: 20px;
}

.elementor:not(.elementor-location-header):not(.elementor-location-footer) h2::after {
  content: "";
  display: block;
  width: clamp(44px, 5vw, 72px);
  height: 3px;
  margin-top: 18px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.22;
}

.elementor a.elementor-button {
  box-shadow: 0 10px 28px rgba(18, 113, 148, 0.14);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.elementor a.elementor-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(18, 113, 148, 0.22);
}

.elementor a:focus-visible,
.elementor button:focus-visible,
.elementor input:focus-visible,
.elementor textarea:focus-visible,
.elementor select:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.elementor img {
  backface-visibility: hidden;
}

@keyframes fsm-panel-reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .elementor-location-header {
    box-shadow: 0 6px 22px rgba(18, 113, 148, 0.08);
  }

  .elementor .box_image_zoom:hover,
  .elementor .elementor-cta:hover,
  .elementor a.elementor-button:hover {
    transform: none;
  }

  .elementor:not(.elementor-location-header):not(.elementor-location-footer) h2::after {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
