/* ==========================================
   Variables CSS
   ========================================== */

:root {
    /* Couleurs principales - Template 1 */
    --color-primary: #1a1a1a;
    --color-primary-light: #333333;
    --color-secondary: #8b7355;
    --color-accent: #8b7355;
    --color-accent-dark: #6d5a44;

    /* Couleurs neutres */
    --color-white: #ffffff;
    --color-off-white: #faf8f3;
    --color-light-gray: #e8e0d5;
    --color-gray: #666666;
    --color-dark-gray: #333333;
    --color-black: #1a1a1a;

    /* Couleurs supplémentaires du template 1 */
    --color-cream: #faf8f3;
    --color-beige: #f5f0e8;
    --color-beige-dark: #e8e0d5;
    --color-gray-light: #999999;

    /* Typographie */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Lato', sans-serif;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Breakpoints (mobile-first) */
    --bp-tablet: 768px;
    --bp-desktop: 1024px;
    --bp-wide: 1440px;
    --header-height: 72px;
}

/* ==========================================
   Reset & Base
   ========================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: var(--header-height);
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-dark-gray);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ==========================================
   Container
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.container-fluid {
    max-width: 100%;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ==========================================
   Loader
   ========================================== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    width: 200px;
}

.loader-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================
   Header
   ========================================== */

.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-beige-dark);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 0;
    min-width: 0;
    position: relative;
    z-index: 1002;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

.logo-image {
    height: 48px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo h1,
.logo .logo-title {
    font-family: var(--font-primary);
    font-size: clamp(0.8rem, 3.2vw, 1.25rem);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.logo .logo-title {
    display: block;
}

.logo .subtitle {
    display: none;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    color: var(--color-gray);
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Panneau navigation mobile (320+) */
.nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), visibility var(--transition-base), opacity var(--transition-base);
    z-index: 1001;
}

.nav.is-open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    list-style: none;
    width: 100%;
}

.nav-link {
    font-size: 1.125rem;
    color: var(--color-dark-gray);
    font-weight: 400;
    position: relative;
    display: inline-block;
    padding: 0.25rem 0;
    min-height: 44px;
    line-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-accent);
}

.nav-backdrop {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    border: none;
    padding: 0;
    margin: 0;
    background-color: rgba(26, 26, 26, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    z-index: 1000;
    cursor: pointer;
}

.nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-toggle {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    z-index: 1002;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-black);
    transition: var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    padding: calc(var(--header-height) + 2.5rem) 0 2.5rem;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-beige) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-image {
    order: -1;
    text-align: center;
}

.profile-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-black);
    margin-top: 0;
}

.hero-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-gray);
    text-align: justify;
}

.hero-description p {
    margin-bottom: 1rem;
}

.hero-description .text-highlight {
    font-weight: 700;
    color: var(--color-accent-dark);
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-locations {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 1rem;
    color: var(--color-accent-dark);
    font-weight: 600;
}

.hero-locations .separator {
    display: none;
}

.location {
    color: var(--color-accent-dark);
}

.separator {
    color: var(--color-gray-light);
}

.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 15px 40px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 2px;
    align-self: stretch;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    box-shadow: 0 5px 20px rgba(139, 115, 85, 0.3);
}

/* ==========================================
   Stats Section
   ========================================== */

.stats {
    background-color: var(--color-beige-dark);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: var(--color-primary);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-gray);
}

/* ==========================================
   Section Styles
   ========================================== */

.section-intro {
    margin-bottom: var(--spacing-lg);
}

.section-intro.centered {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent-dark);
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    max-width: 700px;
}

.section-intro.centered .section-title {
    margin: 0 auto;
}

/* ==========================================
   Présentation Section
   ========================================== */

.presentation {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-off-white);
}

.presentation .section-intro .section-title {
    max-width: none;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.presentation-timeline {
    position: relative;
    padding-left: 2rem;
}

.presentation-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-secondary), transparent);
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    border: 2px solid var(--color-off-white);
}

.timeline-year {
    font-size: 0.875rem;
    color: var(--color-accent-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--color-gray);
}

.presentation-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.text-block p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: var(--color-dark-gray);
    text-align: justify;
}

.presentation-text .text-block:first-child .parcours-first {
    text-align: justify;
}

.line-justify {
    display: block;
    text-align: justify;
    text-align-last: justify;
}

.highlight-block {
    background-color: var(--color-beige);
    color: var(--color-black);
    padding: 2rem;
    border-left: 4px solid var(--color-accent);
}

.highlight-block p {
    color: var(--color-black);
    font-weight: 500;
}

.text-emphasis {
    font-weight: 500;
    color: var(--color-primary);
}

.text-brown {
    color: var(--color-secondary);
    font-weight: 600;
}

/* ==========================================
   Expertise Section
   ========================================== */

.expertise {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.expertise-card {
    position: relative;
    background-color: var(--color-off-white);
    padding: 2rem 1.5rem;
    transition: all var(--transition-base);
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: var(--color-white);
}

.card-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(212, 165, 116, 0.4);
    line-height: 1;
    margin-bottom: 1rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.card-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-list li {
    font-size: 0.95rem;
    color: var(--color-dark-gray);
    padding-left: 1.5rem;
    position: relative;
    text-align: left;
}

.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background-color: var(--color-secondary);
    border-radius: 50%;
}

/* ==========================================
   Fonctionnement Section
   ========================================== */

.fonctionnement {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-off-white);
}

.fonctionnement-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.fonctionnement-timeline::before {
    display: none;
}

.timeline-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--color-white);
    border: 3px solid var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    position: relative;
    z-index: 2;
    transition: all var(--transition-base);
}

.timeline-step:hover .step-number {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: scale(1.1);
}

.step-content h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.step-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-gray);
}

/* ==========================================
   Contact Section
   ========================================== */

.contact {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    overflow-x: clip;
}

.contact .container {
    min-width: 0;
    max-width: 100%;
}

.contact .section-label,
.contact .section-title {
    color: var(--color-white);
}

.contact .section-title {
    font-size: 1.75rem;
}

.contact .section-label {
    color: var(--color-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    min-width: 0;
}

.contact-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    text-align: left;
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-block {
    display: flex;
    gap: 1rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--color-secondary);
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-content h4 {
    font-size: 1.125rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.info-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.contact .info-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-base);
}

.contact .info-link:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.availability {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-left: 3px solid var(--color-secondary);
}

.availability h4 {
    font-size: 1.125rem;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.availability p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Consentement RGPD — formulaire accueil (#contactForm) */
.contact-form-container .form-group--consent {
    position: static;
}

.contact-form-container .form-consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    min-width: 0;
}

.contact-form-container .form-consent input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--color-secondary);
    cursor: pointer;
}

.contact-form-container .form-consent input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.contact-form-container .form-consent__label {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-dark-gray);
    position: static;
    pointer-events: auto;
    cursor: pointer;
    overflow-wrap: break-word;
}

.contact-form-container .form-consent__more {
    margin: 0.5rem 0 0 1.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.contact-form-container .form-consent__more a {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

.contact-form-container .form-consent__more a:hover {
    color: var(--color-secondary);
}

.contact-form-container .form-group--consent .form-error {
    margin-left: 1.875rem;
}

/* Formulaire accueil (#contactForm) — labels flottants */
.contact-form-container {
    background-color: var(--color-white);
    padding: 2rem 1.5rem;
    border-radius: 4px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form-container .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: none;
    margin: 0;
    width: 100%;
}

.contact-form-container .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-width: 0;
}

.contact-form-container .form-group {
    position: relative;
    min-width: 0;
}

.contact-form-container .form-group input,
.contact-form-container .form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    border: 1px solid var(--color-light-gray);
    background-color: var(--color-off-white);
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-dark-gray);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.contact-form-container .form-group label:not(.form-consent__label) {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1rem;
    color: var(--color-gray);
    pointer-events: none;
    transition: all var(--transition-base);
}

.contact-form-container .form-group input:focus,
.contact-form-container .form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background-color: var(--color-white);
}

.contact-form-container .form-group input:focus-visible,
.contact-form-container .form-group textarea:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.contact-form-container .form-group input:not(:placeholder-shown) + label,
.contact-form-container .form-group textarea:not(:placeholder-shown) + label,
.contact-form-container .form-group input:focus + label,
.contact-form-container .form-group textarea:focus + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-accent-dark);
    background-color: var(--color-white);
    padding: 0 0.5rem;
}

.contact-form-container .form-group textarea {
    resize: vertical;
    min-height: 9.375rem;
}

.contact-form-container .form-error {
    color: #ef4444;
    font-size: 0.875rem;
    display: none;
    margin-top: 0.25rem;
}

.contact-form-container .form-error.show {
    display: block;
}

.contact-form-container .form-group input.error,
.contact-form-container .form-group textarea.error {
    border-color: #ef4444;
}

.contact-form-container .btn-submit {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.125rem 2.5rem;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 2px;
    border: none;
    transition: all var(--transition-base);
    align-self: stretch;
}

.contact-form-container .btn-submit span,
.contact-form-container .btn-submit svg {
    color: var(--color-white);
}

.contact-form-container .btn-submit svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    stroke: var(--color-white);
}

.contact-form-container .btn-submit:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

.contact-form-container .form-success {
    padding: 1rem;
    background-color: #d1fae5;
    color: #065f46;
    border-radius: 4px;
    display: none;
}

.contact-form-container .form-success.show {
    display: block;
}

.contact-form-container .form-success--error {
    background-color: rgba(180, 40, 40, 0.12);
    border: 1px solid rgba(180, 40, 40, 0.35);
    color: #6b1a1a;
}

.contact-form-container .form-success--error ul {
    margin: 0;
    padding-left: 1.25rem;
}

.contact-form-container .contact-form__turnstile,
.contact-form-container .cf-turnstile {
    max-width: 100%;
    overflow: hidden;
}

/* ==========================================
   Page Contact dédiée (#avocat-mauduech-pancrazi-contact-form)
   ========================================== */

#avocat-mauduech-pancrazi-contact-form.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 40rem;
    margin: 0 auto;
    width: 100%;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__group--turnstile {
    min-height: 4.0625rem;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
}

#avocat-mauduech-pancrazi-contact-form .contact-form__optional {
    font-weight: 400;
    color: var(--color-gray);
    font-size: 0.875rem;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__required {
    color: var(--color-accent-dark);
}

#avocat-mauduech-pancrazi-contact-form .contact-form__hint {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin: 0;
    line-height: 1.5;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__hint--intro {
    margin-bottom: 1.5rem;
    text-align: center;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__input,
#avocat-mauduech-pancrazi-contact-form .contact-form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-light-gray);
    background-color: var(--color-off-white);
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-dark-gray);
    border-radius: 2px;
    transition: border-color var(--transition-base), background-color var(--transition-base);
}

#avocat-mauduech-pancrazi-contact-form .contact-form__textarea {
    resize: vertical;
    min-height: 9.375rem;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__input:focus-visible,
#avocat-mauduech-pancrazi-contact-form .contact-form__textarea:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
    border-color: var(--color-secondary);
    background-color: var(--color-white);
}

#avocat-mauduech-pancrazi-contact-form .contact-form__actions {
    margin-top: 0.5rem;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__submit {
    width: 100%;
}

.contact-form__message {
    max-width: 40rem;
    margin: 0 auto 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.contact-form__message ul {
    margin: 0;
    padding-left: 1.25rem;
}

.contact-form__message--success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.contact-form__message--error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.contact-form__message--hidden {
    display: none;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__consent-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--color-secondary);
    cursor: pointer;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__consent-input:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__consent-label {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-dark-gray);
    cursor: pointer;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__consent-more {
    margin: 0.5rem 0 0 1.875rem;
    font-size: 0.875rem;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__consent-more a {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

#avocat-mauduech-pancrazi-contact-form .contact-form__consent-more a:hover {
    color: var(--color-secondary);
}

@media (min-width: 768px) {
    .contact-form-container .form-row {
        grid-template-columns: 1fr 1fr;
    }

    #avocat-mauduech-pancrazi-contact-form .contact-form__row {
        grid-template-columns: 1fr 1fr;
    }

    #avocat-mauduech-pancrazi-contact-form .contact-form__submit {
        width: auto;
    }
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.footer-column:first-child h3 {
    text-align: justify;
}

.footer-column h4 {
    font-size: 1.125rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-column:first-child p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-description {
    margin-top: 1rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.footer-column a:hover {
    color: var(--color-secondary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
}

.footer-social a:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-credit {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .nav,
    .nav-backdrop,
    .mobile-menu-toggle span {
        transition: none;
    }
}

/* ==========================================
   Back to Top
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.back-to-top:hover {
    background-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

/* ==========================================
   Pages légales (cookies, mentions, RGPD)
   ========================================== */

.page-hero {
    padding: calc(var(--header-height, 64px) + 2rem) 0 2.5rem;
    background-color: var(--color-cream);
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.page-hero__inner {
    max-width: 800px;
}

.page-hero h1 {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
    margin: 0;
}

.page-hero__subtitle {
    margin-top: 0.75rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-gray);
}

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

/* Pages internes (légales, etc.) — header compact + bandeau titre équilibré */
body.page-internal {
    --header-height: 64px;
}

body.page-internal #contenu {
    padding-top: var(--header-height);
}

body.page-internal .header-content {
    padding: 0.5rem 0;
}

body.page-internal .logo-image {
    height: 44px;
}

body.page-internal .logo .subtitle {
    display: none;
}

body.page-internal .page-hero {
    padding: clamp(2.25rem, 5vw, 3.5rem) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-beige) 100%);
    border-bottom: 1px solid var(--color-beige-dark);
}

body.page-internal .page-hero__inner {
    margin-inline: auto;
    max-width: 42rem;
}

body.page-internal .page-hero h1 {
    font-size: clamp(1.625rem, 3.5vw, 2.375rem);
    letter-spacing: -0.02em;
}

body.page-internal .page-hero h1::after {
    content: '';
    display: block;
    width: 3rem;
    height: 2px;
    margin: 1.25rem auto 0;
    background-color: var(--color-secondary);
}

body.page-internal .page-hero__subtitle {
    margin-top: 1rem;
    margin-inline: auto;
    max-width: 36rem;
    line-height: 1.5;
}

.page-hero__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
}

.page-hero__contact a {
    color: var(--color-primary);
    text-decoration: none;
}

.page-hero__contact a:hover {
    color: var(--color-secondary);
}

.page-hero__contact i {
    margin-right: 0.35rem;
    color: var(--color-secondary);
}

@media (min-width: 768px) {
    .page-hero__contact {
        flex-direction: row;
        justify-content: center;
        gap: 1.75rem;
    }
}

body.page-internal .legal-content {
    padding-top: 2.5rem;
}

.services-cta-wrap {
    margin-top: 2.5rem;
    text-align: center;
}

.legal-content {
    padding: 2.5rem 0 4rem;
}

.legal-content__intro {
    margin-bottom: 2rem;
    max-width: 65ch;
}

.legal-content__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: legal-section;
}

.legal-content__list > li {
    counter-increment: legal-section;
    margin-bottom: 2.5rem;
}

.legal-content__list > li > h2::before {
    content: counter(legal-section) ". ";
}

.legal-content__list h3 {
    margin-top: 1.5rem;
    font-size: 1.15rem;
}

.legal-content__list h4 {
    margin-top: 1.25rem;
    font-size: 1rem;
}

.legal-content__list > li > p,
.legal-content__list > li > ul {
    margin-top: 1rem;
}

.legal-content__list ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.legal-content__list ul li {
    padding-left: 0.25rem;
}

.legal-content__list ul li + li {
    margin-top: 0.35rem;
}

.legal-content__table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
}

.legal-content__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-content__table th,
.legal-content__table td {
    border: 1px solid var(--color-border, #ddd);
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.legal-content__table th {
    background-color: var(--color-bg-alt, #f5f5f5);
    font-weight: 600;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.accueil-hero__subtitle {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

/* ==========================================
   Skip link (accessibilité)
   ========================================== */

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 0.75rem 1.25rem;
    z-index: 10001;
    border-radius: 0 0 4px 4px;
    font-size: 0.9rem;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================
   Animations
   ========================================== */

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

[data-aos="fade-up"] {
    animation: fadeInUp 0.8s ease-out;
}

/* ==========================================
   Responsive Design (mobile-first)
   ========================================== */

/* 768+ — tablette */
@media (min-width: 768px) {
    :root {
        --header-height: 80px;
    }

    .header-content {
        padding: 15px 0;
    }

    .logo-image {
        height: 56px;
    }

    .logo h1,
    .logo .logo-title {
        font-size: 1.25rem;
    }

    .logo .subtitle {
        display: block;
        font-size: 0.8rem;
    }

    body.page-internal {
        --header-height: 72px;
    }

    body.page-internal .header-content {
        padding: 0.75rem 0;
    }

    body.page-internal .logo-image {
        height: 48px;
    }

    body.page-internal .logo .logo-title {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 16rem;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .nav-backdrop {
        display: none;
    }

    .nav {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        display: block;
        flex-shrink: 0;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 35px;
        width: auto;
    }

    .nav-link {
        font-size: 0.95rem;
        min-height: auto;
        line-height: inherit;
        padding: 0;
    }

    .nav-link::after {
        bottom: -5px;
    }

    .hero {
        padding: calc(var(--header-height) + 3rem) 0 3rem;
    }

    .hero-title {
        font-size: 1.625rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .btn-primary {
        width: auto;
        align-self: flex-start;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 3rem;
    }

    .fonctionnement-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .back-to-top {
        right: 2rem;
    }

    .hero-locations {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .hero-locations .separator {
        display: inline;
    }
}

/* 1024+ — desktop */
@media (min-width: 1024px) {
    :root {
        --header-height: 88px;
    }

    .header-content {
        padding: 20px 0;
    }

    .logo-image {
        height: 80px;
    }

    .logo h1,
    .logo .logo-title {
        font-size: 2rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .logo .subtitle {
        font-size: 0.875rem;
    }

    body.page-internal {
        --header-height: 76px;
    }

    body.page-internal .logo-image {
        height: 52px;
    }

    body.page-internal .logo .logo-title {
        font-size: 1.15rem;
        max-width: 18rem;
    }

    .hero {
        padding: 180px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 60px;
    }

    .hero-image {
        order: 0;
    }

    .profile-image {
        max-width: 350px;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .presentation-grid {
        grid-template-columns: 400px 1fr;
        gap: 4rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .expertise-card {
        padding: 3rem 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
    }

    .contact-form-container {
        padding: 3rem;
    }

    .fonctionnement-timeline {
        grid-template-columns: repeat(4, 1fr);
    }

    .fonctionnement-timeline::before {
        display: block;
        content: '';
        position: absolute;
        top: 40px;
        left: 12.5%;
        right: 12.5%;
        height: 2px;
        background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
        z-index: 0;
    }

    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

/* 1440+ — grands écrans */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .container {
        max-width: 1320px;
    }
}

/* ==========================================
   Page 404
   ========================================== */

.error-404__code {
    margin: 0 0 0.5rem;
    font-family: var(--font-secondary);
    font-size: clamp(3rem, 10vw, 4.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    color: var(--color-secondary);
    opacity: 0.85;
}

.error-404 {
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
    background-color: var(--color-white);
}

.error-404__inner {
    max-width: 36rem;
    margin-inline: auto;
    text-align: center;
}

.error-404__nav {
    margin: 0;
}

.error-404__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.error-404__links li {
    margin: 0;
}

.error-404__links .btn-primary {
    width: auto;
    min-width: 11rem;
    align-self: center;
    padding: 0.875rem 1.75rem;
}

@media (min-width: 640px) {
    .error-404__links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .error-404__links .btn-primary {
        min-width: 10rem;
    }
}
