/*
Theme Name: Astra Child
Template: astra
Text Domain: astra-child
Version: 1.0
*/

/* ===== Header ===== */

.ast-primary-header-bar {
    box-shadow: 0 6px 15px rgba(0,0,0,0.2) !important;
    margin: 0;
    border-radius: 0 0 70px 70px;
    background: rgba(244, 247, 250, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Submenu header */
.main-header-bar .sub-menu {
    transform: translateY(-5px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    box-shadow: 12 0 24px rgba(30, 58, 95, 0.8);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dde3ea;
    left: 12px;
    width: 90%;
}

.main-header-bar .menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    left: 12px;
    width: 90%;
}

/* ===== Icon shadow ===== */

.elementor-icon svg {
    filter: 
        drop-shadow(2px 2px 0px rgba(30, 58, 95, 0.005))
        drop-shadow(3px 3px 0px rgba(30, 58, 95, 0.01))
        drop-shadow(4px 4px 0px rgba(30, 58, 95, 0.05))
        drop-shadow(5px 5px 0px rgba(30, 58, 95, 0.1))
        drop-shadow(6px 6px 16px rgba(30, 58, 95, 0.2));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.cat-card .elementor-icon svg {
    filter: 
        drop-shadow(2px 2px 0px rgba(30, 58, 95, 0.005))
        drop-shadow(3px 3px 0px rgba(30, 58, 95, 0.01))
        drop-shadow(4px 4px 0px rgba(30, 58, 95, 0.05))
        drop-shadow(5px 5px 0px rgba(30, 58, 95, 0.1))
        drop-shadow(6px 6px 16px rgba(30, 58, 95, 0.2));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.cat-card:hover .elementor-icon svg {
    filter: 
        drop-shadow(2px 2px 0px rgba(30, 58, 95, 0.005))
        drop-shadow(4px 4px 0px rgba(30, 58, 95, 0.01))
        drop-shadow(6px 6px 0px rgba(30, 58, 95, 0.05))
        drop-shadow(8px 8px 0px rgba(30, 58, 95, 0.1))
        drop-shadow(10px 10px 12px rgba(30, 58, 95, 0.2));
    transform: translateY(-4px);
}

.icon_shadow {
    filter: 
        drop-shadow(2px 2px 0px rgba(30, 58, 95, 0.005))
        drop-shadow(3px 3px 0px rgba(30, 58, 95, 0.01))
        drop-shadow(4px 4px 0px rgba(30, 58, 95, 0.05))
        drop-shadow(5px 5px 0px rgba(30, 58, 95, 0.1))
        drop-shadow(6px 6px 16px rgba(30, 58, 95, 0.2));
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* ===== arrow shadow ===== */

.cat-card .elementor-widget-text-editor p {
    transition: transform .2s;
}

.cat-card:hover .elementor-widget-text-editor p {
    transform: translateX(4px);
}

/* ===== Effect Typewritter ===== */

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50%       { border-color: #ffffff; }
}

.typewriter-text h1,
.typewriter-text h2,
.typewriter-text h3,
.typewriter-text h4,
.typewriter-text h5,
.typewriter-text h6,
.typewriter-text p,
.typewriter-text span {
    display: inline;
    border-right: 2px solid #ffffff;
    animation: blink-caret 1s step-end infinite;
}

/* ===== Compteur ===== */

.counter{
    color: #1E3A5F;
    font-family: "Roboto", Sans-serif;
    font-size: 48px;
    font-weight: 600;
}

/* ===== Page Nos Services ===== */

.services-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.cat-section {
  margin-bottom: 60px;
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #1E3A5F;
}

.cat-icon { font-size: 24px; }

.cat-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1E3A5F;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.service-card {
  box-shadow: 8px 0px 24px 0px rgba(30, 58, 95, 0.5) !important;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all .2s;
  min-height: 160px;
  opacity: 0;
}

.service-card.is-visible {
    animation: fadeInLeft .75s ease forwards;
}

.service-card:hover {
  border-color: #2E86AB;
  box-shadow: 12px 0px 32px 0px rgba(30, 58, 95, 0.65) !important;
  transform: translateY(-2px) !important;
}

.nsc-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1E3A5F;
  margin-bottom: 8px;
}

.nsc-content p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.nsc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.nsc-prix {
  font-size: 13px;
  font-weight: 600;
  color: #2E86AB;
}

.nsc-arrow {
  font-size: 16px;
  color: #2E86AB;
  transition: transform .2s;
}

.service-card:hover .nsc-arrow {
  transform: translateX(4px);
}

.formation-card {
  border-color: #2E86AB;
  background: #f0f8ff;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes highlight {
    0%   { background-color: transparent; }
    25%  { background-color: rgba(46,134,171,0.15); }
    75%  { background-color: rgba(46,134,171,0.15); }
    100% { background-color: transparent; }
}

.cat-section.is-highlighted {
    border-radius: 12px;
    animation: highlight 1.8s ease-in-out;
}

/* ===== Fix Astra container pour fiche service ===== */

.single-service #primary,
.single-service .site-content > .ast-container,
.single-service #content > .ast-container {
    padding: 0 !important;
    max-width: 100% !important;
}

.single-service .site-content > .ast-container {
    display: block !important;
}

.single-service .entry-content,
.single-service .entry-header,
.single-service article {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.single-service #ast-scroll-top {
    z-index: 999;
}

/* ===== Fiche Service ===== */

/* Hero */

.fiche-hero {
    position: relative;
    background: #1E3A5F;
    padding: 50px 20px 90px 20px;
    overflow: visible;
}

.fiche-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 95, 0.65);
    z-index: 0;
}

.fiche-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.fiche-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.fiche-hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,.8);
    max-width: 650px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.fiche-hero-ctas { 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
}

.fiche-hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.fiche-hero-shape svg {
    display: block;
    width: 100%;
    height: 130px;
}

.fiche-categorie-badge {
    display: inline-block;
    background: #2E86AB;
    color: #fff;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
    text-decoration: none;
    transition: background .2s;
}

.fiche-categorie-badge:hover { 
  background: #1A9CD8;
  color: #fff; 
}

/* Body layout */
.fiche-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: start;
}

/* Sidebar nav */

.fiche-nav {
    position: sticky;
    top: 200px;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 30px;
    margin-left: -100px;
}

.fiche-nav-title {
    background: #1E3A5F;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 12px 16px;
}

.fiche-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #eef1f4;
    transition: all .18s;
}

.fiche-nav-item i { color: #2E86AB; width: 14px; font-size: 13px; }

.fiche-nav-item:hover { background: #f4f7fa; color: #1E3A5F; }

.fiche-nav-item.active {
    background: #f0f8ff;
    color: #1E3A5F;
    font-weight: 600;
    border-left: 3px solid #2E86AB;
}
.fiche-nav-item:last-child { border-bottom: none; }

/* Sous-navigation catégorie active */
.fiche-nav-sub {
    background: #f0f8ff;
    border-left: 3px solid #2E86AB;
    margin: 0;
    padding: 4px 0;
}

.fiche-nav-sub-item {
    display: block;
    padding: 8px 16px 8px 24px;
    font-size: 12px;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #eef1f4;
    transition: all .18s;
}

.fiche-nav-sub-item:hover {
    background: #e0f0ff;
    color: #1E3A5F;
}

.fiche-nav-sub-item.current {
    color: #1A9CD8;
    font-weight: 600;
    background: #e0f0ff;
}

/* Main content */
.fiche-main { min-width: 0; }

.fiche-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 40px;
}

/* Blocks */
.fiche-block { margin-bottom: 30px; }
.fiche-block h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #2E86AB;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #2E86AB;
}
.fiche-block p { font-size: 15px; color: #444; line-height: 1.7; }

.fiche-list { list-style: none; padding: 0; margin: 0; }
.fiche-list li {
    padding: 9px 0 9px 22px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #444;
    position: relative;
    line-height: 1.5;
}
.fiche-list li::before {
    content: '✓';
    color: #2E86AB;
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Prix box */
.fiche-prix-box {
    background: #f4f7fa;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid #dde3ea;
    position: sticky;
    top: 200px;
    margin-right: -60px;
}
.fiche-prix { font-size: 28px; font-weight: 700; color: #1E3A5F; margin-bottom: 4px; }
.fiche-prix-label { font-size: 12px; color: #888; margin-bottom: 20px; }

/* Buttons */
.btn-primary {
    display: block;
    background: #1A9CD8;
    color: #fff;
    text-align: center;
    padding: 13px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: background .2s;
}
.btn-primary:hover { background: #1585ba; color: #fff; }

.btn-secondary {
    display: block;
    border: 2px solid #1E3A5F;
    color: #1E3A5F;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}

.btn-secondary:hover { background: #1E3A5F; color: #fff; }

.btn-outline-white {
    display: inline-block;
    border: 2px solid rgba(255,255,255,.6);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Services liés */
.fiche-services-lies { margin-top: 10px; }
.fiche-services-lies h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #2E86AB;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid #2E86AB;
}
.services-lies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.service-lie-card {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all .2s;
}
.service-lie-card:hover { border-color: #2E86AB; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(30,58,95,.08); }
.slc-cat { font-size: 10px; color: #2E86AB; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.slc-title { font-size: 14px; font-weight: 600; color: #1E3A5F; }
.slc-desc { font-size: 12px; color: #666; line-height: 1.5; flex: 1; }
.slc-arrow { font-size: 14px; color: #2E86AB; text-align: right; }

/* CTA final */
.fiche-cta-final {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
}
.fiche-cta-final h2 { color: #1E3A5F; font-size: 28px; margin-bottom: 10px; }
.fiche-cta-final p { color: #666; font-size: 16px; margin-bottom: 24px; }
.fiche-cta-final .btn-primary { display: inline-block; width: auto; padding: 14px 32px; }

/* Responsive */
@media (max-width: 1024px) {
    .fiche-body { 
        grid-template-columns: 1fr; 
        padding: 30px 20px; 
    }
    .fiche-nav { 
        position: static; 
        margin-right: 0; 
        margin-left: 0;
        margin-bottom: 24px; 
        display: block;
        border-radius: 12px;
        overflow: hidden;
    }
    .fiche-nav-title { 
        border-radius: 0;
    }
    .fiche-nav-item {
        border-radius: 0;
    }
    .fiche-nav-sub {
        display: none;
    }
    .fiche-nav-item.active + .fiche-nav-sub {
        display: block;
    }
    .fiche-content-grid { 
        grid-template-columns: 1fr; 
    }
    .fiche-prix-box { 
        position: static; 
        margin-right: 0;
    }
    .services-lies-grid { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 768px) {
    .fiche-hero h1 { 
        font-size: 24px; 
    }
    .fiche-hero-desc {
        font-size: 15px;
    }
    .fiche-nav-item {
        font-size: 13px;
        padding: 12px 16px;
    }
    .fiche-nav-sub-item {
        font-size: 12px;
        padding: 10px 16px 10px 28px;
    }
    .services-lies-grid { 
        grid-template-columns: 1fr; 
    }
}

/* Contact Form 7 */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    font-size: 15px;
    color: #444;
    background: #fff;
    margin-bottom: 16px;
    font-family: inherit;
    transition: border-color .2s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: #2E86AB;
    outline: none;
}

.wpcf7 textarea {
    height: 140px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    background: #1A9CD8;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background .2s;
    font-family: inherit;
}

.wpcf7 input[type="submit"]:hover {
    background: #1585ba;
}

.wpcf7-not-valid-tip {
    color: #cc0000;
    font-size: 13px;
}

.wpcf7-mail-sent-ok {
    border-color: #2E86AB;
    color: #2E86AB;
}


/* Carrusel logos — normalisation */
.elementor-image-carousel .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.elementor-image-carousel .swiper-slide img {
    width: auto !important;
    height: 100px !important;
    max-width: 140px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    transition: all 0.3s ease;
}