/* ========================================
   STYLES COMMUNS - Composants partagés
   ======================================== */

/* ========================================
   BLOC BLEU MARINE UNIFIÉ
   ======================================== */

.dark-block {
  background-color: #1e3a4c;
}

/* ========================================
   LABEL ACCENT
   ======================================== */

.section-label-accent {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5FBFAB;
  margin-bottom: 16px;
  display: block;
}

.section-label-accent.text-center {
  text-align: center;
}

/* ========================================
   BOUTONS
   ======================================== */

/* Bouton outline accent */
.btn-outline-accent {
  display: inline-block;
  background: transparent;
  color: #5FBFAB;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border: 2px solid #5FBFAB;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline-accent:hover {
  background-color: #5FBFAB;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95, 191, 171, 0.3);
}

/* Bouton accent plein */
.btn-accent {
  display: inline-block;
  background-color: #5FBFAB;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 36px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.btn-accent:hover {
  background-color: #4BA897;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95, 191, 171, 0.3);
}

/* Bouton outline avec icône */
.btn-outline-accent svg {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.btn-outline-accent:hover svg {
  transform: translateX(4px);
}

/* Bouton outline secondary (fond sombre) */
.btn-outline-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   CTA WRAPPERS (Centrage des boutons)
   ======================================== */

.services-cta-wrapper,
.avantages-cta-wrapper,
.services-annexes-cta,
.actualites-intro-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.charon-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.services-grid-cta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* Responsive CTA */
@media (max-width: 767px) {
  .services-cta-wrapper,
  .avantages-cta-wrapper,
  .services-annexes-cta,
  .actualites-intro-cta {
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
  }

  .charon-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-grid-cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
  }
}

/* ========================================
   PAGE HERO (pour pages internes)
   Style identique à l'index mais 50% hauteur
   ======================================== */

.page-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  background-color: #F5FBFA;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-container {
  position: relative;
  width: calc(100% - 48px);
  max-width: 1809px;
  height: calc(50vh - 48px);
  min-height: 352px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(32, 54, 74, 0.15);
}

.page-hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-hero-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(32, 54, 74, 0.7) 0%, rgba(44, 72, 91, 0.7) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-hero-title {
  font-family: var(--font-body);
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 800px;
}

.page-hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 300;
}

/* ========================================
   SECTION CONTACT (commune)
   ======================================== */

.section-contact {
  padding: 80px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-block {
  padding-right: 20px;
}

.contact-title {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.contact-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5FBFAB;
}

.detail-value {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

a.detail-value:hover {
  color: #5FBFAB;
}

/* ========================================
   FORMULAIRE SUR FOND SOMBRE
   ======================================== */

.contact-form-block {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group-dark {
  margin-bottom: 16px;
}

.form-group-dark input,
.form-group-dark textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

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

.form-group-dark input:focus,
.form-group-dark textarea:focus {
  outline: none;
  border-color: #5FBFAB;
  background: rgba(255, 255, 255, 0.15);
}

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

.form-group-dark select {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.form-group-dark select:focus {
  outline: none;
  border-color: #5FBFAB;
  background-color: rgba(255, 255, 255, 0.15);
}

.form-group-dark select option {
  background: #1e3a4c;
  color: #ffffff;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1023px) {
  /* Page Hero */
  .page-hero {
    height: 50vh;
    min-height: 350px;
  }

  .page-hero-container {
    width: calc(100% - 40px);
    height: calc(50vh - 40px);
    min-height: 310px;
    border-radius: 24px;
  }

  .page-hero-content {
    padding: 48px 32px;
  }

  .page-hero-title {
    font-size: 38px;
    margin-bottom: 16px;
  }

  .page-hero-subtitle {
    font-size: 16px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info-block {
    padding-right: 0;
  }

  .contact-title {
    font-size: 32px;
  }

  .contact-form-block {
    padding: 32px;
  }
}

@media (max-width: 767px) {
  /* Labels */
  .section-label-accent {
    font-size: 12px;
  }

  /* Boutons */
  .btn-outline-accent,
  .btn-accent {
    padding: 14px 28px;
    font-size: 14px;
  }

  /* Page Hero */
  .page-hero {
    height: 45vh;
    min-height: 280px;
  }

  .page-hero-container {
    width: calc(100% - 32px);
    height: calc(45vh - 32px);
    min-height: 248px;
    border-radius: 20px;
  }

  .page-hero-content {
    padding: 32px 24px;
  }

  .page-hero-title {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .page-hero-subtitle {
    font-size: 14px;
  }

  /* Contact */
  .section-contact {
    padding: 60px 0;
  }

  .contact-title {
    font-size: 26px;
  }

  .contact-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .contact-form-block {
    padding: 24px;
    border-radius: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group-dark input,
  .form-group-dark textarea,
  .form-group-dark select {
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* ========================================
   BOUTON D'URGENCE FLOTTANT
   ======================================== */

.floating-emergency-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e3a4c;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(30, 58, 76, 0.25);
  transition: all 0.2s ease;
  z-index: 1000;
  opacity: 0.9;
}

.floating-emergency-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30, 58, 76, 0.3);
}

.floating-emergency-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #5FBFAB;
}

.floating-emergency-btn .emergency-text {
  display: inline;
}

.floating-emergency-btn .emergency-phone {
  display: none;
  font-weight: 600;
  color: #5FBFAB;
}

/* Desktop: afficher le numero au hover */
@media (min-width: 768px) {
  .floating-emergency-btn:hover .emergency-text {
    display: none;
  }

  .floating-emergency-btn:hover .emergency-phone {
    display: inline;
  }
}

/* Responsive mobile */
@media (max-width: 767px) {
  .floating-emergency-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 12px;
  }

  .floating-emergency-btn svg {
    width: 16px;
    height: 16px;
  }

  .floating-emergency-btn .emergency-text {
    display: none;
  }

  .floating-emergency-btn .emergency-phone {
    display: inline;
    font-weight: 600;
    color: #5FBFAB;
  }
}

/* ========================================
   SECTION CTA MAILLAGE INTERNE
   ======================================== */

.section-cta-links {
  padding: 60px 0;
  background-color: #F5FBFA;
}

.cta-links-header {
  text-align: center;
  margin-bottom: 40px;
}

.cta-links-title {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 600;
  color: #1e3a4c;
  margin-bottom: 12px;
}

.cta-links-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(30, 58, 76, 0.7);
  max-width: 500px;
  margin: 0 auto;
}

.cta-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cta-link-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  text-decoration: none;
  border: 1px solid rgba(30, 58, 76, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 58, 76, 0.12);
  border-color: #5FBFAB;
}

.cta-link-icon {
  width: 48px;
  height: 48px;
  background: rgba(95, 191, 171, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #5FBFAB;
}

.cta-link-card-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: #1e3a4c;
  margin-bottom: 8px;
}

.cta-link-card-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(30, 58, 76, 0.6);
  line-height: 1.5;
  margin: 0;
}

.cta-link-arrow {
  margin-top: 16px;
  color: #5FBFAB;
  transition: transform 0.2s ease;
}

.cta-link-card:hover .cta-link-arrow {
  transform: translateX(4px);
}

/* Cards avec images */
.cta-link-card-image {
  padding: 0;
  overflow: hidden;
}

.cta-link-card-image .cta-link-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.cta-link-card-image .cta-link-card-content {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Responsive */
@media (max-width: 1023px) {
  .cta-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .section-cta-links {
    padding: 48px 0;
  }

  .cta-links-title {
    font-size: 24px;
  }

  .cta-links-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-link-card {
    padding: 24px 20px;
  }

  /* CTA cards avec images en mobile - layout horizontal */
  .cta-link-card-image {
    flex-direction: row;
    align-items: stretch;
  }

  .cta-link-card-image .cta-link-img {
    width: 120px;
    min-width: 120px;
    height: auto;
    min-height: 100%;
    object-fit: cover;
  }

  .cta-link-card-image .cta-link-card-content {
    padding: 16px;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
  }

  .cta-link-card-image .cta-link-card-title {
    font-size: 16px;
  }

  .cta-link-card-image .cta-link-card-text {
    font-size: 13px;
  }

  .cta-link-card-image .cta-link-arrow {
    margin-top: 8px;
  }
}

/* ========================================
   FORMULAIRE CONTACT — FEEDBACK & ANTI-SPAM
   ======================================== */

/* Honeypot — invisible */
.form-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Validation erreur */
.form-group-dark input.error,
.form-group-dark textarea.error,
.form-group-dark select.error {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

.form-error {
  display: block;
  color: #e74c3c;
  font-size: 13px;
  margin-top: 6px;
}

/* Feedback après envoi */
.form-feedback {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.form-success {
  background: rgba(95, 191, 171, 0.15);
  border: 1px solid rgba(95, 191, 171, 0.3);
  color: #5FBFAB;
}

.form-error-message {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

/* Bouton loading */
.btn-accent:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Layout compact (page contact) */
.contact-form-compact .form-row {
  margin-bottom: 0;
}

/* RGPD checkbox */
.form-rgpd {
  margin-bottom: 16px;
}

.rgpd-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  cursor: pointer;
}

.rgpd-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #5FBFAB;
}

.rgpd-label a {
  color: #5FBFAB;
  text-decoration: underline;
}

.rgpd-label a:hover {
  color: #fff;
}

/* ========================================
   FORM MAINTENANCE
   ======================================== */

.form-maintenance {
  background: rgba(107, 193, 175, 0.1);
  border: 2px dashed var(--color-accent, #6BC1AF);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
}

.form-maintenance-icon {
  color: var(--color-accent, #6BC1AF);
  margin-bottom: 16px;
}

.form-maintenance-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-white, #fff);
  margin-bottom: 12px;
}

.form-maintenance-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 24px;
}

.form-maintenance-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.form-maintenance-phone,
.form-maintenance-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--color-accent, #6BC1AF);
  color: var(--color-primary-dark, #20364A);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-maintenance-phone:hover,
.form-maintenance-email:hover {
  background: var(--color-white, #fff);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .form-maintenance {
    padding: 32px 20px;
  }

  .form-maintenance-title {
    font-size: 20px;
  }

  .form-maintenance-text {
    font-size: 14px;
  }

  .form-maintenance-phone,
  .form-maintenance-email {
    width: 100%;
    justify-content: center;
  }
}
