/* ===== BOUTONS ===== */
.btn {
    background-color: var(--clr-yellowgreen);
    border: 1px solid var(--clr-yellowgreen);
    color: #000;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    display: inline-block;
    margin-top: auto;
}

.btn:hover {
    background-color: var(--clr-green);
    color: #fff;
}

/* ===== ALERTES ===== */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-align: center;
}

.alert--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--clr-white);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-block: 1rem;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== NAVIGATION ===== */
.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: max(4vw, 1rem);
}

.nav__link {
    text-decoration: none;
}

.nav__link:hover {
    text-decoration: underline;
}

/* Menu mobile */
@media (max-width: 768px) {
    .nav__list {
        display: none;
        flex-direction: column;
        gap: 1.5rem;
        position: absolute;
        top: 0;
        right: 0;
        background-color: rgba(51, 51, 51, 0.6);
        width: 80%;
        height: 100vh;
        padding: 2rem 1rem;
        justify-content: center;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 10px 0 0 10px;
    }

    .nav__item {
        flex: 0;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .nav__link {
        color: var(--clr-yellowgreen);
        text-decoration: none;
        font-size: 1.4rem;
        padding: 1rem 2rem; 
        border-radius: 5px;
        transition: all 0.3s ease;
        background-color: rgba(51, 51, 51, 0.5);
        width: 70%;
        max-width: 300px;
    }

    .nav__link:hover,
    .nav__link:focus {
        background-color: rgba(255, 255, 255, 0.3); 
        color: var(--clr-green);
        text-decoration: underline;
        transform: scale(1.05);
    }

    .nav__link--active {
        background-color: var(--red);
        color: white;
    }

    .nav__list--open {
        display: flex;
    }
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
}

.hamburger__bar {
    width: 25px;
    height: 3px;
    background-color: black;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger--active .hamburger__bar:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 8px;
}

.hamburger--active .hamburger__bar:nth-child(2) {
    opacity: 0;
}

.hamburger--active .hamburger__bar:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -8px;
}

@media (width < 768px) {
    .hamburger {
        display: flex;
    }
}

/* ===== CARTES DE SERVICE ===== */
.service-card {
    background: var(--clr-white);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-green), var(--clr-yellowgreen));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--clr-yellowgreen);
}

/* Conteneur d'icônes */
.service-card__icon-container {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--clr-green) 0%, var(--clr-yellowgreen) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover .service-card__icon-container {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Icônes */
.service-card__icon {
    width: 45px;
    height: 45px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

/* Titres des cartes */
.service-card__title {
    font-size: 1.5rem;
    color: var(--clr-green);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

/* Descriptions des cartes */
.service-card__description {
    color: var(--clr-txtlight);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Badges pour spécialités */
.service-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--clr-yellowgreen);
    color: var(--clr-txt);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== BOUTONS DE SERVICE ===== */
.service-card .btn {
    background: linear-gradient(135deg, var(--clr-yellowgreen) 0%, hsl(70, 70%, 60%) 100%);
    border: none;
    color: var(--clr-txt);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: auto;
}

.service-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--clr-green) 0%, hsl(158, 39%, 30%) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card .btn:hover {
    color: var(--clr-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card .btn:hover::before {
    opacity: 1;
}

.service-card .btn::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-card .btn:hover::after {
    transform: translateX(5px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.service-card__list li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
    color: var(--clr-txtlight);
    font-size: 0.95rem;
}

.service-card__list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--clr-yellowgreen);
    font-weight: bold;
}

/* Ajuster l'espacement */
.service-card .service-card__list + .btn {
    margin-top: auto;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #333;
    padding: 1rem 0;
}

.breadcrumb__list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb__link {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb__link:hover {
    color: var(--clr-yellowgreen);
}

.breadcrumb__item:not(:last-child)::after {
    content: ">";
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb__item:last-child {
    color: #666;
    font-weight: bold;
}

/* ===== HELPBAR ===== */
.helpbar {
    display: flex;
    border: 1px solid var(--clr-whitehr);
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.helpbar__message {
    font-size: 14px;
    flex: 1;
    margin-right: 10px;
}

.helpbar__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.helpbar__action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (width < 768px){
    .helpbar__message {
        text-align: center;
        font-size: 13px;
    }
    
    .helpbar__actions {
        justify-content: center; 
        width: 100%; 
    }
}

/* ===== IMAGES DESIGN ===== */
.image-design {
    margin: 0 auto 20px auto;
    max-width: 100%;
    text-align: center;
}

.image-design__caption {
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    color: #555;
    font-size: 0.9em;
}