/*
 Theme Name:     Astra Child
 Theme URI:      https://example.com
 Description:    Mon thème enfant basé sur Astra
 Author:         Ton Nom
 Template:       astra
 Version:        1.0.0
 Text Domain:    astra-child
*/

/* Ton CSS personnalisé ici */
body {
    margin: 0;
    overflow-x: hidden;
}

/* Header transparent au départ */
.ast-header-transparent .main-header-bar {
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Lors du scroll */
.ast-header-transparent.scrolled .main-header-bar {
    background: rgba(0, 0, 0, 0.6);
    /* fond noir semi-transparent */
    backdrop-filter: blur(6px);
    /* effet de flou doux */
}

/* Pour renforcer la lisibilité du texte au scroll */
.ast-header-transparent.scrolled .main-header-menu>li>a,
.ast-header-transparent.scrolled .ast-site-identity .site-title,
.ast-header-transparent.scrolled .ast-button {
    color: #ffffff !important;
}


/* === Hero fullscreen === */

.hero-fullscreen {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('https://imagedelivery.net/kGQt1EekGoNyFvmHsPR0OA/bc0260c9-5a57-4064-db97-7d3d49c3be00/public');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    top: 50%;
    transform: translateY(-55%);
    color: white;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin: 30px 0;
    line-height: 1.3;
    color: white;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 24px;
}

.hero-button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 18px;
    background-color: #f5f5f5;
    color: #222;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.hero-button:hover {
    background-color: #ddd;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-button {
        font-size: 16px;
        padding: 12px 24px;
    }
}

/* === Grille de cartes interactives === */
.feature-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 16px;
    color: #222;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.animated-underline::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #0f62fe;
    /* bleu ou couleur de ton identité */
    margin: 12px auto 0;
    border-radius: 2px;
    animation: underlineGrow 1s ease-out forwards;
}

@keyframes underlineGrow {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 60px;
        opacity: 1;
    }
}

.feature-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: #666;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


.feature-cards {
    padding: 80px 20px;
    background: #f8f8f8;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    width: 300px;
    height: 260px;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
}

.card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    position: relative;
    cursor: pointer;
}

.card:hover .card-inner,
.card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    background: white;
    backface-visibility: hidden;
}

.card-front {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 24px;
    justify-content: flex-start;
}

.card-back {
    transform: rotateY(180deg);
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.card h4 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 12px;
    color: #222;
    min-height: 52px;
}

.card p {
    font-size: 15px;
    color: #555;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.card p:last-child {
    margin-bottom: 0;
}

.flip-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #999;
    margin-top: auto;
    gap: 6px;
    opacity: 0.85;
    pointer-events: none;
    margin-top: 12px;
}

.flip-icon {
    width: 16px;
    height: 16px;
}

@media (min-width: 769px) {
    .flip-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .card {
        width: 90%;
    }
}

/* === Timeline Section (3 étapes avec chevrons SVG et animation) === */
.timeline-section {
    text-align: center;
    padding: 40px 20px 0;
}

.timeline-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.timeline-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: 40px;
}

.timeline-simple {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
    margin: 0 auto;
}

.timeline-block {
    flex: 1 1 240px;
    /* plus flexible */
    max-width: 260px;
    /* au lieu de 200px */
    background: #f9f9f9;
    padding: 25px 15px;
    /* Réduit légèrement le padding */
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.6s ease-out forwards;
}

.timeline-block:nth-of-type(1) {
    animation-delay: 0.2s;
}

.timeline-block:nth-of-type(3) {
    animation-delay: 0.5s;
}

.timeline-block:nth-of-type(5) {
    animation-delay: 0.8s;
}

.timeline-block .circle {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-size: 22px;
    font-weight: bold;
}

.timeline-block h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.timeline-block p {
    font-size: 15px;
    color: #555;
}

/* Chevron entre les blocs */
.timeline-chevron {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    margin: 0 10px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.6s ease-out forwards;
}

.timeline-chevron:nth-of-type(2) {
    animation-delay: 0.35s;
}

.timeline-chevron:nth-of-type(4) {
    animation-delay: 0.65s;
}

.timeline-chevron svg {
    height: 36px;
    width: auto;
    stroke: #ccc;
    transition: transform 0.3s ease;
}


@media (max-width: 768px) {
    .timeline-simple {
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .timeline-block {
        position: relative;
        padding-bottom: 40px;
    }

    .timeline-block::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 40px;
        background-image: linear-gradient(to bottom, #ccc 50%, transparent 50%);
        background-size: 2px 8px;
        background-repeat: repeat-y;
    }

    .timeline-block:last-of-type::after {
        display: none;
    }

    .timeline-chevron {
        display: none;
        /* ⬇️ masqué sur mobile (remplacé par ligne) */
    }

    .timeline-chevron svg {
        transform: rotate(180deg);
        height: 48px;
    }
}


/* Animation utilisée */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Why-free Section === */

.why-free-section {
    background-color: #0f172a;
    padding: 60px 20px;
  }

  .why-free-container {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
  }

  .why-free-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #fff;
  }

  .why-free-quote {
    background: #f9f9f9;
    color: #333;
    border-left: 5px solid #ccc;
    padding: 30px 25px;
    font-style: italic;
    line-height: 1.8;
    border-radius: 8px;
    text-align: left;
    position: relative;
  }

  .why-free-quote::before {
    content: "“";
    font-size: 50px;
    color: #ccc;
    position: absolute;
    top: 10px;
    left: 15px;
    font-style: normal;
    line-height: 1;
  }

  .why-free-quote p {
    margin: 0 0 20px;
  }

  .why-free-quote footer {
    margin-top: 20px;
    font-style: normal;
    font-weight: bold;
    text-align: right;
    color: #555;
  }

  .ps-message {
      font-style: normal;
      font-size: 14px;
      color: #444;
      margin-top: 25px;
      padding-top: 15px;
      border-top: 1px solid #ddd;
    }