@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Inter:wght@300;400;500;600&display=swap');
 
/* ---------- VARIABLES ---------- */
:root {
    --principal:    #1e3b3d;
    --principal-dk: #1a3228;
    --or:           #8a7020;
    --or-clair:     #b89a4e;
    --beige:        #f0ede8;
    --beige-mid:    #e8e3da;
    --blanc:        #ffffff;
    --texte:        #2a2a2a;
    --texte-doux:   #666;
    --bordure:      #e4dfd7;
 
    --font-titre: 'Cormorant Garamond', serif;
    --font-corps: 'Inter', sans-serif;
 
    --max-w:   960px;
    --radius:  10px;
    --ombre:   0 4px 24px rgba(30, 59, 61, .09);
}
 
/* ---------- RESET ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
html, body {
    overflow-x: hidden;
}
 
body {
    font-family: var(--font-corps);
    background: var(--beige);
    color: var(--texte);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 65px;
}
 
a {
    text-decoration: none;
    color: inherit;
}
 
ul {
    list-style: none;
}
 
img {
    max-width: 100%;
    height: auto;
    display: block;
}
 
main {
    flex: 1;
}
 
/* ========================================
   NAV  (identique à index.css)
   ======================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 999;
    background: var(--blanc);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}
 
/* Conteneur interne centré — même largeur que le reste du site */
.nav-inner {
    width: 100%;
    max-width: var(--max-w);
    display: flex;
    align-items: center;
}

nav > a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
 
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.nav-logo img {
    max-height: 36px;
    filter: contrast(1.2);
}
 
.nav-logo span {
    font-family: var(--font-titre);
    font-weight: 700;
    color: var(--principal);
}
 
nav ul {
    display: flex;
    gap: 12px;
    margin-left: auto;
}
 
nav ul a {
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
    font-weight: 600;
    color: var(--principal);
    padding: 8px 16px;
    border-radius: 30px;
    white-space: nowrap;
    transition: .25s;
}
 
nav ul a:hover {
    background: var(--principal);
    color: var(--blanc);
}
 
/* ========================================
   HERO BANNER
   ======================================== */
.contact-hero {
    background: linear-gradient(135deg, var(--principal) 0%, var(--principal-dk) 100%);
    color: var(--blanc);
    padding: 4rem 20px 3rem;
    text-align: center;
}
 
.contact-hero .label {
    display: inline-block;
    background: var(--or-clair);
    color: var(--texte);
    font-family: var(--font-corps);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.2rem;
}
 
.contact-hero h1 {
    font-family: var(--font-titre);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 300;
    letter-spacing: -.01em;
    margin-bottom: .9rem;
    line-height: 1.2;
}
 
.contact-hero p {
    max-width: 540px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
    line-height: 1.75;
}
 
/* ========================================
   BANDE D'ACCÈS RAPIDE
   ======================================== */
.access-strip {
    background: var(--beige-mid);
    border-bottom: 1px solid var(--bordure);
    padding: 2.2rem 0;
}
 
.access-strip-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}
 
.access-strip h2 {
    font-family: var(--font-corps);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--texte-doux);
    margin-bottom: 1.2rem;
}
 
.access-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
}
 
.access-card {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--ombre);
    transition: transform .2s, box-shadow .2s;
}
 
.access-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 59, 61, .13);
}
 
.access-card .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: .1rem;
}
 
.access-card strong {
    display: block;
    font-size: .9rem;
    color: var(--principal);
    margin-bottom: .25rem;
}
 
.access-card span {
    font-size: .82rem;
    color: var(--texte-doux);
    line-height: 1.55;
}
 
.access-card a {
    color: var(--or);
    font-weight: 600;
}
 
.access-card a:hover {
    text-decoration: underline;
}
 
/* ========================================
   NOTICE CONFIDENTIALITÉ
   ======================================== */
.confidentiality-notice {
    max-width: var(--max-w);
    margin: 1.4rem auto 0;
    background: var(--principal);
    color: rgba(255, 255, 255, .9);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .87rem;
    line-height: 1.65;
}
 
.confidentiality-notice .icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
 
/* ========================================
   GRILLE PRINCIPALE  formulaire + sidebar
   ======================================== */
.main-grid {
    max-width: var(--max-w);
    margin: 2.5rem auto 5rem;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}
 
/* ========================================
   CARTE FORMULAIRE
   ======================================== */
.form-card {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    padding: 2.2rem 2.4rem;
}
 
.form-card h2 {
    font-family: var(--font-titre);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--principal);
    margin-bottom: .4rem;
}
 
.form-card .subtitle {
    color: var(--texte-doux);
    font-size: .9rem;
    margin-bottom: 2rem;
    line-height: 1.65;
}
 
/* Grille 2 colonnes à l'intérieur du formulaire */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.4rem;
}
 
.form-group {
    display: flex;
    flex-direction: column;
}
 
.form-group.full {
    grid-column: 1 / -1;
}
 
label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--texte-doux);
    margin-bottom: .4rem;
}
 
input,
textarea,
select {
    border: 1.5px solid var(--bordure);
    border-radius: 8px;
    padding: .7rem 1rem;
    font-size: .92rem;
    font-family: var(--font-corps);
    color: var(--texte);
    background: var(--beige);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
 
input:focus,
textarea:focus,
select:focus {
    border-color: var(--principal);
    box-shadow: 0 0 0 3px rgba(30, 59, 61, .09);
    background: var(--blanc);
}
 
textarea {
    resize: vertical;
    min-height: 130px;
}
 
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231e3b3d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
 
.anonymous-link {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .9rem;
    font-size: .82rem;
    color: var(--texte-doux);
}
 
.anonymous-link a {
    color: var(--principal);
    font-weight: 600;
}
 
.anonymous-link a:hover {
    text-decoration: underline;
}
 
/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
 
.info-card {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--ombre);
}
 
.info-card.dark {
    background: var(--principal);
    border-color: transparent;
}
 
.info-card h3 {
    font-family: var(--font-corps);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--bordure);
}
 
.info-card.dark h3 {
    color: rgba(255, 255, 255, .55);
    border-color: rgba(255, 255, 255, .1);
}
 
.info-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .5rem 0;
}
 
.info-row + .info-row {
    border-top: 1px solid var(--bordure);
}
 
.info-card.dark .info-row + .info-row {
    border-color: rgba(255, 255, 255, .08);
}
 
.info-row .ico {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: .05rem;
}
 
.info-row p {
    font-size: .87rem;
    line-height: 1.6;
    color: var(--texte-doux);
}
 
.info-card.dark .info-row p {
    color: rgba(255, 255, 255, .8);
}
 
.info-row p strong {
    display: block;
    color: var(--texte);
    margin-bottom: .1rem;
}
 
.info-card.dark .info-row p strong {
    color: var(--blanc);
}
 
.info-row a {
    color: var(--principal);
    font-weight: 600;
}
 
.info-row a:hover {
    text-decoration: underline;
}
 
.services-list {
    list-style: none;
}
 
.services-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem 0;
    font-size: .87rem;
    color: var(--texte-doux);
    border-bottom: 1px solid var(--bordure);
}
 
.services-list li:last-child {
    border-bottom: none;
}
 
.services-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--or-clair);
    flex-shrink: 0;
}
 
footer {
    background: var(--principal);
    color: rgba(255,255,255,0.7);
    padding: 60px 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo-text strong {
    color: white;
    font-family: var(--font-titre);
    font-size: 1.2rem;
}

.footer-nav {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-nav a:hover {
    color: white;
}
 
/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 860px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
 
    .sidebar {
        order: -1;
    }
}
 
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
 
    .form-card {
        padding: 1.5rem 1.2rem;
    }
 
    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* CONTAINER TEXTE */
.anonymous-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--texte-doux);
}

/* CACHE LA CHECKBOX DE BASE */
.btn-anonyme {
    appearance: none;
    -webkit-appearance: none;
    width: 42px;
    height: 22px;
    background: var(--bordure);
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

/* LE ROND */
.btn-anonyme::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ÉTAT ACTIVÉ */
.btn-anonyme:checked {
    background: var(--principal);
}

/* ANIMATION DU ROND */
.btn-anonyme:checked::before {
    transform: translateX(20px);
}

.anon-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px 20px;

    background: linear-gradient(135deg, var(--principal), var(--principal-dk));
    color: white;

    border: none;
    border-radius: 30px;

    font-family: var(--font-corps);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;

    cursor: pointer;
    transition: 0.25s;

    box-shadow: 0 6px 20px rgba(30, 59, 61, 0.25);
}

/* HOVER */
.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 59, 61, 0.35);
}

/* CLICK */
.contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(30, 59, 61, 0.2);
}

/* FOCUS ACCESSIBILITÉ */
.contact-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 59, 61, 0.2);
}

@media (max-width: 600px) {
    .submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .submit-text {
        max-width: 100%;
    }
}

.success-message {
    display: none;
    margin-bottom: 20px;
}

.success-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    background: #e8f6f0;
    border: 1px solid #b7e4d2;
    border-left: 4px solid #2e8b57;

    padding: 16px 18px;
    border-radius: 10px;

    animation: fadeIn 0.4s ease;
}

.success-icon {
    font-size: 1.2rem;
    color: #2e8b57;
    margin-top: 2px;
}

.success-box strong {
    display: block;
    color: #1e3b3d;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.success-box p {
    font-size: 0.85rem;
    color: #4f6f65;
    line-height: 1.5;
}

/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submit-row {
    display: flex;
    justify-content: center;  /* 🔥 centre horizontalement */
    align-items: center;
    margin-top: 15px;
}

.anon-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    cursor: pointer;
}

.btn-anonyme {
    width: 18px;
    height: 18px;
    accent-color: var(--principal);
}

#anon-text {
    font-size: 0.9rem;
    color: var(--texte-doux);
}

#err_nom,
#err_email,
#err_tel,
#err_entreprise,
#err_service,
#err_message {
    color: #c0392b;
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 14px; /* 🔥 important pour garder espace */
}