/*
Theme Name: ADEA Theme
Theme URI: https://adea.fr
Author: ADEA
Author URI: https://adea.fr
Description: Thème custom pour le site vitrine ADEA — assistante administrative indépendante.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: adea-theme
*/

/* ==============================
   RESET & BASE
============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    min-height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2e4842;
    background: #fff;
}

a { text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ==============================
   HEADER
============================== */
.main-header {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #CFCAB9;
    text-decoration: none;
    letter-spacing: -1px;
    padding-left: 5px;
}

.logo img {
    height: 70px;
    width: auto;
}

.logo-accent { color: #506A65; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.main-nav a.nav-link {
    text-decoration: none;
    color: #506A65;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.main-nav a.nav-link:hover { color: #b7d1cb; }

.main-nav a.btn-contact {
    text-decoration: none;
    background-color: #506A65;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}

.main-nav a.btn-contact:hover {
    transform: scale(1.05);
    background-color: #b7d1cb;
}

/* Burger menu (mobile) */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #506A65;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==============================
   PAGE HERO / BANNER
============================== */
.page-hero {
    text-align: center;
    padding: 60px 40px 40px;
    background: linear-gradient(135deg, #b7d1cb 0%, #2e4842 100%);
    color: white;
    min-height: 93px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 12px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin: 0;
}

/* ==============================
   CAROUSEL
============================== */
.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-legend {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(80,106,101,0.55);
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.carousel-legend strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
}

.carousel-legend span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-size: 1.2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.75);
    border: none;
    color: #2e4842;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.4);
    transition: background-color 0.3s;
}

.carousel-dot.active { background: #fff; }

/* ==============================
   SERVICES PREVIEW (Accueil)
============================== */
.services-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    height: 420px;
    padding: 40px;
    background-color: #ffffff;
}

.service-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: flex-grow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    flex-shrink: 0;
    min-width: 70px;
}

.service-card.active { flex-grow: 3; }

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-card.active img { transform: scale(1.05); }

.service-card-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 130px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.service-card.active .service-card-gradient { opacity: 0; }

.service-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card.active .service-card-overlay { opacity: 1; }

.service-card-title-bar {
    position: absolute;
    bottom: 16px; left: 16px; right: 16px;
    z-index: 3;
    transition: opacity 0.25s ease;
}

.service-card.active .service-card-title-bar { opacity: 0; }

.service-card-title-bar p {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.service-card.active .service-card-content {
    opacity: 1;
    transform: translateY(0);
}

.service-card-content h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 16px;
    border-bottom: 1.5px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.service-card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.service-card-content ul li {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card-content ul li::before {
    content: "— ";
    opacity: 0.6;
}

.service-card-content a {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.88rem;
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 2px;
    width: fit-content;
}

/* ==============================
   PAGE SERVICES (détail)
============================== */
.service-section {
    padding: 60px 40px;
    background-color: #ffffff;
}

.service-section.alt { background-color: #f8f9fa; }

.service-inner { max-width: 1100px; margin: 0 auto; }

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 2px solid;
}

.service-icon {
    font-size: 1.8rem;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0;
}

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

.prestation-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.prestation-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.prestation-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2e4842;
    margin: 0 0 10px;
}

.prestation-card p {
    font-size: 0.9rem;
    color: #728C88;
    line-height: 1.6;
    margin: 0;
}

/* ==============================
   PAGE À PROPOS
============================== */
.about-content {
    padding: 80px 0;
    background-color: #fff;
}

.grid-about {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.subtitle {
    color: #506A65;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.text-block h2 {
    font-size: 2.2rem;
    color: #2E4842;
    margin: 10px 0 20px;
}

.text-block p {
    color: #728C88;
    line-height: 1.7;
    margin-bottom: 15px;
}

.values-card {
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.value-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.value-item:last-child { margin-bottom: 0; }

.value-item .icon { font-size: 1.5rem; }

.value-item p {
    color: #2E4842;
    font-weight: 500;
    margin: 0;
}

.why-independent {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.benefit-box h2 {
    text-align: center;
    color: #2E4842;
    margin-bottom: 50px;
    font-size: 2rem;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.benefit-card:hover { transform: scale(1.04); }

.benefit-card h3 {
    color: #506A65;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #728C88;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==============================
   PAGE CONTACT
============================== */
.contact-wrapper {
    padding: 60px 40px;
    background-color: #CFCAB9;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 48px;
    width: 100%;
    max-width: 700px;
}

.contact-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2e4842;
    margin: 0 0 8px;
}

.contact-card .subtitle-form {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 32px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
    margin-bottom: 20px;
}

.form-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2e4842;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #2e4842;
    outline: none;
    width: 100%;
    background-color: #CFCAB9;
    font-family: inherit;
}

.form-field textarea {
    resize: vertical;
}

#precis-field { display: none; }

.form-submit {
    margin-top: 24px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #b7d1cb 0%, #2e4842 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.form-submit:hover { opacity: 0.9; }

.alert-success {
    background: #F9F8F0;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: none;
}

.alert-error {
    background: #F9F8F0;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: none;
}

/* ==============================
   CTA / FOOTER
============================== */
.cta-section {
    text-align: center;
    padding: 70px 40px;
    background: linear-gradient(135deg, #b7d1cb 0%, #2e4842 100%);
    color: white;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.cta-section p {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0 0 28px;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #2e4842;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.cta-btn:hover { transform: scale(1.04); }

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
    .main-nav { display: none; flex-direction: column; gap: 16px; }
    .main-nav.open {
        display: flex;
        position: absolute;
        top: 90px; left: 0; right: 0;
        background: #fff;
        padding: 20px 24px;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    }
    .burger { display: flex; }

    .page-hero h1 { font-size: 2rem; }
    .grid-about, .benefit-grid { grid-template-columns: 1fr; }
    .services-grid { flex-direction: column; height: auto; padding: 20px; }
    .service-card { height: 280px; flex: none !important; }
    .form-row { flex-direction: column; }
    .contact-card { padding: 28px 20px; }
}
/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background-color: #1a2e28; /* teal foncé de la charte ADEA */
    color: #e8e8e8;
    padding: 24px 20px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-copyright {
    margin: 0;
    font-size: 0.9rem;
    color: #c8b99a; /* beige de la charte ADEA */
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #e8e8e8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #3a7d67; /* teal clair au survol */
    text-decoration: underline;
}

/* Sur mobile : centrer et empiler */
@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}