/* ═══════════════════════════════════════════════
   DataLinks Inc — style.css (feuille partagée)
   Palette : Bleu #1B4F8A · Saumon #F28B6E · Noir · Blanc
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── VARIABLES ── */
:root {
  --blue:        #1B4F8A;
  --blue-dark:   #133a68;
  --blue-light:  #e8f0fb;
  --salmon:      #F28B6E;
  --salmon-dark: #d9694a;
  --salmon-light:#fdf0ec;
  --black:       #1a1a1a;
  --mid:         #555;
  --white:       #ffffff;
  --grey:        #f4f6f9;
  --border:      #e2e8f0;
  --nav-h:       68px;
  --radius:      6px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--black); overflow-x: hidden; line-height: 1.6; }
img   { max-width: 100%; display: block; }
a     { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw; height: var(--nav-h);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--blue); letter-spacing: -0.5px; white-space: nowrap; text-decoration: none; }
.logo span  { color: var(--salmon); }
.logo small { color: var(--mid); font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 300; margin-left: 3px; }
.nav-links  { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { color: var(--mid); text-decoration: none; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }
.nav-links a.active { border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
.nav-cta { background: var(--salmon) !important; color: var(--white) !important; padding: 0.5rem 1.3rem !important; border-radius: 3px; font-weight: 600 !important; border-bottom: none !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--salmon-dark) !important; }
.nav-cta.active { background: var(--salmon-dark) !important; border-bottom: none !important; }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 999; flex-direction: column;
  padding: 2rem 6vw; border-top: 1px solid var(--border); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--black); text-decoration: none; font-size: 1.1rem; font-weight: 600; padding: 1rem 0; border-bottom: 1px solid var(--border); display: block; }
.mobile-menu a:last-child { border-bottom: none; margin-top: 1rem; background: var(--salmon); color: var(--white); text-align: center; border-radius: 4px; padding: 1rem; }
.mobile-menu a:last-child:hover { background: var(--salmon-dark); }

/* ── PAGE HERO BANNER (pages internes) ── */
.page-hero {
  padding-top: var(--nav-h);
  background: var(--blue);
  padding-bottom: 5rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero.grey::after { background: var(--grey); }
.page-hero-inner {
  max-width: 760px; margin: 0 auto; padding: 5rem 6vw 2rem;
  position: relative; z-index: 1; text-align: center;
}
.page-hero .badge { display: inline-block; background: rgba(242,139,110,0.18); border: 1px solid rgba(242,139,110,0.5); color: var(--salmon); font-size: 0.73rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 2px; margin-bottom: 1.5rem; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--white); line-height: 1.18; margin-bottom: 1.2rem; }
.page-hero h1 em { font-style: normal; color: var(--salmon); }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; line-height: 1.8; }

/* ── SECTION LABELS ── */
.section-label { font-size: 0.73rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--salmon); font-weight: 700; margin-bottom: 0.6rem; display: block; }

/* ── CONTAINERS ── */
.container   { max-width: 1140px; margin: 0 auto; padding: 0 6vw; }
.container-sm{ max-width: 780px;  margin: 0 auto; padding: 0 6vw; }
.section     { padding: 6rem 0; }
.section.grey{ background: var(--grey); }
.section.blue{ background: var(--blue); }

/* ── TYPOGRAPHY ── */
h2.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 2.8vw, 2.6rem); color: var(--black); line-height: 1.22; margin-bottom: 1rem; }
h2.section-title span { color: var(--blue); }
h2.section-title em   { font-style: normal; color: var(--salmon); }
.section-intro { color: var(--mid); font-size: 1rem; line-height: 1.75; margin-bottom: 3rem; max-width: 640px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ── BUTTONS ── */
.btn-primary { background: var(--salmon); color: var(--white); padding: 0.9rem 2rem; font-weight: 700; font-size: 0.95rem; border-radius: 3px; display: inline-block; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(242,139,110,0.35); }
.btn-blue { background: var(--blue); color: var(--white); padding: 0.9rem 2rem; font-weight: 700; font-size: 0.95rem; border-radius: 3px; display: inline-block; text-decoration: none; transition: transform 0.2s, background 0.2s; white-space: nowrap; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-outline-blue { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); padding: 0.85rem 1.8rem; font-weight: 600; font-size: 0.93rem; border-radius: 3px; display: inline-block; text-decoration: none; transition: background 0.2s, color 0.2s; }
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }
.btn-ghost-white { border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.85); padding: 0.9rem 2rem; border-radius: 3px; text-decoration: none; text-align: center; font-size: 0.9rem; display: inline-block; transition: border-color 0.2s; }
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ── CARDS ── */
.cards-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.4rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(27,79,138,0.1); }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.card.accent-blue::before   { background: var(--blue); }
.card.accent-salmon::before { background: var(--salmon); }
.card:nth-child(odd)::before  { background: var(--blue); }
.card:nth-child(even)::before { background: var(--salmon); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-family: 'Playfair Display', serif; color: var(--blue); font-size: 1.1rem; margin-bottom: 0.6rem; line-height: 1.3; }
.card p  { color: var(--mid); font-size: 0.87rem; line-height: 1.75; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* ── TAGS ── */
.tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 0.25rem 0.7rem; border-radius: 2px; }
.tag.blue   { background: var(--blue-light);   color: var(--blue); }
.tag.salmon { background: var(--salmon-light);  color: var(--salmon-dark); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer {
  background: var(--blue-dark); color: rgba(255,255,255,0.45);
  padding: 4rem 6vw 2.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { color: var(--white); font-size: 1.4rem; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.87rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a  { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.87rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ── BREADCRUMB ── */
.breadcrumb { padding: 1rem 6vw; background: var(--grey); border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--mid); display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.5; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .cards-grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero-inner { padding-top: 4rem; }
  .section { padding: 4rem 0; }
  .btn-group { flex-direction: column; }
  .btn-primary, .btn-blue, .btn-outline-blue { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .breadcrumb { padding: 0.75rem 5vw; }
}
/*---------------------------- Others CSS -----------------------------*/
textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 15px;
    font-size: 14px;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical; /* permet de redimensionner seulement en hauteur */
    transition: all 0.3s ease;
}

/* Effet au focus */
textarea:focus {
    outline: none;
    border-color: #007bff; /* bleu type Bootstrap */
    background-color: #fff;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
}

/* Style pour placeholder */
textarea::placeholder {
    color: #888;
    font-style: italic;
}
