/* ELAN SOL — feuille de styles unique (extraite des <style> inline le 10/10/2026).
   Chaque page porte une classe sur <body> : t-home, t-tarifs ou t-contact.
   Le préfixe :where(...) a une spécificité nulle : il ne modifie pas la cascade d'origine. */

:root {
    --primary-dark: #0B2447;
    --primary-blue: #19376D;
    --accent-blue: #576CBC;
    --light-blue: #A5D7E8;
    --background: #F8FAFC;
    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-light: #64748B;
    --white: #FFFFFF;
    --border: #E2E8F0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}


/* ==========================================================================
   Gabarit « accueil » : index.html et les pages générées (méthode, départements)
   ========================================================================== */

:where(.t-home) nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

:where(.t-home) nav .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 150px;
}

:where(.t-home) .logo-container {
    display: flex;
    flex-direction: column;
}

:where(.t-home) .logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

:where(.t-home) .logo span {
    color: var(--accent-blue);
}

:where(.t-home) .logo-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-medium);
    font-weight: 600;
    margin-top: -4px;
}

:where(.t-home) nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

:where(.t-home) nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

:where(.t-home) nav a:hover {
    color: var(--accent-blue);
}

:where(.t-home) .btn-nav {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

:where(.t-home) .btn-nav:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
}

:where(.t-home) .soil-strip + .hero,
:where(.t-home) .hero {
    margin-top: 0 !important;
}

:where(.t-home) .hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

:where(.t-home) .hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03));
    pointer-events: none;
}

:where(.t-home) .hero .container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

:where(.t-home) .hero-content {
    max-width: 800px;
}

:where(.t-home) .hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

:where(.t-home) .hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

:where(.t-home) .hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

:where(.t-home) .hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

:where(.t-home) .btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

:where(.t-home) .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
}

:where(.t-home) .btn-primary:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

:where(.t-home) .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

:where(.t-home) .btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

:where(.t-home) .price-banner {
    background: var(--light-blue);
    color: var(--primary-dark);
    text-align: center;
    padding: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

:where(.t-home) .price-banner .delay {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0.5rem;
}

:where(.t-home) .price-banner .price {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0.5rem;
    color: var(--primary-dark);
}

:where(.t-home) .content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

:where(.t-home) .section {
    margin-bottom: 5rem;
}

:where(.t-home) .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

:where(.t-home) .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

:where(.t-home) .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

:where(.t-home) .card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

:where(.t-home) .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-blue);
}

:where(.t-home) .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

:where(.t-home) .card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

:where(.t-home) .card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

:where(.t-home) .info-box {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-left: 4px solid var(--accent-blue);
    padding: 2rem 2.5rem;
    border-radius: 8px;
    margin: 3rem 0;
}

:where(.t-home) .info-box h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

:where(.t-home) .info-box p {
    color: var(--text-dark);
    line-height: 1.8;
}

:where(.t-home) .info-box a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}

:where(.t-home) .info-box a:hover {
    text-decoration: underline;
}

:where(.t-home) .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
    max-width: 900px;
}

:where(.t-home) .image-grid img {
    width: 100%;
    height: 200px;
    object-position: center center;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

:where(.t-home) .contact-section {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

:where(.t-home) .contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

:where(.t-home) .contact-item {
    margin-bottom: 1.5rem;
}

:where(.t-home) .contact-item strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

:where(.t-home) .contact-item p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

:where(.t-home) footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

:where(.t-home) footer .container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

:where(.t-home) footer h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

:where(.t-home) footer p,
:where(.t-home) footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.8;
}

:where(.t-home) footer a:hover {
    color: var(--light-blue);
}

:where(.t-home) footer ul {
    list-style: none;
}

:where(.t-home) footer li {
    margin-bottom: 0.5rem;
}

:where(.t-home) .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    :where(.t-home) .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    :where(.t-home) .contact-section {
        grid-template-columns: 1fr;
    }

    :where(.t-home) footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :where(.t-home) .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        white-space: normal;
    }

    :where(.t-home) .hero-subtitle {
        font-size: 1rem;
    }

    :where(.t-home) .soil-strip + .hero,
    :where(.t-home) .hero {
        margin-top: 0 !important;
    }

    :where(.t-home) .hero {
        padding: 3rem 1.5rem;
    }

    :where(.t-home) .price-banner {
        padding: 1.5rem 1rem;
        font-size: 1rem;
    }

    :where(.t-home) .price-banner .delay {
        font-size: 3rem;
        font-weight: 800;
        color: var(--primary-dark);
        margin: 0 0.5rem;
    }

    :where(.t-home) .price-banner .price {
        font-size: 2rem;
    }

    :where(.t-home) .price-banner div {
        font-size: 0.75rem !important;
    }

    :where(.t-home) .content {
        padding: 3rem 1.5rem;
    }

    :where(.t-home) .section-title {
        font-size: 1.8rem;
    }

    :where(.t-home) .section-subtitle {
        font-size: 1rem;
    }

    :where(.t-home) .cards-grid {
        grid-template-columns: 1fr;
    }

    :where(.t-home) .image-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    :where(.t-home) .image-grid img {
        height: 180px;
    }

    :where(.t-home) .contact-section {
        padding: 2rem 1.5rem;
    }

    :where(.t-home) .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    :where(.t-home) .btn {
        width: 100%;
        justify-content: center;
    }

    :where(.t-home) nav ul {
        gap: 1rem;
        font-size: 0.8rem;
    }

    :where(.t-home) .btn-nav {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    :where(.t-home) .logo {
        font-size: 1.4rem;
    }

    :where(.t-home) .logo-subtitle {
        font-size: 0.6rem;
    }

    :where(.t-home) nav .container {
        padding: 0 1rem;
    }

    :where(.t-home) footer .container {
        grid-template-columns: 1fr;
    }

    :where(.t-home) .info-box {
        padding: 1.5rem;
    }

    :where(.t-home) .card {
        padding: 2rem 1.5rem;
    }
}

:where(.t-home) .soil-strip + section.hero {
    margin-top: 0;
}

:where(.t-home) .soil-strip {
    padding-top: 80px;
    background-color: var(--primary-dark);
}

:where(.t-home) .soil-strip {
    padding-top: 80px;
    padding-top: 80px;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    margin-bottom: 0;
    position: relative;
}

:where(.t-home) .soil-strip img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center 55%;
    display: block;
}

:where(.t-home) .hero-content h1 {
    animation: slideInLeft 1s ease-out;
}

:where(.t-home) .hero-tag {
    animation: fadeIn 1s ease-out 0.3s both;
}

:where(.t-home) .hero-subtitle {
    animation: slideInLeft 1s ease-out 0.4s both;
}

:where(.t-home) .hero-buttons {
    animation: slideInUp 1s ease-out 0.6s both;
}

:where(.t-home) .btn-primary:hover {
    animation: pulse 0.6s ease-in-out;
}

:where(.t-home) .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

:where(.t-home) .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

:where(.t-home) .price-banner {
    animation: fadeIn 1s ease-out;
}


/* ==========================================================================
   tarifs.html
   ========================================================================== */

:where(.t-tarifs) nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

:where(.t-tarifs) nav .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

:where(.t-tarifs) .logo-container {
    display: flex;
    flex-direction: column;
}

:where(.t-tarifs) .logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    text-decoration: none;
}

:where(.t-tarifs) .logo span {
    color: var(--accent-blue);
}

:where(.t-tarifs) .logo-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-medium);
    font-weight: 600;
    margin-top: -4px;
}

:where(.t-tarifs) nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

:where(.t-tarifs) nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

:where(.t-tarifs) nav a:hover {
    color: var(--accent-blue);
}

:where(.t-tarifs) .btn-nav {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

:where(.t-tarifs) .btn-nav:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
}

:where(.t-tarifs) .hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

:where(.t-tarifs) .hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

:where(.t-tarifs) .hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

:where(.t-tarifs) .content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

:where(.t-tarifs) .pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 3rem;
}

:where(.t-tarifs) .pricing-card h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

:where(.t-tarifs) .price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin: 1.5rem 0;
    letter-spacing: -0.02em;
}

:where(.t-tarifs) .price span {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 600;
}

:where(.t-tarifs) .price-details {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

:where(.t-tarifs) .features-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem;
}

:where(.t-tarifs) .features-list h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

:where(.t-tarifs) .features-list ul {
    list-style: none;
    padding: 0;
}

:where(.t-tarifs) .features-list li {
    padding: 0.8rem 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 2rem;
    border-bottom: 1px solid var(--border);
}

:where(.t-tarifs) .features-list li:last-child {
    border-bottom: none;
}

:where(.t-tarifs) .features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

:where(.t-tarifs) .btn-primary {
    background: var(--primary-dark);
    color: var(--white);
    padding: 1.2rem 3rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

:where(.t-tarifs) .btn-primary:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

:where(.t-tarifs) .info-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

:where(.t-tarifs) .info-section h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

:where(.t-tarifs) .info-section p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
}

:where(.t-tarifs) footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

:where(.t-tarifs) footer .container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

:where(.t-tarifs) footer h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

:where(.t-tarifs) footer p,
:where(.t-tarifs) footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.8;
}

:where(.t-tarifs) footer a:hover {
    color: var(--light-blue);
}

:where(.t-tarifs) footer ul {
    list-style: none;
}

:where(.t-tarifs) footer li {
    margin-bottom: 0.5rem;
}

:where(.t-tarifs) .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    :where(.t-tarifs) .hero h1 {
        font-size: 2.2rem;
    }

    :where(.t-tarifs) .hero {
        padding: 3rem 1.5rem;
    }

    :where(.t-tarifs) .content {
        padding: 3rem 1.5rem;
    }

    :where(.t-tarifs) .pricing-card {
        padding: 2rem 1.5rem;
    }

    :where(.t-tarifs) .price {
        font-size: 3rem;
    }

    :where(.t-tarifs) .features-list {
        padding: 0 1rem;
    }

    :where(.t-tarifs) .info-section {
        padding: 1.5rem;
    }

    :where(.t-tarifs) nav ul {
        gap: 1rem;
        font-size: 0.8rem;
    }

    :where(.t-tarifs) .btn-nav {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    :where(.t-tarifs) .logo {
        font-size: 1.4rem;
    }

    :where(.t-tarifs) .logo-subtitle {
        font-size: 0.6rem;
    }

    :where(.t-tarifs) nav .container {
        padding: 0 1rem;
    }

    :where(.t-tarifs) footer .container {
        grid-template-columns: 1fr;
    }

    :where(.t-tarifs) .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}


/* ==========================================================================
   contact.html
   ========================================================================== */

:where(.t-contact) nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

:where(.t-contact) nav .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

:where(.t-contact) .logo-container {
    display: flex;
    flex-direction: column;
}

:where(.t-contact) .logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    text-decoration: none;
}

:where(.t-contact) .logo span {
    color: var(--accent-blue);
}

:where(.t-contact) .logo-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-medium);
    font-weight: 600;
    margin-top: -4px;
}

:where(.t-contact) nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

:where(.t-contact) nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

:where(.t-contact) nav a:hover {
    color: var(--accent-blue);
}

:where(.t-contact) .btn-nav {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

:where(.t-contact) .btn-nav:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
}

:where(.t-contact) .hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

:where(.t-contact) .hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

:where(.t-contact) .hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

:where(.t-contact) .content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

:where(.t-contact) .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

:where(.t-contact) .contact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

:where(.t-contact) .contact-card h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

:where(.t-contact) .contact-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

:where(.t-contact) .contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

:where(.t-contact) .contact-item h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

:where(.t-contact) .contact-item p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
}

:where(.t-contact) .contact-item strong {
    color: var(--primary-dark);
    font-weight: 600;
}

:where(.t-contact) .form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

:where(.t-contact) .form-card h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

:where(.t-contact) .form-group {
    margin-bottom: 1.5rem;
}

:where(.t-contact) .form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

:where(.t-contact) .form-group input,
:where(.t-contact) .form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

:where(.t-contact) .form-group input:focus,
:where(.t-contact) .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(87, 108, 188, 0.1);
}

:where(.t-contact) .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

:where(.t-contact) .form-group textarea[rows="3"] {
    min-height: 80px;
}

:where(.t-contact) .btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

:where(.t-contact) .btn-submit:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

:where(.t-contact) .info-banner {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-left: 4px solid var(--accent-blue);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

:where(.t-contact) .info-banner h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

:where(.t-contact) .info-banner p {
    color: var(--text-dark);
    line-height: 1.7;
}

:where(.t-contact) .siege-thumbnail {
    width: 120px;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

:where(.t-contact) footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

:where(.t-contact) footer .container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

:where(.t-contact) footer h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

:where(.t-contact) footer p,
:where(.t-contact) footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.8;
}

:where(.t-contact) footer a:hover {
    color: var(--light-blue);
}

:where(.t-contact) footer ul {
    list-style: none;
}

:where(.t-contact) footer li {
    margin-bottom: 0.5rem;
}

:where(.t-contact) .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    :where(.t-contact) .hero h1 {
        font-size: 2.2rem;
    }

    :where(.t-contact) .contact-grid {
        grid-template-columns: 1fr;
    }

    :where(.t-contact) .contact-item div[style*="display: flex"] {
        flex-direction: column;
    }

    :where(.t-contact) .siege-thumbnail {
        width: 100%;
        max-width: 200px;
        margin-top: 1rem;
    }

    :where(.t-contact) nav ul {
        gap: 1rem;
        font-size: 0.8rem;
    }

    :where(.t-contact) .btn-nav {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    :where(.t-contact) .logo {
        font-size: 1.4rem;
    }

    :where(.t-contact) .logo-subtitle {
        font-size: 0.6rem;
    }

    :where(.t-contact) footer .container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Ajouts du 10/10/2026 — communs à toutes les pages
   (navigation à 5 liens, pied « Nos départements », pages générées)
   ========================================================================== */

/* Navigation à 5 liens */
.nav-home {
    text-decoration: none;
}

@media (max-width: 960px) {
    nav ul {
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    nav .container {
        flex-direction: column;
        justify-content: center;
        gap: 0.35rem;
    }

    nav ul {
        gap: 0.7rem;
    }

    nav a {
        font-size: 0.8rem;
    }

    .btn-nav {
        padding: 0.35rem 0.7rem;
    }

    .logo-container {
        align-items: center;
    }

    .logo,
    .logo-subtitle {
        line-height: 1.2;
    }
}

@media (max-width: 400px) {
    nav ul {
        gap: 0.45rem;
    }

    nav a {
        font-size: 0.74rem;
    }

    .btn-nav {
        padding: 0.3rem 0.55rem;
    }
}

/* Pied de page : liste des départements */
.footer-depts {
    max-width: 1280px;
    margin: 0 auto 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-depts h4 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.footer-depts ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.1rem;
}

.footer-depts li {
    margin-bottom: 0;
}

.footer-depts a {
    font-size: 0.8rem;
}

/* Lien de texte (pages existantes) */
.text-link {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}

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

/* Pages générées : méthode, départements, pages département */
.hero.hero-page h1 {
    font-size: 2.6rem;
    white-space: normal;
}

.hero-page .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.hero-page .hero-subtitle strong {
    color: var(--white);
}

.breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.25rem;
}

.breadcrumb a {
    color: inherit;
}

.breadcrumb a:hover {
    color: var(--white);
}

.section-tight {
    margin-bottom: 3.5rem;
}

.prose {
    max-width: 820px;
}

.prose p,
.prose li {
    color: var(--text-dark);
    line-height: 1.8;
}

.prose p + p,
.prose ul + p {
    margin-top: 1rem;
}

.prose ul {
    margin: 1rem 0 0 1.25rem;
}

.prose li + li {
    margin-top: 0.5rem;
}

.prose a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}

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

.stats-grid {
    margin-top: 0;
    margin-bottom: 2rem;
}

.stat-value {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.faq-item {
    max-width: 820px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
}

.faq-item + .faq-item {
    margin-top: 1rem;
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

.faq-item a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

.cta-block {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
}

.cta-block h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
    align-items: center;
}

.cta-phone {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.cta-phone:hover {
    color: var(--light-blue);
}

.dept-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dept-links a {
    display: inline-block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.dept-links a:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.dept-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
}

.dept-list a {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dept-list a:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.dept-list strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.05rem;
    font-weight: 700;
}

.dept-list span {
    color: var(--text-medium);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero.hero-page h1 {
        font-size: 1.7rem;
    }

    .hero-page .hero-subtitle {
        font-size: 1rem;
    }

    .section-tight {
        margin-bottom: 2.5rem;
    }

    .stat-value {
        font-size: 2.2rem;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .cta-block {
        padding: 2rem 1.25rem;
    }

    .cta-block h2 {
        font-size: 1.4rem;
    }

    .dept-list {
        grid-template-columns: 1fr;
    }
}
