/* ==========================================================================
   Styles principaux - Avalon Solutions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Reset et base
   ========================================================================== */

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   Accessibilite - Focus styles
   ========================================================================== */

/* Focus visible pour navigation clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-teal);
  outline-offset: 2px;
}

/* Supprime outline par defaut pour souris */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link pour navigation clavier */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-teal);
  color: var(--bg-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--border-radius);
  font-weight: var(--font-semibold);
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ==========================================================================
   Utilitaires
   ========================================================================== */

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

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

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section--light {
  background-color: #C9D6DF;
}

/* Modificateur : ajouter les courbes sombres (pour sections claires) */
.section--waves-light {
  position: relative;
}

.section--waves-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/waves-light.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.section--waves-light > .container {
  position: relative;
  z-index: 1;
}

/* Modificateur : ajouter les halos (pour sections sombres) */
.section--waves-dark {
  position: relative;
}

.section--waves-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(61, 139, 139, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(61, 139, 139, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.section--waves-dark > .container {
  position: relative;
  z-index: 1;
}

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

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

/* ==========================================================================
   Typographie
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: inherit;
}

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); }

.section__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background-color: #061525;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Lignes et points decoratifs sur le header */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/header-waves.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__logo img {
  height: 45px;
  width: auto;
}

.header__logo-text {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-light);
}

.nav {
  display: none;
}

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

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-teal);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Menu mobile */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #081C2E;
  color: var(--text-light);
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #061525 0%, #0A2540 40%, #0D2D4A 100%);
  opacity: 1;
}

/* SVG courbes technologiques */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/hero-waves.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.hero__tagline {
  font-size: var(--text-lg);
  color: var(--accent-teal-light);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  min-height: 44px;
}

.btn--primary {
  background-color: var(--accent-teal);
  color: var(--text-light);
}

.btn--primary:hover {
  background-color: var(--accent-teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn--secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-dark);
}

.btn--dark {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.btn--dark:hover {
  background-color: var(--primary-medium);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card--light {
  background-color: var(--bg-light);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--accent-teal);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--primary-dark);
}

.card__text {
  color: var(--text-medium);
  line-height: 1.7;
}

/* ==========================================================================
   Grilles
   ========================================================================== */

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

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

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

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

/* ==========================================================================
   Section Engagements
   ========================================================================== */

.engagements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.engagement {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.engagement__number {
  font-size: var(--text-sm);
  color: var(--accent-teal-light);
  margin-bottom: var(--space-2);
}

.engagement__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.engagement__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* ==========================================================================
   Section Clients / Logos
   ========================================================================== */

.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-10);
}

.clients__logo {
  height: 100px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform var(--transition), opacity var(--transition);
  opacity: 0.9;
}

.clients__logo:hover {
  transform: scale(1.08);
  opacity: 1;
}

/* ==========================================================================
   Section Equipe
   ========================================================================== */

.team {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-8);
  justify-items: center;
  align-items: start;
}

.team__member {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.team__photo {
  width: 150px;
  height: 150px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-4);
  border: 4px solid var(--accent-teal);
}

.team__name {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
  min-height: 1.5em;
}

.team__role {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 180px;
}

.section--dark .team__role {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: var(--space-12) 0 var(--space-6);
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__logo img {
  height: 40px;
}

.footer__description {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 400px;
}

.footer__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
  color: var(--accent-teal-light);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--text-light);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

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

.footer__social-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer__social-link:hover {
  color: var(--accent-teal-light);
}

/* ==========================================================================
   Page Contact
   ========================================================================== */

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
}

.contact-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--accent-teal);
}

.contact-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
  color: var(--primary-dark);
}

.contact-card__text {
  color: var(--text-medium);
}

.contact-card__link {
  color: var(--accent-teal);
  font-weight: var(--font-medium);
}

.contact-card__link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Page Offres
   ========================================================================== */

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

.offer:nth-child(even) {
  background-color: var(--bg-light);
}

.offer__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.offer__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  color: var(--primary-dark);
}

.offer__description {
  font-size: var(--text-lg);
  color: var(--text-medium);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.offer__list {
  margin-bottom: var(--space-6);
}

.offer__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--text-medium);
}

.offer__list-item::before {
  content: '✓';
  color: var(--accent-teal);
  font-weight: var(--font-bold);
  flex-shrink: 0;
}

/* ==========================================================================
   Page References
   ========================================================================== */

.reference {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.reference__client {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--primary-dark);
  margin-bottom: var(--space-3);
}

.reference__description {
  color: var(--text-medium);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.reference__objective {
  font-size: var(--text-sm);
  color: var(--accent-teal);
  font-weight: var(--font-medium);
}

/* ==========================================================================
   Banniere Confidentialite (RGPD)
   ========================================================================== */

.privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: var(--space-4) var(--space-6);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.privacy-banner--visible {
  display: flex;
}

.privacy-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
}

.privacy-banner__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: 1200px;
  width: 100%;
}

.privacy-banner__text {
  flex: 1;
  min-width: 280px;
}

.privacy-banner__title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
  color: var(--accent-teal-light);
}

.privacy-banner__description {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

.privacy-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.privacy-banner__btn {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  min-height: 40px;
}

.privacy-banner__btn--accept {
  background-color: var(--accent-teal);
  color: var(--text-light);
}

.privacy-banner__btn--accept:hover {
  background-color: var(--accent-teal-dark);
}

.privacy-banner__btn--refuse {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.privacy-banner__btn--refuse:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 640px) {
  .privacy-banner {
    padding: var(--space-4);
  }

  .privacy-banner__content {
    flex-direction: column;
    text-align: center;
  }

  .privacy-banner__actions {
    width: 100%;
    justify-content: center;
  }

  .privacy-banner__btn {
    flex: 1;
    max-width: 150px;
  }
}
