/* ===== HERO ===== */
.hero-marketing {
    background: url("images/rr.jpg") center/cover no-repeat;
    position: relative;
    height: 50vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-marketing::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.hero-marketing .hero-text {
    position: relative;
    text-align: center;
    max-width: 700px;
}
.hero-marketing h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.hero-marketing p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.btn-primary {
    background: #00bfff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}
.btn-primary:hover {
    background: #0073e6;
}

/* ===== A PROPOS ===== */
.apropos-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 80px 5%;
}
.apropos-text {
    flex: 1;
    min-width: 300px;
}
.apropos-text h2 {
    color: #0073e6;
    margin-bottom: 15px;
}
.apropos-text h3 {
    margin-top: 25px;
}
.apropos-image {
    flex: 1;
    text-align: center;
}
.apropos-image img {
    width: 90%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ===== OBJECTIFS ===== */
.objectifs {
    background: #f8f9fb;
    padding: 70px 5%;
    text-align: center;
}
.objectifs h2 {
    color: #0073e6;
    margin-bottom: 40px;
}
.apropos-text h3 {
    color: #0073e6;
    margin-bottom: 40px;
}
.services h2 {
    color: #0073e6;
    margin-bottom: 40px;
}
.services h3 {
    color: #0073e6;
}
.plans h2{
    color: #0073e6;
}
.objectifs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.objectif {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.objectif i {
    font-size: 1.8rem;
    color: #0073e6;
    margin-bottom: 10px;
}

/* ===== SERVICES ===== */
.services {
    padding: 80px 5%;
    text-align: center;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.service-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
}

/* ===== PLANS ===== */
.plans {
    background: #f1f8ff;
    padding: 70px 5%;
    text-align: center;
}
.plan-card {
    display: inline-block;
    background: white;
    padding: 20px 40px;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.3s;
}
.plan-card:hover {
    background: #0073e6;
    color: white;
}

/* ===== CTA ===== */
.cta-button {
    display: inline-block;
    margin: 60px auto;
    background: #0073e6;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.cta-button:hover {
    background: #0073e6;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-marketing {
        height: 60vh;
        padding: 20px;
    }
    .hero-marketing h1 {
        font-size: 1.8rem;
    }
}

body { font-family: system-ui, Arial, sans-serif; margin: 20px; background:#f4f6f8; color:#222; }

.plans-container {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
    margin-bottom: 20px;
}

.plan-card {
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#0077b6;
    color:white;
    padding:18px 22px;
    border-radius:12px;
    cursor:pointer;
    width:260px;
    box-shadow:0 6px 14px rgba(0,0,0,0.12);
    transition: transform .18s ease, background .18s ease;
}
.plan-card:hover { transform: translateY(-4px); background:#00a6d1; }
.plan-title { font-weight:700; }
.toggle-icon { font-size:1.4rem; margin-left:10px; transition: transform .25s ease; }

/* services-container is always flex but collapsed via max-height so animation works */
.services-container {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
    opacity:0;
    transform:translateY(18px);
    max-height:0;
    overflow:hidden;
    padding:0 20px;
    background:#f9fafb;
    border-radius:14px;
    margin: 10px auto;
    width:95%;
    box-shadow:0 8px 20px rgba(0,0,0,0.05);
    transition: opacity .45s ease, transform .45s ease, max-height .6s ease, padding .3s ease;
    pointer-events:none; /* éviter interactions quand fermé */
}

.services-container.active {
    opacity:1;
    transform:translateY(0);
    max-height:1200px;
    padding:20px;
    pointer-events:auto;
    animation: fadeSlideIn .45s ease;
}

@keyframes fadeSlideIn {
    from { opacity:0; transform:translateY(18px); }
    to { opacity:1; transform:translateY(0); }
}

.service-box {
    background:white;
    border-radius:12px;
    padding:18px;
    width:260px;           /* même largeur que .plan-card pour alignement identique */
    box-shadow:0 6px 14px rgba(0,0,0,0.06);
    text-align:center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-box:hover { transform: translateY(-6px); box-shadow:0 12px 30px rgba(0,0,0,0.08); }

.service-box h1 {
    color:#0077b6;
    font-size:1.15rem;
    margin:0 0 10px;
    padding-bottom:6px;
    border-bottom:2px solid #e6f7ff;
}
.service-box ul { list-style:none; padding:0; margin:10px 0 0; line-height:1.6; font-size:0.98rem; }

/* Responsive */
@media (max-width:1000px) {
    .plan-card, .service-box { width:45%; }
}
@media (max-width:600px) {
    .plan-card, .service-box { width:100%; }
}

/* petit style pour le bouton contact */
.cta-button { display:inline-block; margin:28px auto; background:#0077b6; color:#fff; padding:12px 20px; border-radius:8px; text-decoration:none; font-weight:700; }