* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0 auto;
    min-height: 100vh;
    text-align: center;
}

.main h1 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #333;
}

.main p {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin: 0 auto 20px;
    max-width: 1000px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.features-grid .feature {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    position: relative;
    overflow: visible;
    transition: transform 360ms cubic-bezier(.2, .9, .3, 1),
        box-shadow 360ms cubic-bezier(.2, .9, .3, 1),
        border-color 250ms ease;
    will-change: transform, box-shadow;
}

.features-grid .feature i {
    font-size: 3rem;
    color: #f4b216;
    margin-bottom: 15px;
    transition: color 260ms ease, transform 260ms cubic-bezier(.2, .9, .3, 1);
}

.features-grid .feature h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.features-grid .feature p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    text-align: left;
}


.features-grid .feature::after {
    /* subtle animated glow behind each feature card */
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    right: 6px;
    bottom: 6px;
    border-radius: 10px;
    background: radial-gradient(420px 120px at 15% 25%, rgba(244, 178, 22, 0.10), transparent 30%);
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 380ms ease, transform 380ms cubic-bezier(.2, .9, .3, 1);
    pointer-events: none;
    z-index: 0;
}

.features-grid .feature>* {
    position: relative;
    z-index: 1;
}

.features-grid .feature:hover {
    cursor: pointer;
    transform: translateY(-14px) rotate(-0.3deg) scale(1.03);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.12);
}

.features-grid .feature:hover::after {
    opacity: 1;
    transform: scale(1.01);
}

.features-grid .feature:hover i {
    transform: translateY(-4px) scale(1.08);
    color: #f4b216;
}

/* Styles spécifiques pour le tableau présent dans pages/contrat-maintenance.php
   Cible : .Formule table (pas besoin de modifier le HTML) */
.Formule {
    width: 100%;
    max-width: 1100px;
    margin-top: 36px;
    padding: 12px;
}

.Formule h2 {
    text-align: center;
    margin-bottom: 16px;
    color: #222;
}

.Formule table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.98rem;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
    border-radius: 10px;
    overflow: hidden;
}

.Formule thead tr {
    background: linear-gradient(135deg, #fdda3d 20%, #f4b216 80%);
    color: #fff;
    text-align: left;
}

.Formule span {
    font-size: 0.85rem;
    color: #7d7d7d !important;
    font-style: italic;
}

.Formule .feature-name {
    text-align: left;
}

.Formule th,
.Formule td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.Formule tbody tr:nth-child(even) {
    background: #fbfdff;
}

.Formule tbody tr:hover {
    background: #f1f7ff;
}

/* Emphase pour la première colonne (nom de fonctionnalité) et pour les prix */
.Formule td:first-child {
    font-weight: 600;
    color: #0b2546;
    width: 45%;
}




.why-axe {
    background-color: #f9f9f9;
    padding: 60px 20px;
    color: #222;
    border-radius: 20px;
}

.why-axe h2 {
    color: #000;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.why-axe p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    color: #333;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 2fr));
    gap: 20px;
}

.why-item {
    background: #fff;
    border-left: 6px solid #ffcc00;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: visible;
    /* smoother animation */
    transition: transform 350ms cubic-bezier(.2, .9, .3, 1),
        box-shadow 350ms cubic-bezier(.2, .9, .3, 1),
        border-color 250ms ease;
    will-change: transform, box-shadow;
}

.why-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    text-align: left;
}

.why-item h3 {
    color: #111;
    margin-bottom: 10px;
}

blockquote {
    margin-top: 40px;
    text-align: center;
    font-size: 1.2rem;
    color: #000;
    font-weight: 500;
}

.why-item::after {
    /* subtle animated glow behind the card */
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: radial-gradient(600px 160px at 10% 30%, rgba(244, 178, 22, 0.12), transparent 30%);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 420ms ease, transform 420ms cubic-bezier(.2, .9, .3, 1);
    pointer-events: none;
    z-index: 0;
}

.why-item>* {
    /* make sure content is above the glow */
    position: relative;
    z-index: 1;
}

.why-item:hover {
    cursor: pointer;
    transform: translateY(-40px) scale(1.07);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.12);
    border-left-color: #f4b216;
}

.why-item:hover::after {
    opacity: 1;
    transform: scale(1.02);
}


.Questions {
    margin-top: 60px;
    text-align: center;
}

.Questions h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #222;
}

/* Accordion (FAQ) styles */
.Questions .question {
    max-width: 900px;
    margin: 14px auto;
    text-align: left;
}

.question-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 220ms ease, box-shadow 220ms ease, transform 160ms ease;
}

.question-toggle:hover,
.question-toggle:focus {
    background: #fbfdff;
    outline: none;
}



.question-title {
    font-weight: 600;
    color: #0b2546;
}

.question-icon {
    display: inline-block;
    margin-left: 12px;
    transition: transform 260ms ease, color 200ms ease;
    color: #0b2546;
    transform-origin: center;
}

.question-toggle.open .question-icon {
    transform: rotate(90deg);
    color: #f4b216;
}

.question-answer {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-top: none;
    padding: 12px 16px 18px;
    border-radius: 0 0 10px 10px;
    margin-top: 6px;
    overflow: hidden;
}

.question-answer p {
    color: #334155;
    line-height: 1.6;
}





/* Responsive: rendre le tableau scrollable sur petits écrans */
@media (max-width: 800px) {
    .Formule {
        padding: 8px;
    }

    .Formule table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .Formule th,
    .Formule td {
        padding: 12px 10px;
    }
}


/* ------------------------------------------------------------------
   Table styles: responsive, zebra, header color, hover, badges
   Usage: wrap table in <div class="table-responsive"> and add class
   <table class="styled-table">. For mobile, add data-label="Col name" to each td.
   ------------------------------------------------------------------ */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    font-size: 0.95rem;
}

.styled-table caption {
    caption-side: top;
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #222;
}

.styled-table thead tr {
    background: linear-gradient(90deg, #0d6efd 0%, #0069d9 100%);
    color: #fff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.styled-table tbody tr:nth-child(even) {
    background: #fbfdff;
    /* subtle zebra */
}

.styled-table tbody tr:hover {
    background: #f1f7ff;
}

.styled-table tbody tr:last-child td {
    border-bottom: none;
}

.table-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e9f2ff;
    color: #0b63d9;
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.table-actions button {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #0d6efd;
    color: #fff;
    font-size: 0.9rem;
}

/* Mobile: stack rows and show labels using data-label on td */
@media (max-width: 700px) {
    .styled-table {
        min-width: 0;
        box-shadow: none;
        border-radius: 6px;
    }

    .styled-table thead {
        display: none;
    }

    .styled-table tbody tr {
        display: block;
        margin-bottom: 12px;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.04);
        border-radius: 8px;
        padding: 8px;
    }

    .styled-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px 12px;
        border-bottom: none;
    }

    .styled-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
        margin-right: 8px;
    }
}