/* ==========================================================================
   Clinique de Psychologie Johanne Perreault - Stylesheet
   Modern, Clean, High-Performance (No WordPress, No Bloat)
   ========================================================================== */

:root {
  --primary: #0062bb;
  --primary-hover: #004d94;
  --primary-light: #eaf2fb;
  --primary-dark: #003876;
  --secondary: #6a547e;
  --secondary-hover: #543f65;
  --secondary-light: #f4eff7;
  --accent: #6a547e;
  --accent-light: #f4eff7;
  --accent-text: #48345c;
  --success: #15803d;
  --success-light: #dcfce7;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-page: #f5f8fc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #0062bb;
  --font-serif: "Noto Serif", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,98,187,0.08);
  --shadow-lg: 0 12px 28px rgba(0,98,187,0.12);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: linear-gradient(160deg, #f2f7fc 0%, #faf5fb 50%, #f1f6fc 100%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--primary-hover);
}

ul, ol {
  padding-left: 1.4rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); margin-bottom: 0.85rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.15rem; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Notification Banners */
.top-announcements {
  background: linear-gradient(90deg, #f3f7fc 0%, #faf4fb 50%, #f3f7fc 100%);
  border-bottom: 1px solid rgba(106, 84, 126, 0.15);
  font-size: 0.875rem;
}

.announcement-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0.5rem 1.5rem;
  text-align: center;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-notice {
  background-color: var(--accent-light);
  color: var(--accent-text);
  border: 1px solid rgba(107, 82, 130, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-open {
  background-color: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(21, 128, 61, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  animation: pulse-badge 2s infinite ease-in-out;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Header & Navigation */
.site-header {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 98, 187, 0.06);
  border-bottom: 1px solid rgba(0, 98, 187, 0.08);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.brand:hover .brand-logo-img {
  opacity: 0.92;
  transform: scale(1.01);
}

/* Desktop Nav */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
  padding-left: 0;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background-color: var(--primary-light);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  margin-left: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 102, 191, 0.25);
  transition: var(--transition);
}

.btn-header-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 102, 191, 0.35);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

.menu-toggle:focus {
  outline: 2px solid var(--primary);
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 102, 191, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 102, 191, 0.35);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary) !important;
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff !important;
}

.btn-accent:hover {
  background-color: var(--accent-text);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 4.5rem;
  background: linear-gradient(145deg, rgba(234, 242, 251, 0.85) 0%, rgba(255, 255, 255, 0.95) 45%, rgba(244, 239, 247, 0.85) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(106, 84, 126, 0.1);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  max-width: 620px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: var(--primary);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-description strong {
  color: var(--text-main);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.meta-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.meta-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.meta-text strong {
  color: var(--text-main);
  display: block;
}

.hero-image-wrap {
  position: relative;
  text-align: center;
}

.hero-image-card {
  position: relative;
  display: inline-block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: #ffffff;
  padding: 12px;
  border: 1px solid rgba(0, 102, 191, 0.15);
}

.hero-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  object-fit: cover;
  aspect-ratio: 1/1;
}

.hero-image-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  border: 1px solid var(--border);
}

/* Feature/Pillars Section */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background-color: var(--bg-card);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 191, 0.3);
}

.pillar-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pillar-icon-box svg {
  width: 28px;
  height: 28px;
}

.pillar-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pillar-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Services Preview / Detail Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.service-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f8fd 0%, #fcf7fd 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(106, 84, 126, 0.1);
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.service-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.service-link:hover {
  gap: 0.65rem;
}

/* Service Detail Block (services.html) */
.service-detail-block {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.75rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.service-detail-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #f4f8fd 0%, #fcf7fd 100%);
  border: 1px solid rgba(106, 84, 126, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: contain;
  padding: 12px;
}

.service-detail-header {
  margin-bottom: 1.25rem;
}

.service-detail-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.service-quote-box {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--text-main);
  font-style: italic;
}

.bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
}

.pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.pill-tag {
  background-color: #f1f5f9;
  color: var(--text-main);
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* Team Page */
.team-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 3rem;
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.team-photo-wrap {
  text-align: center;
}

.team-photo {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-lg);
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-md);
  border: 4px solid #ffffff;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.team-title {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
}

/* FAQ Accordion */
.faq-filter-wrap {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 2.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 191, 0.15);
}

.faq-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-light);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(0, 102, 191, 0.4);
}

.faq-item.active {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 1.5rem;
  font-size: 0.975rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 800px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Contact & Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem;
}

.contact-photo {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

.form-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 2.75rem;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.925rem;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.form-label .req {
  color: #dc2626;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 191, 0.15);
}

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

.char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-text .req {
  color: #dc2626;
}

.form-alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  display: none;
  animation: fadeInAlert 0.3s ease-out;
  box-shadow: var(--shadow-sm);
  line-height: 1.55;
}

@keyframes fadeInAlert {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-alert.success {
  display: block;
  background-color: #f0fdf4;
  color: #166534;
  border: 2px solid #86efac;
}

.form-alert.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 2px solid #fca5a5;
}

/* Supervision / Training Cards */
.supervision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.supervision-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.supervision-badge {
  display: inline-block;
  background-color: var(--accent-light);
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* Legal / Privacy */
.legal-content {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  max-width: 920px;
  margin: 0 auto;
}

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

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h3 {
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* CTA Banner Block */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 12px 30px rgba(0, 98, 187, 0.2);
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.95);
  max-width: 650px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-banner .btn-cta-white {
  background-color: #ffffff;
  color: var(--primary) !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-cta-white:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #111827 0%, #171626 100%);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%) 1;
  color: #cbd5e1;
  padding-top: 4rem;
  padding-bottom: 2rem;
  margin-top: 4rem;
  font-size: 0.925rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #334155;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-card {
  display: inline-block;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  max-width: 250px;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-col-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}

.footer-links {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}


/* Footer Emergency Resources */
.footer-emergency {
  margin-top: 2rem;
  padding: 1.15rem 1.35rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-emergency-icon {
  flex-shrink: 0;
  color: #ef4444;
  margin-top: 2px;
}

.footer-emergency-content {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.footer-emergency-content strong {
  color: #ffffff;
}

.footer-emergency-content a {
  color: #fca5a5;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.footer-emergency-content a:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .footer-emergency {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

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

/* ==========================================================================
   Comprehensive Mobile & Tablet Adaptation
   Optimisé spécialement pour téléphones cellulaires (iPhone & Android)
   ========================================================================== */

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Tablet & Smaller Desktops */
@media (max-width: 1024px) {
  .hero-grid,
  .service-detail-grid,
  .team-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pillars-grid,
  .services-grid,
  .supervision-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

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

/* Mobile & Touch Devices (Tablets Portrait & Smartphones) */
@media (max-width: 1100px) {
  /* Prevent iOS Safari auto-zoom on form focus */
  input, select, textarea {
    font-size: 16px !important;
  }

  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  /* Top announcements on mobile */
  .announcement-bar {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }

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

  /* Header & Mobile Drawer */
  .header-inner {
    min-height: 62px;
    padding: 0.65rem 0;
  }

  .brand-title {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary);
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 191, 0.2);
  }

  .menu-toggle:active {
    background-color: var(--primary);
    color: #ffffff;
  }

  .nav-menu {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.15rem;
    gap: 0.4rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--primary);
    max-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  .nav-menu.open {
    max-height: calc(100vh - 62px);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  .btn-header-cta {
    margin-left: 0;
    margin-top: 0.75rem;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    justify-content: center;
    width: 100%;
  }

  /* Section Spacing on Mobile */
  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

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

  .section-desc {
    font-size: 1rem;
  }

  /* Hero Section on Mobile */
  .hero-section {
    padding: 2.25rem 0 3.25rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.4rem);
    margin-bottom: 0.35rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }

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

  .hero-pill {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    justify-content: center;
  }

  .hero-image-wrap {
    margin-top: 1.5rem;
  }

  .hero-image-card {
    max-width: 300px;
    padding: 8px;
  }

  .hero-img {
    max-width: 100%;
  }

  .hero-image-badge {
    bottom: 16px;
    font-size: 0.78rem;
    padding: 0.45rem 0.9rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Grids & Cards on Mobile */
  .pillars-grid,
  .services-grid,
  .supervision-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pillar-card {
    padding: 1.5rem 1.25rem;
  }

  .service-card .service-body {
    padding: 1.35rem;
  }

  .service-detail-block {
    padding: 1.35rem 1.15rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
  }

  .service-detail-media img {
    aspect-ratio: 16/10;
  }

  .service-quote-box {
    padding: 1rem 1.15rem;
    font-size: 0.9rem;
  }

  .pill-tags {
    gap: 0.4rem;
  }

  .pill-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.65rem;
  }

  /* Team Card on Mobile */
  .team-card {
    padding: 1.5rem 1.15rem;
    margin-bottom: 2rem;
  }

  .team-photo {
    max-width: 220px;
  }

  .team-title {
    font-size: 1.45rem;
  }

  /* Contact & Form on Mobile */
  .contact-info-card,
  .form-card,
  .legal-content {
    padding: 1.5rem 1.15rem;
  }

  .form-control {
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius-sm);
  }

  .checkbox-group {
    gap: 0.65rem;
    padding: 0.35rem 0;
  }

  .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  .form-card button[type="submit"] {
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 1.05rem;
    min-height: 50px;
  }

  /* FAQ Accordion on Mobile */
  .faq-filter-wrap {
    margin-bottom: 1.75rem;
  }

  .faq-question {
    padding: 1.1rem 1.15rem;
    font-size: 1.025rem;
  }

  .faq-answer {
    padding: 0 1.15rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.15rem 1.25rem;
  }

  /* CTA Banner on Mobile */
  .cta-banner {
    padding: 2.25rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .cta-banner p {
    font-size: 0.95rem;
  }

  .cta-banner .btn {
    width: 100%;
  }

  /* Footer on Mobile */
  .site-footer {
    padding-top: 3rem;
    padding-bottom: 2rem;
    margin-top: 3rem;
  }

  
/* Footer Emergency Resources */
.footer-emergency {
  margin-top: 2rem;
  padding: 1.15rem 1.35rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-emergency-icon {
  flex-shrink: 0;
  color: #ef4444;
  margin-top: 2px;
}

.footer-emergency-content {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.footer-emergency-content strong {
  color: #ffffff;
}

.footer-emergency-content a {
  color: #fca5a5;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.footer-emergency-content a:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .footer-emergency {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* Back to Top on Mobile */
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}



/* Améliorations 2026 : navigation, rubrique À propos et état de la liste. */
body { background: #f8fafc; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
[id] { scroll-margin-top: 110px; }
.skip-link { position: fixed; left: 1rem; top: -10rem; z-index: 2000; background: white; padding: .75rem 1.2rem; border: 2px solid var(--primary); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.header-inner { gap: 1rem; padding: .75rem 1.5rem; }
.nav-link { padding: .55rem .65rem; }
.brand { flex-shrink: 0; }
.brand-logo-img { max-width: 280px; }
.hero-section { padding: 4rem 0; }
.hero-description { max-width: 560px; }
.badge-open { animation: none; }
.waitlist-badge { flex-shrink: 0; padding: .2rem .7rem; background: #e6edf5; color: #334155; border-radius: 999px; font-size: .75rem; font-weight: 700; }
html[data-waitlist="open"] .waitlist-badge { background: #e5f3eb; color: #19643e; }
html[data-waitlist="closed"] .waitlist-badge { background: #f2e9dc; color: #77521f; }
.waitlist-panel { padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1.5rem; background: #e6edf5; }
.waitlist-panel p { margin: 0; font-weight: 600; }
html[data-waitlist="open"] .waitlist-panel { background: #e5f3eb; color: #19643e; }
html[data-waitlist="closed"] .waitlist-panel { background: #f2e9dc; color: #77521f; }
.waitlist-form-note { background: #fff0cc; color: #713200; border: 2px solid #c45a00; border-left-width: 6px; padding: 1.15rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 1rem; font-weight: 600; line-height: 1.6; }
.about-preview { background: #edf3f8; }
.about-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-preview-facts { display: grid; grid-template-columns: repeat(2,1fr); background: white; border: 1px solid var(--border); border-radius: 18px; padding: 1.75rem .5rem; }
.about-preview-facts div { padding: .5rem .85rem; }
.about-preview-facts div + div { border-left: 1px solid var(--border); }
.about-preview-facts strong { display: block; color: var(--primary); font-size: 1.25rem; margin-bottom: .5rem; }
.about-preview-facts span { font-size: .85rem; color: var(--text-muted); display: block; }
.about-intro { background: linear-gradient(135deg, #eef4fa, white 65%, #f4eff7); }
.about-intro-grid { display: grid; grid-template-columns: 320px 1fr; gap: 4rem; align-items: center; }
.about-portrait img { width: 100%; height: 390px; object-fit: cover; object-position: center top; border-radius: 24px; box-shadow: var(--shadow-md); }
.about-credentials { color: var(--primary); font-weight: 600; }
.about-lead { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.5; }
.about-details-grid { display: grid; grid-template-columns: 1fr; max-width: 900px; gap: 4rem; align-items: start; }
.career-timeline { list-style: none; padding: 0 0 0 1.5rem; border-left: 2px solid #cdddeb; margin-top: 2rem; }
.career-timeline li { position: relative; padding-bottom: 1.6rem; }
.career-timeline li::before { content: ''; position: absolute; left: -1.88rem; top: .4rem; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 5px #eef4fa; }
.career-date { display: block; color: var(--primary); font-weight: 700; font-size: .85rem; margin-bottom: .45rem; }
.career-timeline h3 { font-size: 1.2rem; }
.career-timeline p { color: var(--text-muted); margin: 0; }
.education-card { padding: 2rem; background: white; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.education-card h2 { font-size: 1.65rem; }
.degree { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.degree span { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.degree h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.degree p { color: var(--primary); margin: 0; }
.education-note { margin: 1.5rem 0 0; font-size: .875rem; }
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.training-card { padding: 2rem; border: 1px solid var(--border); background: white; border-radius: 18px; box-shadow: var(--shadow-sm); }
.training-card h3 { font-size: 1.35rem; }
.training-recognition { color: var(--accent-text); font-size: .875rem; font-weight: 600; margin: 0; }
.about-publications { max-width: 850px; margin: 2rem auto 0; color: var(--text-muted); text-align: center; }
.section-action { margin-top: 1.5rem; text-align: center; }
@media (max-width: 1100px) {
 .site-nav .nav-menu { position: absolute; top: 100%; max-height: 0; }
 .site-nav .nav-menu.open { max-height: calc(100dvh - 130px); }
 .hero-section { padding: 2.75rem 0; }
 .about-intro-grid { grid-template-columns: 240px 1fr; gap: 2rem; }
 .about-portrait img { height: 310px; }
 .about-preview-grid, .about-details-grid { gap: 2rem; }
}
@media (max-width: 760px) {
 .about-intro-grid, .about-preview-grid, .about-details-grid, .training-grid { grid-template-columns: 1fr; }
 .about-portrait { max-width: 240px; margin: 0 auto; }
 .about-intro-grid { gap: 2rem; }
 .about-preview-facts { padding: 1rem .2rem; }
 .about-preview-facts div { padding: .4rem .55rem; }
 .about-preview-facts strong { font-size: 1rem; }
 .education-card, .training-card { padding: 1.5rem; }
}
@media (max-width: 420px) {
 .brand-logo-img { max-width: 245px; height: auto; }
 .header-inner { padding-left: 1rem; padding-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* Présentation du logo fourni et explication de sa symbolique. */


.logo-story { background: #edf3f8; }
.logo-story-card { display: grid; grid-template-columns: 190px 1fr; gap: 3rem; align-items: center; max-width: 1000px; margin: 0 auto; padding: 2.5rem; background: white; border: 1px solid var(--border); border-radius: 18px; }
.logo-story-symbol img { width: 190px; height: auto; }
.logo-story-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.logo-story-closing { margin-bottom: 0; color: var(--text-muted); }
@media (max-width: 760px) {
 .logo-story-card { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.75rem; }
 .logo-story-symbol { margin: 0 auto; }
 .logo-story-symbol img { width: 150px; }
}
@media (max-width: 420px) {
 
}


/* Logos lisibles : cadrage resserré, ratio naturel et taille plus généreuse. */
.brand-logo-img { display: block; width: 350px; height: auto; max-width: 100%; object-fit: contain; }
.brand { width: 350px; max-width: calc(100% - 60px); }
.footer-logo-card { width: 100%; max-width: 350px; padding: 12px; }
.footer-logo-img { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; }
.logo-story-symbol img { width: 190px; height: auto; }
@media (max-width: 1200px) {
 .header-inner { flex-wrap: wrap; justify-content: center; }
 .header-inner > .brand { margin-right: auto; }
 .site-nav .nav-menu { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 1100px) {
 .header-inner { flex-wrap: nowrap; justify-content: space-between; }
 .brand { width: 330px; }
 .site-nav .nav-menu { flex-wrap: nowrap; }
 .site-nav .nav-menu.open { max-height: calc(100dvh - 145px); }
}
@media (max-width: 760px) {
 .logo-story-symbol img { width: 170px; }
}
@media (max-width: 420px) {
 .brand { width: 270px; }
 .brand-logo-img { width: 270px; height: auto; max-width: 100%; }
}


/* Révision du 5 octobre 2026 : annonce, légende et lisibilité des délais. */
.page-accueil .announcement-bar { font-size: 1rem; padding-top: .65rem; padding-bottom: .65rem; }
.page-accueil .waitlist-badge { font-size: .875rem; padding: .3rem .85rem; }
.page-accueil .hero-title { margin-bottom: 1.5rem; }
.hero-profile-caption { margin: 1.15rem auto 0; max-width: 480px; color: var(--text-muted); font-size: .95rem; line-height: 1.55; text-align: center; }
.hero-profile-caption p { margin-bottom: .4rem; }
.hero-profile-caption strong { color: var(--text-main); }
.hero-profile-fields { font-size: .85rem; }
.section-subtitle { font-size: 1.25rem; color: var(--primary); font-weight: 600; margin-bottom: 1.2rem; }
.contact-intro strong { display: block; margin-top: .35rem; }
.response-delay { white-space: nowrap; }
@media (max-width: 420px) {
 .page-accueil .announcement-bar { font-size: .95rem; }
 .page-accueil .waitlist-badge { font-size: .85rem; }
 .hero-profile-caption { font-size: .875rem; }
 .hero-profile-fields { font-size: .8rem; }
}


/* Page introuvable. */
.error-page { padding-top: 3.5rem; padding-bottom: 2rem; }
.error-card { max-width: 820px; margin: 0 auto; padding: 3rem 2rem; text-align: center; background: white; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-sm); }
.error-symbol { width: 120px; height: auto; margin: 0 auto 1.5rem; }
.error-card .section-tag { display: block; }
.error-card h1 { margin-bottom: 1.25rem; }
.error-description { max-width: 590px; margin: 0 auto 1.75rem; color: var(--text-muted); }
.error-actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.error-contact { margin: 1.75rem 0 0; color: var(--text-muted); font-size: .95rem; }
@media (max-width: 640px) {
 .error-page { padding-top: 2rem; }
 .error-card { padding: 2rem 1.25rem; }
 .error-symbol { width: 100px; }
 .error-actions { flex-direction: column; }
}
