/*
Theme Name: Normandie Séminaire
Theme URI: https://normandie-seminaire.com
Author: Insuffle
Author URI: https://insuffle.com
Description: Thème WordPress premium pour Normandie Séminaire, la branche normande d'Insuffle. Séminaires d'entreprise facilités en Normandie.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: normandie-seminaire
Tags: seminaire, normandie, business, corporate, facilitation

Normandie Séminaire - Séminaires d'entreprise en Normandie
Par Insuffle - Cabinet de facilitation stratégique
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
    /* Couleurs principales - Normandie */
    --color-rouge-normand: #C8102E;
    --color-rouge-normand-dark: #9E0D24;
    --color-rouge-normand-light: #E31837;
    --color-or: #FFD700;
    --color-or-dark: #D4AF37;
    --color-or-light: #FFE55C;
    --color-fond-sombre: #1a1a2e;
    --color-fond-sombre-light: #252542;
    --color-blanc-casse: #FAFAFA;
    --color-blanc: #FFFFFF;

    /* Couleurs secondaires - Insuffle */
    --color-bleu-insuffle: #2563EB;
    --color-bleu-insuffle-dark: #1D4ED8;
    --color-bleu-insuffle-light: #3B82F6;

    /* Couleurs neutres */
    --color-gris-900: #111827;
    --color-gris-800: #1F2937;
    --color-gris-700: #374151;
    --color-gris-600: #4B5563;
    --color-gris-500: #6B7280;
    --color-gris-400: #9CA3AF;
    --color-gris-300: #D1D5DB;
    --color-gris-200: #E5E7EB;
    --color-gris-100: #F3F4F6;

    /* Couleurs sémantiques */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;

    /* Typographie */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-accent: 'Source Serif Pro', Georgia, serif;

    /* Tailles de police */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Line heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Espacements */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Container */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* Dark mode (si nécessaire) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg-primary: var(--color-fond-sombre);
        --color-bg-secondary: var(--color-fond-sombre-light);
        --color-text-primary: var(--color-blanc-casse);
        --color-text-secondary: var(--color-gris-300);
    }
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    /* scroll-behavior: smooth removed - causes jump issues with sticky elements and scroll-spy */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-gris-800);
    background-color: var(--color-blanc-casse);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--color-gris-900);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

@media (min-width: 768px) {
    h1 {
        font-size: var(--text-5xl);
    }

    h2 {
        font-size: var(--text-4xl);
    }

    h3 {
        font-size: var(--text-3xl);
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: var(--text-6xl);
    }

    h2 {
        font-size: var(--text-5xl);
    }
}

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--color-bleu-insuffle);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-bleu-insuffle-dark);
}

.accent-text {
    font-family: var(--font-accent);
    font-style: italic;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-rouge-normand);
    color: var(--color-blanc);
    padding: var(--space-2) var(--space-4);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
    color: var(--color-blanc);
}

/* Text alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* Grid utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Spacing utilities */
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.py-24 { padding-top: var(--space-24); padding-bottom: var(--space-24); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.3);
}

.btn-primary {
    background-color: var(--color-or);
    color: var(--color-gris-900);
    border-color: var(--color-or);
}

.btn-primary:hover {
    background-color: var(--color-or-dark);
    border-color: var(--color-or-dark);
    color: var(--color-gris-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-rouge-normand);
    color: var(--color-blanc);
    border-color: var(--color-rouge-normand);
}

.btn-secondary:hover {
    background-color: var(--color-rouge-normand-dark);
    border-color: var(--color-rouge-normand-dark);
    color: var(--color-blanc);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-blanc);
    border-color: var(--color-blanc);
}

.btn-outline:hover {
    background-color: var(--color-blanc);
    color: var(--color-gris-900);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-gris-900);
    border-color: var(--color-gris-900);
}

.btn-outline-dark:hover {
    background-color: var(--color-gris-900);
    color: var(--color-blanc);
}

.btn-insuffle {
    background-color: var(--color-bleu-insuffle);
    color: var(--color-blanc);
    border-color: var(--color-bleu-insuffle);
}

.btn-insuffle:hover {
    background-color: var(--color-bleu-insuffle-dark);
    border-color: var(--color-bleu-insuffle-dark);
    color: var(--color-blanc);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background-color: var(--color-blanc);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: var(--space-6);
}

.card-premium {
    background: linear-gradient(135deg, var(--color-fond-sombre) 0%, var(--color-fond-sombre-light) 100%);
    color: var(--color-blanc-casse);
}

.card-premium h3,
.card-premium h4 {
    color: var(--color-blanc);
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.badge-or {
    background-color: var(--color-or);
    color: var(--color-gris-900);
}

.badge-rouge {
    background-color: var(--color-rouge-normand);
    color: var(--color-blanc);
}

.badge-bleu {
    background-color: var(--color-bleu-insuffle);
    color: var(--color-blanc);
}

.badge-outline {
    background-color: transparent;
    border: 1px solid currentColor;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--color-gris-700);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: var(--color-gris-900);
    background-color: var(--color-blanc);
    border: 2px solid var(--color-gris-300);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-rouge-normand);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gris-400);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Dark form variant */
.form-dark .form-input,
.form-dark .form-textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-blanc);
}

.form-dark .form-input::placeholder,
.form-dark .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-dark .form-input:focus,
.form-dark .form-textarea:focus {
    border-color: var(--color-or);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: var(--space-16) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-20) 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: var(--space-24) 0;
    }
}

.section-dark {
    background-color: var(--color-fond-sombre);
    color: var(--color-blanc-casse);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-blanc);
}

.section-rouge {
    background-color: var(--color-rouge-normand);
    color: var(--color-blanc);
}

.section-rouge h2,
.section-rouge h3,
.section-rouge h4 {
    color: var(--color-blanc);
}

.section-bleu {
    background-color: var(--color-bleu-insuffle);
    color: var(--color-blanc);
}

.section-bleu h2,
.section-bleu h3,
.section-bleu h4 {
    color: var(--color-blanc);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-12);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--color-gris-600);
    margin-top: var(--space-4);
}

.section-dark .section-header p {
    color: var(--color-gris-300);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes scrollIndicator {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Scroll-triggered animation classes - Animations auto-déclenchées */
[data-animate] {
    animation-fill-mode: both;
}

[data-animate="fade-up"] {
    animation: fadeInUp 0.6s ease forwards;
}

[data-animate="fade-in"] {
    animation: fadeIn 0.6s ease forwards;
}

[data-animate="slide-left"] {
    animation: slideInLeft 0.6s ease forwards;
}

[data-animate="slide-right"] {
    animation: slideInRight 0.6s ease forwards;
}

/* Stagger animations - auto-déclenchées */
[data-animate-stagger] > *:nth-child(1) { animation: fadeInUp 0.5s ease 0.1s forwards; }
[data-animate-stagger] > *:nth-child(2) { animation: fadeInUp 0.5s ease 0.2s forwards; }
[data-animate-stagger] > *:nth-child(3) { animation: fadeInUp 0.5s ease 0.3s forwards; }
[data-animate-stagger] > *:nth-child(4) { animation: fadeInUp 0.5s ease 0.4s forwards; }
[data-animate-stagger] > *:nth-child(5) { animation: fadeInUp 0.5s ease 0.5s forwards; }
[data-animate-stagger] > *:nth-child(6) { animation: fadeInUp 0.5s ease 0.6s forwards; }

/* ==========================================================================
   WORDPRESS SPECIFIC
   ========================================================================== */

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin-right: var(--space-6);
    margin-bottom: var(--space-4);
}

.alignright {
    float: right;
    margin-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-4);
}

.alignwide {
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* WordPress captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: var(--space-4);
}

.wp-caption-text {
    font-size: var(--text-sm);
    color: var(--color-gris-500);
    padding: var(--space-2) 0;
}

/* WordPress galleries */
.gallery {
    display: grid;
    gap: var(--space-4);
}

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

/* Screen reader text - WordPress */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-blanc);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    clip: auto !important;
    clip-path: none;
    color: var(--color-gris-900);
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    height: auto;
    left: var(--space-2);
    line-height: normal;
    padding: var(--space-4);
    text-decoration: none;
    top: var(--space-2);
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }

    .site-header,
    .site-footer,
    .btn,
    .no-print {
        display: none !important;
    }
}
