/* ===========================================
   CNS - Styles Principaux
   =========================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===========================================
   HEADER
   =========================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #7EBB5340;
    border-bottom: 1px solid #e0e0e0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo img {
    height: 60px;
    width: auto;
}

.btn-insured {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: #639241;
    color: #000;
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    font-weight: 400;
    font-size: 1rem;
    cursor: default;
    border: none;
    outline: none;
}

.btn-insured svg {
    width: 18px;
    height: 18px;
    color: #000;
}

/* ===========================================
   BREADCRUMB
   =========================================== */
.breadcrumb {
    padding: 0.8rem 1.5rem;
    background-color: #7ebb5326;
    font-size: 0.85rem;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: #177289;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.main-wrapper {
    position: relative;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #666;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-info svg {
    width: 14px;
    height: 14px;
    color: #639241;
    stroke: #639241;
}

/* ===========================================
   INFO CARD
   =========================================== */
.info-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.intro-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #000;
    margin-bottom: 1.5rem;
}

/* ===========================================
   ALERT BOX
   =========================================== */
.alert-box {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background-color: #FFF9E6;
    border-left: 4px solid #F5A623;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.alert-box-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #F5A623;
}

.alert-box-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
}

.alert-box-content strong {
    color: #000;
}

/* ===========================================
   CTA BUTTON
   =========================================== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #639241;
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%;
    text-align: center;
}

.btn-cta:hover {
    background-color: #527a35;
}

.btn-cta:active {
    transform: scale(0.98);
}

/* ===========================================
   SECTION ARTICLE
   =========================================== */
.section-article {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 0 1.5rem 1.5rem;
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.article-date {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

.article-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
}

/* ===========================================
   SECTION MON ESPACE ASSURÉ
   =========================================== */
.section-space {
    padding: 3rem 0;
}

.section-space .container {
    max-width: 800px;
}

/* Wrapper pour côte à côte */
.space-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.space-text {
    flex: 1;
}

.section-space .space-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-space .space-icon {
    width: 45px;
    height: 45px;
}

.section-space .space-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.section-space .space-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #000;
    margin-bottom: 1rem;
}

.section-space .space-content p strong {
    color: #000;
}

/* Image digital */
.space-image {
    width: 100%;
}

.space-image img {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.check-list {
    list-style: none;
    margin-top: 1.5rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.check-list li img {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    margin-top: 2px;
}

.check-list li span {
    font-size: 1rem;
    color: #000;
    line-height: 1.5;
}

/* ===========================================
   SECTION FAQ - Rectangles séparés
   =========================================== */
.section-faq {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.section-faq .container {
    max-width: 800px;
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.faq-icon {
    width: 45px;
    height: 45px;
}

.faq-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item.active {
    border-color: #ccc;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question span {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    flex: 1;
    padding-right: 1rem;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: #000;
    padding: 0 1.5rem 1.2rem;
}

.faq-answer .check-list {
    padding: 0 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.faq-answer .check-list li {
    margin-bottom: 1.2rem;
}

/* ===========================================
   SECTION CONTACT
   =========================================== */
.section-contact {
    padding: 3rem 0;
}

.section-contact .container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
}

/* Contact intro - image + texte côte à côte sur PC */
.contact-intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Image Contact */
.contact-image {
    width: 100%;
}

.contact-image img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header Contactez-nous */
.contact-section-header {
    flex: 1;
}
.contact-section-header {
    margin-bottom: 1rem;
}

.contact-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-section-icon {
    width: 45px;
    height: 45px;
}

.contact-section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.contact-section-header p {
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
}

.contact-section-header p strong {
    color: #000;
}

/* Wrapper des cartes contact */
.contact-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Carte contact */
.contact-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Carré vert arrondi avec icône blanche */
.contact-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: #639241;
    border-bottom-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

.contact-icon-wrapper img {
    width: 2.5rem;
    height: 2.5rem;
    filter: invert(1);
}

.contact-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
}

.contact-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
    margin-bottom: 0.5rem;
}

.contact-highlight {
    font-weight: 700;
    color: #000 !important;
}

.contact-note {
    font-size: 1rem !important;
    color: #666 !important;
    font-style: italic;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    margin-top: 2rem;
    padding: 0 1rem;
}

.footer-main {
    background-color: #7ebb5326;
    border-radius: 30px 30px 0 0;
    padding: 2.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Logo footer - centré, plus grand */
.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    width: 120px;
    height: auto;
}

/* Réseaux sociaux - carrés verts encore plus petits */
.footer-social {
    display: flex;
    gap: 0.6rem;
}

.social-icon-green {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    background-color: #639241;
    border-bottom-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    color: #fff;
    transition: background-color 0.2s ease;
}

.social-icon-green:hover {
    background-color: #527a35;
}

.social-icon-green svg {
    width: 0.9rem;
    height: 0.9rem;
}

/* Menus footer */
.footer-menus {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-menu-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-menu-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-menu-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
}

.footer-menu-btn span {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

.footer-menu-btn svg {
    width: 18px;
    height: 18px;
    color: #000;
}

/* Liens footer */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 1rem;
    color: #000;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #639241;
}

/* ===========================================
   RESPONSIVE - Tablet & Desktop
   =========================================== */
@media (min-width: 768px) {
    .header {
        padding: 1rem 3rem;
    }
    
    .breadcrumb {
        padding: 0.8rem 3rem;
    }
    
    .main-content {
        padding: 3rem 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .meta-info {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 2rem;
    }
    
    .btn-cta {
        width: auto;
        min-width: 280px;
    }
    
    /* Article - côte à côte */
    .article-card {
        flex-direction: row;
    }
    
    .article-image {
        flex: 0 0 300px;
    }
    
    .article-image img {
        height: 100%;
        min-height: 250px;
    }
    
    .article-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Contact intro côte à côte */
    .contact-intro {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
    
    .contact-image {
        flex: 0 0 250px;
    }
    
    .contact-image img {
        max-width: 100%;
    }
    
    /* Espace assuré côte à côte - texte à gauche, image à droite */
    .space-content-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    .space-text {
        flex: 1;
    }
    
    .space-image {
        flex: 0 0 300px;
    }
    
    .space-image img {
        max-width: 100%;
    }
    
    /* Contact cards côte à côte */
    .contact-cards-wrapper {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .contact-card {
        flex: 1;
    }
}

@media (min-width: 1024px) {
    .header {
        padding: 1.2rem 5rem;
    }
    
    .breadcrumb {
        padding: 1rem 5rem;
    }
    
    /* Main content plus large sur desktop */
    .main-content {
        max-width: 900px;
        padding: 3rem 2rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    /* Article image plus grande */
    .article-image {
        flex: 0 0 400px;
    }
    
    /* Sections avec max-width */
    .section-space .container,
    .section-faq .container,
    .section-contact .container {
        max-width: 900px;
    }
    
    /* Footer menus en ligne sur grand écran */
    .footer-menus {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
        max-width: 600px;
    }
    
    .footer-menu-item {
        border: none;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .footer-menu-item:last-child {
        border-right: none;
    }
    
    .footer-menu-item:first-child {
        border-top: none;
    }
    
    .footer-menu-btn {
        padding: 0.8rem 1.2rem;
    }
    
    /* Footer links en ligne */
    .footer-links {
        flex-direction: row;
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .header {
        padding: 1.2rem 8rem;
    }
    
    .breadcrumb {
        padding: 1rem 8rem;
    }
    
    .main-content {
        max-width: 1000px;
    }
    
    .section-article .container,
    .section-space .container,
    .section-faq .container,
    .section-contact .container,
    .section-digital .container {
        max-width: 1000px;
    }
    
    /* Contact cards 3 colonnes */
    .contact-cards-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}