.tarif-badge {
    background: #6ca6d6;
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    border-radius: 2em;
    padding: 0.55em 1.5em;
    margin-bottom: 1.2em;
    box-shadow: none;
    letter-spacing: 0.5px;
    border: 2px solid #fff;
    display: inline-block;
    text-shadow: none;
}
.tarif-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5em 0;
    width: 100%;
}
.tarif-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
    font-size: 0.85rem;
    margin-bottom: 0.65em;
    padding-left: 0.2em;
    color: #fff;
}
.tarif-steps li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 1.1em;
    margin-top: 0.1em;
}
.tarifs-card-front ul, .tarifs-card-back ul {
    padding-left: 0.7em;
    margin: 0.5em 0 0.5em 0;
    list-style-position: inside;
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.6;
}

.tarifs-card-front li, .tarifs-card-back li {
    margin-left: 0;
    padding-left: 0;
    text-indent: 0;
    line-height: 1.4;
    text-align: justify;
}
/* Variables et Styles de base */
:root {
    --primary-color: #1f3a52;
    --secondary-color: #6ca6d6;
    --accent-light: #aec1d1;
    --background-light: #f7f9fc;
    --text-dark: #1f3a52;
    --text-light: #dcdbca;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
}

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

.logo h1 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-menu a:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em;
}

.menu-toggle span {
    display: block;
    width: 32px;
    height: 4px;
    background: var(--text-light);
    margin: 7px 0;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 1.2em;
        top: 1.2em;
        z-index: 1100;
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0.5em 0.7em;
    }
    .menu-toggle span {
        width: 32px;
        height: 4px;
        background: var(--text-light);
        margin: 7px 0;
        border-radius: 2px;
        transition: 0.3s;
        display: block;
    }
}

/* Section Héro */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #37658a 100%);
    color: var(--text-light);
    padding: 120px 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* align items to the top so the image lines up with the top of the bio */
        flex: 1 1 50%;
    padding: 0 20px;
}

.hero-content {
    flex: 1;
    text-align: left;
    color: var(--text-light);
}

.hero-image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: auto;
    align-self: flex-end; /* align the image container to the bottom of the row */
}

/* Rounded framed image (larger) */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    width: 100%;
    max-width: 360px;
    border-radius: var(--border-radius);
    overflow: hidden; /* clip the image to rounded corners */
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    border: 4px solid rgba(255,255,255,0.06);
    background-color: rgba(255,255,255,0.03);
    flex-shrink: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center top;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: flex-start;
}

.hero-description {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
    flex: 1;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.8s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.hero-content .subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.service-availability {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin: 0 auto 1.5rem auto;
    opacity: 0.98;
    text-align: center;
    font-weight: 700;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #37658a;
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Section Services */
.services {
    padding: 80px 20px;
    background-color: #f7f9fc;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #e2f2ff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(29, 29, 29, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Section Tarifs */
.tarifs {
    padding: 80px 20px;
    background-color: var(--text-light);
}

.tarifs h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1f3a52;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2.5rem;
    justify-items: stretch;
    align-items: stretch;
    width: 100%;
}


.tarifs-card {
    background: #e2f2ff;
    perspective: 1200px;
    border-radius: 22px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 420px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(30,60,120,0.18);
    transition: box-shadow 0.35s, transform 0.35s;
}

.tarifs-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.1s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.tarifs-card-front, .tarifs-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    border-top: 4px solid var(--accent-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e2f2ff;
    padding: 2.2rem 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.tarifs-card-front p {
    color: var(--primary-color);
}

.tarifs-card-front {
    z-index: 2;
}

.tarifs-card-back {
    transform: rotateY(180deg);
    background: var(--primary-color);
    color: #fff;
    font-size: 1.05rem;
    justify-content: flex-start;
    align-items: flex-start;
    border-top: 4px solid var(--accent-light);
    padding: 1.5rem 1.2rem 1.5rem 1.2rem;
    text-align: left;
    overflow-y: auto;
}

.tarifs-card:hover {
    box-shadow: 0 16px 40px rgba(30,60,120,0.18);
    transform: translateY(-6px) scale(1.02);
}

.tarifs-card-back .tarif-price {
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 1.35rem;
    margin-bottom: 0.7em;
    color: var(--accent-light);
    background: rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 0.4em 1em;
    box-shadow: 0 2px 8px rgba(30,60,120,0.10);
}
.tarifs-card-back ul {
    margin-top: 0.7em;
    padding-left: 1.2em;
    font-size: 1.02rem;
    color: #fff;
    line-height: 1.7;
    list-style: disc inside;
}

.tarifs-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tarifs-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tarifs-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Section Contact */
.contact {
    padding: 80px 20px;
    background: var(--primary-color);
    color: var(--text-light);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    justify-items: stretch;
    align-items: stretch;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(30,60,120,0.10);
    padding: 2.2rem 2rem;
    width: 100%;
    max-width: none;
    margin: 0;
    flex: 1 1 50%;
    min-width: 0;
    width: 100%;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.7rem;
}

.info-item i {
    font-size: 2.3rem;
    color: var(--text-light);
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(30,60,120,0.12));
}

.info-item h4 {
    margin-bottom: 0.2rem;
    font-size: 1.08rem;
    color: var(--accent-light);
    font-weight: 600;
}

.info-item a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.info-item a[href*="maps.app"] {
    color: #fff !important;
    text-decoration: underline;
    transition: var(--transition);
}


.info-item a:hover {
    color: var(--accent-light);
}

.info-item a[href*="maps.app"]:hover {
    color: var(--accent-light) !important;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: none;
    margin: 0;
        background: rgba(255,255,255,0.08);
        border-radius: 16px;
        box-shadow: 0 4px 18px rgba(30,60,120,0.10);
        padding: 2.2rem 2rem;
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
}
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-info,
    .contact-form {
        max-width: 100%;
        margin: 0 auto;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 8px 32px rgba(30,60,120,0.13);
        z-index: 1000;
        padding: 1.2em 0;
        border-radius: 0 0 12px 12px;
    }
    .nav-menu.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1100;
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0.5em 0.7em;
    }
    .menu-toggle span {
        width: 32px;
        height: 4px;
        background: var(--text-light);
        margin: 7px 0;
        border-radius: 2px;
        transition: 0.3s;
        display: block;
    }
}

.contact-message {
    margin-bottom: 1.5rem;
    font-size: 1.08rem;
    color: var(--text-light);
    line-height: 1.7;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.form-group {
        max-width: unset;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.08rem;
    background-color: #f7f9fc;
    color: var(--text-dark);
    transition: var(--transition);
    margin-top: 0.2rem;
    box-shadow: 0 2px 8px rgba(60, 80, 120, 0.07);
    width: 100%;
    max-width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(125, 129, 214, 0.3);
}

.contact-form button {
    align-self: center;
    margin-top: 1.2rem;
    font-size: 1.08rem;
    padding: 14px 38px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(60, 80, 120, 0.09);
}

/* Footer */
.footer {
    background-color: #37658a;
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: var(--transition);
    display: inline-block;
}

.social-link:hover {
    color: var(--text-light);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
        .tarifs-grid {
            grid-template-columns: 1fr;
        }
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--primary-color);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        padding: 1rem;
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* On small screens, stack hero content vertically */
    .hero .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image img {
        max-width: 100%;
        border-radius: var(--border-radius);
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    .services h2,
    .contact h2 {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .services h2,
    .contact h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 60px 20px;
        min-height: 400px;
    }
}

@media (max-width: 700px) {
    .hero .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-content-wrapper {
        width: 100%;
        margin-bottom: 2.2em;
    }
    .hero-image {
        margin-left: auto;
        margin-right: auto;
        margin-top: 1.5em;
        align-self: center;
        display: flex;
        justify-content: center;
    }
}