/* =====================================================================
   pro.css - finitions professionnelles pour tout le site AtelierSap
   (a mettre dans public/assets/css/ ; charge apres style.css et header.css)
   ===================================================================== */

:root {
    --pro-marine: #1f2a4a;
    --pro-orange: #b5651d;
    --pro-orange-fonce: #9c5516;
    --pro-creme: #faf6ef;
    --pro-bordure: #eadfce;
    --pro-bordure-champ: #d9c9b0;
    --pro-texte-doux: #8a7a66;
    --pro-ombre: 0 8px 24px rgba(31, 42, 74, .10);
    --pro-rayon: 14px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: #f3d9b8; color: var(--pro-marine); }
img { max-width: 100%; }

/* Titres */
h1, h2, h3 { letter-spacing: -.01em; color: var(--pro-marine); }
h1 { line-height: 1.2; }

/* Accessibilite : contour de focus net et uniforme */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(181, 101, 29, .45);
    outline-offset: 2px;
}

/* Boutons */
.btn-primary, .btn-outline, .btn-solid, .btn-ghost {
    border-radius: 10px;
    transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.btn-primary { background: var(--pro-orange); border-color: var(--pro-orange); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--pro-orange-fonce); border-color: var(--pro-orange-fonce); box-shadow: 0 6px 16px rgba(181, 101, 29, .3); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-outline { font-weight: 600; }
.btn-outline:hover { background: #fff1de; }
.btn-solid:hover { box-shadow: 0 6px 16px rgba(31, 42, 74, .3); transform: translateY(-1px); }
button[disabled], .btn-primary[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Champs de formulaire */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"],
input[type="search"], input[type="date"], select, textarea {
    border: 1.5px solid var(--pro-bordure-champ);
    border-radius: 10px;
    background-color: #fff;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--pro-orange);
    box-shadow: 0 0 0 3px rgba(181, 101, 29, .18);
    outline: none;
}
input::placeholder, textarea::placeholder { color: #a89a85; }
label { font-weight: 600; color: #4a4a4a; }

/* Cartes de formulaire */
.formulaire {
    background: #fff;
    border: 1px solid var(--pro-bordure);
    border-radius: 18px;
    box-shadow: var(--pro-ombre);
}

/* Messages */
.alert {
    border-radius: 12px;
    border-left-width: 4px;
    padding: .9rem 1.1rem;
    font-weight: 500;
}

/* Section d'accueil / bandeau */
.hero { padding-top: 2.2rem; padding-bottom: 1rem; }
.hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.hero p { color: var(--pro-texte-doux); max-width: 640px; margin-left: auto; margin-right: auto; }

/* En-tete : ombre legere pour le detacher du contenu */
.site-header { box-shadow: 0 2px 14px rgba(31, 42, 74, .07); }

/* Badges de statut (commandes) */
.badge-statut { letter-spacing: .01em; }

/* Tableaux */
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pro-texte-doux); }
th, td { padding: .75rem .9rem; border-bottom: 1px solid #f1ebe2; }

/* Barre de defilement discrete */
* { scrollbar-width: thin; scrollbar-color: #cdb893 transparent; }

/* Respecte les personnes qui reduisent les animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Impression (recu / suivi) : sans en-tete ni recherche */
@media print {
    .site-header, .sous-nav, .recherche-form, .menu-compte, footer { display: none !important; }
    body { background: #fff; }
}
